@smart-webcomponents-angular/passwordtextbox 9.2.21 → 13.0.1
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/common/i18n.phonenumbers.min.js +501 -0
- package/common/runtime.js +748 -0
- package/demo/angular.json +3 -3
- package/demo/package.json +2 -2
- package/demo/src/tsconfig.app.json +15 -15
- package/demo/src/tsconfig.json +23 -23
- package/esm2020/passwordtextbox/index.mjs +2 -0
- package/{esm2015/passwordtextbox/public_api.js → esm2020/passwordtextbox/public_api.mjs} +0 -0
- package/{esm2015/passwordtextbox/smart-webcomponents-angular-passwordtextbox.js → esm2020/passwordtextbox/smart-webcomponents-angular-passwordtextbox.mjs} +2 -3
- package/esm2020/passwordtextbox/smart.element.mjs +96 -0
- package/esm2020/passwordtextbox/smart.passwordtextbox.mjs +428 -0
- package/esm2020/passwordtextbox/smart.passwordtextbox.module.mjs +18 -0
- package/fesm2015/{smart-webcomponents-angular-passwordtextbox.js → smart-webcomponents-angular-passwordtextbox.mjs} +116 -60
- package/fesm2015/smart-webcomponents-angular-passwordtextbox.mjs.map +1 -0
- package/fesm2020/smart-webcomponents-angular-passwordtextbox.mjs +550 -0
- package/fesm2020/smart-webcomponents-angular-passwordtextbox.mjs.map +1 -0
- package/images/dropable_zone_image.svg +25 -0
- package/images/error.png +0 -0
- package/images/flags.png +0 -0
- package/images/icons-sprite.svg +85 -0
- package/images/icons-stack.svg +132 -0
- package/images/info.png +0 -0
- package/images/magnifier.png +0 -0
- package/images/mail.png +0 -0
- package/images/radial.svg +1 -0
- package/images/success.png +0 -0
- package/images/time.png +0 -0
- package/images/warning.png +0 -0
- package/index.d.ts +3548 -647
- package/package.json +26 -24
- package/passwordtextbox/index.d.ts +1 -0
- package/passwordtextbox/smart-webcomponents-angular-passwordtextbox.d.ts +2 -2
- package/passwordtextbox/smart.element.d.ts +4 -1
- package/passwordtextbox/smart.passwordtextbox.d.ts +10 -1
- package/passwordtextbox/smart.passwordtextbox.module.d.ts +5 -0
- package/source/modules/smart.passwordtextbox.js +1 -1
- package/source/smart.button.js +2 -2
- package/source/smart.element.js +2 -2
- package/source/smart.input.js +2 -2
- package/source/smart.passwordtextbox.js +6 -0
- package/source/smart.tooltip.js +6 -0
- 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.passwordtextbox.css +2 -2
- package/bundles/smart-webcomponents-angular-passwordtextbox.umd.js +0 -961
- package/bundles/smart-webcomponents-angular-passwordtextbox.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/passwordtextbox/smart.element.js +0 -83
- package/esm2015/passwordtextbox/smart.passwordtextbox.js +0 -388
- package/esm2015/passwordtextbox/smart.passwordtextbox.module.js +0 -13
- package/fesm2015/smart-webcomponents-angular-passwordtextbox.js.map +0 -1
- package/passwordtextbox/smart-webcomponents-angular-passwordtextbox.metadata.json +0 -1
- package/source/smart.maskedtextbox.js +0 -6
|
@@ -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.passwordtextbox';
|
|
9
|
-
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("smart-webcomponents-angular/passwordtextbox",["exports","@angular/core","@angular/forms"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].passwordtextbox={}),e.ng.core,e.ng.forms)}(this,(function(e,t,n){"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 i=function(e,t){return(i=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)};Object.create;Object.create;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:!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}();o.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 r=window.Smart,a={provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return l})),multi:!0},l=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i._onChange=function(){},i._onTouched=function(){},i.onChange=new t.EventEmitter,i._initialChange=!0,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 n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-password-text-box"),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:!1,configurable:!0}),Object.defineProperty(n.prototype,"autoFocus",{get:function(){return this.nativeElement?this.nativeElement.autoFocus:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoFocus=e)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(n.prototype,"enterKeyBehavior",{get:function(){return this.nativeElement?this.nativeElement.enterKeyBehavior:void 0},set:function(e){this.nativeElement&&(this.nativeElement.enterKeyBehavior=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"form",{get:function(){return this.nativeElement?this.nativeElement.form:void 0},set:function(e){this.nativeElement&&(this.nativeElement.form=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hint",{get:function(){return this.nativeElement?this.nativeElement.hint:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hint=e)},enumerable:!1,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:!1,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:!1,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:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxLength",{get:function(){return this.nativeElement?this.nativeElement.maxLength:void 0},set:function(e){this.nativeElement&&(this.nativeElement.maxLength=e)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(n.prototype,"minLength",{get:function(){return this.nativeElement?this.nativeElement.minLength:void 0},set:function(e){this.nativeElement&&(this.nativeElement.minLength=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.nativeElement?this.nativeElement.name:void 0},set:function(e){this.nativeElement&&(this.nativeElement.name=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"passwordStrength",{get:function(){return this.nativeElement?this.nativeElement.passwordStrength:void 0},set:function(e){this.nativeElement&&(this.nativeElement.passwordStrength=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this.nativeElement?this.nativeElement.placeholder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.placeholder=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this.nativeElement?this.nativeElement.required:void 0},set:function(e){this.nativeElement&&(this.nativeElement.required=e)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectAllOnFocus",{get:function(){return this.nativeElement?this.nativeElement.selectAllOnFocus:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selectAllOnFocus=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showPasswordIcon",{get:function(){return this.nativeElement?this.nativeElement.showPasswordIcon:void 0},set:function(e){this.nativeElement&&(this.nativeElement.showPasswordIcon=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showPasswordStrength",{get:function(){return this.nativeElement?this.nativeElement.showPasswordStrength:void 0},set:function(e){this.nativeElement&&(this.nativeElement.showPasswordStrength=e)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(n.prototype,"tooltipArrow",{get:function(){return this.nativeElement?this.nativeElement.tooltipArrow:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipArrow=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tooltipDelay",{get:function(){return this.nativeElement?this.nativeElement.tooltipDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipDelay=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tooltipPosition",{get:function(){return this.nativeElement?this.nativeElement.tooltipPosition:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipPosition=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tooltipTemplate",{get:function(){return this.nativeElement?this.nativeElement.tooltipTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipTemplate=e)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(n.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}),n.prototype.focus=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.focus():this.nativeElement.whenRendered((function(){e.nativeElement.focus()}))},n.prototype.reset=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.reset():this.nativeElement.whenRendered((function(){e.nativeElement.reset()}))},Object.defineProperty(n.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.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()},n.prototype.ngOnDestroy=function(){this.unlisten()},Object.defineProperty(n.prototype,"ngValue",{get:function(){return this.nativeElement?this.nativeElement.value:null},set:function(e){this.nativeElement&&this.writeValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){var t=this,n=null==e?"":e;t.nativeElement.whenRendered((function(){t.value=n,!1===t._initialChange&&t._onChange(t.value)}))},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},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.changeHandler=function(t){e.onChange.emit(t)},e.nativeElement.addEventListener("change",e.eventHandlers.changeHandler),e.eventHandlers.changeModelHandler=function(t){e._initialChange=!1,e._onChange(e.nativeElement.value)},e.eventHandlers.blurModelHandler=function(t){e._onTouched()},e.nativeElement.whenRendered((function(){e.nativeElement.querySelector("input")&&(e.eventHandlers.keyupModelHandler=function(t){setTimeout((function(){e.eventHandlers.changeModelHandler(t)}),50)},e.nativeElement.querySelector("input").addEventListener("keyup",e.eventHandlers.keyupModelHandler))})),e.nativeElement.addEventListener("change",e.eventHandlers.changeModelHandler),e.nativeElement.addEventListener("blur",e.eventHandlers.blurModelHandler)},n.prototype.unlisten=function(){var e=this;e.eventHandlers.changeHandler&&e.nativeElement.removeEventListener("change",e.eventHandlers.changeHandler),e.eventHandlers.changeModelHandler&&(e.nativeElement.removeEventListener("change",e.eventHandlers.changeModelHandler),e.nativeElement.querySelector("input")&&e.nativeElement.querySelector("input").removeEventListener("keyup",e.eventHandlers.keyupModelHandler)),e.eventHandlers.blurModelHandler&&e.nativeElement.removeEventListener("blur",e.eventHandlers.blurModelHandler)},n}(o);l.decorators=[{type:t.Directive,args:[{selector:"smart-password-text-box, [smart-password-text-box]",providers:[a]}]}],l.ctorParameters=function(){return[{type:t.ElementRef}]},l.propDecorators={animation:[{type:t.Input}],autoFocus:[{type:t.Input}],disabled:[{type:t.Input}],enterKeyBehavior:[{type:t.Input}],form:[{type:t.Input}],hint:[{type:t.Input}],label:[{type:t.Input}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],maxLength:[{type:t.Input}],messages:[{type:t.Input}],minLength:[{type:t.Input}],name:[{type:t.Input}],passwordStrength:[{type:t.Input}],placeholder:[{type:t.Input}],required:[{type:t.Input}],rightToLeft:[{type:t.Input}],selectAllOnFocus:[{type:t.Input}],showPasswordIcon:[{type:t.Input}],showPasswordStrength:[{type:t.Input}],theme:[{type:t.Input}],tooltipArrow:[{type:t.Input}],tooltipDelay:[{type:t.Input}],tooltipPosition:[{type:t.Input}],tooltipTemplate:[{type:t.Input}],unfocusable:[{type:t.Input}],value:[{type:t.Input}],onChange:[{type:t.Output}]};var s=function(){};s.decorators=[{type:t.NgModule,args:[{declarations:[l],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[l]}]}],e.PasswordTextBoxComponent=l,e.PasswordTextBoxModule=s,e.Smart=r,e.ɵa=o,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
25
|
-
//# sourceMappingURL=smart-webcomponents-angular-passwordtextbox.umd.min.js.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild, OnInit, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { PasswordTextBoxComponent } from '@smart-webcomponents-angular/passwordtextbox';
|
|
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('passwordtextbox', { read: PasswordTextBoxComponent, static: false }) passwordtextbox: PasswordTextBoxComponent;
|
|
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 { PasswordTextBoxModule } from '@smart-webcomponents-angular/passwordtextbox';
|
|
5
|
-
|
|
6
|
-
import { AppComponent } from './app.component';
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [ AppComponent ],
|
|
10
|
-
imports: [ BrowserModule, PasswordTextBoxModule ],
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQuZWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Bhc3N3b3JkdGV4dGJveC9zcmMvc21hcnQuZWxlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRQSxPQUFPLEVBQWMsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHeEUsTUFBTSxPQUFPLFdBQVc7SUFDcEIsWU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