@smart-webcomponents-angular/phoneinput 19.0.8 → 25.5.5
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/esm2020/phoneinput/smart.element.mjs +16 -3
- package/esm2020/phoneinput/smart.phoneinput.mjs +67 -32
- package/fesm2015/smart-webcomponents-angular-phoneinput.mjs +80 -33
- package/fesm2015/smart-webcomponents-angular-phoneinput.mjs.map +1 -1
- package/fesm2020/smart-webcomponents-angular-phoneinput.mjs +80 -33
- package/fesm2020/smart-webcomponents-angular-phoneinput.mjs.map +1 -1
- package/index.d.ts +6083 -5194
- package/package.json +20 -17
- package/phoneinput/smart.element.d.ts +6 -2
- package/phoneinput/smart.phoneinput.d.ts +36 -29
- package/source/modules/smart.input.js +2 -2
- package/source/modules/smart.phoneinput.js +2 -2
- package/source/smart.button.js +3 -3
- package/source/smart.countryinput.js +3 -3
- package/source/smart.element.js +3 -3
- package/source/smart.input.js +3 -3
- package/source/smart.phoneinput.js +3 -3
- package/source/smart.scrollbar.js +2 -2
- package/styles/font/smart-icons.eot +0 -0
- package/styles/font/smart-icons.svg +14 -0
- 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 +2 -2
- package/styles/smart.common.css +1 -1
- package/styles/smart.phoneinput.css +1 -1
|
@@ -45,6 +45,13 @@ class BaseElement {
|
|
|
45
45
|
focus(options) {
|
|
46
46
|
this.nativeElement.focus(options);
|
|
47
47
|
}
|
|
48
|
+
/** @description Sets or gets the license. */
|
|
49
|
+
get license() {
|
|
50
|
+
return this.nativeElement ? this.nativeElement.license : undefined;
|
|
51
|
+
}
|
|
52
|
+
set license(value) {
|
|
53
|
+
this.nativeElement ? this.nativeElement.license = value : undefined;
|
|
54
|
+
}
|
|
48
55
|
/** @description Sets or gets the language. Used in conjunction with the property messages. */
|
|
49
56
|
get locale() {
|
|
50
57
|
return this.nativeElement ? this.nativeElement.locale : undefined;
|
|
@@ -82,7 +89,7 @@ class BaseElement {
|
|
|
82
89
|
}
|
|
83
90
|
}
|
|
84
91
|
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
85
|
-
BaseElement.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: BaseElement, inputs: { locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", rightToLeft: "rightToLeft", theme: "theme" }, outputs: { onCreate: "onCreate", onReady: "onReady", onAttach: "onAttach", onDetach: "onDetach" }, ngImport: i0 });
|
|
92
|
+
BaseElement.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: BaseElement, inputs: { license: "license", locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", rightToLeft: "rightToLeft", theme: "theme" }, outputs: { onCreate: "onCreate", onReady: "onReady", onAttach: "onAttach", onDetach: "onDetach" }, ngImport: i0 });
|
|
86
93
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BaseElement, decorators: [{
|
|
87
94
|
type: Directive
|
|
88
95
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onCreate: [{
|
|
@@ -93,6 +100,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
93
100
|
type: Output
|
|
94
101
|
}], onDetach: [{
|
|
95
102
|
type: Output
|
|
103
|
+
}], license: [{
|
|
104
|
+
type: Input
|
|
96
105
|
}], locale: [{
|
|
97
106
|
type: Input
|
|
98
107
|
}], localizeFormatFunction: [{
|
|
@@ -104,7 +113,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
104
113
|
}], theme: [{
|
|
105
114
|
type: Input
|
|
106
115
|
}] } });
|
|
107
|
-
|
|
116
|
+
let Smart;
|
|
117
|
+
if (typeof window !== "undefined") {
|
|
118
|
+
Smart = window.Smart;
|
|
119
|
+
}
|
|
108
120
|
|
|
109
121
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
110
122
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -125,7 +137,7 @@ class PhoneInputComponent extends BaseElement {
|
|
|
125
137
|
* The registered callback function called when a blur event occurs on the form elements.
|
|
126
138
|
*/
|
|
127
139
|
this._onTouched = () => { };
|
|
128
|
-
/** @description This event is triggered
|
|
140
|
+
/** @description This event is triggered whenever the user modifies the current selection, such as highlighting different text or choosing another item from a selectable list. It helps you detect and respond to any change in what is selected within the relevant user interface component.
|
|
129
141
|
* @param event. The custom event. Custom event was created with: event.detail( label, oldLabel, oldValue, value)
|
|
130
142
|
* label - The label of the new selected item.
|
|
131
143
|
* oldLabel - The label of the item that was previously selected before the event was triggered.
|
|
@@ -133,13 +145,13 @@ class PhoneInputComponent extends BaseElement {
|
|
|
133
145
|
* value - The value of the new selected item.
|
|
134
146
|
*/
|
|
135
147
|
this.onChange = new EventEmitter();
|
|
136
|
-
/** @description This event is triggered
|
|
148
|
+
/** @description This event is triggered each time a key is released (on key up) within the input field, but only if the input's value has changed as a result of the key press.
|
|
137
149
|
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
|
|
138
150
|
* oldValue - The previous value before it was changed.
|
|
139
151
|
* value - The new value.
|
|
140
152
|
*/
|
|
141
153
|
this.onChanging = new EventEmitter();
|
|
142
|
-
/** @description This event is triggered
|
|
154
|
+
/** @description This event is triggered whenever the user selects an item by clicking on it within the popup list. It allows you to respond to user interaction by executing specific actions or updating the interface based on the selected item.
|
|
143
155
|
* @param event. The custom event. Custom event was created with: event.detail( item, label, value)
|
|
144
156
|
* item - The item that was clicked.
|
|
145
157
|
* label - The label of the item that was clicked.
|
|
@@ -159,119 +171,126 @@ class PhoneInputComponent extends BaseElement {
|
|
|
159
171
|
}
|
|
160
172
|
return this.nativeElement;
|
|
161
173
|
}
|
|
162
|
-
/** @description
|
|
174
|
+
/** @description Determines whether the element is interactive or inactive. When enabled, the element can be interacted with by the user; when disabled, the element becomes unresponsive to user actions, often appearing visually distinct (e.g., grayed out). */
|
|
163
175
|
get disabled() {
|
|
164
176
|
return this.nativeElement ? this.nativeElement.disabled : undefined;
|
|
165
177
|
}
|
|
166
178
|
set disabled(value) {
|
|
167
179
|
this.nativeElement ? this.nativeElement.disabled = value : undefined;
|
|
168
180
|
}
|
|
169
|
-
/** @description
|
|
181
|
+
/** @description Specifies extra CSS class names to be applied to the Input dropdown element, allowing for customized styling and theming beyond the default classes. */
|
|
170
182
|
get dropDownClassList() {
|
|
171
183
|
return this.nativeElement ? this.nativeElement.dropDownClassList : undefined;
|
|
172
184
|
}
|
|
173
185
|
set dropDownClassList(value) {
|
|
174
186
|
this.nativeElement ? this.nativeElement.dropDownClassList = value : undefined;
|
|
175
187
|
}
|
|
176
|
-
/** @description
|
|
188
|
+
/** @description Specifies the placement of the dropdown button relative to its associated element, such as positioning it to the left, right, above, or below the target UI component. */
|
|
177
189
|
get dropDownButtonPosition() {
|
|
178
190
|
return this.nativeElement ? this.nativeElement.dropDownButtonPosition : undefined;
|
|
179
191
|
}
|
|
180
192
|
set dropDownButtonPosition(value) {
|
|
181
193
|
this.nativeElement ? this.nativeElement.dropDownButtonPosition = value : undefined;
|
|
182
194
|
}
|
|
183
|
-
/** @description
|
|
195
|
+
/** @description Specifies the height of the dropdown menu. By default, this property is set to an empty string, which means the dropdown's height will be determined by a corresponding CSS variable. If a specific value is provided, it will override the CSS variable and explicitly set the dropdown's height. */
|
|
184
196
|
get dropDownHeight() {
|
|
185
197
|
return this.nativeElement ? this.nativeElement.dropDownHeight : undefined;
|
|
186
198
|
}
|
|
187
199
|
set dropDownHeight(value) {
|
|
188
200
|
this.nativeElement ? this.nativeElement.dropDownHeight = value : undefined;
|
|
189
201
|
}
|
|
190
|
-
/** @description
|
|
202
|
+
/** @description Specifies the width of the dropdown menu. By default, this value is an empty string (""). When left empty, the dropdown's width is determined by a CSS variable, allowing the width to be managed through external stylesheets rather than being hardcoded. This provides flexibility for responsive design and consistent styling across your application. If a specific width is provided (e.g., "200px" or "50%"), it will override the CSS variable and explicitly set the dropdown's width. */
|
|
191
203
|
get dropDownWidth() {
|
|
192
204
|
return this.nativeElement ? this.nativeElement.dropDownWidth : undefined;
|
|
193
205
|
}
|
|
194
206
|
set dropDownWidth(value) {
|
|
195
207
|
this.nativeElement ? this.nativeElement.dropDownWidth = value : undefined;
|
|
196
208
|
}
|
|
197
|
-
/** @description
|
|
209
|
+
/** @description Defines or retrieves an object containing string values used throughout the widget’s user interface, allowing for easy localization of text. This property works together with the locale setting to display the widget’s content in different languages, based on the specified translations. Use this object to provide or customize all user-facing strings for multilingual support. */
|
|
198
210
|
get messages() {
|
|
199
211
|
return this.nativeElement ? this.nativeElement.messages : undefined;
|
|
200
212
|
}
|
|
201
213
|
set messages(value) {
|
|
202
214
|
this.nativeElement ? this.nativeElement.messages = value : undefined;
|
|
203
215
|
}
|
|
204
|
-
/** @description Sets or
|
|
216
|
+
/** @description Sets or retrieves the unlockKey property, which serves as a unique key required to unlock access to the product. When assigning a value, the unlockKey enables authorized usage; when retrieving, it provides the current key associated with the product’s access permissions. */
|
|
217
|
+
get unlockKey() {
|
|
218
|
+
return this.nativeElement ? this.nativeElement.unlockKey : undefined;
|
|
219
|
+
}
|
|
220
|
+
set unlockKey(value) {
|
|
221
|
+
this.nativeElement ? this.nativeElement.unlockKey = value : undefined;
|
|
222
|
+
}
|
|
223
|
+
/** @description Defines or retrieves the value of the name attribute for the element. The name attribute uniquely identifies the element within an HTML form, allowing its data to be included and referenced when the form is submitted to a server. This is essential for processing form data on the server side. */
|
|
205
224
|
get name() {
|
|
206
225
|
return this.nativeElement ? this.nativeElement.name : undefined;
|
|
207
226
|
}
|
|
208
227
|
set name(value) {
|
|
209
228
|
this.nativeElement ? this.nativeElement.name = value : undefined;
|
|
210
229
|
}
|
|
211
|
-
/** @description
|
|
230
|
+
/** @description Specifies whether the input should be in international or national format. In international mode, the input should begin with a '+' followed by the country code (e.g., +1 555-1234). In national mode, the input should omit the '+' and country code, using only the local number format. */
|
|
212
231
|
get nationalMode() {
|
|
213
232
|
return this.nativeElement ? this.nativeElement.nationalMode : undefined;
|
|
214
233
|
}
|
|
215
234
|
set nationalMode(value) {
|
|
216
235
|
this.nativeElement ? this.nativeElement.nationalMode = value : undefined;
|
|
217
236
|
}
|
|
218
|
-
/** @description
|
|
237
|
+
/** @description Specifies whether the dropdown menu is currently visible (open) or hidden (closed). */
|
|
219
238
|
get opened() {
|
|
220
239
|
return this.nativeElement ? this.nativeElement.opened : undefined;
|
|
221
240
|
}
|
|
222
241
|
set opened(value) {
|
|
223
242
|
this.nativeElement ? this.nativeElement.opened = value : undefined;
|
|
224
243
|
}
|
|
225
|
-
/** @description
|
|
244
|
+
/** @description Specifies or retrieves an array of country codes to customize the set of countries used, replacing the default list that includes all countries. Each country code must be a valid ISO 3166-1 alpha-2 code (see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), which consists of two uppercase letters (e.g., 'US' for the United States, 'FR' for France). Use this property to limit available options to a specific set of countries as needed. */
|
|
226
245
|
get onlyCountries() {
|
|
227
246
|
return this.nativeElement ? this.nativeElement.onlyCountries : undefined;
|
|
228
247
|
}
|
|
229
248
|
set onlyCountries(value) {
|
|
230
249
|
this.nativeElement ? this.nativeElement.onlyCountries = value : undefined;
|
|
231
250
|
}
|
|
232
|
-
/** @description
|
|
251
|
+
/** @description Specifies the placeholder text that appears inside the input field before the user enters any value, providing a hint or example of the expected input format. */
|
|
233
252
|
get placeholder() {
|
|
234
253
|
return this.nativeElement ? this.nativeElement.placeholder : undefined;
|
|
235
254
|
}
|
|
236
255
|
set placeholder(value) {
|
|
237
256
|
this.nativeElement ? this.nativeElement.placeholder = value : undefined;
|
|
238
257
|
}
|
|
239
|
-
/** @description
|
|
258
|
+
/** @description Gets or sets the selected country for the element using a country code. The country code must conform to the ISO 3166-1 alpha-2 standard (see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), which consists of a two-letter, uppercase code representing each country (e.g., "US" for United States, "FR" for France). */
|
|
240
259
|
get selectedCountry() {
|
|
241
260
|
return this.nativeElement ? this.nativeElement.selectedCountry : undefined;
|
|
242
261
|
}
|
|
243
262
|
set selectedCountry(value) {
|
|
244
263
|
this.nativeElement ? this.nativeElement.selectedCountry = value : undefined;
|
|
245
264
|
}
|
|
246
|
-
/** @description
|
|
265
|
+
/** @description Gets or sets a value that determines whether the element's alignment is configured for right-to-left (RTL) languages (such as Arabic or Hebrew), enabling proper display and layout of text and content for those locales. */
|
|
247
266
|
get rightToLeft() {
|
|
248
267
|
return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
|
|
249
268
|
}
|
|
250
269
|
set rightToLeft(value) {
|
|
251
270
|
this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
|
|
252
271
|
}
|
|
253
|
-
/** @description
|
|
272
|
+
/** @description Specifies the visual theme to be applied to the element. The selected theme controls the element's overall appearance, including colors, fonts, spacing, and other stylistic properties, ensuring a consistent look and feel across the user interface. */
|
|
254
273
|
get theme() {
|
|
255
274
|
return this.nativeElement ? this.nativeElement.theme : undefined;
|
|
256
275
|
}
|
|
257
276
|
set theme(value) {
|
|
258
277
|
this.nativeElement ? this.nativeElement.theme = value : undefined;
|
|
259
278
|
}
|
|
260
|
-
/** @description
|
|
279
|
+
/** @description When set to true, this property prevents the element from receiving keyboard focus, making it inaccessible via tab navigation and standard focus events. */
|
|
261
280
|
get unfocusable() {
|
|
262
281
|
return this.nativeElement ? this.nativeElement.unfocusable : undefined;
|
|
263
282
|
}
|
|
264
283
|
set unfocusable(value) {
|
|
265
284
|
this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
|
|
266
285
|
}
|
|
267
|
-
/** @description
|
|
286
|
+
/** @description Retrieves the current value of the element or assigns a new value to it. This property can be used to access the data contained within form elements (such as input, textarea, or select) or to update their content programmatically. */
|
|
268
287
|
get value() {
|
|
269
288
|
return this.nativeElement ? this.nativeElement.value : undefined;
|
|
270
289
|
}
|
|
271
290
|
set value(value) {
|
|
272
291
|
this.nativeElement ? this.nativeElement.value = value : undefined;
|
|
273
292
|
}
|
|
274
|
-
/** @description Closes the
|
|
293
|
+
/** @description Closes the dropdown menu, hiding its visible options from the user and collapsing the interface element.
|
|
275
294
|
*/
|
|
276
295
|
close() {
|
|
277
296
|
if (this.nativeElement.isRendered) {
|
|
@@ -283,7 +302,7 @@ class PhoneInputComponent extends BaseElement {
|
|
|
283
302
|
});
|
|
284
303
|
}
|
|
285
304
|
}
|
|
286
|
-
/** @description
|
|
305
|
+
/** @description Guarantees that the currently active (selected) item remains visible within the viewport by automatically scrolling the container as needed. This ensures users can always see and interact with their selection, even as the list or content changes.
|
|
287
306
|
*/
|
|
288
307
|
ensureVisible() {
|
|
289
308
|
if (this.nativeElement.isRendered) {
|
|
@@ -295,7 +314,7 @@ class PhoneInputComponent extends BaseElement {
|
|
|
295
314
|
});
|
|
296
315
|
}
|
|
297
316
|
}
|
|
298
|
-
/** @description Returns the
|
|
317
|
+
/** @description Returns the provided phone number as a formatted string, applying standard formatting conventions (such as adding parentheses, spaces, or dashes) based on the specified locale or default format. Ensures consistency and improves readability for display or storage purposes.
|
|
299
318
|
* @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.
|
|
300
319
|
* @returns {string}
|
|
301
320
|
*/
|
|
@@ -313,7 +332,13 @@ class PhoneInputComponent extends BaseElement {
|
|
|
313
332
|
return result;
|
|
314
333
|
});
|
|
315
334
|
}
|
|
316
|
-
|
|
335
|
+
getNumberSync(isInternational) {
|
|
336
|
+
if (this.nativeElement.isRendered) {
|
|
337
|
+
return this.nativeElement.getNumber(isInternational);
|
|
338
|
+
}
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
/** @description Retrieves an object representing a country based on its dial code. The returned object contains the following properties:- **label**: The local or English name of the country (e.g., "United States").- **value**: A unique identifier for the country (commonly the country name or abbreviation).- **iso2**: The two-letter ISO 3166-1 alpha-2 country code (e.g., "US").- **dialCode**: The international telephone dialing code associated with the country (e.g., "+1").
|
|
317
342
|
* @param {string} dialCode?. Returns the national or international phone number
|
|
318
343
|
* @returns {any}
|
|
319
344
|
*/
|
|
@@ -331,7 +356,13 @@ class PhoneInputComponent extends BaseElement {
|
|
|
331
356
|
return result;
|
|
332
357
|
});
|
|
333
358
|
}
|
|
334
|
-
|
|
359
|
+
getItemByDialCodeSync(dialCode) {
|
|
360
|
+
if (this.nativeElement.isRendered) {
|
|
361
|
+
return this.nativeElement.getItemByDialCode(dialCode);
|
|
362
|
+
}
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
/** @description Returns the currently selected item as an object. This object contains the following properties: - `label`: A string representing the display name of the item (e.g., country name). - `value`: A string or identifier associated with the item (e.g., country code). - `iso2`: A two-letter ISO 3166-1 alpha-2 country code string (e.g., 'US' for United States). - `dialCode`: A string representing the country’s international dialing code (e.g., '+1').
|
|
335
366
|
* @returns {any}
|
|
336
367
|
*/
|
|
337
368
|
getSelectedItem() {
|
|
@@ -348,7 +379,13 @@ class PhoneInputComponent extends BaseElement {
|
|
|
348
379
|
return result;
|
|
349
380
|
});
|
|
350
381
|
}
|
|
351
|
-
|
|
382
|
+
getSelectedItemSync() {
|
|
383
|
+
if (this.nativeElement.isRendered) {
|
|
384
|
+
return this.nativeElement.getSelectedItem();
|
|
385
|
+
}
|
|
386
|
+
return null;
|
|
387
|
+
}
|
|
388
|
+
/** @description Determines if the provided phone number meets the required format and validation rules, returning true for a valid phone number and false if the input is invalid.
|
|
352
389
|
* @returns {boolean}
|
|
353
390
|
*/
|
|
354
391
|
isValidNumber() {
|
|
@@ -365,7 +402,13 @@ class PhoneInputComponent extends BaseElement {
|
|
|
365
402
|
return result;
|
|
366
403
|
});
|
|
367
404
|
}
|
|
368
|
-
|
|
405
|
+
isValidNumberSync() {
|
|
406
|
+
if (this.nativeElement.isRendered) {
|
|
407
|
+
return this.nativeElement.isValidNumber();
|
|
408
|
+
}
|
|
409
|
+
return null;
|
|
410
|
+
}
|
|
411
|
+
/** @description Validates whether the entered phone number is in the correct format and meets specified criteria, such as required length, allowed characters, and country or area code compliance.
|
|
369
412
|
*/
|
|
370
413
|
validate() {
|
|
371
414
|
if (this.nativeElement.isRendered) {
|
|
@@ -377,7 +420,7 @@ class PhoneInputComponent extends BaseElement {
|
|
|
377
420
|
});
|
|
378
421
|
}
|
|
379
422
|
}
|
|
380
|
-
/** @description
|
|
423
|
+
/** @description Displays the drop-down menu, making its list of selectable options visible to the user.
|
|
381
424
|
*/
|
|
382
425
|
open() {
|
|
383
426
|
if (this.nativeElement.isRendered) {
|
|
@@ -389,7 +432,7 @@ class PhoneInputComponent extends BaseElement {
|
|
|
389
432
|
});
|
|
390
433
|
}
|
|
391
434
|
}
|
|
392
|
-
/** @description
|
|
435
|
+
/** @description Enhances the behavior of an input field by selecting its text content when it is editable. If the input field is marked as readonly, it will instead focus the element without selecting the text. This ensures that users can easily interact with editable inputs, while still providing focus to readonly fields for accessibility or further actions.
|
|
393
436
|
*/
|
|
394
437
|
select() {
|
|
395
438
|
if (this.nativeElement.isRendered) {
|
|
@@ -409,9 +452,11 @@ class PhoneInputComponent extends BaseElement {
|
|
|
409
452
|
ngAfterViewInit() {
|
|
410
453
|
const that = this;
|
|
411
454
|
that.onCreate.emit(that.nativeElement);
|
|
412
|
-
Smart
|
|
455
|
+
if (Smart)
|
|
456
|
+
Smart.Render();
|
|
413
457
|
this.nativeElement.classList.add('smart-angular');
|
|
414
|
-
this.nativeElement.whenRendered
|
|
458
|
+
if (this.nativeElement.whenRendered)
|
|
459
|
+
this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });
|
|
415
460
|
this.listen();
|
|
416
461
|
}
|
|
417
462
|
ngOnDestroy() {
|
|
@@ -505,7 +550,7 @@ class PhoneInputComponent extends BaseElement {
|
|
|
505
550
|
}
|
|
506
551
|
}
|
|
507
552
|
PhoneInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: PhoneInputComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
508
|
-
PhoneInputComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: PhoneInputComponent, selector: "smart-phone-input, [smart-phone-input]", inputs: { 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" }, outputs: { onChange: "onChange", onChanging: "onChanging", onItemClick: "onItemClick" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], exportAs: ["smart-phone-input"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
553
|
+
PhoneInputComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: PhoneInputComponent, selector: "smart-phone-input, [smart-phone-input]", inputs: { disabled: "disabled", dropDownClassList: "dropDownClassList", dropDownButtonPosition: "dropDownButtonPosition", dropDownHeight: "dropDownHeight", dropDownWidth: "dropDownWidth", messages: "messages", unlockKey: "unlockKey", name: "name", nationalMode: "nationalMode", opened: "opened", onlyCountries: "onlyCountries", placeholder: "placeholder", selectedCountry: "selectedCountry", rightToLeft: "rightToLeft", theme: "theme", unfocusable: "unfocusable", value: "value" }, outputs: { onChange: "onChange", onChanging: "onChanging", onItemClick: "onItemClick" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], exportAs: ["smart-phone-input"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
509
554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: PhoneInputComponent, decorators: [{
|
|
510
555
|
type: Directive,
|
|
511
556
|
args: [{
|
|
@@ -524,6 +569,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
524
569
|
type: Input
|
|
525
570
|
}], messages: [{
|
|
526
571
|
type: Input
|
|
572
|
+
}], unlockKey: [{
|
|
573
|
+
type: Input
|
|
527
574
|
}], name: [{
|
|
528
575
|
type: Input
|
|
529
576
|
}], nationalMode: [{
|
|
@@ -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 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,CAAA;KACJ;IASM,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QG,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;;;;;;"}
|
|
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 license. */\n\t@Input()\n\tget license(): string {\n\t\treturn this.nativeElement ? this.nativeElement.license : undefined;\n\t}\n\tset license(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.license = value : undefined;\n\t}\n\t\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\nlet Smart: any;\nif (typeof window !== \"undefined\") {\n\tSmart = window.Smart;\n}\nexport { 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 Determines whether the element is interactive or inactive. When enabled, the element can be interacted with by the user; when disabled, the element becomes unresponsive to user actions, often appearing visually distinct (e.g., grayed out). */\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 Specifies extra CSS class names to be applied to the Input dropdown element, allowing for customized styling and theming beyond the default classes. */\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 Specifies the placement of the dropdown button relative to its associated element, such as positioning it to the left, right, above, or below the target UI component. */\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 Specifies the height of the dropdown menu. By default, this property is set to an empty string, which means the dropdown's height will be determined by a corresponding CSS variable. If a specific value is provided, it will override the CSS variable and explicitly set the dropdown's height. */\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 Specifies the width of the dropdown menu. By default, this value is an empty string (\"\"). When left empty, the dropdown's width is determined by a CSS variable, allowing the width to be managed through external stylesheets rather than being hardcoded. This provides flexibility for responsive design and consistent styling across your application. If a specific width is provided (e.g., \"200px\" or \"50%\"), it will override the CSS variable and explicitly set the dropdown's width. */\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 Defines or retrieves an object containing string values used throughout the widget’s user interface, allowing for easy localization of text. This property works together with the locale setting to display the widget’s content in different languages, based on the specified translations. Use this object to provide or customize all user-facing strings for multilingual support. */\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 retrieves the unlockKey property, which serves as a unique key required to unlock access to the product. When assigning a value, the unlockKey enables authorized usage; when retrieving, it provides the current key associated with the product’s access permissions. */\n\t@Input()\n\tget unlockKey(): string {\n\t\treturn this.nativeElement ? this.nativeElement.unlockKey : undefined;\n\t}\n\tset unlockKey(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.unlockKey = value : undefined;\n\t}\n\n\t/** @description Defines or retrieves the value of the name attribute for the element. The name attribute uniquely identifies the element within an HTML form, allowing its data to be included and referenced when the form is submitted to a server. This is essential for processing form data on the server side. */\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 Specifies whether the input should be in international or national format. In international mode, the input should begin with a '+' followed by the country code (e.g., +1 555-1234). In national mode, the input should omit the '+' and country code, using only the local number format. */\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 Specifies whether the dropdown menu is currently visible (open) or hidden (closed). */\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 Specifies or retrieves an array of country codes to customize the set of countries used, replacing the default list that includes all countries. Each country code must be a valid ISO 3166-1 alpha-2 code (see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), which consists of two uppercase letters (e.g., 'US' for the United States, 'FR' for France). Use this property to limit available options to a specific set of countries as needed. */\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 Specifies the placeholder text that appears inside the input field before the user enters any value, providing a hint or example of the expected input format. */\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 Gets or sets the selected country for the element using a country code. The country code must conform to the ISO 3166-1 alpha-2 standard (see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), which consists of a two-letter, uppercase code representing each country (e.g., \"US\" for United States, \"FR\" for France). */\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 Gets or sets a value that determines whether the element's alignment is configured for right-to-left (RTL) languages (such as Arabic or Hebrew), enabling proper display and layout of text and content for those locales. */\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 Specifies the visual theme to be applied to the element. The selected theme controls the element's overall appearance, including colors, fonts, spacing, and other stylistic properties, ensuring a consistent look and feel across the user interface. */\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 When set to true, this property prevents the element from receiving keyboard focus, making it inaccessible via tab navigation and standard focus events. */\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 Retrieves the current value of the element or assigns a new value to it. This property can be used to access the data contained within form elements (such as input, textarea, or select) or to update their content programmatically. */\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 whenever the user modifies the current selection, such as highlighting different text or choosing another item from a selectable list. It helps you detect and respond to any change in what is selected within the relevant user interface component.\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 each time a key is released (on key up) within the input field, but only if the input's value has changed as a result of the key press.\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 whenever the user selects an item by clicking on it within the popup list. It allows you to respond to user interaction by executing specific actions or updating the interface based on the selected item.\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 dropdown menu, hiding its visible options from the user and collapsing the interface element. \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 Guarantees that the currently active (selected) item remains visible within the viewport by automatically scrolling the container as needed. This ensures users can always see and interact with their selection, even as the list or content changes. \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 provided phone number as a formatted string, applying standard formatting conventions (such as adding parentheses, spaces, or dashes) based on the specified locale or default format. Ensures consistency and improves readability for display or storage purposes. \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\tpublic getNumberSync(isInternational?): string {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.getNumber(isInternational);\n }\n return null;\n }\n\n\t/** @description Retrieves an object representing a country based on its dial code. The returned object contains the following properties:- **label**: The local or English name of the country (e.g., \"United States\").- **value**: A unique identifier for the country (commonly the country name or abbreviation).- **iso2**: The two-letter ISO 3166-1 alpha-2 country code (e.g., \"US\").- **dialCode**: The international telephone dialing code associated with the country (e.g., \"+1\"). \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\tpublic getItemByDialCodeSync(dialCode?): any {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.getItemByDialCode(dialCode);\n }\n return null;\n }\n\n\t/** @description Returns the currently selected item as an object. This object contains the following properties: - `label`: A string representing the display name of the item (e.g., country name). - `value`: A string or identifier associated with the item (e.g., country code). - `iso2`: A two-letter ISO 3166-1 alpha-2 country code string (e.g., 'US' for United States). - `dialCode`: A string representing the country’s international dialing code (e.g., '+1'). \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\tpublic getSelectedItemSync(): any {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.getSelectedItem();\n }\n return null;\n }\n\n\t/** @description Determines if the provided phone number meets the required format and validation rules, returning true for a valid phone number and false if the input is invalid. \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\tpublic isValidNumberSync(): boolean {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.isValidNumber();\n }\n return null;\n }\n\n\t/** @description Validates whether the entered phone number is in the correct format and meets specified criteria, such as required length, allowed characters, and country or area code compliance. \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 Displays the drop-down menu, making its list of selectable options visible to the user. \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 Enhances the behavior of an input field by selecting its text content when it is editable. If the input field is marked as readonly, it will instead focus the element without selecting the text. This ensures that users can easily interact with editable inputs, while still providing focus to readonly fields for accessibility or further actions. \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\tif (Smart) Smart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tif (this.nativeElement.whenRendered) this.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,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;K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