@smart-webcomponents-angular/passwordtextbox 9.2.22 → 13.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +10 -2
  2. package/common/i18n.phonenumbers.min.js +501 -0
  3. package/common/runtime.js +748 -0
  4. package/demo/angular.json +3 -3
  5. package/demo/package.json +1 -1
  6. package/demo/src/tsconfig.app.json +15 -15
  7. package/demo/src/tsconfig.json +23 -23
  8. package/esm2020/passwordtextbox/index.mjs +2 -0
  9. package/{esm2015/passwordtextbox/public_api.js → esm2020/passwordtextbox/public_api.mjs} +0 -0
  10. package/{esm2015/passwordtextbox/smart-webcomponents-angular-passwordtextbox.js → esm2020/passwordtextbox/smart-webcomponents-angular-passwordtextbox.mjs} +2 -3
  11. package/esm2020/passwordtextbox/smart.element.mjs +99 -0
  12. package/esm2020/passwordtextbox/smart.passwordtextbox.mjs +428 -0
  13. package/esm2020/passwordtextbox/smart.passwordtextbox.module.mjs +18 -0
  14. package/fesm2015/{smart-webcomponents-angular-passwordtextbox.js → smart-webcomponents-angular-passwordtextbox.mjs} +119 -60
  15. package/fesm2015/smart-webcomponents-angular-passwordtextbox.mjs.map +1 -0
  16. package/fesm2020/smart-webcomponents-angular-passwordtextbox.mjs +553 -0
  17. package/fesm2020/smart-webcomponents-angular-passwordtextbox.mjs.map +1 -0
  18. package/images/flags.png +0 -0
  19. package/index.d.ts +3578 -658
  20. package/package.json +26 -24
  21. package/passwordtextbox/index.d.ts +1 -0
  22. package/passwordtextbox/smart-webcomponents-angular-passwordtextbox.d.ts +2 -2
  23. package/passwordtextbox/smart.element.d.ts +4 -1
  24. package/passwordtextbox/smart.passwordtextbox.d.ts +10 -1
  25. package/passwordtextbox/smart.passwordtextbox.module.d.ts +5 -0
  26. package/source/modules/smart.passwordtextbox.js +1 -1
  27. package/source/smart.button.js +2 -2
  28. package/source/smart.element.js +2 -2
  29. package/source/smart.input.js +2 -2
  30. package/source/smart.passwordtextbox.js +6 -0
  31. package/source/smart.tooltip.js +6 -0
  32. package/styles/font/smart-icons.eot +0 -0
  33. package/styles/font/smart-icons.svg +64 -2
  34. package/styles/font/smart-icons.ttf +0 -0
  35. package/styles/font/smart-icons.woff +0 -0
  36. package/styles/font/smart-icons.woff2 +0 -0
  37. package/styles/smart.base.css +4 -4
  38. package/styles/smart.common.css +1 -1
  39. package/styles/smart.passwordtextbox.css +2 -2
  40. package/bundles/smart-webcomponents-angular-passwordtextbox.umd.js +0 -961
  41. package/bundles/smart-webcomponents-angular-passwordtextbox.umd.min.js +0 -25
  42. package/demo/src/app/app.component.ts +0 -29
  43. package/demo/src/app/app.module.ts +0 -15
  44. package/demo/src/app/main.ts +0 -6
  45. package/demo/src/main.ts +0 -16
  46. package/demo/src/polyfills.ts +0 -73
  47. package/esm2015/passwordtextbox/smart.element.js +0 -83
  48. package/esm2015/passwordtextbox/smart.passwordtextbox.js +0 -388
  49. package/esm2015/passwordtextbox/smart.passwordtextbox.module.js +0 -13
  50. package/fesm2015/smart-webcomponents-angular-passwordtextbox.js.map +0 -1
  51. package/passwordtextbox/smart-webcomponents-angular-passwordtextbox.metadata.json +0 -1
  52. package/source/smart.maskedtextbox.js +0 -6
@@ -1,961 +0,0 @@
1
-
2
- if (!window['Smart']) {
3
- window['Smart'] = { RenderMode: 'manual' };
4
- }
5
- else {
6
- window['Smart'].RenderMode = 'manual';
7
- }
8
- import './../source/modules/smart.passwordtextbox';
9
-
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms')) :
12
- typeof define === 'function' && define.amd ? define('smart-webcomponents-angular/passwordtextbox', ['exports', '@angular/core', '@angular/forms'], factory) :
13
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['smart-webcomponents-angular'] = global['smart-webcomponents-angular'] || {}, global['smart-webcomponents-angular'].passwordtextbox = {}), global.ng.core, global.ng.forms));
14
- }(this, (function (exports, core, forms) { 'use strict';
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */
30
- /* global Reflect, Promise */
31
- var extendStatics = function (d, b) {
32
- extendStatics = Object.setPrototypeOf ||
33
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
34
- function (d, b) { for (var p in b)
35
- if (Object.prototype.hasOwnProperty.call(b, p))
36
- d[p] = b[p]; };
37
- return extendStatics(d, b);
38
- };
39
- function __extends(d, b) {
40
- if (typeof b !== "function" && b !== null)
41
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
42
- extendStatics(d, b);
43
- function __() { this.constructor = d; }
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- }
46
- var __assign = function () {
47
- __assign = Object.assign || function __assign(t) {
48
- for (var s, i = 1, n = arguments.length; i < n; i++) {
49
- s = arguments[i];
50
- for (var p in s)
51
- if (Object.prototype.hasOwnProperty.call(s, p))
52
- t[p] = s[p];
53
- }
54
- return t;
55
- };
56
- return __assign.apply(this, arguments);
57
- };
58
- function __rest(s, e) {
59
- var t = {};
60
- for (var p in s)
61
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
62
- t[p] = s[p];
63
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
64
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
65
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
66
- t[p[i]] = s[p[i]];
67
- }
68
- return t;
69
- }
70
- function __decorate(decorators, target, key, desc) {
71
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
72
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
73
- r = Reflect.decorate(decorators, target, key, desc);
74
- else
75
- for (var i = decorators.length - 1; i >= 0; i--)
76
- if (d = decorators[i])
77
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
78
- return c > 3 && r && Object.defineProperty(target, key, r), r;
79
- }
80
- function __param(paramIndex, decorator) {
81
- return function (target, key) { decorator(target, key, paramIndex); };
82
- }
83
- function __metadata(metadataKey, metadataValue) {
84
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
85
- return Reflect.metadata(metadataKey, metadataValue);
86
- }
87
- function __awaiter(thisArg, _arguments, P, generator) {
88
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
89
- return new (P || (P = Promise))(function (resolve, reject) {
90
- function fulfilled(value) { try {
91
- step(generator.next(value));
92
- }
93
- catch (e) {
94
- reject(e);
95
- } }
96
- function rejected(value) { try {
97
- step(generator["throw"](value));
98
- }
99
- catch (e) {
100
- reject(e);
101
- } }
102
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
103
- step((generator = generator.apply(thisArg, _arguments || [])).next());
104
- });
105
- }
106
- function __generator(thisArg, body) {
107
- var _ = { label: 0, sent: function () { if (t[0] & 1)
108
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
109
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
110
- function verb(n) { return function (v) { return step([n, v]); }; }
111
- function step(op) {
112
- if (f)
113
- throw new TypeError("Generator is already executing.");
114
- while (_)
115
- try {
116
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
117
- return t;
118
- if (y = 0, t)
119
- op = [op[0] & 2, t.value];
120
- switch (op[0]) {
121
- case 0:
122
- case 1:
123
- t = op;
124
- break;
125
- case 4:
126
- _.label++;
127
- return { value: op[1], done: false };
128
- case 5:
129
- _.label++;
130
- y = op[1];
131
- op = [0];
132
- continue;
133
- case 7:
134
- op = _.ops.pop();
135
- _.trys.pop();
136
- continue;
137
- default:
138
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
139
- _ = 0;
140
- continue;
141
- }
142
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
143
- _.label = op[1];
144
- break;
145
- }
146
- if (op[0] === 6 && _.label < t[1]) {
147
- _.label = t[1];
148
- t = op;
149
- break;
150
- }
151
- if (t && _.label < t[2]) {
152
- _.label = t[2];
153
- _.ops.push(op);
154
- break;
155
- }
156
- if (t[2])
157
- _.ops.pop();
158
- _.trys.pop();
159
- continue;
160
- }
161
- op = body.call(thisArg, _);
162
- }
163
- catch (e) {
164
- op = [6, e];
165
- y = 0;
166
- }
167
- finally {
168
- f = t = 0;
169
- }
170
- if (op[0] & 5)
171
- throw op[1];
172
- return { value: op[0] ? op[1] : void 0, done: true };
173
- }
174
- }
175
- var __createBinding = Object.create ? (function (o, m, k, k2) {
176
- if (k2 === undefined)
177
- k2 = k;
178
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
179
- }) : (function (o, m, k, k2) {
180
- if (k2 === undefined)
181
- k2 = k;
182
- o[k2] = m[k];
183
- });
184
- function __exportStar(m, o) {
185
- for (var p in m)
186
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
187
- __createBinding(o, m, p);
188
- }
189
- function __values(o) {
190
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
191
- if (m)
192
- return m.call(o);
193
- if (o && typeof o.length === "number")
194
- return {
195
- next: function () {
196
- if (o && i >= o.length)
197
- o = void 0;
198
- return { value: o && o[i++], done: !o };
199
- }
200
- };
201
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
202
- }
203
- function __read(o, n) {
204
- var m = typeof Symbol === "function" && o[Symbol.iterator];
205
- if (!m)
206
- return o;
207
- var i = m.call(o), r, ar = [], e;
208
- try {
209
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
210
- ar.push(r.value);
211
- }
212
- catch (error) {
213
- e = { error: error };
214
- }
215
- finally {
216
- try {
217
- if (r && !r.done && (m = i["return"]))
218
- m.call(i);
219
- }
220
- finally {
221
- if (e)
222
- throw e.error;
223
- }
224
- }
225
- return ar;
226
- }
227
- /** @deprecated */
228
- function __spread() {
229
- for (var ar = [], i = 0; i < arguments.length; i++)
230
- ar = ar.concat(__read(arguments[i]));
231
- return ar;
232
- }
233
- /** @deprecated */
234
- function __spreadArrays() {
235
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
236
- s += arguments[i].length;
237
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
238
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
239
- r[k] = a[j];
240
- return r;
241
- }
242
- function __spreadArray(to, from) {
243
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
244
- to[j] = from[i];
245
- return to;
246
- }
247
- function __await(v) {
248
- return this instanceof __await ? (this.v = v, this) : new __await(v);
249
- }
250
- function __asyncGenerator(thisArg, _arguments, generator) {
251
- if (!Symbol.asyncIterator)
252
- throw new TypeError("Symbol.asyncIterator is not defined.");
253
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
254
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
255
- function verb(n) { if (g[n])
256
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
257
- function resume(n, v) { try {
258
- step(g[n](v));
259
- }
260
- catch (e) {
261
- settle(q[0][3], e);
262
- } }
263
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
264
- function fulfill(value) { resume("next", value); }
265
- function reject(value) { resume("throw", value); }
266
- function settle(f, v) { if (f(v), q.shift(), q.length)
267
- resume(q[0][0], q[0][1]); }
268
- }
269
- function __asyncDelegator(o) {
270
- var i, p;
271
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
272
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
273
- }
274
- function __asyncValues(o) {
275
- if (!Symbol.asyncIterator)
276
- throw new TypeError("Symbol.asyncIterator is not defined.");
277
- var m = o[Symbol.asyncIterator], i;
278
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
279
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
280
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
281
- }
282
- function __makeTemplateObject(cooked, raw) {
283
- if (Object.defineProperty) {
284
- Object.defineProperty(cooked, "raw", { value: raw });
285
- }
286
- else {
287
- cooked.raw = raw;
288
- }
289
- return cooked;
290
- }
291
- ;
292
- var __setModuleDefault = Object.create ? (function (o, v) {
293
- Object.defineProperty(o, "default", { enumerable: true, value: v });
294
- }) : function (o, v) {
295
- o["default"] = v;
296
- };
297
- function __importStar(mod) {
298
- if (mod && mod.__esModule)
299
- return mod;
300
- var result = {};
301
- if (mod != null)
302
- for (var k in mod)
303
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
304
- __createBinding(result, mod, k);
305
- __setModuleDefault(result, mod);
306
- return result;
307
- }
308
- function __importDefault(mod) {
309
- return (mod && mod.__esModule) ? mod : { default: mod };
310
- }
311
- function __classPrivateFieldGet(receiver, privateMap) {
312
- if (!privateMap.has(receiver)) {
313
- throw new TypeError("attempted to get private field on non-instance");
314
- }
315
- return privateMap.get(receiver);
316
- }
317
- function __classPrivateFieldSet(receiver, privateMap, value) {
318
- if (!privateMap.has(receiver)) {
319
- throw new TypeError("attempted to set private field on non-instance");
320
- }
321
- privateMap.set(receiver, value);
322
- return value;
323
- }
324
-
325
- var BaseElement = /** @class */ (function () {
326
- function BaseElement(ref) {
327
- this.onCreate = new core.EventEmitter();
328
- this.onReady = new core.EventEmitter();
329
- this.onAttach = new core.EventEmitter();
330
- this.onDetach = new core.EventEmitter();
331
- var that = this;
332
- this.nativeElement = ref.nativeElement;
333
- that.nativeElement.onAttached = function () {
334
- that.onAttach.emit(that.nativeElement);
335
- };
336
- that.nativeElement.onDetached = function () {
337
- that.onDetach.emit(that.nativeElement);
338
- };
339
- }
340
- BaseElement.prototype.addEventListener = function (type, listener, options) {
341
- if (options === void 0) { options = false; }
342
- this.nativeElement.addEventListener(type, listener, options);
343
- };
344
- BaseElement.prototype.removeEventListener = function (type, listener, options) {
345
- if (options === void 0) { options = false; }
346
- this.nativeElement.removeEventListener(type, listener, options);
347
- };
348
- BaseElement.prototype.dispatchEvent = function (event) {
349
- return this.nativeElement.dispatchEvent(event);
350
- };
351
- BaseElement.prototype.blur = function () {
352
- this.nativeElement.blur();
353
- };
354
- BaseElement.prototype.click = function () {
355
- this.nativeElement.click();
356
- };
357
- BaseElement.prototype.focus = function (options) {
358
- this.nativeElement.focus(options);
359
- };
360
- Object.defineProperty(BaseElement.prototype, "locale", {
361
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
362
- get: function () {
363
- return this.nativeElement ? this.nativeElement.locale : undefined;
364
- },
365
- set: function (value) {
366
- this.nativeElement ? this.nativeElement.locale = value : undefined;
367
- },
368
- enumerable: false,
369
- configurable: true
370
- });
371
- Object.defineProperty(BaseElement.prototype, "localizeFormatFunction", {
372
- /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
373
- get: function () {
374
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
375
- },
376
- set: function (value) {
377
- this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
378
- },
379
- enumerable: false,
380
- configurable: true
381
- });
382
- Object.defineProperty(BaseElement.prototype, "messages", {
383
- /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
384
- get: function () {
385
- return this.nativeElement ? this.nativeElement.messages : undefined;
386
- },
387
- set: function (value) {
388
- this.nativeElement ? this.nativeElement.messages = value : undefined;
389
- },
390
- enumerable: false,
391
- configurable: true
392
- });
393
- Object.defineProperty(BaseElement.prototype, "rightToLeft", {
394
- /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
395
- get: function () {
396
- return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
397
- },
398
- set: function (value) {
399
- this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
400
- },
401
- enumerable: false,
402
- configurable: true
403
- });
404
- Object.defineProperty(BaseElement.prototype, "theme", {
405
- /** @description Determines the theme. Theme defines the look of the element */
406
- get: function () {
407
- return this.nativeElement ? this.nativeElement.theme : undefined;
408
- },
409
- set: function (value) {
410
- this.nativeElement ? this.nativeElement.theme = value : undefined;
411
- },
412
- enumerable: false,
413
- configurable: true
414
- });
415
- return BaseElement;
416
- }());
417
- BaseElement.propDecorators = {
418
- onCreate: [{ type: core.Output }],
419
- onReady: [{ type: core.Output }],
420
- onAttach: [{ type: core.Output }],
421
- onDetach: [{ type: core.Output }],
422
- locale: [{ type: core.Input }],
423
- localizeFormatFunction: [{ type: core.Input }],
424
- messages: [{ type: core.Input }],
425
- rightToLeft: [{ type: core.Input }],
426
- theme: [{ type: core.Input }]
427
- };
428
- var Smart = window.Smart;
429
-
430
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
431
- provide: forms.NG_VALUE_ACCESSOR,
432
- useExisting: core.forwardRef(function () { return PasswordTextBoxComponent; }),
433
- multi: true
434
- };
435
- var PasswordTextBoxComponent = /** @class */ (function (_super) {
436
- __extends(PasswordTextBoxComponent, _super);
437
- function PasswordTextBoxComponent(ref) {
438
- var _this = _super.call(this, ref) || this;
439
- _this.eventHandlers = [];
440
- /**
441
- * @description
442
- * The registered callback function called when a change event occurs on the form elements.
443
- */
444
- _this._onChange = function () { };
445
- /**
446
- * @description
447
- * The registered callback function called when a blur event occurs on the form elements.
448
- */
449
- _this._onTouched = function () { };
450
- /** @description This event is triggered when the value of the element is changed.
451
- * @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
452
- * oldValue - The previous value of the element before it was changed.
453
- * value - The new value of the element.
454
- */
455
- _this.onChange = new core.EventEmitter();
456
- _this._initialChange = true;
457
- _this.nativeElement = ref.nativeElement;
458
- return _this;
459
- }
460
- /** @description Creates the component on demand.
461
- * @param properties An optional object of properties, which will be added to the template binded ones.
462
- */
463
- PasswordTextBoxComponent.prototype.createComponent = function (properties) {
464
- if (properties === void 0) { properties = {}; }
465
- this.nativeElement = document.createElement('smart-password-text-box');
466
- for (var propertyName in properties) {
467
- this.nativeElement[propertyName] = properties[propertyName];
468
- }
469
- return this.nativeElement;
470
- };
471
- Object.defineProperty(PasswordTextBoxComponent.prototype, "animation", {
472
- /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
473
- get: function () {
474
- return this.nativeElement ? this.nativeElement.animation : undefined;
475
- },
476
- set: function (value) {
477
- this.nativeElement ? this.nativeElement.animation = value : undefined;
478
- },
479
- enumerable: false,
480
- configurable: true
481
- });
482
- Object.defineProperty(PasswordTextBoxComponent.prototype, "autoFocus", {
483
- /** @description Specifies that the element should be focused when the page is loaded. */
484
- get: function () {
485
- return this.nativeElement ? this.nativeElement.autoFocus : undefined;
486
- },
487
- set: function (value) {
488
- this.nativeElement ? this.nativeElement.autoFocus = value : undefined;
489
- },
490
- enumerable: false,
491
- configurable: true
492
- });
493
- Object.defineProperty(PasswordTextBoxComponent.prototype, "disabled", {
494
- /** @description Enables or disables the element. */
495
- get: function () {
496
- return this.nativeElement ? this.nativeElement.disabled : undefined;
497
- },
498
- set: function (value) {
499
- this.nativeElement ? this.nativeElement.disabled = value : undefined;
500
- },
501
- enumerable: false,
502
- configurable: true
503
- });
504
- Object.defineProperty(PasswordTextBoxComponent.prototype, "enterKeyBehavior", {
505
- /** @description Specifies the behavior on "Enter" key press. Default mode is "submit". */
506
- get: function () {
507
- return this.nativeElement ? this.nativeElement.enterKeyBehavior : undefined;
508
- },
509
- set: function (value) {
510
- this.nativeElement ? this.nativeElement.enterKeyBehavior = value : undefined;
511
- },
512
- enumerable: false,
513
- configurable: true
514
- });
515
- Object.defineProperty(PasswordTextBoxComponent.prototype, "form", {
516
- /** @description The form that the element is associated with (its "form owner"). The value of the attribute must be the ID of a form element in the same document. */
517
- get: function () {
518
- return this.nativeElement ? this.nativeElement.form : undefined;
519
- },
520
- set: function (value) {
521
- this.nativeElement ? this.nativeElement.form = value : undefined;
522
- },
523
- enumerable: false,
524
- configurable: true
525
- });
526
- Object.defineProperty(PasswordTextBoxComponent.prototype, "hint", {
527
- /** @description Sets additional helper text below the element. Appears only when the element is focused. */
528
- get: function () {
529
- return this.nativeElement ? this.nativeElement.hint : undefined;
530
- },
531
- set: function (value) {
532
- this.nativeElement ? this.nativeElement.hint = value : undefined;
533
- },
534
- enumerable: false,
535
- configurable: true
536
- });
537
- Object.defineProperty(PasswordTextBoxComponent.prototype, "label", {
538
- /** @description Sets label above the element. The label is displayed above the input and it's always visible. */
539
- get: function () {
540
- return this.nativeElement ? this.nativeElement.label : undefined;
541
- },
542
- set: function (value) {
543
- this.nativeElement ? this.nativeElement.label = value : undefined;
544
- },
545
- enumerable: false,
546
- configurable: true
547
- });
548
- Object.defineProperty(PasswordTextBoxComponent.prototype, "locale", {
549
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
550
- get: function () {
551
- return this.nativeElement ? this.nativeElement.locale : undefined;
552
- },
553
- set: function (value) {
554
- this.nativeElement ? this.nativeElement.locale = value : undefined;
555
- },
556
- enumerable: false,
557
- configurable: true
558
- });
559
- Object.defineProperty(PasswordTextBoxComponent.prototype, "localizeFormatFunction", {
560
- /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
561
- get: function () {
562
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
563
- },
564
- set: function (value) {
565
- this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
566
- },
567
- enumerable: false,
568
- configurable: true
569
- });
570
- Object.defineProperty(PasswordTextBoxComponent.prototype, "maxLength", {
571
- /** @description Sets or gets the maximum number of characters that the user can enter. */
572
- get: function () {
573
- return this.nativeElement ? this.nativeElement.maxLength : undefined;
574
- },
575
- set: function (value) {
576
- this.nativeElement ? this.nativeElement.maxLength = value : undefined;
577
- },
578
- enumerable: false,
579
- configurable: true
580
- });
581
- Object.defineProperty(PasswordTextBoxComponent.prototype, "messages", {
582
- /** @description Sets an object with string values, related to the different states of passwords strength. */
583
- get: function () {
584
- return this.nativeElement ? this.nativeElement.messages : undefined;
585
- },
586
- set: function (value) {
587
- this.nativeElement ? this.nativeElement.messages = value : undefined;
588
- },
589
- enumerable: false,
590
- configurable: true
591
- });
592
- Object.defineProperty(PasswordTextBoxComponent.prototype, "minLength", {
593
- /** @description Sets or gets the minimum number of characters that the user can enter. */
594
- get: function () {
595
- return this.nativeElement ? this.nativeElement.minLength : undefined;
596
- },
597
- set: function (value) {
598
- this.nativeElement ? this.nativeElement.minLength = value : undefined;
599
- },
600
- enumerable: false,
601
- configurable: true
602
- });
603
- Object.defineProperty(PasswordTextBoxComponent.prototype, "name", {
604
- /** @description Sets or gets the name attribute for the element. Name is used when submiting HTML forms. */
605
- get: function () {
606
- return this.nativeElement ? this.nativeElement.name : undefined;
607
- },
608
- set: function (value) {
609
- this.nativeElement ? this.nativeElement.name = value : undefined;
610
- },
611
- enumerable: false,
612
- configurable: true
613
- });
614
- Object.defineProperty(PasswordTextBoxComponent.prototype, "passwordStrength", {
615
- /** @description With this property the user can set a custom callback function that determines the password strength. The returned string from the function determines the how strong the current password is. The string should be one of the following: 'short', 'weak', 'far', 'good', 'strong'. */
616
- get: function () {
617
- return this.nativeElement ? this.nativeElement.passwordStrength : undefined;
618
- },
619
- set: function (value) {
620
- this.nativeElement ? this.nativeElement.passwordStrength = value : undefined;
621
- },
622
- enumerable: false,
623
- configurable: true
624
- });
625
- Object.defineProperty(PasswordTextBoxComponent.prototype, "placeholder", {
626
- /** @description The placeholder text that is displayed when no value is applied to the element. */
627
- get: function () {
628
- return this.nativeElement ? this.nativeElement.placeholder : undefined;
629
- },
630
- set: function (value) {
631
- this.nativeElement ? this.nativeElement.placeholder = value : undefined;
632
- },
633
- enumerable: false,
634
- configurable: true
635
- });
636
- Object.defineProperty(PasswordTextBoxComponent.prototype, "required", {
637
- /** @description Specifies that the user must fill in a value before submitting a form that contains the element. */
638
- get: function () {
639
- return this.nativeElement ? this.nativeElement.required : undefined;
640
- },
641
- set: function (value) {
642
- this.nativeElement ? this.nativeElement.required = value : undefined;
643
- },
644
- enumerable: false,
645
- configurable: true
646
- });
647
- Object.defineProperty(PasswordTextBoxComponent.prototype, "rightToLeft", {
648
- /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
649
- get: function () {
650
- return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
651
- },
652
- set: function (value) {
653
- this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
654
- },
655
- enumerable: false,
656
- configurable: true
657
- });
658
- Object.defineProperty(PasswordTextBoxComponent.prototype, "selectAllOnFocus", {
659
- /** @description Specifies whether the content of the input will be selected on focus. */
660
- get: function () {
661
- return this.nativeElement ? this.nativeElement.selectAllOnFocus : undefined;
662
- },
663
- set: function (value) {
664
- this.nativeElement ? this.nativeElement.selectAllOnFocus = value : undefined;
665
- },
666
- enumerable: false,
667
- configurable: true
668
- });
669
- Object.defineProperty(PasswordTextBoxComponent.prototype, "showPasswordIcon", {
670
- /** @description Determines whether the password icon is visible. */
671
- get: function () {
672
- return this.nativeElement ? this.nativeElement.showPasswordIcon : undefined;
673
- },
674
- set: function (value) {
675
- this.nativeElement ? this.nativeElement.showPasswordIcon = value : undefined;
676
- },
677
- enumerable: false,
678
- configurable: true
679
- });
680
- Object.defineProperty(PasswordTextBoxComponent.prototype, "showPasswordStrength", {
681
- /** @description Determines whether a tooltip which shows the password's strength will be shown. */
682
- get: function () {
683
- return this.nativeElement ? this.nativeElement.showPasswordStrength : undefined;
684
- },
685
- set: function (value) {
686
- this.nativeElement ? this.nativeElement.showPasswordStrength = value : undefined;
687
- },
688
- enumerable: false,
689
- configurable: true
690
- });
691
- Object.defineProperty(PasswordTextBoxComponent.prototype, "theme", {
692
- /** @description Determines the theme. Theme defines the look of the element */
693
- get: function () {
694
- return this.nativeElement ? this.nativeElement.theme : undefined;
695
- },
696
- set: function (value) {
697
- this.nativeElement ? this.nativeElement.theme = value : undefined;
698
- },
699
- enumerable: false,
700
- configurable: true
701
- });
702
- Object.defineProperty(PasswordTextBoxComponent.prototype, "tooltipArrow", {
703
- /** @description Determines whether Tooltip's arrow will be shown or not. */
704
- get: function () {
705
- return this.nativeElement ? this.nativeElement.tooltipArrow : undefined;
706
- },
707
- set: function (value) {
708
- this.nativeElement ? this.nativeElement.tooltipArrow = value : undefined;
709
- },
710
- enumerable: false,
711
- configurable: true
712
- });
713
- Object.defineProperty(PasswordTextBoxComponent.prototype, "tooltipDelay", {
714
- /** @description Determines the delay before the tooltip appears in miliseconds. */
715
- get: function () {
716
- return this.nativeElement ? this.nativeElement.tooltipDelay : undefined;
717
- },
718
- set: function (value) {
719
- this.nativeElement ? this.nativeElement.tooltipDelay = value : undefined;
720
- },
721
- enumerable: false,
722
- configurable: true
723
- });
724
- Object.defineProperty(PasswordTextBoxComponent.prototype, "tooltipPosition", {
725
- /** @description Determines the position of the tooltip. */
726
- get: function () {
727
- return this.nativeElement ? this.nativeElement.tooltipPosition : undefined;
728
- },
729
- set: function (value) {
730
- this.nativeElement ? this.nativeElement.tooltipPosition = value : undefined;
731
- },
732
- enumerable: false,
733
- configurable: true
734
- });
735
- Object.defineProperty(PasswordTextBoxComponent.prototype, "tooltipTemplate", {
736
- /** @description Sets a custom template for the content of the tooltip. */
737
- get: function () {
738
- return this.nativeElement ? this.nativeElement.tooltipTemplate : undefined;
739
- },
740
- set: function (value) {
741
- this.nativeElement ? this.nativeElement.tooltipTemplate = value : undefined;
742
- },
743
- enumerable: false,
744
- configurable: true
745
- });
746
- Object.defineProperty(PasswordTextBoxComponent.prototype, "unfocusable", {
747
- /** @description If true, the element cannot be focused. */
748
- get: function () {
749
- return this.nativeElement ? this.nativeElement.unfocusable : undefined;
750
- },
751
- set: function (value) {
752
- this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
753
- },
754
- enumerable: false,
755
- configurable: true
756
- });
757
- Object.defineProperty(PasswordTextBoxComponent.prototype, "value", {
758
- /** @description Sets or gets the value of the element. */
759
- get: function () {
760
- return this.nativeElement ? this.nativeElement.value : undefined;
761
- },
762
- set: function (value) {
763
- this.nativeElement ? this.nativeElement.value = value : undefined;
764
- },
765
- enumerable: false,
766
- configurable: true
767
- });
768
- /** @description Focuses the element.
769
- */
770
- PasswordTextBoxComponent.prototype.focus = function () {
771
- var _this = this;
772
- if (this.nativeElement.isRendered) {
773
- this.nativeElement.focus();
774
- }
775
- else {
776
- this.nativeElement.whenRendered(function () {
777
- _this.nativeElement.focus();
778
- });
779
- }
780
- };
781
- /** @description The method is used to reset input to it's initial value.
782
- */
783
- PasswordTextBoxComponent.prototype.reset = function () {
784
- var _this = this;
785
- if (this.nativeElement.isRendered) {
786
- this.nativeElement.reset();
787
- }
788
- else {
789
- this.nativeElement.whenRendered(function () {
790
- _this.nativeElement.reset();
791
- });
792
- }
793
- };
794
- Object.defineProperty(PasswordTextBoxComponent.prototype, "isRendered", {
795
- get: function () {
796
- return this.nativeElement ? this.nativeElement.isRendered : false;
797
- },
798
- enumerable: false,
799
- configurable: true
800
- });
801
- PasswordTextBoxComponent.prototype.ngOnInit = function () {
802
- };
803
- PasswordTextBoxComponent.prototype.ngAfterViewInit = function () {
804
- var that = this;
805
- that.onCreate.emit(that.nativeElement);
806
- Smart.Render();
807
- this.nativeElement.classList.add('smart-angular');
808
- this.nativeElement.whenRendered(function () { that.onReady.emit(that.nativeElement); });
809
- this.listen();
810
- };
811
- PasswordTextBoxComponent.prototype.ngOnDestroy = function () {
812
- this.unlisten();
813
- };
814
- Object.defineProperty(PasswordTextBoxComponent.prototype, "ngValue", {
815
- get: function () {
816
- if (!this.nativeElement) {
817
- return null;
818
- }
819
- var value = this.nativeElement.value;
820
- return value;
821
- },
822
- set: function (value) {
823
- if (this.nativeElement) {
824
- this.writeValue(value);
825
- }
826
- },
827
- enumerable: false,
828
- configurable: true
829
- });
830
- PasswordTextBoxComponent.prototype.writeValue = function (value) {
831
- var that = this;
832
- var normalizedValue = value == null ? '' : value;
833
- that.nativeElement.whenRendered(function () {
834
- that.value = normalizedValue;
835
- if (that._initialChange === false) {
836
- that._onChange(that.value);
837
- }
838
- });
839
- };
840
- PasswordTextBoxComponent.prototype.registerOnChange = function (fn) {
841
- this._onChange = fn;
842
- };
843
- PasswordTextBoxComponent.prototype.registerOnTouched = function (fn) {
844
- this._onTouched = fn;
845
- };
846
- PasswordTextBoxComponent.prototype.ngOnChanges = function (changes) {
847
- if (this.nativeElement && this.nativeElement.isRendered) {
848
- for (var propName in changes) {
849
- if (changes.hasOwnProperty(propName)) {
850
- this.nativeElement[propName] = changes[propName].currentValue;
851
- }
852
- }
853
- }
854
- };
855
- /** @description Add event listeners. */
856
- PasswordTextBoxComponent.prototype.listen = function () {
857
- var that = this;
858
- that.eventHandlers['changeHandler'] = function (event) { that.onChange.emit(event); };
859
- that.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);
860
- that.eventHandlers['changeModelHandler'] = function (event) {
861
- that._initialChange = false;
862
- that._onChange(that.nativeElement.value);
863
- };
864
- that.eventHandlers['blurModelHandler'] = function (event) {
865
- that._onTouched();
866
- };
867
- that.nativeElement.whenRendered(function () {
868
- if (that.nativeElement.querySelector('input')) {
869
- that.eventHandlers['keyupModelHandler'] = function (event) {
870
- setTimeout(function () { that.eventHandlers['changeModelHandler'](event); }, 50);
871
- };
872
- that.nativeElement.querySelector('input').addEventListener('keyup', that.eventHandlers['keyupModelHandler']);
873
- }
874
- });
875
- that.nativeElement.addEventListener('change', that.eventHandlers['changeModelHandler']);
876
- that.nativeElement.addEventListener('blur', that.eventHandlers['blurModelHandler']);
877
- };
878
- /** @description Remove event listeners. */
879
- PasswordTextBoxComponent.prototype.unlisten = function () {
880
- var that = this;
881
- if (that.eventHandlers['changeHandler']) {
882
- that.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);
883
- }
884
- if (that.eventHandlers['changeModelHandler']) {
885
- that.nativeElement.removeEventListener('change', that.eventHandlers['changeModelHandler']);
886
- if (that.nativeElement.querySelector('input')) {
887
- that.nativeElement.querySelector('input').removeEventListener('keyup', that.eventHandlers['keyupModelHandler']);
888
- }
889
- }
890
- if (that.eventHandlers['blurModelHandler']) {
891
- that.nativeElement.removeEventListener('blur', that.eventHandlers['blurModelHandler']);
892
- }
893
- };
894
- return PasswordTextBoxComponent;
895
- }(BaseElement));
896
- PasswordTextBoxComponent.decorators = [
897
- { type: core.Directive, args: [{
898
- selector: 'smart-password-text-box, [smart-password-text-box]',
899
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR]
900
- },] }
901
- ];
902
- PasswordTextBoxComponent.ctorParameters = function () { return [
903
- { type: core.ElementRef }
904
- ]; };
905
- PasswordTextBoxComponent.propDecorators = {
906
- animation: [{ type: core.Input }],
907
- autoFocus: [{ type: core.Input }],
908
- disabled: [{ type: core.Input }],
909
- enterKeyBehavior: [{ type: core.Input }],
910
- form: [{ type: core.Input }],
911
- hint: [{ type: core.Input }],
912
- label: [{ type: core.Input }],
913
- locale: [{ type: core.Input }],
914
- localizeFormatFunction: [{ type: core.Input }],
915
- maxLength: [{ type: core.Input }],
916
- messages: [{ type: core.Input }],
917
- minLength: [{ type: core.Input }],
918
- name: [{ type: core.Input }],
919
- passwordStrength: [{ type: core.Input }],
920
- placeholder: [{ type: core.Input }],
921
- required: [{ type: core.Input }],
922
- rightToLeft: [{ type: core.Input }],
923
- selectAllOnFocus: [{ type: core.Input }],
924
- showPasswordIcon: [{ type: core.Input }],
925
- showPasswordStrength: [{ type: core.Input }],
926
- theme: [{ type: core.Input }],
927
- tooltipArrow: [{ type: core.Input }],
928
- tooltipDelay: [{ type: core.Input }],
929
- tooltipPosition: [{ type: core.Input }],
930
- tooltipTemplate: [{ type: core.Input }],
931
- unfocusable: [{ type: core.Input }],
932
- value: [{ type: core.Input }],
933
- onChange: [{ type: core.Output }]
934
- };
935
-
936
- var PasswordTextBoxModule = /** @class */ (function () {
937
- function PasswordTextBoxModule() {
938
- }
939
- return PasswordTextBoxModule;
940
- }());
941
- PasswordTextBoxModule.decorators = [
942
- { type: core.NgModule, args: [{
943
- declarations: [PasswordTextBoxComponent],
944
- schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
945
- exports: [PasswordTextBoxComponent]
946
- },] }
947
- ];
948
-
949
- /**
950
- * Generated bundle index. Do not edit.
951
- */
952
-
953
- exports.PasswordTextBoxComponent = PasswordTextBoxComponent;
954
- exports.PasswordTextBoxModule = PasswordTextBoxModule;
955
- exports.Smart = Smart;
956
- exports.ɵa = BaseElement;
957
-
958
- Object.defineProperty(exports, '__esModule', { value: true });
959
-
960
- })));
961
- //# sourceMappingURL=smart-webcomponents-angular-passwordtextbox.umd.js.map