@smart-webcomponents-angular/tooltip 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 (48) 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 +4 -4
  5. package/demo/package.json +2 -2
  6. package/demo/src/tsconfig.app.json +15 -15
  7. package/demo/src/tsconfig.json +23 -23
  8. package/esm2020/tooltip/index.mjs +2 -0
  9. package/{esm2015/tooltip/public_api.js → esm2020/tooltip/public_api.mjs} +0 -0
  10. package/{esm2015/tooltip/smart-webcomponents-angular-tooltip.js → esm2020/tooltip/smart-webcomponents-angular-tooltip.mjs} +2 -3
  11. package/esm2020/tooltip/smart.element.mjs +99 -0
  12. package/esm2020/tooltip/smart.tooltip.mjs +313 -0
  13. package/esm2020/tooltip/smart.tooltip.module.mjs +18 -0
  14. package/fesm2015/{smart-webcomponents-angular-tooltip.js → smart-webcomponents-angular-tooltip.mjs} +100 -52
  15. package/fesm2015/smart-webcomponents-angular-tooltip.mjs.map +1 -0
  16. package/fesm2020/smart-webcomponents-angular-tooltip.mjs +438 -0
  17. package/fesm2020/smart-webcomponents-angular-tooltip.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/source/modules/smart.tooltip.js +1 -1
  22. package/source/smart.button.js +2 -2
  23. package/source/smart.element.js +2 -2
  24. package/source/smart.tooltip.js +2 -2
  25. package/styles/font/smart-icons.eot +0 -0
  26. package/styles/font/smart-icons.svg +64 -2
  27. package/styles/font/smart-icons.ttf +0 -0
  28. package/styles/font/smart-icons.woff +0 -0
  29. package/styles/font/smart-icons.woff2 +0 -0
  30. package/styles/smart.base.css +4 -4
  31. package/styles/smart.common.css +1 -1
  32. package/tooltip/index.d.ts +1 -0
  33. package/tooltip/smart-webcomponents-angular-tooltip.d.ts +2 -2
  34. package/tooltip/smart.element.d.ts +4 -1
  35. package/tooltip/smart.tooltip.d.ts +6 -0
  36. package/tooltip/smart.tooltip.module.d.ts +5 -0
  37. package/bundles/smart-webcomponents-angular-tooltip.umd.js +0 -816
  38. package/bundles/smart-webcomponents-angular-tooltip.umd.min.js +0 -25
  39. package/demo/src/app/app.component.ts +0 -53
  40. package/demo/src/app/app.module.ts +0 -17
  41. package/demo/src/app/main.ts +0 -6
  42. package/demo/src/main.ts +0 -16
  43. package/demo/src/polyfills.ts +0 -73
  44. package/esm2015/tooltip/smart.element.js +0 -83
  45. package/esm2015/tooltip/smart.tooltip.js +0 -284
  46. package/esm2015/tooltip/smart.tooltip.module.js +0 -13
  47. package/fesm2015/smart-webcomponents-angular-tooltip.js.map +0 -1
  48. package/tooltip/smart-webcomponents-angular-tooltip.metadata.json +0 -1
@@ -1,816 +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.tooltip';
9
-
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
12
- typeof define === 'function' && define.amd ? define('smart-webcomponents-angular/tooltip', ['exports', '@angular/core'], factory) :
13
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['smart-webcomponents-angular'] = global['smart-webcomponents-angular'] || {}, global['smart-webcomponents-angular'].tooltip = {}), global.ng.core));
14
- }(this, (function (exports, core) { '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 TooltipComponent = /** @class */ (function (_super) {
431
- __extends(TooltipComponent, _super);
432
- function TooltipComponent(ref) {
433
- var _this = _super.call(this, ref) || this;
434
- _this.eventHandlers = [];
435
- /** @description This event is triggered when the tooltip is opened.
436
- * @param event. The custom event. */
437
- _this.onOpen = new core.EventEmitter();
438
- /** @description This event is triggered before the tooltip is opened. The event can be prevented via event.preventDefault().
439
- * @param event. The custom event. */
440
- _this.onOpening = new core.EventEmitter();
441
- /** @description This event is triggered when the tooltip is closed.
442
- * @param event. The custom event. */
443
- _this.onClose = new core.EventEmitter();
444
- /** @description This event is triggered before the tooltip is closed. The event can be prevented via event.preventDefault().
445
- * @param event. The custom event. */
446
- _this.onClosing = new core.EventEmitter();
447
- _this.nativeElement = ref.nativeElement;
448
- return _this;
449
- }
450
- /** @description Creates the component on demand.
451
- * @param properties An optional object of properties, which will be added to the template binded ones.
452
- */
453
- TooltipComponent.prototype.createComponent = function (properties) {
454
- if (properties === void 0) { properties = {}; }
455
- this.nativeElement = document.createElement('smart-tooltip');
456
- for (var propertyName in properties) {
457
- this.nativeElement[propertyName] = properties[propertyName];
458
- }
459
- return this.nativeElement;
460
- };
461
- Object.defineProperty(TooltipComponent.prototype, "animation", {
462
- /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
463
- get: function () {
464
- return this.nativeElement ? this.nativeElement.animation : undefined;
465
- },
466
- set: function (value) {
467
- this.nativeElement ? this.nativeElement.animation = value : undefined;
468
- },
469
- enumerable: false,
470
- configurable: true
471
- });
472
- Object.defineProperty(TooltipComponent.prototype, "arrow", {
473
- /** @description Gets or sets whether a tooltip's arrow will be shown. */
474
- get: function () {
475
- return this.nativeElement ? this.nativeElement.arrow : undefined;
476
- },
477
- set: function (value) {
478
- this.nativeElement ? this.nativeElement.arrow = value : undefined;
479
- },
480
- enumerable: false,
481
- configurable: true
482
- });
483
- Object.defineProperty(TooltipComponent.prototype, "arrowDirection", {
484
- /** @description Sets the position of the arrow. */
485
- get: function () {
486
- return this.nativeElement ? this.nativeElement.arrowDirection : undefined;
487
- },
488
- set: function (value) {
489
- this.nativeElement ? this.nativeElement.arrowDirection = value : undefined;
490
- },
491
- enumerable: false,
492
- configurable: true
493
- });
494
- Object.defineProperty(TooltipComponent.prototype, "delay", {
495
- /** @description Gets or sets whether a tooltip's arrow will be shown. */
496
- get: function () {
497
- return this.nativeElement ? this.nativeElement.delay : undefined;
498
- },
499
- set: function (value) {
500
- this.nativeElement ? this.nativeElement.delay = value : undefined;
501
- },
502
- enumerable: false,
503
- configurable: true
504
- });
505
- Object.defineProperty(TooltipComponent.prototype, "disabled", {
506
- /** @description Enables or disables the tooltip. */
507
- get: function () {
508
- return this.nativeElement ? this.nativeElement.disabled : undefined;
509
- },
510
- set: function (value) {
511
- this.nativeElement ? this.nativeElement.disabled = value : undefined;
512
- },
513
- enumerable: false,
514
- configurable: true
515
- });
516
- Object.defineProperty(TooltipComponent.prototype, "offset", {
517
- /** @description Sets an offset by X and Y. */
518
- get: function () {
519
- return this.nativeElement ? this.nativeElement.offset : undefined;
520
- },
521
- set: function (value) {
522
- this.nativeElement ? this.nativeElement.offset = value : undefined;
523
- },
524
- enumerable: false,
525
- configurable: true
526
- });
527
- Object.defineProperty(TooltipComponent.prototype, "locale", {
528
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
529
- get: function () {
530
- return this.nativeElement ? this.nativeElement.locale : undefined;
531
- },
532
- set: function (value) {
533
- this.nativeElement ? this.nativeElement.locale = value : undefined;
534
- },
535
- enumerable: false,
536
- configurable: true
537
- });
538
- Object.defineProperty(TooltipComponent.prototype, "localizeFormatFunction", {
539
- /** @description Callback, related to localization module. */
540
- get: function () {
541
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
542
- },
543
- set: function (value) {
544
- this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
545
- },
546
- enumerable: false,
547
- configurable: true
548
- });
549
- Object.defineProperty(TooltipComponent.prototype, "messages", {
550
- /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property language. */
551
- get: function () {
552
- return this.nativeElement ? this.nativeElement.messages : undefined;
553
- },
554
- set: function (value) {
555
- this.nativeElement ? this.nativeElement.messages = value : undefined;
556
- },
557
- enumerable: false,
558
- configurable: true
559
- });
560
- Object.defineProperty(TooltipComponent.prototype, "openMode", {
561
- /** @description Sets or gets the way of triggering the tooltip. */
562
- get: function () {
563
- return this.nativeElement ? this.nativeElement.openMode : undefined;
564
- },
565
- set: function (value) {
566
- this.nativeElement ? this.nativeElement.openMode = value : undefined;
567
- },
568
- enumerable: false,
569
- configurable: true
570
- });
571
- Object.defineProperty(TooltipComponent.prototype, "position", {
572
- /** @description Gets or sets the position of the tooltip. */
573
- get: function () {
574
- return this.nativeElement ? this.nativeElement.position : undefined;
575
- },
576
- set: function (value) {
577
- this.nativeElement ? this.nativeElement.position = value : undefined;
578
- },
579
- enumerable: false,
580
- configurable: true
581
- });
582
- Object.defineProperty(TooltipComponent.prototype, "selector", {
583
- /** @description Sets the element which triggers the tooltip. */
584
- get: function () {
585
- return this.nativeElement ? this.nativeElement.selector : undefined;
586
- },
587
- set: function (value) {
588
- this.nativeElement ? this.nativeElement.selector = value : undefined;
589
- },
590
- enumerable: false,
591
- configurable: true
592
- });
593
- Object.defineProperty(TooltipComponent.prototype, "theme", {
594
- /** @description Determines the theme. Theme defines the look of the element */
595
- get: function () {
596
- return this.nativeElement ? this.nativeElement.theme : undefined;
597
- },
598
- set: function (value) {
599
- this.nativeElement ? this.nativeElement.theme = value : undefined;
600
- },
601
- enumerable: false,
602
- configurable: true
603
- });
604
- Object.defineProperty(TooltipComponent.prototype, "tooltipTemplate", {
605
- /** @description Sets custom tooltip template. */
606
- get: function () {
607
- return this.nativeElement ? this.nativeElement.tooltipTemplate : undefined;
608
- },
609
- set: function (value) {
610
- this.nativeElement ? this.nativeElement.tooltipTemplate = value : undefined;
611
- },
612
- enumerable: false,
613
- configurable: true
614
- });
615
- Object.defineProperty(TooltipComponent.prototype, "unfocusable", {
616
- /** @description If is set to true, the element cannot be focused. */
617
- get: function () {
618
- return this.nativeElement ? this.nativeElement.unfocusable : undefined;
619
- },
620
- set: function (value) {
621
- this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
622
- },
623
- enumerable: false,
624
- configurable: true
625
- });
626
- Object.defineProperty(TooltipComponent.prototype, "value", {
627
- /** @description Sets or gets the widget's value. */
628
- get: function () {
629
- return this.nativeElement ? this.nativeElement.value : undefined;
630
- },
631
- set: function (value) {
632
- this.nativeElement ? this.nativeElement.value = value : undefined;
633
- },
634
- enumerable: false,
635
- configurable: true
636
- });
637
- Object.defineProperty(TooltipComponent.prototype, "visible", {
638
- /** @description Sets or gets the visibility of the tooltip. */
639
- get: function () {
640
- return this.nativeElement ? this.nativeElement.visible : undefined;
641
- },
642
- set: function (value) {
643
- this.nativeElement ? this.nativeElement.visible = value : undefined;
644
- },
645
- enumerable: false,
646
- configurable: true
647
- });
648
- /** @description Closes smart-tooltip.
649
- */
650
- TooltipComponent.prototype.close = function () {
651
- var _this = this;
652
- if (this.nativeElement.isRendered) {
653
- this.nativeElement.close();
654
- }
655
- else {
656
- this.nativeElement.whenRendered(function () {
657
- _this.nativeElement.close();
658
- });
659
- }
660
- };
661
- /** @description Opens smart-tooltip.
662
- */
663
- TooltipComponent.prototype.open = function () {
664
- var _this = this;
665
- if (this.nativeElement.isRendered) {
666
- this.nativeElement.open();
667
- }
668
- else {
669
- this.nativeElement.whenRendered(function () {
670
- _this.nativeElement.open();
671
- });
672
- }
673
- };
674
- /** @description Toggles smart-tooltip.
675
- */
676
- TooltipComponent.prototype.toggle = function () {
677
- var _this = this;
678
- if (this.nativeElement.isRendered) {
679
- this.nativeElement.toggle();
680
- }
681
- else {
682
- this.nativeElement.whenRendered(function () {
683
- _this.nativeElement.toggle();
684
- });
685
- }
686
- };
687
- /** @description Clears the content of the Tooltip.
688
- */
689
- TooltipComponent.prototype.clear = function () {
690
- var _this = this;
691
- if (this.nativeElement.isRendered) {
692
- this.nativeElement.clear();
693
- }
694
- else {
695
- this.nativeElement.whenRendered(function () {
696
- _this.nativeElement.clear();
697
- });
698
- }
699
- };
700
- Object.defineProperty(TooltipComponent.prototype, "isRendered", {
701
- get: function () {
702
- return this.nativeElement ? this.nativeElement.isRendered : false;
703
- },
704
- enumerable: false,
705
- configurable: true
706
- });
707
- TooltipComponent.prototype.ngOnInit = function () {
708
- };
709
- TooltipComponent.prototype.ngAfterViewInit = function () {
710
- var that = this;
711
- that.onCreate.emit(that.nativeElement);
712
- Smart.Render();
713
- this.nativeElement.classList.add('smart-angular');
714
- this.nativeElement.whenRendered(function () { that.onReady.emit(that.nativeElement); });
715
- this.listen();
716
- };
717
- TooltipComponent.prototype.ngOnDestroy = function () {
718
- this.unlisten();
719
- };
720
- TooltipComponent.prototype.ngOnChanges = function (changes) {
721
- if (this.nativeElement && this.nativeElement.isRendered) {
722
- for (var propName in changes) {
723
- if (changes.hasOwnProperty(propName)) {
724
- this.nativeElement[propName] = changes[propName].currentValue;
725
- }
726
- }
727
- }
728
- };
729
- /** @description Add event listeners. */
730
- TooltipComponent.prototype.listen = function () {
731
- var that = this;
732
- that.eventHandlers['openHandler'] = function (event) { that.onOpen.emit(event); };
733
- that.nativeElement.addEventListener('open', that.eventHandlers['openHandler']);
734
- that.eventHandlers['openingHandler'] = function (event) { that.onOpening.emit(event); };
735
- that.nativeElement.addEventListener('opening', that.eventHandlers['openingHandler']);
736
- that.eventHandlers['closeHandler'] = function (event) { that.onClose.emit(event); };
737
- that.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);
738
- that.eventHandlers['closingHandler'] = function (event) { that.onClosing.emit(event); };
739
- that.nativeElement.addEventListener('closing', that.eventHandlers['closingHandler']);
740
- };
741
- /** @description Remove event listeners. */
742
- TooltipComponent.prototype.unlisten = function () {
743
- var that = this;
744
- if (that.eventHandlers['openHandler']) {
745
- that.nativeElement.removeEventListener('open', that.eventHandlers['openHandler']);
746
- }
747
- if (that.eventHandlers['openingHandler']) {
748
- that.nativeElement.removeEventListener('opening', that.eventHandlers['openingHandler']);
749
- }
750
- if (that.eventHandlers['closeHandler']) {
751
- that.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);
752
- }
753
- if (that.eventHandlers['closingHandler']) {
754
- that.nativeElement.removeEventListener('closing', that.eventHandlers['closingHandler']);
755
- }
756
- };
757
- return TooltipComponent;
758
- }(BaseElement));
759
- TooltipComponent.decorators = [
760
- { type: core.Directive, args: [{
761
- selector: 'smart-tooltip, [smart-tooltip]'
762
- },] }
763
- ];
764
- TooltipComponent.ctorParameters = function () { return [
765
- { type: core.ElementRef }
766
- ]; };
767
- TooltipComponent.propDecorators = {
768
- animation: [{ type: core.Input }],
769
- arrow: [{ type: core.Input }],
770
- arrowDirection: [{ type: core.Input }],
771
- delay: [{ type: core.Input }],
772
- disabled: [{ type: core.Input }],
773
- offset: [{ type: core.Input }],
774
- locale: [{ type: core.Input }],
775
- localizeFormatFunction: [{ type: core.Input }],
776
- messages: [{ type: core.Input }],
777
- openMode: [{ type: core.Input }],
778
- position: [{ type: core.Input }],
779
- selector: [{ type: core.Input }],
780
- theme: [{ type: core.Input }],
781
- tooltipTemplate: [{ type: core.Input }],
782
- unfocusable: [{ type: core.Input }],
783
- value: [{ type: core.Input }],
784
- visible: [{ type: core.Input }],
785
- onOpen: [{ type: core.Output }],
786
- onOpening: [{ type: core.Output }],
787
- onClose: [{ type: core.Output }],
788
- onClosing: [{ type: core.Output }]
789
- };
790
-
791
- var TooltipModule = /** @class */ (function () {
792
- function TooltipModule() {
793
- }
794
- return TooltipModule;
795
- }());
796
- TooltipModule.decorators = [
797
- { type: core.NgModule, args: [{
798
- declarations: [TooltipComponent],
799
- schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
800
- exports: [TooltipComponent]
801
- },] }
802
- ];
803
-
804
- /**
805
- * Generated bundle index. Do not edit.
806
- */
807
-
808
- exports.Smart = Smart;
809
- exports.TooltipComponent = TooltipComponent;
810
- exports.TooltipModule = TooltipModule;
811
- exports.ɵa = BaseElement;
812
-
813
- Object.defineProperty(exports, '__esModule', { value: true });
814
-
815
- })));
816
- //# sourceMappingURL=smart-webcomponents-angular-tooltip.umd.js.map