@smart-webcomponents-angular/phoneinput 15.1.5 → 16.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"smart-webcomponents-angular-phoneinput.mjs","sources":["../../phoneinput/src/smart.element.ts","../../phoneinput/src/smart.phoneinput.ts","../../phoneinput/src/smart.phoneinput.module.ts","../../phoneinput/src/smart-webcomponents-angular-phoneinput.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { Directive, ElementRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n\n@Directive()\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\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. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { PhoneInput } from './../index';\nimport { DropDownButtonPosition, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, forwardRef, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { DropDownButtonPosition, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { PhoneInput } from './../index';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n\n\nconst CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => PhoneInputComponent),\n multi: true\n}\n\n@Directive({\n\texportAs: 'smart-phone-input',\tselector: 'smart-phone-input, [smart-phone-input]',\n\tproviders: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR]\n\n})\n\nexport class PhoneInputComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {\n\tconstructor(ref: ElementRef<PhoneInput>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as PhoneInput;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic nativeElement: PhoneInput;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <PhoneInput>document.createElement('smart-phone-input');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n /**\n * @description\n * The registered callback function called when a change event occurs on the form elements.\n */\n _onChange: (value: any) => void = () => {};\n /**\n * @description\n * The registered callback function called when a blur event occurs on the form elements.\n */\n _onTouched: () => any = () => {};\n\n\n\t/** @description Enables or disables the element. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @description Sets additional class names to the Input drop down. */\n\t@Input()\n\tget dropDownClassList(): any {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownClassList : undefined;\n\t}\n\tset dropDownClassList(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownClassList = value : undefined;\n\t}\n\n\t/** @description Determines the position of the drop down button. */\n\t@Input()\n\tget dropDownButtonPosition(): DropDownButtonPosition | string {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownButtonPosition : undefined;\n\t}\n\tset dropDownButtonPosition(value: DropDownButtonPosition | string) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownButtonPosition = value : undefined;\n\t}\n\n\t/** @description Sets the height of the drop down. By default it's set to an empty string. In this case the height of the drop down is controlled by a CSS variable. */\n\t@Input()\n\tget dropDownHeight(): string | number {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownHeight : undefined;\n\t}\n\tset dropDownHeight(value: string | number) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownHeight = value : undefined;\n\t}\n\n\t/** @description Sets the width of the drop down. By default it's set to an empty string. In this case the width of the drop down is controlled by a CSS variable. */\n\t@Input()\n\tget dropDownWidth(): string | number {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownWidth : undefined;\n\t}\n\tset dropDownWidth(value: string | number) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownWidth = value : undefined;\n\t}\n\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. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the name attribute for the element. Name is used when submiting data inside an HTML form. */\n\t@Input()\n\tget name(): string {\n\t\treturn this.nativeElement ? this.nativeElement.name : undefined;\n\t}\n\tset name(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.name = value : undefined;\n\t}\n\n\t/** @description Determines whether the input will be in international or national mode i.e whether the input will start with '+'. */\n\t@Input()\n\tget nationalMode(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.nationalMode : undefined;\n\t}\n\tset nationalMode(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.nationalMode = value : undefined;\n\t}\n\n\t/** @description Determines whether the drop down is opened or not. */\n\t@Input()\n\tget opened(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.opened : undefined;\n\t}\n\tset opened(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.opened = value : undefined;\n\t}\n\n\t/** @description Sets or gets an array of country codes which will be used instead of the default one with all countries. The country code should be ISO 3166-1 alpha-2 codes(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). */\n\t@Input()\n\tget onlyCountries(): any {\n\t\treturn this.nativeElement ? this.nativeElement.onlyCountries : undefined;\n\t}\n\tset onlyCountries(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.onlyCountries = value : undefined;\n\t}\n\n\t/** @description Determines the placeholder of the input. */\n\t@Input()\n\tget placeholder(): string {\n\t\treturn this.nativeElement ? this.nativeElement.placeholder : undefined;\n\t}\n\tset placeholder(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.placeholder = value : undefined;\n\t}\n\n\t/** @description Sets or gets the selected country of the element. The country code should be ISO 3166-1 alpha-2 codes(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). */\n\t@Input()\n\tget selectedCountry(): string {\n\t\treturn this.nativeElement ? this.nativeElement.selectedCountry : undefined;\n\t}\n\tset selectedCountry(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.selectedCountry = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme for the element. Themes define the look of the elements. */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value of the element. */\n\t@Input()\n\tget value(): string {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the selection is changed.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\tlabel, \toldLabel, \toldValue, \tvalue)\n\t* label - The label of the new selected item.\n\t* oldLabel - The label of the item that was previously selected before the event was triggered.\n\t* oldValue - The value of the item that was previously selected before the event was triggered.\n\t* value - The value of the new selected item.\n\t*/\n\t@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on each key up event of the Input, if the value is changed.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\toldValue, \tvalue)\n\t* oldValue - The previous value before it was changed.\n\t* value - The new value.\n\t*/\n\t@Output() onChanging: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the user clicks on an item from the popup list.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\titem, \tlabel, \tvalue)\n\t* item - The item that was clicked.\n\t* label - The label of the item that was clicked.\n\t* value - The value of the item that was clicked.\n\t*/\n\t@Output() onItemClick: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Closes the drop down. \n\t*/\n public close(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.close();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.close();\n });\n }\n }\n\n\t/** @description Ensures that the active ( selected ) item is always visible. \n\t*/\n public ensureVisible(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.ensureVisible();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.ensureVisible();\n });\n }\n }\n\n\t/** @description Returns the entered phone number with formatting. \n\t* @param {boolean} isInternational?. When you use 'false', the national phone number will be returned and the international phone number, when you use 'true' as parameter.\n\t* @returns {string}\n */\n\tpublic async getNumber(isInternational?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getNumber(isInternational);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Returns an item by its country dial code. The item is an object with 'label', 'value', 'iso2' and 'dialCode' properties. \n\t* @param {string} dialCode?. Returns the national or international phone number\n\t* @returns {any}\n */\n\tpublic async getItemByDialCode(dialCode?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getItemByDialCode(dialCode);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Returns the selected item. The item is an object with 'label', 'value', 'iso2' and 'dialCode' properties. \n\t* @returns {any}\n */\n\tpublic async getSelectedItem(): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getSelectedItem();\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Returns true or false depending on whether the entered phone number is valid. \n\t* @returns {boolean}\n */\n\tpublic async isValidNumber(): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.isValidNumber();\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Validates the entered phone number. \n\t*/\n public validate(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.validate();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.validate();\n });\n }\n }\n\n\t/** @description Opens the drop down. \n\t*/\n public open(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.open();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.open();\n });\n }\n }\n\n\t/** @description Selects the text inside the input or if it is readonly then the element is focused. \n\t*/\n public select(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.select();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.select();\n });\n }\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\t_initialChange = true; \n\n\tget ngValue(): any {\n\t\tif (!this.nativeElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst value = this.nativeElement.value;\n\t\treturn value;\n\t}\n\n\tset ngValue(value: any) {\n\t\tif (this.nativeElement) {\n\t\t this.writeValue(value);\n\t\t}\n\t}\n\n\twriteValue(value: any): void {\n const that = this;\n const normalizedValue = value == null ? '' : value;\n\n\t\tthat.nativeElement.whenRendered(() => {\n\t\t\tthat.value = normalizedValue;\n\t\t\tif (that._initialChange === false) {\n\t \t\tthat._onChange(that.value);\n }\n\t\t});\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);\n\n\t\tthat.eventHandlers['changingHandler'] = (event: CustomEvent) => { that.onChanging.emit(event); }\n\t\tthat.nativeElement.addEventListener('changing', that.eventHandlers['changingHandler']);\n\n\t\tthat.eventHandlers['itemClickHandler'] = (event: CustomEvent) => { that.onItemClick.emit(event); }\n\t\tthat.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\n\n that.eventHandlers['changeModelHandler'] = (event: Event) => {\n that._initialChange = false;\n that._onChange(that.nativeElement.value);\n };\n that.eventHandlers['blurModelHandler'] = (event: Event) => {\n that._onTouched();\n };\n that.nativeElement.whenRendered(() => {\n if (that.nativeElement.querySelector('input')) {\n that.eventHandlers['keyupModelHandler'] = (event) => {\n setTimeout(() => { that.eventHandlers['changeModelHandler'](event); }, 50);\n };\n\n that.nativeElement.querySelector('input').addEventListener('keyup', that.eventHandlers['keyupModelHandler']);\n }\n });\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeModelHandler']);\n\t\tthat.nativeElement.addEventListener('blur', that.eventHandlers['blurModelHandler']);\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['changeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['changingHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('changing', that.eventHandlers['changingHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['itemClickHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['changeModelHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeModelHandler']);\n if (that.nativeElement.querySelector('input')) {\n that.nativeElement.querySelector('input').removeEventListener('keyup', that.eventHandlers['keyupModelHandler']);\n }\n\t\t}\n\t\tif (that.eventHandlers['blurModelHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('blur', that.eventHandlers['blurModelHandler']);\n\t\t}\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { PhoneInputComponent } from './smart.phoneinput';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [PhoneInputComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [PhoneInputComponent]\n})\n\nexport class PhoneInputModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,WAAW,CAAA;AACpB,IAAA,WAAA,CAAY,GAAe,EAAA;AAajB,QAAA,IAAA,CAAA,QAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,OAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;AAChD,QAAA,IAAA,CAAA,QAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,QAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,QAAA,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;AAE9C,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG,MAAK;YACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAC3C,SAAC,CAAA;AAED,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG,MAAK;YACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAC3C,SAAC,CAAA;KACJ;AASM,IAAA,gBAAgB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK,EAAA;QAClI,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACnE;AAEM,IAAA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,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;8GAAhB,gBAAgB,EAAA,YAAA,EAAA,CALV,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAE3B,mBAAmB,CAAA,EAAA,CAAA,CAAA;8GAGjB,gBAAgB,EAAA,CAAA,CAAA;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"smart-webcomponents-angular-phoneinput.mjs","sources":["../../phoneinput/src/smart.element.ts","../../phoneinput/src/smart.phoneinput.ts","../../phoneinput/src/smart.phoneinput.module.ts","../../phoneinput/src/smart-webcomponents-angular-phoneinput.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { Directive, ElementRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n\n@Directive()\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\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. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { PhoneInput } from './../index';\nimport { DropDownButtonPosition, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, forwardRef, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { DropDownButtonPosition, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { PhoneInput } from './../index';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n\n\nconst CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => PhoneInputComponent),\n multi: true\n}\n\n@Directive({\n\texportAs: 'smart-phone-input',\tselector: 'smart-phone-input, [smart-phone-input]',\n\tproviders: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR]\n\n})\n\nexport class PhoneInputComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {\n\tconstructor(ref: ElementRef<PhoneInput>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as PhoneInput;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic declare nativeElement: PhoneInput;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <PhoneInput>document.createElement('smart-phone-input');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n /**\n * @description\n * The registered callback function called when a change event occurs on the form elements.\n */\n _onChange: (value: any) => void = () => {};\n /**\n * @description\n * The registered callback function called when a blur event occurs on the form elements.\n */\n _onTouched: () => any = () => {};\n\n\n\t/** @description Enables or disables the element. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @description Sets additional class names to the Input drop down. */\n\t@Input()\n\tget dropDownClassList(): any {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownClassList : undefined;\n\t}\n\tset dropDownClassList(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownClassList = value : undefined;\n\t}\n\n\t/** @description Determines the position of the drop down button. */\n\t@Input()\n\tget dropDownButtonPosition(): DropDownButtonPosition | string {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownButtonPosition : undefined;\n\t}\n\tset dropDownButtonPosition(value: DropDownButtonPosition | string) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownButtonPosition = value : undefined;\n\t}\n\n\t/** @description Sets the height of the drop down. By default it's set to an empty string. In this case the height of the drop down is controlled by a CSS variable. */\n\t@Input()\n\tget dropDownHeight(): string | number {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownHeight : undefined;\n\t}\n\tset dropDownHeight(value: string | number) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownHeight = value : undefined;\n\t}\n\n\t/** @description Sets the width of the drop down. By default it's set to an empty string. In this case the width of the drop down is controlled by a CSS variable. */\n\t@Input()\n\tget dropDownWidth(): string | number {\n\t\treturn this.nativeElement ? this.nativeElement.dropDownWidth : undefined;\n\t}\n\tset dropDownWidth(value: string | number) {\n\t\tthis.nativeElement ? this.nativeElement.dropDownWidth = value : undefined;\n\t}\n\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. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the name attribute for the element. Name is used when submiting data inside an HTML form. */\n\t@Input()\n\tget name(): string {\n\t\treturn this.nativeElement ? this.nativeElement.name : undefined;\n\t}\n\tset name(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.name = value : undefined;\n\t}\n\n\t/** @description Determines whether the input will be in international or national mode i.e whether the input will start with '+'. */\n\t@Input()\n\tget nationalMode(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.nationalMode : undefined;\n\t}\n\tset nationalMode(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.nationalMode = value : undefined;\n\t}\n\n\t/** @description Determines whether the drop down is opened or not. */\n\t@Input()\n\tget opened(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.opened : undefined;\n\t}\n\tset opened(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.opened = value : undefined;\n\t}\n\n\t/** @description Sets or gets an array of country codes which will be used instead of the default one with all countries. The country code should be ISO 3166-1 alpha-2 codes(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). */\n\t@Input()\n\tget onlyCountries(): any {\n\t\treturn this.nativeElement ? this.nativeElement.onlyCountries : undefined;\n\t}\n\tset onlyCountries(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.onlyCountries = value : undefined;\n\t}\n\n\t/** @description Determines the placeholder of the input. */\n\t@Input()\n\tget placeholder(): string {\n\t\treturn this.nativeElement ? this.nativeElement.placeholder : undefined;\n\t}\n\tset placeholder(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.placeholder = value : undefined;\n\t}\n\n\t/** @description Sets or gets the selected country of the element. The country code should be ISO 3166-1 alpha-2 codes(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). */\n\t@Input()\n\tget selectedCountry(): string {\n\t\treturn this.nativeElement ? this.nativeElement.selectedCountry : undefined;\n\t}\n\tset selectedCountry(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.selectedCountry = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme for the element. Themes define the look of the elements. */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value of the element. */\n\t@Input()\n\tget value(): string {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the selection is changed.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\tlabel, \toldLabel, \toldValue, \tvalue)\n\t* label - The label of the new selected item.\n\t* oldLabel - The label of the item that was previously selected before the event was triggered.\n\t* oldValue - The value of the item that was previously selected before the event was triggered.\n\t* value - The value of the new selected item.\n\t*/\n\t@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on each key up event of the Input, if the value is changed.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\toldValue, \tvalue)\n\t* oldValue - The previous value before it was changed.\n\t* value - The new value.\n\t*/\n\t@Output() onChanging: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the user clicks on an item from the popup list.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\titem, \tlabel, \tvalue)\n\t* item - The item that was clicked.\n\t* label - The label of the item that was clicked.\n\t* value - The value of the item that was clicked.\n\t*/\n\t@Output() onItemClick: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Closes the drop down. \n\t*/\n public close(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.close();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.close();\n });\n }\n }\n\n\t/** @description Ensures that the active ( selected ) item is always visible. \n\t*/\n public ensureVisible(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.ensureVisible();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.ensureVisible();\n });\n }\n }\n\n\t/** @description Returns the entered phone number with formatting. \n\t* @param {boolean} isInternational?. When you use 'false', the national phone number will be returned and the international phone number, when you use 'true' as parameter.\n\t* @returns {string}\n */\n\tpublic async getNumber(isInternational?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getNumber(isInternational);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Returns an item by its country dial code. The item is an object with 'label', 'value', 'iso2' and 'dialCode' properties. \n\t* @param {string} dialCode?. Returns the national or international phone number\n\t* @returns {any}\n */\n\tpublic async getItemByDialCode(dialCode?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getItemByDialCode(dialCode);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Returns the selected item. The item is an object with 'label', 'value', 'iso2' and 'dialCode' properties. \n\t* @returns {any}\n */\n\tpublic async getSelectedItem(): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getSelectedItem();\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Returns true or false depending on whether the entered phone number is valid. \n\t* @returns {boolean}\n */\n\tpublic async isValidNumber(): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.isValidNumber();\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\t/** @description Validates the entered phone number. \n\t*/\n public validate(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.validate();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.validate();\n });\n }\n }\n\n\t/** @description Opens the drop down. \n\t*/\n public open(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.open();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.open();\n });\n }\n }\n\n\t/** @description Selects the text inside the input or if it is readonly then the element is focused. \n\t*/\n public select(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.select();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.select();\n });\n }\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\t_initialChange = true; \n\n\tget ngValue(): any {\n\t\tif (!this.nativeElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst value = this.nativeElement.value;\n\t\treturn value;\n\t}\n\n\tset ngValue(value: any) {\n\t\tif (this.nativeElement) {\n\t\t this.writeValue(value);\n\t\t}\n\t}\n\n\twriteValue(value: any): void {\n const that = this;\n const normalizedValue = value == null ? '' : value;\n\n\t\tthat.nativeElement.whenRendered(() => {\n\t\t\tthat.value = normalizedValue;\n\t\t\tif (that._initialChange === false) {\n\t \t\tthat._onChange(that.value);\n }\n\t\t});\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);\n\n\t\tthat.eventHandlers['changingHandler'] = (event: CustomEvent) => { that.onChanging.emit(event); }\n\t\tthat.nativeElement.addEventListener('changing', that.eventHandlers['changingHandler']);\n\n\t\tthat.eventHandlers['itemClickHandler'] = (event: CustomEvent) => { that.onItemClick.emit(event); }\n\t\tthat.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\n\n that.eventHandlers['changeModelHandler'] = (event: Event) => {\n that._initialChange = false;\n that._onChange(that.nativeElement.value);\n };\n that.eventHandlers['blurModelHandler'] = (event: Event) => {\n that._onTouched();\n };\n that.nativeElement.whenRendered(() => {\n if (that.nativeElement.querySelector('input')) {\n that.eventHandlers['keyupModelHandler'] = (event) => {\n setTimeout(() => { that.eventHandlers['changeModelHandler'](event); }, 50);\n };\n\n that.nativeElement.querySelector('input').addEventListener('keyup', that.eventHandlers['keyupModelHandler']);\n }\n });\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeModelHandler']);\n\t\tthat.nativeElement.addEventListener('blur', that.eventHandlers['blurModelHandler']);\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['changeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['changingHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('changing', that.eventHandlers['changingHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['itemClickHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['changeModelHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeModelHandler']);\n if (that.nativeElement.querySelector('input')) {\n that.nativeElement.querySelector('input').removeEventListener('keyup', that.eventHandlers['keyupModelHandler']);\n }\n\t\t}\n\t\tif (that.eventHandlers['blurModelHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('blur', that.eventHandlers['blurModelHandler']);\n\t\t}\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { PhoneInputComponent } from './smart.phoneinput';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [PhoneInputComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [PhoneInputComponent]\n})\n\nexport class PhoneInputModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,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,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MAAM;gBAQG,WAAW;sBAApB,MAAM;;;MCjNK,gBAAgB;;6GAAhB,gBAAgB;8GAAhB,gBAAgB,iBALV,mBAAmB,aAE3B,mBAAmB;8GAGjB,gBAAgB;2FAAhB,gBAAgB;kBAN5B,QAAQ;mBAAC;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC9B;;;ACTD;;;;;;"}
package/index.d.ts CHANGED
@@ -1901,6 +1901,16 @@ export interface BarcodeProperties {
1901
1901
  * Default value: ""
1902
1902
  */
1903
1903
  value?: string;
1904
+ /**
1905
+ * Sets or gets the width of the barcode. If the width is set to 0, the width of the barcode is calculated automatically.
1906
+ * Default value: 0
1907
+ */
1908
+ width?: number;
1909
+ /**
1910
+ * Sets or gets the height of the barcode. If the height is set to 0, the height of the barcode is calculated automatically.
1911
+ * Default value: 0
1912
+ */
1913
+ height?: number;
1904
1914
  }
1905
1915
  /**
1906
1916
  Barcodes encodes text value in a specific pattern.
@@ -9442,6 +9452,11 @@ export interface DropDownListProperties {
9442
9452
  * Default value: startsWithIgnoreCase
9443
9453
  */
9444
9454
  filterMode?: FilterMode | string;
9455
+ /**
9456
+ * A callback that should return a condition that will be used for custom item filtering. Used in conjunction with filterMode 'custom'
9457
+ * Default value: null
9458
+ */
9459
+ filterCallback?: any;
9445
9460
  /**
9446
9461
  * If enabled, the items will be grouped by their first letter. Can't be applied if the dataSource already contains groups.
9447
9462
  * Default value: false
@@ -10433,6 +10448,11 @@ export interface Editor extends BaseElement, EditorProperties {
10433
10448
  * instance - The toast item that is the target of the operation.
10434
10449
  */
10435
10450
  onMessageOpen?: ((this: any, ev: Event) => any) | ((this: any, ev: CustomEvent<any>) => any) | null;
10451
+ /**
10452
+ * Adds a new Toolbar item. Example: editor.addToolbarItem({ name: &#039;customButton2&#039;, width: 100, template: &#039;&lt;smart-button&gt;Button2&lt;/smart-button&gt;&#039; })
10453
+ * @param {any} itemName. The toolbar item to be added
10454
+ */
10455
+ addToolbarItem(itemName: any): void;
10436
10456
  /**
10437
10457
  * Blurs the content of the Editor.
10438
10458
  */
@@ -10499,6 +10519,12 @@ export interface Editor extends BaseElement, EditorProperties {
10499
10519
  * Hides the last shown message.
10500
10520
  */
10501
10521
  hideLastMessage(): void;
10522
+ /**
10523
+ * Inserts a new Toolbar item. Example: editor.insertToolbarItem({ name: &#039;customButton2&#039;, width: 100, template: &#039;&lt;smart-button&gt;Button2&lt;/smart-button&gt;&#039; })
10524
+ * @param {any} itemName. The toolbar item to be added
10525
+ * @param {number} index. The toolbar item's index
10526
+ */
10527
+ insertToolbarItem(itemName: any, index: number): void;
10502
10528
  /**
10503
10529
  * Shows a custom message inside the Editor.
10504
10530
  * @param {string} message. The text message to be displayed.
@@ -10538,6 +10564,11 @@ export interface Editor extends BaseElement, EditorProperties {
10538
10564
  * @param {boolean} value?. Determines whether to enter or leave split mode. By default the argument is not passed and the mode is toggled.
10539
10565
  */
10540
10566
  previewMode(value?: boolean): void;
10567
+ /**
10568
+ * Removes a Toolbar item. Example: editor.removeToolbarItem(0)
10569
+ * @param {number} index. The toolbar item's index
10570
+ */
10571
+ removeToolbarItem(index: number): void;
10541
10572
  /**
10542
10573
  * Sets Editor into Full Screen Mode. If enabled the Editor is positioned above the page content and fills the screen.
10543
10574
  * @param {boolean} value?. Determines whether to enter or leave split mode. By default the argument is not passed and the mode is toggled.
@@ -13288,6 +13319,11 @@ export interface GanttChartProperties {
13288
13319
  * Default value: false
13289
13320
  */
13290
13321
  columnResizeFeedback?: boolean;
13322
+ /**
13323
+ * Gantt's current time. By default it is the today's date.
13324
+ * Default value:
13325
+ */
13326
+ currentTime?: string | Date;
13291
13327
  /**
13292
13328
  * Enables/Disables the current time indicator. Current time indicator shows the current time in the appropriate view cells.
13293
13329
  * Default value: false
@@ -13383,6 +13419,11 @@ export interface GanttChartProperties {
13383
13419
  * Default value: false
13384
13420
  */
13385
13421
  filterRow?: boolean;
13422
+ /**
13423
+ * Determines the view start day. Sunday is 0, Monday is 1, Saturday is 6. By default it's Sunday.
13424
+ * Default value: -1
13425
+ */
13426
+ firstDayOfWeek?: number;
13386
13427
  /**
13387
13428
  * Groups the tasks inside the Task timeline according to the resources they are assigned to. Unassigned tasks are placed in a default group labeled 'Unassigned'.
13388
13429
  * Default value: false
@@ -13399,10 +13440,20 @@ export interface GanttChartProperties {
13399
13440
  */
13400
13441
  hideDateMarkers?: boolean;
13401
13442
  /**
13402
- * By default the Timeline has a two level header - timeline details and timeline header. This property hides the header details container( the top container ).
13443
+ * By default the Timeline has a three level header - timeline details, timeline second details and timeline header. This property hides the header container( the bottom container ).
13444
+ * Default value: false
13445
+ */
13446
+ hideTimelineHeader?: boolean;
13447
+ /**
13448
+ * By default the Timeline has a three level header - timeline details, timeline second details and timeline header. This property hides the header details container( the top container ).
13403
13449
  * Default value: false
13404
13450
  */
13405
13451
  hideTimelineHeaderDetails?: boolean;
13452
+ /**
13453
+ * By default the Timeline has a three level header - timeline details and timeline header. This property hides the second header details container( the middle container ).
13454
+ * Default value: true
13455
+ */
13456
+ hideTimelineSecondHeaderDetails?: boolean;
13406
13457
  /**
13407
13458
  * Shows the selection column of the Task/Resource Table. When applied a checkbox column is displayed that allows to select tasks/resources.
13408
13459
  * Default value: false
@@ -13468,6 +13519,11 @@ export interface GanttChartProperties {
13468
13519
  * Default value: short
13469
13520
  */
13470
13521
  monthFormat?: MonthFormat | string;
13522
+ /**
13523
+ * Determines the scale in Month view.
13524
+ * Default value: week
13525
+ */
13526
+ monthScale?: MonthScale | string;
13471
13527
  /**
13472
13528
  * Determines the nonworking days of the week from 0 to 6, where 0 is the first day of the week and 6 is the last day. Nonworking days will be displayed with colored cells inside the timeline and will not affect the dateEnd of the tasks unless the adjustToNonworkingTime property is enabled.
13473
13529
  * Default value:
@@ -13478,6 +13534,11 @@ export interface GanttChartProperties {
13478
13534
  * Default value:
13479
13535
  */
13480
13536
  nonworkingHours?: number[] | number[][];
13537
+ /**
13538
+ * A function that can be used to completly customize the task element. The function has five arguments: task - the task object.segment - the task current segment object. If the task has only one segment, the task object is passed again.taskElement - the task's html element.segmentElement - the task's segment html element.labelElement - the task's segment label html element.
13539
+ * Default value: null
13540
+ */
13541
+ onTaskRender?: any;
13481
13542
  /**
13482
13543
  * A function that can be used to completly customize the popup Window that is used to interact width tasks by changing their properties. The function as three arguments: target - the target popup Window that is about to be opened.type - the type of the window. The type determines the purpose of the window. Three possible values: 'task' (task editing), 'confirm' ( confirmation window), 'connection' (used when deleting a connection between tasks). item - the connection/task object that is the target of the window.
13483
13544
  * Default value: null
@@ -13493,6 +13554,11 @@ export interface GanttChartProperties {
13493
13554
  * Default value: null
13494
13555
  */
13495
13556
  progressLabelFormatFunction?: any;
13557
+ /**
13558
+ * Determines the format of the dates the timeline header when they represent quarters.
13559
+ * Default value: short
13560
+ */
13561
+ quarterFormat?: QuarterFormat | string;
13496
13562
  /**
13497
13563
  * A getter that returns a flat structure as an array of all resources inside the element.
13498
13564
  * Default value: null
@@ -14400,6 +14466,11 @@ export interface GanttChartTask {
14400
14466
  * Default value: null
14401
14467
  */
14402
14468
  formatFunction?: any;
14469
+ /**
14470
+ * Project, Task or Milestone format function. The function gets passed the following arguments: task, segment, taskElement, segmentElement, labelElement. task - the task object.segment - the task current segment object. If the task has only one segment, the task object is passed again.taskElement - the task's html element.segmentElement - the task's segment html element.labelElement - the task's segment label html element.
14471
+ * Default value: null
14472
+ */
14473
+ onRender?: any;
14403
14474
  /**
14404
14475
  * Project, Task or Milestone max start date.
14405
14476
  * Default value:
@@ -14662,6 +14733,10 @@ export declare type GanttDayFormat = '2-digit' | 'numeric' | 'long' | 'short' |
14662
14733
  export declare type Duration = 'day' | 'hour' | 'minute' | 'second' | 'milisecond';
14663
14734
  /**Determines the format of the dates inside the timeline header when they represent hours. */
14664
14735
  export declare type HourFormat = 'default' | '2-digit' | 'numeric';
14736
+ /**Determines the scale in Month view. */
14737
+ export declare type MonthScale = 'day' | 'week';
14738
+ /**Determines the format of the dates the timeline header when they represent quarters. */
14739
+ export declare type QuarterFormat = 'numeric' | 'long' | 'short';
14665
14740
  /**Determines how the capacity of the resources will be visualized inside the resource timeline. By default, the capacity is measured in hours depending on the <b>view</b> property of the element. */
14666
14741
  export declare type GanttChartResourceTimelineMode = 'diagram' | 'histogram' | 'custom';
14667
14742
  /**Determines how the resources will be displayed inside the resource Timeline. */
@@ -14676,7 +14751,7 @@ month - the timeline shows the days of the month.
14676
14751
  year - the timeline shows the months of the year.
14677
14752
  resource - displays the current tasks by grouping them according to the resources they have assigned. The unassigned tasks will be placed in a separate group called 'Unassigned'.
14678
14753
  <br /> The timeline has a header section that contains the labels of each cell according to the date inside them. The header is splitted in two sections in order to give a more detailed information of the dates. */
14679
- export declare type GanttChartView = 'day' | 'week' | 'month' | 'year';
14754
+ export declare type GanttChartView = 'day' | 'week' | 'month' | 'quarter' | 'year';
14680
14755
  /**Determines the format of the dates inside the timeline header when they represent weeks. */
14681
14756
  export declare type WeekFormat = 'long' | 'numeric';
14682
14757
  export interface GaugeProperties {
@@ -16438,6 +16513,16 @@ export interface GridAppearance {
16438
16513
  * Default value: true
16439
16514
  */
16440
16515
  showRowLines?: boolean;
16516
+ /**
16517
+ * Shows lines between columns in column groups.
16518
+ * Default value: true
16519
+ */
16520
+ showColumnGroupLines?: boolean;
16521
+ /**
16522
+ * Shows lines between cells in column groups.
16523
+ * Default value: true
16524
+ */
16525
+ showColumnGroupCellLines?: boolean;
16441
16526
  /**
16442
16527
  * Shows column groups in the Hide columns panel. Column groups and columns are shown in a tree-like structure. When the property is set to false, the column groups are not displayed and the column labels contain the column group name.
16443
16528
  * Default value: false
@@ -16459,10 +16544,10 @@ export interface GridAppearance {
16459
16544
  */
16460
16545
  showFrozenColumnBackground?: boolean;
16461
16546
  /**
16462
- * Shows filtered row background, when the Grid has frozen rows.
16463
- * Default value: true
16547
+ * Shows the selection on top of all other styles.
16548
+ * Default value: false
16464
16549
  */
16465
- showFrozenRowBackground?: boolean;
16550
+ showSelectionOnTop?: boolean;
16466
16551
  /**
16467
16552
  * Shows column sort button.
16468
16553
  * Default value: true
@@ -16763,6 +16848,11 @@ export interface GridColumn {
16763
16848
  * Default value: default
16764
16849
  */
16765
16850
  filterMenuMode?: GridColumnFilterMenuMode | string;
16851
+ /**
16852
+ * Sets or gets the column's filter editor. The value is an object with the following possible options: template: string, condition: string, onInit: any - callback function for init purposes, min: number, max: number, minLength: number, maxLength: number
16853
+ * Default value: null
16854
+ */
16855
+ filterEditor?: any;
16766
16856
  /**
16767
16857
  * Sets or gets the column's format function.
16768
16858
  * Default value: null
@@ -18180,6 +18270,11 @@ export interface GridStateSettings {
18180
18270
  * Default value: false
18181
18271
  */
18182
18272
  autoSave?: boolean;
18273
+ /**
18274
+ * Enables or disables auto-load of the Grid's state on page reload.
18275
+ * Default value: false
18276
+ */
18277
+ autoLoad?: boolean;
18183
18278
  /**
18184
18279
  * Enables or disables save/load of the grid state.
18185
18280
  * Default value: true
@@ -19764,10 +19859,10 @@ export interface Kanban extends BaseElement, KanbanProperties {
19764
19859
  */
19765
19860
  getSelectedTasks(id: number): any;
19766
19861
  /**
19767
- * Gets the Kanban's state.
19768
- * @returns
19862
+ * Gets the Kanban's state. Returns an object with the following type: { collapsed: {}, dataSource: [], filtering: { filters: [], operator: string }, selection: { selected: [], selectionStart?: number | string, selectionInColumn: string, swimlane: string }, sorting: { dataFields: [], dataTypes: [], orderBy: [] }, tabs: [], visibility: { taskActions: boolean, taskComments: boolean, taskDue: boolean, taskPriority: boolean, taskProgress: boolean, taskTags: boolean, taskUserIcon: boolean } }
19863
+ * @returns {any}
19769
19864
  */
19770
- getState(): { collapsed: {}, dataSource: [], filtering: { filters: [], operator: string }, selection: { selected: [], selectionStart: number | string, selectionInColumn: string, swimlane: string }, sorting: { dataFields: [], dataTypes: [], orderBy: [] }, tabs: [], visibility: { taskActions: boolean, taskComments: boolean, taskDue: boolean, taskPriority: boolean, taskProgress: boolean, taskTags: boolean, taskUserIcon: boolean } };
19865
+ getState(): any;
19771
19866
  /**
19772
19867
  * Loads the Kanban's state.
19773
19868
  * @param state?. An object returned by one of the methods getState or saveState. If not passed, gets saved state from the browser's localStorage.
@@ -25315,6 +25410,11 @@ export interface QRcodeProperties {
25315
25410
  * Default value: "H"
25316
25411
  */
25317
25412
  errorLevel?: string;
25413
+ /**
25414
+ * Sets color to the transparent parts of the embedded image. Background remains transparent if set to empty string.
25415
+ * Default value: ""
25416
+ */
25417
+ imageBackgroundColor?: string;
25318
25418
  /**
25319
25419
  * Sets the height of the embedded image.
25320
25420
  * Default value: 15
@@ -25375,6 +25475,16 @@ export interface QRcodeProperties {
25375
25475
  * Default value: ""
25376
25476
  */
25377
25477
  value?: string;
25478
+ /**
25479
+ * Sets or gets the width of the QR Code. If the width is set to 0, the width of the QR Code is calculated automatically.
25480
+ * Default value: 0
25481
+ */
25482
+ width?: number;
25483
+ /**
25484
+ * Sets or gets the height of the QR Code. If the height is set to 0, the height of the QR Code is calculated automatically.
25485
+ * Default value: 0
25486
+ */
25487
+ height?: number;
25378
25488
  }
25379
25489
  /**
25380
25490
  QR Codes encode text values in a two-dimensional pattern.
@@ -26148,6 +26258,11 @@ export interface SchedulerProperties {
26148
26258
  * Default value: #D50000,#E67C73,#F4511E,#F6BF26,#33B679,#0B8043,#039BE5,#3F51B5,#7986CB,#8E24AA,#616161,
26149
26259
  */
26150
26260
  colorScheme?: string[];
26261
+ /**
26262
+ * Determines the current time of the Scheduler to use for the current time indicator functionality. By default the current time is Today.
26263
+ * Default value: new Date()
26264
+ */
26265
+ currentTime?: string | Date;
26151
26266
  /**
26152
26267
  * Enables/Disables the current time indicator. Current time indicator shows the current time in the appropriate view cells.
26153
26268
  * Default value: false
@@ -26504,7 +26619,7 @@ export interface SchedulerProperties {
26504
26619
  */
26505
26620
  restrictedHours?: any;
26506
26621
  /**
26507
- * Defines an array of dates and hours that are not allowed to have events on. Events that overlap restricted Hours or start/end on them will not be displayed. Each array item is an Object and requires 2 fields - date and hours. For example: { date: new Date(2022, 10, 1), hours: [[0, 6], 12, [20, 23]] }. The hours define a range of restricted hours similartly to the restricted hours property, the date defines a date where the restricted hours will be applied.
26622
+ * Defines an array of dates and hours that are not allowed to have events on. Events that overlap restricted Hours or start/end on them will not be displayed. Each array item is an Object and requires 2 fields - date and hours. For example: { date: new Date(2023, 10, 1), hours: [[0, 6], 12, [20, 23]] }. The hours define a range of restricted hours similartly to the restricted hours property, the date defines a date where the restricted hours will be applied.
26508
26623
  * Default value:
26509
26624
  */
26510
26625
  restricted?: any;
@@ -29463,6 +29578,10 @@ export interface Table extends BaseElement, TableProperties {
29463
29578
  * @param {string | number} row. The id of the cell's row.
29464
29579
  */
29465
29580
  removeRow(row: string | number): void;
29581
+ /**
29582
+ * Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the <strong>stateSettings</strong> property.
29583
+ */
29584
+ resetState(): void;
29466
29585
  /**
29467
29586
  * Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the <strong>stateSettings</strong> property.
29468
29587
  * @returns {any}
@@ -30492,6 +30611,11 @@ export interface TextAreaProperties {
30492
30611
  * Default value: false
30493
30612
  */
30494
30613
  readonly?: boolean;
30614
+ /**
30615
+ * Determines whether ot not the user can resize the Textarea.
30616
+ * Default value: none
30617
+ */
30618
+ resize?: TextAreaResize | string;
30495
30619
  /**
30496
30620
  * Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
30497
30621
  * Default value: false
@@ -30522,6 +30646,11 @@ export interface TextAreaProperties {
30522
30646
  * Default value: false
30523
30647
  */
30524
30648
  unfocusable?: boolean;
30649
+ /**
30650
+ * Sets the TextArea users. Expects an array of objects. Each object should have an id and name properties. When you press the 'at' key, you can enter an user from a dropdown.
30651
+ * Default value: []
30652
+ */
30653
+ users?: any[];
30525
30654
  /**
30526
30655
  * Sets or gets the value of the element.
30527
30656
  * Default value: ""
@@ -30559,6 +30688,11 @@ export interface TextArea extends BaseElement, TextAreaProperties {
30559
30688
  * Ensures that the active ( selected ) item is always visible.
30560
30689
  */
30561
30690
  ensureVisible(): void;
30691
+ /**
30692
+ * Returns an array of users mentioned in the Textarea's value.
30693
+ * @returns {any[]}
30694
+ */
30695
+ getMentions(): any[];
30562
30696
  /**
30563
30697
  * Opens the drop down.
30564
30698
  */
@@ -30581,6 +30715,8 @@ declare global {
30581
30715
 
30582
30716
  /**Determines the auto complete query mode. This property also determines the matching algorithm for the autocomplete operation. */
30583
30717
  export declare type TextAreaQueryMode = 'contains' | 'containsIgnoreCase' | 'doesNotContain' | 'doesNotContainIgnoreCase' | 'equals' | 'equalsIgnoreCase' | 'startsWith' | 'startsWithIgnoreCase' | 'endsWith' | 'endsWithIgnoreCase';
30718
+ /**Determines whether ot not the user can resize the Textarea. */
30719
+ export declare type TextAreaResize = 'none' | 'horizontal' | 'vertical' | 'both';
30584
30720
  export interface TextBoxProperties {
30585
30721
  /**
30586
30722
  * Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@smart-webcomponents-angular/phoneinput",
3
- "version": "15.1.5",
3
+ "version": "16.0.2",
4
4
  "preferGlobal": true,
5
5
  "keywords": [
6
6
  "angular",
7
7
  "angular phoneinput",
8
- "angular 11 phoneinput",
9
- "angular 12 phoneinput",
10
8
  "angular 13 phoneinput",
11
9
  "angular 14 phoneinput",
12
10
  "angular 15 phoneinput",
11
+ "angular 16 phoneinput",
13
12
  "phoneinput",
14
13
  "angular phoneinput component",
15
14
  "phoneinput for angular",
@@ -23,23 +22,23 @@
23
22
  "tslib": "^2.3.0"
24
23
  },
25
24
  "devDependencies": {
26
- "@angular/animations": "12 - 15",
27
- "@angular/common": "12 - 15",
28
- "@angular/compiler": "12 - 15",
29
- "@angular/core": "12 - 15",
30
- "@angular/forms": "12 - 15",
31
- "@angular/platform-browser": "12 - 15",
25
+ "@angular/animations": "13 - 16",
26
+ "@angular/common": "13 - 16",
27
+ "@angular/compiler": "13 - 16",
28
+ "@angular/core": "13 - 16",
29
+ "@angular/forms": "13 - 16",
30
+ "@angular/platform-browser": "12 - 16",
32
31
  "core-js": "^2.6.9",
33
32
  "rxjs": "^6.5.3",
34
33
  "systemjs": "0.19.43",
35
34
  "zone.js": "~0.11.4",
36
- "@angular-devkit/core": "12 - 15",
37
- "@angular-devkit/schematics": "12 - 15",
38
- "@angular/bazel": "12 - 15",
39
- "@angular/compiler-cli": "12 - 15",
40
- "@angular/platform-browser-dynamic": "12 - 15",
41
- "@angular/platform-server": "12 - 15",
42
- "@angular/router": "12 - 15",
35
+ "@angular-devkit/core": "13 - 16",
36
+ "@angular-devkit/schematics": "13 - 16",
37
+ "@angular/bazel": "13 - 16",
38
+ "@angular/compiler-cli": "13 - 16",
39
+ "@angular/platform-browser-dynamic": "13 - 16",
40
+ "@angular/platform-server": "13 - 16",
41
+ "@angular/router": "13 - 16",
43
42
  "typescript": "~4.9.5"
44
43
  },
45
44
  "author": "jQWidgets <support@jqwidgets.com> (https://www.htmlelements.com/)",
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="smart-webcomponents-angular/phoneinput" />
5
+ export * from './index';
@@ -34,6 +34,6 @@ export declare class BaseElement {
34
34
  get theme(): string;
35
35
  set theme(value: string);
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseElement, never>;
37
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseElement, never, never, { "locale": "locale"; "localizeFormatFunction": "localizeFormatFunction"; "messages": "messages"; "rightToLeft": "rightToLeft"; "theme": "theme"; }, { "onCreate": "onCreate"; "onReady": "onReady"; "onAttach": "onAttach"; "onDetach": "onDetach"; }, never, never, false, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseElement, never, never, { "locale": "locale"; "localizeFormatFunction": "localizeFormatFunction"; "messages": "messages"; "rightToLeft": "rightToLeft"; "theme": "theme"; }, { "onCreate": "onCreate"; "onReady": "onReady"; "onAttach": "onAttach"; "onDetach": "onDetach"; }, never>;
38
38
  }
39
39
  export declare const Smart: any;
@@ -143,5 +143,5 @@ export declare class PhoneInputComponent extends BaseElement implements OnInit,
143
143
  /** @description Remove event listeners. */
144
144
  private unlisten;
145
145
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputComponent, never>;
146
- static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneInputComponent, "smart-phone-input, [smart-phone-input]", ["smart-phone-input"], { "disabled": "disabled"; "dropDownClassList": "dropDownClassList"; "dropDownButtonPosition": "dropDownButtonPosition"; "dropDownHeight": "dropDownHeight"; "dropDownWidth": "dropDownWidth"; "messages": "messages"; "name": "name"; "nationalMode": "nationalMode"; "opened": "opened"; "onlyCountries": "onlyCountries"; "placeholder": "placeholder"; "selectedCountry": "selectedCountry"; "rightToLeft": "rightToLeft"; "theme": "theme"; "unfocusable": "unfocusable"; "value": "value"; }, { "onChange": "onChange"; "onChanging": "onChanging"; "onItemClick": "onItemClick"; }, never, never, false, never>;
146
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneInputComponent, "smart-phone-input, [smart-phone-input]", ["smart-phone-input"], { "disabled": "disabled"; "dropDownClassList": "dropDownClassList"; "dropDownButtonPosition": "dropDownButtonPosition"; "dropDownHeight": "dropDownHeight"; "dropDownWidth": "dropDownWidth"; "messages": "messages"; "name": "name"; "nationalMode": "nationalMode"; "opened": "opened"; "onlyCountries": "onlyCountries"; "placeholder": "placeholder"; "selectedCountry": "selectedCountry"; "rightToLeft": "rightToLeft"; "theme": "theme"; "unfocusable": "unfocusable"; "value": "value"; }, { "onChange": "onChange"; "onChanging": "onChanging"; "onItemClick": "onItemClick"; }, never>;
147
147
  }
@@ -1,5 +1,5 @@
1
1
 
2
- /* Smart UI v15.1.4 (2023-04-02)
2
+ /* Smart UI v16.0.2 (2023-08-04)
3
3
  Copyright (c) 2011-2023 jQWidgets.
4
4
  License: https://htmlelements.com/license/ */ //
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- /* Smart UI v15.1.4 (2023-04-02)
2
+ /* Smart UI v16.0.2 (2023-08-04)
3
3
  Copyright (c) 2011-2023 jQWidgets.
4
4
  License: https://htmlelements.com/license/ */ //
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- /* Smart UI v15.1.4 (2023-04-02)
2
+ /* Smart UI v16.0.2 (2023-08-04)
3
3
  Copyright (c) 2011-2023 jQWidgets.
4
4
  License: https://htmlelements.com/license/ */ //
5
5