@smart-webcomponents-angular/passwordtextbox 9.2.73 → 13.0.10
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/esm2020/passwordtextbox/index.mjs +2 -0
- package/{esm2015/passwordtextbox/public_api.js → esm2020/passwordtextbox/public_api.mjs} +1 -1
- 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/flags.png +0 -0
- package/index.d.ts +31835 -28915
- 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/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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"smart-webcomponents-angular-passwordtextbox.js","sources":["../../passwordtextbox/src/smart.element.ts","../../passwordtextbox/src/smart.passwordtextbox.ts","../../passwordtextbox/src/smart.passwordtextbox.module.ts","../../passwordtextbox/src/smart-webcomponents-angular-passwordtextbox.ts"],"sourcesContent":["\r\ndeclare global {\r\n interface Window {\r\n Smart: any;\r\n}\r\n}\r\n\r\n\r\nimport { ElementRef, Input, Output, EventEmitter } from '@angular/core';\r\nimport { ElementRenderMode } from './../index';\r\n\r\nexport class BaseElement {\r\n constructor(ref: ElementRef) {\r\n const that = this;\r\n this.nativeElement = ref.nativeElement as any;\r\n\r\n that.nativeElement.onAttached = () => {\r\n that.onAttach.emit(that.nativeElement);\r\n }\r\n\r\n that.nativeElement.onDetached = () => {\r\n that.onDetach.emit(that.nativeElement);\r\n }\r\n }\r\n\r\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\r\n @Output() onReady: EventEmitter<any> = new EventEmitter();\r\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\r\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\r\n\r\n public nativeElement: any;\r\n\r\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\r\n this.nativeElement.addEventListener(type, listener, options);\r\n\t}\r\n\r\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\r\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\r\n\t}\r\n\r\n\tpublic dispatchEvent(event: Event): boolean {\r\n\t\treturn this.nativeElement.dispatchEvent(event);\r\n\t}\r\n\r\n\tpublic blur(): void {\r\n\t\tthis.nativeElement.blur();\r\n\t}\r\n\r\n\tpublic click(): void {\r\n\t\tthis.nativeElement.click();\r\n\t}\r\n\r\n\tpublic focus(options?: FocusOptions): void {\r\n\t\tthis.nativeElement.focus(options);\r\n\t}\r\n\r\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\r\n\t@Input()\r\n\tget locale(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\r\n\t}\r\n\tset locale(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\r\n\t}\r\n\r\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\r\n\t@Input()\r\n\tget localizeFormatFunction(): any {\r\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\r\n\t}\r\n\tset localizeFormatFunction(value: any) {\r\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\r\n\t@Input()\r\n\tget messages(): any {\r\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\r\n\t}\r\n\tset messages(value: any) {\r\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\r\n\t@Input()\r\n\tget rightToLeft(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\r\n\t}\r\n\tset rightToLeft(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines the theme. Theme defines the look of the element */\r\n\t@Input()\r\n\tget theme(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\r\n\t}\r\n\tset theme(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\r\n\t}\r\n}\r\n\r\nexport const Smart: any = window.Smart;\r\n\r\n","import { PasswordTextBox } from './../index';\r\nimport { Animation, EnterKeyBehavior, PasswordTextBoxTooltipPosition, ElementRenderMode} from './../index';\r\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, forwardRef, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\r\nimport { BaseElement, Smart } from './smart.element';\r\nexport { Animation, EnterKeyBehavior, PasswordTextBoxTooltipPosition, ElementRenderMode} from './../index';\r\nexport { Smart } from './smart.element';\r\nexport { PasswordTextBox } from './../index';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\n\r\n\r\n\r\nconst CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => PasswordTextBoxComponent),\r\n multi: true\r\n}\r\n\r\n@Directive({\r\n\tselector: 'smart-password-text-box, [smart-password-text-box]',\r\n\tproviders: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR]\r\n\r\n})\r\n\r\nexport class PasswordTextBoxComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {\r\n\tconstructor(ref: ElementRef<PasswordTextBox>) {\r\n\t\tsuper(ref);\r\n\t\tthis.nativeElement = ref.nativeElement as PasswordTextBox;\r\n\t}\r\n\r\n\tprivate eventHandlers: any[] = [];\r\n\r\n\tpublic nativeElement: PasswordTextBox;\r\n\t/** @description Creates the component on demand.\r\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\r\n\t */\r\n\tpublic createComponent(properties = {}): any {\r\n \tthis.nativeElement = <PasswordTextBox>document.createElement('smart-password-text-box');\r\n\t\tfor (let propertyName in properties) { \r\n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\r\n\t\t}\r\n\t\treturn this.nativeElement;\r\n\t}\r\n /**\r\n * @description\r\n * The registered callback function called when a change event occurs on the form elements.\r\n */\r\n _onChange: (value: any) => void = () => {};\r\n /**\r\n * @description\r\n * The registered callback function called when a blur event occurs on the form elements.\r\n */\r\n _onTouched: () => any = () => {};\r\n\r\n\r\n\t/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\r\n\t@Input()\r\n\tget animation(): Animation {\r\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\r\n\t}\r\n\tset animation(value: Animation) {\r\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\r\n\t}\r\n\r\n\t/** @description Specifies that the element should be focused when the page is loaded. */\r\n\t@Input()\r\n\tget autoFocus(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.autoFocus : undefined;\r\n\t}\r\n\tset autoFocus(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.autoFocus = value : undefined;\r\n\t}\r\n\r\n\t/** @description Enables or disables the element. */\r\n\t@Input()\r\n\tget disabled(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\r\n\t}\r\n\tset disabled(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\r\n\t}\r\n\r\n\t/** @description Specifies the behavior on \"Enter\" key press. Default mode is \"submit\". */\r\n\t@Input()\r\n\tget enterKeyBehavior(): EnterKeyBehavior {\r\n\t\treturn this.nativeElement ? this.nativeElement.enterKeyBehavior : undefined;\r\n\t}\r\n\tset enterKeyBehavior(value: EnterKeyBehavior) {\r\n\t\tthis.nativeElement ? this.nativeElement.enterKeyBehavior = value : undefined;\r\n\t}\r\n\r\n\t/** @description The form that the element is associated with (its \"form owner\"). The value of the attribute must be the ID of a form element in the same document. */\r\n\t@Input()\r\n\tget form(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.form : undefined;\r\n\t}\r\n\tset form(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.form = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets additional helper text below the element. Appears only when the element is focused. */\r\n\t@Input()\r\n\tget hint(): any {\r\n\t\treturn this.nativeElement ? this.nativeElement.hint : undefined;\r\n\t}\r\n\tset hint(value: any) {\r\n\t\tthis.nativeElement ? this.nativeElement.hint = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets label above the element. The label is displayed above the input and it's always visible. */\r\n\t@Input()\r\n\tget label(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.label : undefined;\r\n\t}\r\n\tset label(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.label = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the language. Used in conjunction with the property messages. */\r\n\t@Input()\r\n\tget locale(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\r\n\t}\r\n\tset locale(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\r\n\t}\r\n\r\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\r\n\t@Input()\r\n\tget localizeFormatFunction(): any {\r\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\r\n\t}\r\n\tset localizeFormatFunction(value: any) {\r\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the maximum number of characters that the user can enter. */\r\n\t@Input()\r\n\tget maxLength(): number {\r\n\t\treturn this.nativeElement ? this.nativeElement.maxLength : undefined;\r\n\t}\r\n\tset maxLength(value: number) {\r\n\t\tthis.nativeElement ? this.nativeElement.maxLength = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets an object with string values, related to the different states of passwords strength. */\r\n\t@Input()\r\n\tget messages(): any {\r\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\r\n\t}\r\n\tset messages(value: any) {\r\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the minimum number of characters that the user can enter. */\r\n\t@Input()\r\n\tget minLength(): number {\r\n\t\treturn this.nativeElement ? this.nativeElement.minLength : undefined;\r\n\t}\r\n\tset minLength(value: number) {\r\n\t\tthis.nativeElement ? this.nativeElement.minLength = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the name attribute for the element. Name is used when submiting HTML forms. */\r\n\t@Input()\r\n\tget name(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.name : undefined;\r\n\t}\r\n\tset name(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.name = value : undefined;\r\n\t}\r\n\r\n\t/** @description With this property the user can set a custom callback function that determines the password strength. The returned string from the function determines the how strong the current password is. The string should be one of the following: 'short', 'weak', 'far', 'good', 'strong'. */\r\n\t@Input()\r\n\tget passwordStrength(): any {\r\n\t\treturn this.nativeElement ? this.nativeElement.passwordStrength : undefined;\r\n\t}\r\n\tset passwordStrength(value: any) {\r\n\t\tthis.nativeElement ? this.nativeElement.passwordStrength = value : undefined;\r\n\t}\r\n\r\n\t/** @description The placeholder text that is displayed when no value is applied to the element. */\r\n\t@Input()\r\n\tget placeholder(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.placeholder : undefined;\r\n\t}\r\n\tset placeholder(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.placeholder = value : undefined;\r\n\t}\r\n\r\n\t/** @description Specifies that the user must fill in a value before submitting a form that contains the element. */\r\n\t@Input()\r\n\tget required(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.required : undefined;\r\n\t}\r\n\tset required(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.required = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\r\n\t@Input()\r\n\tget rightToLeft(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\r\n\t}\r\n\tset rightToLeft(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\r\n\t}\r\n\r\n\t/** @description Specifies whether the content of the input will be selected on focus. */\r\n\t@Input()\r\n\tget selectAllOnFocus(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.selectAllOnFocus : undefined;\r\n\t}\r\n\tset selectAllOnFocus(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.selectAllOnFocus = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines whether the password icon is visible. */\r\n\t@Input()\r\n\tget showPasswordIcon(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.showPasswordIcon : undefined;\r\n\t}\r\n\tset showPasswordIcon(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.showPasswordIcon = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines whether a tooltip which shows the password's strength will be shown. */\r\n\t@Input()\r\n\tget showPasswordStrength(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.showPasswordStrength : undefined;\r\n\t}\r\n\tset showPasswordStrength(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.showPasswordStrength = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines the theme. Theme defines the look of the element */\r\n\t@Input()\r\n\tget theme(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\r\n\t}\r\n\tset theme(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines whether Tooltip's arrow will be shown or not. */\r\n\t@Input()\r\n\tget tooltipArrow(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.tooltipArrow : undefined;\r\n\t}\r\n\tset tooltipArrow(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.tooltipArrow = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines the delay before the tooltip appears in miliseconds. */\r\n\t@Input()\r\n\tget tooltipDelay(): number {\r\n\t\treturn this.nativeElement ? this.nativeElement.tooltipDelay : undefined;\r\n\t}\r\n\tset tooltipDelay(value: number) {\r\n\t\tthis.nativeElement ? this.nativeElement.tooltipDelay = value : undefined;\r\n\t}\r\n\r\n\t/** @description Determines the position of the tooltip. */\r\n\t@Input()\r\n\tget tooltipPosition(): PasswordTextBoxTooltipPosition {\r\n\t\treturn this.nativeElement ? this.nativeElement.tooltipPosition : undefined;\r\n\t}\r\n\tset tooltipPosition(value: PasswordTextBoxTooltipPosition) {\r\n\t\tthis.nativeElement ? this.nativeElement.tooltipPosition = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets a custom template for the content of the tooltip. */\r\n\t@Input()\r\n\tget tooltipTemplate(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.tooltipTemplate : undefined;\r\n\t}\r\n\tset tooltipTemplate(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.tooltipTemplate = value : undefined;\r\n\t}\r\n\r\n\t/** @description If true, the element cannot be focused. */\r\n\t@Input()\r\n\tget unfocusable(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\r\n\t}\r\n\tset unfocusable(value: boolean) {\r\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\r\n\t}\r\n\r\n\t/** @description Sets or gets the value of the element. */\r\n\t@Input()\r\n\tget value(): string {\r\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\r\n\t}\r\n\tset value(value: string) {\r\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\r\n\t}\r\n\r\n\t/** @description This event is triggered when the value of the element is changed.\r\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\toldValue, \tvalue)\r\n\t* oldValue - The previous value of the element before it was changed.\r\n\t* value - The new value of the element.\r\n\t*/\r\n\t@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();\r\n\r\n\t/** @description Focuses the element. \r\n\t*/\r\n public focus(): void {\r\n if (this.nativeElement.isRendered) {\r\n this.nativeElement.focus();\r\n }\r\n else\r\n {\r\n this.nativeElement.whenRendered(() => {\r\n this.nativeElement.focus();\r\n });\r\n }\r\n }\r\n\r\n\t/** @description The method is used to reset input to it's initial value. \r\n\t*/\r\n public reset(): void {\r\n if (this.nativeElement.isRendered) {\r\n this.nativeElement.reset();\r\n }\r\n else\r\n {\r\n this.nativeElement.whenRendered(() => {\r\n this.nativeElement.reset();\r\n });\r\n }\r\n }\r\n\r\n\r\n\tget isRendered(): boolean {\r\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\r\n\t}\r\n\r\n\tngOnInit() {\r\n\t}\r\n\r\n ngAfterViewInit() {\r\n const that = this;\r\n\r\n that.onCreate.emit(that.nativeElement);\r\n\r\n\t\tSmart.Render();\r\n\r\n\t\tthis.nativeElement.classList.add('smart-angular');\r\n\r\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\r\n\t\tthis.listen();\r\n\t}\r\n\r\n\tngOnDestroy() {\r\n\t\tthis.unlisten();\r\n\t}\r\n\r\n\t_initialChange = true; \r\n\r\n\tget ngValue(): any {\r\n\t\tif (!this.nativeElement) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tconst value = this.nativeElement.value;\r\n\t\treturn value;\r\n\t}\r\n\r\n\tset ngValue(value: any) {\r\n\t\tif (this.nativeElement) {\r\n\t\t this.writeValue(value);\r\n\t\t}\r\n\t}\r\n\r\n\twriteValue(value: any): void {\r\n const that = this;\r\n const normalizedValue = value == null ? '' : value;\r\n\r\n\t\tthat.nativeElement.whenRendered(() => {\r\n\t\t\tthat.value = normalizedValue;\r\n\t\t\tif (that._initialChange === false) {\r\n\t \t\tthat._onChange(that.value);\r\n }\r\n\t\t});\r\n\t}\r\n\r\n\tregisterOnChange(fn: any): void {\r\n\t\tthis._onChange = fn;\r\n\t}\r\n\r\n\tregisterOnTouched(fn: any): void {\r\n\t\tthis._onTouched = fn;\r\n\t}\r\n\r\n\tngOnChanges(changes: SimpleChanges) {\r\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\r\n\t\t\tfor (const propName in changes) {\r\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\r\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/** @description Add event listeners. */\r\n\tprivate listen(): void {\r\n const that = this;\r\n\t\tthat.eventHandlers['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }\r\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);\r\n\r\n\r\n that.eventHandlers['changeModelHandler'] = (event: Event) => {\r\n that._initialChange = false;\r\n that._onChange(that.nativeElement.value);\r\n };\r\n that.eventHandlers['blurModelHandler'] = (event: Event) => {\r\n that._onTouched();\r\n };\r\n that.nativeElement.whenRendered(() => {\r\n if (that.nativeElement.querySelector('input')) {\r\n that.eventHandlers['keyupModelHandler'] = (event) => {\r\n setTimeout(() => { that.eventHandlers['changeModelHandler'](event); }, 50);\r\n };\r\n\r\n that.nativeElement.querySelector('input').addEventListener('keyup', that.eventHandlers['keyupModelHandler']);\r\n }\r\n });\r\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeModelHandler']);\r\n\t\tthat.nativeElement.addEventListener('blur', that.eventHandlers['blurModelHandler']);\r\n\t}\r\n\r\n\t/** @description Remove event listeners. */\r\n\tprivate unlisten(): void {\r\n const that = this;\r\n\t\tif (that.eventHandlers['changeHandler']) {\r\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);\r\n\t\t}\r\n\r\n\t\tif (that.eventHandlers['changeModelHandler']) {\r\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeModelHandler']);\r\n if (that.nativeElement.querySelector('input')) {\r\n that.nativeElement.querySelector('input').removeEventListener('keyup', that.eventHandlers['keyupModelHandler']);\r\n }\r\n\t\t}\r\n\t\tif (that.eventHandlers['blurModelHandler']) {\r\n\t\t\tthat.nativeElement.removeEventListener('blur', that.eventHandlers['blurModelHandler']);\r\n\t\t}\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { PasswordTextBoxComponent } from './smart.passwordtextbox';\r\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\n\r\n@NgModule({\r\n declarations: [PasswordTextBoxComponent],\r\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\r\n\texports: [PasswordTextBoxComponent]\r\n})\r\n\r\nexport class PasswordTextBoxModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {BaseElement as ɵa} from './smart.element';"],"names":[],"mappings":";;;MAWa,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;QAChD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;KACJ;IASM,gBAAgB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QAClI,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACnE;IAEM,mBAAmB,CAAC,IAAY,EAAE,QAA4C,EAAE,UA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AAK;8BASL,KAAK;8BASL,KAAK;0BASL,KAAK;oBASL,KAAK;uBAaL,MAAM;;;MCnSK,qBAAqB;;;YANjC,QAAQ,SAAC;gBACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;gBAC3C,OAAO,EAAE,CAAC,sBAAsB,CAAC;gBACjC,OAAO,EAAE,CAAC,wBAAwB,CAAC;aACnC;;;ACTD;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"Animation","as":"Animation"},{"name":"EnterKeyBehavior","as":"EnterKeyBehavior"},{"name":"PasswordTextBoxTooltipPosition","as":"PasswordTextBoxTooltipPosition"},{"name":"ElementRenderMode","as":"ElementRenderMode"},{"name":"PasswordTextBox","as":"PasswordTextBox"}],"from":"../index"}],"metadata":{"ɵa":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":12,"character":21}]}],"onCreate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":25,"character":5}}]}],"onReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":5}}]}],"onAttach":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":5}}]}],"onDetach":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":28,"character":5}}]}],"addEventListener":[{"__symbolic":"method"}],"removeEventListener":[{"__symbolic":"method"}],"dispatchEvent":[{"__symbolic":"method"}],"blur":[{"__symbolic":"method"}],"click":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"locale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":2}}]}],"localizeFormatFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":66,"character":2}}]}],"messages":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":75,"character":2}}]}],"rightToLeft":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":84,"character":2}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":93,"character":2}}]}]}},"PasswordTextBoxComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":17,"character":1},"arguments":[{"selector":"smart-password-text-box, [smart-password-text-box]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":12,"character":13},"useExisting":{"__symbolic":"reference","name":"PasswordTextBoxComponent"},"multi":true}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"PasswordTextBox"}]}]}],"createComponent":[{"__symbolic":"method"}],"animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":2}}]}],"autoFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":2}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":2}}]}],"enterKeyBehavior":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":82,"character":2}}]}],"form":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":91,"character":2}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":100,"character":2}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":2}}]}],"locale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":118,"character":2}}]}],"localizeFormatFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":127,"character":2}}]}],"maxLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":2}}]}],"messages":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":145,"character":2}}]}],"minLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":154,"character":2}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":163,"character":2}}]}],"passwordStrength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":172,"character":2}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":181,"character":2}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":190,"character":2}}]}],"rightToLeft":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":199,"character":2}}]}],"selectAllOnFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":208,"character":2}}]}],"showPasswordIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":217,"character":2}}]}],"showPasswordStrength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":226,"character":2}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":235,"character":2}}]}],"tooltipArrow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":244,"character":2}}]}],"tooltipDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":253,"character":2}}]}],"tooltipPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":262,"character":2}}]}],"tooltipTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":271,"character":2}}]}],"unfocusable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":280,"character":2}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":289,"character":2}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":302,"character":2}}]}],"focus":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"listen":[{"__symbolic":"method"}],"unlisten":[{"__symbolic":"method"}]}},"Smart":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"window"},"member":"Smart"},"PasswordTextBoxModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"PasswordTextBoxComponent"}],"schemas":[{"__symbolic":"reference","module":"@angular/core","name":"CUSTOM_ELEMENTS_SCHEMA","line":7,"character":11}],"exports":[{"__symbolic":"reference","name":"PasswordTextBoxComponent"}]}]}],"members":{}}},"origins":{"ɵa":"./smart.element","PasswordTextBoxComponent":"./smart.passwordtextbox","Smart":"./smart.element","PasswordTextBoxModule":"./smart.passwordtextbox.module"},"importAs":"smart-webcomponents-angular/passwordtextbox"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Smart UI v9.2.73 (2021-04-08)
|
|
3
|
-
Copyright (c) 2011-2021 jQWidgets.
|
|
4
|
-
License: https://htmlelements.com/license/ */ //
|
|
5
|
-
|
|
6
|
-
!function(e){var t={};function a(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)a.d(r,l,function(t){return e[t]}.bind(null,l));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=73)}({73:function(e,t){Smart("smart-masked-text-box",class extends Smart.BaseElement{static get properties(){return{allowPromptAsInput:{value:!1,type:"boolean"},asciiOnly:{value:!1,type:"boolean"},autoFocus:{value:!1,type:"boolean"},autoShowMask:{value:!1,type:"boolean"},cutCopyMaskFormat:{value:"excludePromptAndLiterals",allowedValues:["excludePromptAndLiterals","includePrompt","includeLiterals","includePromptAndLiterals"],type:"string"},hidePromptOnLeave:{value:!1,type:"boolean"},hint:{value:"",reflectToAttribute:!0,type:"string"},isOverwriteMode:{value:!1,type:"boolean"},label:{value:"",reflectToAttribute:!0,type:"string"},mask:{value:"#####",type:"string"},maskCompleted:{value:!1,type:"boolean"},maskFull:{value:!1,type:"boolean"},maxLength:{value:null,type:"number?"},minLength:{value:2,type:"number"},name:{value:"",type:"string"},placeholder:{value:"",type:"string"},promptChar:{value:"_",type:"string"},rejectInputOnFirstFailure:{value:!1,type:"boolean"},resetOnPrompt:{value:!1,type:"boolean"},resetOnSpace:{value:!1,type:"boolean"},selectAllOnFocus:{value:!1,type:"boolean"},textMaskFormat:{value:"excludePromptAndLiterals",allowedValues:["excludePromptAndLiterals","includePrompt","includeLiterals","includePromptAndLiterals"],type:"string"},validation:{value:null,type:"function?",reflectToAttribute:!1},value:{value:null,reflectToAttribute:!0,type:"string?"}}}static get listeners(){return{mouseenter:"_mouseEventsHandler",mouseleave:"_mouseEventsHandler","input.copy":"_cutCopyHandler","input.change":"_textBoxChangeHandler","input.cut":"_cutCopyHandler","input.paste":"_textBoxPasteHandler","input.keydown":"_textBoxKeyDownHandler","input.keyup":"_textBoxKeyUpHandler","input.blur":"_blurHandler","input.focus":"_focusHandler"}}static get styleUrls(){return["smart.textbox.css","smart.maskedtextbox.css"]}template(){return'<div id="container" role="presentation"><span id="label" inner-h-t-m-l="[[label]]" class="smart-hidden smart-label"></span><input class="smart-input" type="text" id="input"\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n disabled="[[disabled]]"\n maxlength="[[maxLength]]"\n minlength="[[minLength]]"\n name="[[name]]"\n placeholder="[[placeholder]]"\n readonly="[[readonly]]" /><span id="hint" inner-h-t-m-l="[[hint]]" class="smart-hidden smart-hint"></span></div>'}propertyChangedHandler(e,t,a){const r=this;let l;switch(e){case"hidePromptOnLeave":a&&!r._focused?r._hidePrompt():r._promptHidden&&r._showPrompt();break;case"maxLength":r.mask.length>0&&(r.maxLength=t);break;case"maskCompleted":case"maskFull":r[e]=t;break;case"promptChar":r._updatePromptChar();break;case"placeholder":r._isPlaceholderRequired()?(r.$.input.value="",r.$.removeClass("has-value")):r._updatePromptChar(),r._updatePromptChar();break;case"mask":l=r._getValueWithTextMaskFormat({start:0,end:r._mask.length},"excludePromptAndLiterals"),r._isPlaceholderRequired()?(r.$.input.value="",r.$.removeClass("has-value")):(r._initializeMask(),r._setValueToMask(l),r._isMobileChrome&&document.activeElement===r.$.input||r._setMask(),r.maxLength=r._mask.length,r._promptHidden&&r._hidePrompt());break;case"value":r._overwrite=!0,r._setValueToMask(a),r._overwrite=!1,r._isMobileChrome&&document.activeElement===r.$.input||r._setMask(),r._promptHidden&&r._hidePrompt(),r._updateMaskFullAndCompleted();break;case"disabled":case"unfocusable":r._setFocusable();break;case"readonly":break;default:super.propertyChangedHandler(e,t,a)}r.value=r._getValueWithTextMaskFormat({start:0,end:r._mask.length},r.textMaskFormat)}render(){this._createElement(),super.render()}focus(){this.$.input.focus()}_setFocusable(){const e=this;e.disabled||e.unfocusable?e.$.input.tabIndex=-1:e.$.input.removeAttribute("tabindex")}_createElement(){const e=this;e.autoFocus&&e.$.input.focus(),e.$.addClass("smart-input"),e._setFocusable(),e._initializeMask(),e._updateMaxLength(),e._isPlaceholderRequired()?(e.$.input.value="",e.$.removeClass("has-value")):(e._setValueToMask(e.value),e._isMobileChrome&&document.activeElement===e.$.input||e._setMask(),e._updateMaskFullAndCompleted(),e.$.addClass("has-value")),e.$.input.selectionStart=e.$.input.selectionEnd=0,e._initializationValue=e._value=e.value,e._rejectInput=!1,e.$.label.id||(e.$.label.id=e.id+"Label"),e.$.hint.id||(e.$.hint.id=e.id+"Hint"),e.hidePromptOnLeave&&!e._focused&&e._hidePrompt();const t=Smart.Utilities.Core;e._isMobileChrome=t.isMobile&&t.Browser.Chrome,e.setAttribute("role","presentation"),e.$.input.setAttribute("aria-describedby",e.$.hint.id),e.$.input.setAttribute("aria-labelledby",e.$.label.id)}_blurHandler(){const e=this,t=e._isPlaceholderRequired();e.disabled||(e._valueBeforeChange!==e.value&&(e.$.fireEvent("change",{newValue:e.value,oldValue:e._valueBeforeChange}),e._valueBeforeChange=""),e._isMobileChrome&&(e._overwrite=!0,e._setValueToMask(e.$.input.value),e._overwrite=!1,e._setMask()),e._focused=!1,e._hidePrompt(),e._validateMaskValue(),e.removeAttribute("focus"),e.$.input.value.length>0?e.$.addClass("has-value"):e.$.removeClass("has-value"),t&&(e.$.input.value="",e.$.removeClass("has-value")),e.$.fireEvent("blur"))}_updateMaskFullAndCompleted(){const e=this;let t=!0,a=!0,r=!1;for(let l=0;l<e._mask.length;l++){const s=e._mask[l];"mask"===s.type&&(s.required&&(r=!0),""===s.character&&(s.required&&(a=!1),t=!1))}t||!a||r||(a=!1),e.maskFull=t,e.maskCompleted=a}_isPlaceholderRequired(){const e=this.value&&this.value.length>0,t=this.placeholder.length>0;return!e&&(t||this.autoShowMask)}_cleanMask(e,t){const a=this;e=e||0,t=t||a._mask.length;for(let r=e;r<t;r++){"mask"===a._mask[r].type&&(a._mask[r].character="")}}_cutCopyHandler(e,t){const a=this,r=parseInt(a.$.input.selectionStart,10),l=parseInt(a.$.input.selectionEnd,10),s=a._getValueWithTextMaskFormat({start:r,end:l});return window.clipboardData&&(window.clipboardData.setData("text/plain",s),window.clipboardData.setData("text/html",s)),e&&a._preventDefault(e),"Copy"===t||(a._cleanMask(r,l),a.value=a._getValueWithTextMaskFormat({start:0,end:a._mask.length},a.textMaskFormat),a._isMobileChrome&&document.activeElement===a.$.input||a._setMask(),a.$.input.selectionStart=a.$.input.selectionEnd=r,a.maskFull=a.maskCompleted=!1),s}_documentUpHandler(){}_deleteHandler(e){const t=this,a=t.$.input.selectionStart,r=t.$.input.selectionEnd,l=e.key;let s=a;if(t._preventDefault(e),a===r)if("Backspace"===l||"Unidentified"===l)for(let e=a;e>0;e--){const r=t._mask[e-1];if("mask"===r.type){s=e-1,r.character="";break}s=a-1;break}else for(let e=a;e<t._mask.length;e++){const r=t._mask[e];if("mask"===r.type){s=e+1,r.character="";break}s=a+1;break}else t._cleanMask(a,r),"Delete"===l&&(s=r);t._isMobileChrome&&document.activeElement===t.$.input||t._setMask(),t._updateMaskFullAndCompleted(),t.value=t._getValueWithTextMaskFormat({start:0,end:t._mask.length},t.textMaskFormat),t.$.input.selectionStart=t.$.input.selectionEnd=s}_findNextOccupiedPosition(e){const t=this,a=t._mask.length;let r=e;for(let l=e;l<a;l++){let e=t._mask[l];if("mask"!==e.type||""!==e.character)break;r++}return r}select(){this.$.input.select()}_focusHandler(e){const t=this;if("INPUT"===e.context.nodeName.toUpperCase()){if(!t.disabled)if(t.setAttribute("focus",""),t.selectAllOnFocus&&t.$.input.select(),t._focused=!0,t._isMobileChrome)t._removeMask();else{if(t._showPrompt(),t._isPlaceholderRequired()){t._initializeMask(),t._setValueToMask(t.value),t._setMask();const e=t._getEditableSelectionStart(0);t.$.input.selectionStart=t.$.input.selectionEnd=e}t.$.fireEvent("focus")}}else t.$.input.focus()}_setMask(){const e=this;let t="";for(let a=0;a<e._mask.length;a++){const r=e._mask[a];let l;if("literal"===r.type||"separator"===r.type||"placeholder"===r.type||"currency"===r.type)l=r.character;else if("mask"===r.type&&""!==r.character)switch(r.escapeSymbol){case">":l=r.character.toUpperCase();break;case"<":l=r.character.toLowerCase();break;case"|":case"\\":default:l=r.character}else l=r.defaultCharacter;t+=l}e.$.input.value=t}_removeMask(){const e=this;let t="";for(let a=0;a<e._mask.length;a++){const r=e._mask[a];r.character!==r.defaultCharacter&&(t+=r.character)}e.$.input.value=t}_getEditableSelectionStart(e,t){const a=this;for(let r=e;r<a._mask.length;r++){const e=a._mask[r];if("mask"===e.type&&(""===e.character||a.isOverwriteMode||" "===t&&a.resetOnSpace||t===a.promptChar&&a.resetOnPrompt))return r}return-1}_getNonEditableSelectionStart(e,t){const a=this;for(let r=e;r<a._mask.length;r++){const e=a._mask[r];if("mask"!==e.type&&e.character===t)return r}return-1}_getValueWithTextMaskFormat(e,t){const a=this,r=e?e.start:0,l=e?e.end:a._mask.length||a.$.input.value.length;let s="";if("includePromptAndLiterals"===(t=t||a.cutCopyMaskFormat))return a.$.input.value.substring(r,l);for(let e=r;e<l;e++){const r=a._mask[e];switch(t){case"excludePromptAndLiterals":if("mask"!==r.type)continue;s=""===r.character?s+" ":s+r.character;break;case"includePrompt":if("mask"!==r.type)continue;s=""===r.character?s+r.defaultCharacter:s+r.character;break;case"includeLiterals":if("mask"===r.type&&""===r.character)continue;s+=r.character}}return s.trim()}_hidePrompt(){const e=new RegExp(this.promptChar,"g");!this.disabled&&this.hidePromptOnLeave&&0!==this.mask.length&&(this.$.input.value=this.$.input.value.replace(e," "),this._promptHidden=!0)}_initializeMask(){const e=this;let t,a=e.mask.length;if(e._mask=[],void 0!==e.mask&&null!==e.mask&&0!==e.mask.length)for(let r=0;r<a;r++){const a=e.mask.charAt(r);let l={};switch(l.defaultCharacter=e.promptChar,a){case"0":l.editable=!0,l.required=!0,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="0",l.regex="\\d",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"9":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="9",l.regex="(\\d|\\s)",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"#":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="#",l.regex="(\\d|\\s|[+]|[-])",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"L":l.editable=!0,l.required=!0,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="L",l.regex="([a-zA-Zа-яА-Я])",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"?":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="?",l.regex="[a-zA-Zа-яА-Я]?",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"&":l.editable=!0,l.required=!0,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="&",l.regex="[^\\s]",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"C":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="C",l.regex=".",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"A":l.editable=!0,l.required=!0,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="A",l.regex="[a-zA-Zа-яА-Я0-9]",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"a":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="a",l.regex="[a-zA-Zа-яА-Я0-9]?",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"Z":l.editable=!0,l.required=!0,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="Z",l.regex="[a-zA-Z0-9]",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"z":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="z",l.regex="[a-zA-Z0-9]?",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"Y":l.editable=!0,l.required=!0,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="Y",l.regex="[a-zA-Z]",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case"y":l.editable=!0,l.required=!1,l.escapeSymbol=t,l.type="\\"===l.escapeSymbol?"literal":"mask",l.maskCharacter="y",l.regex="[a-zA-Z]?",l.character="\\"===l.escapeSymbol?l.maskCharacter:"",l.defaultCharacter=e.promptChar,t=null;break;case".":l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="placeholder",l.maskCharacter=".",l.regex=null,l.character=".",l.defaultCharacter=e.promptChar,t=null;break;case",":l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="placeholder",l.maskCharacter=",",l.regex=null,l.character=",",l.defaultCharacter=e.promptChar,t=null;break;case":":l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="separator",l.maskCharacter=":",l.regex=null,l.character=":",l.defaultCharacter=e.promptChar,t=null;break;case"/":l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="separator",l.maskCharacter="/",l.regex=null,l.character="/",l.defaultCharacter=e.promptChar,t=null;break;case"$":l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="currency",l.maskCharacter="$",l.regex=null,l.character="$",l.defaultCharacter=e.promptChar,t=null;break;case"<":t?"|"===t?t=null:"\\"===t?(l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="literal",l.maskCharacter="<",l.regex="<",l.character="<",l.defaultCharacter=e.promptChar,t=null):t="<":t="<";break;case">":t?"|"===t?t=null:"\\"===t?(l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="literal",l.maskCharacter=">",l.regex=">",l.character=">",l.defaultCharacter=e.promptChar,t=null):t=">":t=">";break;case"|":t&&"\\"===t?(l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="literal",l.maskCharacter="|",l.regex="|",l.character="|",l.defaultCharacter=e.promptChar,t=null):t="|";break;case"\\":t&&"\\"===t?(l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="literal",l.maskCharacter="\\",l.regex="\\",l.character="\\",l.defaultCharacter=e.promptChar,t=null):t="\\";break;default:l.editable=!1,l.required=!0,l.escapeSymbol=t,l.type="literal",l.maskCharacter=a,l.regex=null,l.character=a,l.defaultCharacter=a,t=null}t||l.type&&e._mask.push(l)}}_keyDownHandler(){}_validateInput(e,t){const a=this._mask[t];return new RegExp(a.regex).test(e)}_setValueToMask(e,t){const a=this,r=e||"",l=r.length,s=t&&t.start?t.start:0,n=t&&t.end?t.end:a._mask.length;let o=s,i=0;for(;o<n&&i<l;)"mask"===a._mask[o].type&&i++,(a._setCharAtPosition(r.charAt(i-1),o)||"mask"!==a._mask[o].type)&&o++;if(o<n)for(let e=o;e<n;e++)"mask"===a._mask[e].type&&(a._mask[e].character="");t&&(t.start=o)}_preventDefault(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()}_showPrompt(){const e=this;!e.disabled&&e._promptHidden&&(e._isMobileChrome&&document.activeElement===e.$.input||e._setMask())}_textBoxChangeHandler(){const e=this;e.disabled||e.readonly||(e.value=e._getValueWithTextMaskFormat({start:0,end:e._mask.length},e.textMaskFormat),e._valueBeforeChange!==e.value&&(e.$.fireEvent("change",{newValue:e.value,oldValue:e._valueBeforeChange}),e._valueBeforeChange="",e._validateMaskValue()))}_textBoxKeyDownHandler(e){const t=this,a=e.key;if(t._isMobileChrome)return;const r=e.ctrlKey,l=t.$.input.selectionEnd,s=new RegExp("xxx[\0-]+xxx");let n=t.$.input.selectionStart;if(r&&["KeyA","KeyC","KeyV","KeyX"].indexOf(e.code)>-1){const a=function(e,a){const r=document.createElement("textarea");r.style.position="absolute",r.style.left="-1000px",r.style.top="-1000px",document.body.appendChild(r),r.focus(),"Paste"===e?setTimeout((function(){let e=r.value;0===e.length&&window.clipboardData&&(r.value=window.clipboardData.getData("Text"),e=r.value),r.parentNode.removeChild(r),t.$.input.focus(),a(e)}),25):(r.value=t._cutCopyHandler(null,e),r.focus(),r.setSelectionRange(0,r.value.length),setTimeout((function(){document.designMode="off",r.focus(),r.parentNode.removeChild(r),t.$.input.focus()}),25),window.clipboardData&&window.clipboardData.setData("Text",r.value))};switch(e.code){case"KeyA":t.$.input.setSelectionRange(0,t.$.input.value.length);break;case"KeyC":a("Copy");break;case"KeyV":a("Paste",(function(e){const a=t.context;t.context=t,t._textBoxPasteHandler(null,e),t.context=a}));break;case"KeyX":a("Cut")}return}if("Backspace"===a)return t._deleteHandler(e),void t._updateMaskFullAndCompleted();if("Delete"===a)return t._deleteHandler(e),void t._updateMaskFullAndCompleted();if(!t.allowPromptAsInput&&a===t.promptChar)return void t._preventDefault(e);if(t.disabled||t.readonly||t.asciiOnly&&!s.test(a)||!/^[a-zA-ZÀ-ÿа-яА-Я0-9.!@?#"$%&:';()*\+,\/;\-=[\\\]\^_{|}<>~` ]+$/.test(a)||a.length>1)return;if(t._preventDefault(e),n===l&&n===t.$.input.value.length)return;if(" "===a&&!t.resetOnSpace)return;n=t._getEditableSelectionStart(n,a);const o=function(){n=t._getNonEditableSelectionStart(t.$.input.selectionStart,a),-1!==n&&(t.$.input.selectionStart=t.$.input.selectionEnd=n+1)};-1!==n&&t._setCharAtPosition(a,n)?(t._isMobileChrome&&document.activeElement===t.$.input||t._setMask(),t._updateMaskFullAndCompleted(),t.$.input.selectionStart=t.$.input.selectionEnd=n+1):o()}_textBoxKeyUpHandler(){const e=this,t=e.value;e.value=e._getValueWithTextMaskFormat({start:0,end:e._mask.length},e.textMaskFormat),t!==e.value&&e.$.fireEvent("changing",{newValue:e.value,oldValue:t})}_textBoxPasteHandler(e,t){const a=this,r=a.$.input.value,l=a.$.input.selectionStart;let s,n=a.$.input.selectionEnd;if(e&&a._preventDefault(e),window.clipboardData&&window.clipboardData.getData?s=window.clipboardData.getData("Text"):e&&e.clipboardData&&e.clipboardData.getData?s=e.clipboardData.getData("text/plain"):t&&(s=t),n-l!==r.length){if(l===n&&(a.$.input.selectionEnd=n=a._mask.length),a.rejectInputOnFirstFailure){let e=0;for(let t=l;t<n;t++)if("mask"===a._mask[t].type){if(!a._validateInput(s.charAt(e),t))return void(a.$.input.selectionStart=a.$.input.selectionEnd=l);if(e++,e>s.length)break}}const e={start:l,end:n};a._overwrite=!0,a._setValueToMask(s,e),a._isMobileChrome&&document.activeElement===a.$.input||a._setMask(),a._updateMaskFullAndCompleted(),a.$.input.selectionStart=a.$.input.selectionEnd=e.start,a.value=a._getValueWithTextMaskFormat({start:0,end:a._mask.length},a.textMaskFormat)}}_setCharAtPosition(e,t){const a=this,r=a._mask[t];if(" "===e&&a.resetOnSpace&&(e=""),"mask"!==r.type||a.readonly||a.disabled||!r.editable)return!1;if(""===e&&!a.resetOnSpace)return!1;if(e===a.promptChar&&!a.resetOnPrompt&&a.allowPromptAsInput)return!1;if(!a.isOverwriteMode&&""!==e&&e!==a.promptChar&&""!==r.character&&!a._overwrite)return!1;const l=r.regex;if(l){if(new RegExp(l,"i").test(e)){switch(r.escapeSymbol){case">":e=e.toUpperCase();break;case"<":e=e.toLowerCase()}return a._mask[t].character=e,!0}return a.resetOnSpace&&""===e?(a._mask[t].character=e,!0):!(!a.resetOnPrompt||e!==a.promptChar||!a.allowPromptAsInput)&&(a._mask[t].character="",!0)}return!1}_updateMaxLength(){const e=this;e._mask.length>0&&(e.maxLength=e._mask.length)}_updatePromptChar(){const e=this;for(let t=0;t<e._mask.length;t++){e._mask[t].defaultCharacter=e.promptChar}e._isMobileChrome&&document.activeElement===e.$.input||e._setMask()}_validateMaskValue(){const e=this;if(e.readonly||e.disabled||!e.validation||"function"!=typeof e.validation)return;const t=e.value,a=e.validation(t);a?e.removeAttribute("error"):e.setAttribute("error",""),e.$.fireEvent("validation",{success:a})}_keyUpHandler(){}refresh(){}_resizeHandler(){}_selectStartHandler(){}_mouseWheelHandler(){}_applySelection(){}_setDropDownSize(){}_styleChangedHandler(){}})}});
|