@bravura/ui 1.6.0 → 1.8.0

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 (116) hide show
  1. package/CHANGELOG.md +36 -11
  2. package/LICENSE +6 -6
  3. package/behavior/behavior.module.d.ts +12 -12
  4. package/behavior/bravura-ui-behavior.d.ts +5 -5
  5. package/behavior/public-api.d.ts +3 -3
  6. package/behavior/sizing-monitor.directive.d.ts +23 -23
  7. package/behavior/sizing.directive.d.ts +94 -88
  8. package/bravura-ui.d.ts +5 -5
  9. package/bundles/bravura-ui-behavior.umd.js +631 -601
  10. package/bundles/bravura-ui-behavior.umd.js.map +1 -1
  11. package/bundles/bravura-ui-discrete-input.umd.js +695 -697
  12. package/bundles/bravura-ui-discrete-input.umd.js.map +1 -1
  13. package/bundles/bravura-ui-form-field.umd.js +440 -434
  14. package/bundles/bravura-ui-form-field.umd.js.map +1 -1
  15. package/bundles/bravura-ui-icon-font.umd.js +488 -490
  16. package/bundles/bravura-ui-icon-font.umd.js.map +1 -1
  17. package/bundles/bravura-ui-phone-number.umd.js +634 -636
  18. package/bundles/bravura-ui-phone-number.umd.js.map +1 -1
  19. package/bundles/bravura-ui-radio-panel.umd.js +466 -468
  20. package/bundles/bravura-ui-radio-panel.umd.js.map +1 -1
  21. package/bundles/bravura-ui-selection-panel.umd.js +613 -615
  22. package/bundles/bravura-ui-selection-panel.umd.js.map +1 -1
  23. package/bundles/bravura-ui-tooltip.umd.js +518 -479
  24. package/bundles/bravura-ui-tooltip.umd.js.map +1 -1
  25. package/bundles/bravura-ui.umd.js +4 -4
  26. package/bundles/bravura-ui.umd.js.map +1 -1
  27. package/discrete-input/bravura-ui-discrete-input.d.ts +5 -5
  28. package/discrete-input/discrete-input.component.d.ts +138 -138
  29. package/discrete-input/discrete-input.module.d.ts +11 -11
  30. package/discrete-input/public-api.d.ts +2 -2
  31. package/esm2015/behavior/behavior.module.js +21 -21
  32. package/esm2015/behavior/bravura-ui-behavior.js +4 -4
  33. package/esm2015/behavior/public-api.js +3 -3
  34. package/esm2015/behavior/sizing-monitor.directive.js +30 -30
  35. package/esm2015/behavior/sizing.directive.js +245 -217
  36. package/esm2015/bravura-ui.js +4 -4
  37. package/esm2015/discrete-input/bravura-ui-discrete-input.js +4 -4
  38. package/esm2015/discrete-input/discrete-input.component.js +332 -332
  39. package/esm2015/discrete-input/discrete-input.module.js +19 -19
  40. package/esm2015/discrete-input/public-api.js +2 -2
  41. package/esm2015/form-field/bravura-ui-form-field.js +4 -4
  42. package/esm2015/form-field/form-field.component.js +104 -96
  43. package/esm2015/form-field/form-field.module.js +19 -19
  44. package/esm2015/form-field/public-api.js +2 -2
  45. package/esm2015/icon-font/bravura-ui-icon-font.js +4 -4
  46. package/esm2015/icon-font/icon-font.module.js +21 -21
  47. package/esm2015/icon-font/icon.directive.js +101 -101
  48. package/esm2015/icon-font/public-api.js +3 -3
  49. package/esm2015/icon-font/utilities.js +50 -50
  50. package/esm2015/phone-number/bravura-ui-phone-number.js +4 -4
  51. package/esm2015/phone-number/phone-number.directive.js +191 -191
  52. package/esm2015/phone-number/phone-number.module.js +23 -23
  53. package/esm2015/phone-number/phone-number.pipe.js +46 -46
  54. package/esm2015/phone-number/phone-number.validator.js +63 -63
  55. package/esm2015/phone-number/public-api.js +1 -1
  56. package/esm2015/public-api.js +2 -2
  57. package/esm2015/radio-panel/bravura-ui-radio-panel.js +4 -4
  58. package/esm2015/radio-panel/public-api.js +4 -4
  59. package/esm2015/radio-panel/radio-panel-item.component.js +76 -76
  60. package/esm2015/radio-panel/radio-panel.directive.js +59 -59
  61. package/esm2015/radio-panel/radio-panel.module.js +24 -24
  62. package/esm2015/selection-panel/bravura-ui-selection-panel.js +4 -4
  63. package/esm2015/selection-panel/public-api.js +3 -3
  64. package/esm2015/selection-panel/selection-panel-item.component.js +143 -143
  65. package/esm2015/selection-panel/selection-panel.directive.js +116 -116
  66. package/esm2015/selection-panel/selection-panel.module.js +20 -20
  67. package/esm2015/tooltip/bravura-ui-tooltip.js +4 -4
  68. package/esm2015/tooltip/public-api.js +2 -2
  69. package/esm2015/tooltip/tooltip.component.js +52 -44
  70. package/esm2015/tooltip/tooltip.directive.js +110 -83
  71. package/esm2015/tooltip/tooltip.module.js +25 -25
  72. package/fesm2015/bravura-ui-behavior.js +281 -253
  73. package/fesm2015/bravura-ui-behavior.js.map +1 -1
  74. package/fesm2015/bravura-ui-discrete-input.js +332 -332
  75. package/fesm2015/bravura-ui-form-field.js +111 -103
  76. package/fesm2015/bravura-ui-form-field.js.map +1 -1
  77. package/fesm2015/bravura-ui-icon-font.js +162 -162
  78. package/fesm2015/bravura-ui-phone-number.js +300 -300
  79. package/fesm2015/bravura-ui-radio-panel.js +135 -135
  80. package/fesm2015/bravura-ui-selection-panel.js +258 -258
  81. package/fesm2015/bravura-ui-tooltip.js +163 -128
  82. package/fesm2015/bravura-ui-tooltip.js.map +1 -1
  83. package/fesm2015/bravura-ui.js +2 -2
  84. package/fesm2015/bravura-ui.js.map +1 -1
  85. package/form-field/bravura-ui-form-field.d.ts +5 -5
  86. package/form-field/form-field.component.d.ts +27 -27
  87. package/form-field/form-field.module.d.ts +10 -10
  88. package/form-field/public-api.d.ts +2 -2
  89. package/icon-font/bravura-ui-icon-font.d.ts +5 -5
  90. package/icon-font/icon-font.module.d.ts +12 -12
  91. package/icon-font/icon.directive.d.ts +46 -46
  92. package/icon-font/public-api.d.ts +3 -3
  93. package/icon-font/utilities.d.ts +20 -20
  94. package/package.json +1 -1
  95. package/phone-number/bravura-ui-phone-number.d.ts +5 -5
  96. package/phone-number/phone-number.directive.d.ts +66 -66
  97. package/phone-number/phone-number.module.d.ts +17 -17
  98. package/phone-number/phone-number.pipe.d.ts +13 -13
  99. package/phone-number/phone-number.validator.d.ts +31 -31
  100. package/phone-number/public-api.d.ts +1 -1
  101. package/public-api.d.ts +1 -1
  102. package/radio-panel/bravura-ui-radio-panel.d.ts +5 -5
  103. package/radio-panel/public-api.d.ts +3 -3
  104. package/radio-panel/radio-panel-item.component.d.ts +17 -17
  105. package/radio-panel/radio-panel.directive.d.ts +26 -26
  106. package/radio-panel/radio-panel.module.d.ts +15 -15
  107. package/selection-panel/bravura-ui-selection-panel.d.ts +5 -5
  108. package/selection-panel/public-api.d.ts +3 -3
  109. package/selection-panel/selection-panel-item.component.d.ts +63 -63
  110. package/selection-panel/selection-panel.directive.d.ts +67 -67
  111. package/selection-panel/selection-panel.module.d.ts +12 -12
  112. package/tooltip/bravura-ui-tooltip.d.ts +5 -5
  113. package/tooltip/public-api.d.ts +2 -2
  114. package/tooltip/tooltip.component.d.ts +24 -14
  115. package/tooltip/tooltip.directive.d.ts +39 -36
  116. package/tooltip/tooltip.module.d.ts +13 -13
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/common'), require('@angular/core'), require('@angular/material/core'), require('@angular/material/tooltip'), require('@angular/cdk/layout'), require('@angular/platform-browser'), require('@angular/cdk/platform'), require('@angular/cdk/bidi')) :
3
- typeof define === 'function' && define.amd ? define('@bravura/ui/tooltip', ['exports', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/common', '@angular/core', '@angular/material/core', '@angular/material/tooltip', '@angular/cdk/layout', '@angular/platform-browser', '@angular/cdk/platform', '@angular/cdk/bidi'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravura = global.bravura || {}, global.bravura.ui = global.bravura.ui || {}, global.bravura.ui.tooltip = {}), global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.common, global.ng.core, global.ng.material.core, global.ng.material.tooltip, global.ng.cdk.layout, global.ng.platformBrowser, global.ng.cdk.platform, global.ng.cdk.bidi));
5
- }(this, (function (exports, i3$1, i1$1, scrolling, i3, i0, core, tooltip, i1, i2, i2$1, i4) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/common'), require('@angular/core'), require('@angular/material/core'), require('@angular/material/tooltip'), require('@angular/cdk/layout'), require('@angular/cdk/platform'), require('@angular/cdk/bidi')) :
3
+ typeof define === 'function' && define.amd ? define('@bravura/ui/tooltip', ['exports', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/common', '@angular/core', '@angular/material/core', '@angular/material/tooltip', '@angular/cdk/layout', '@angular/cdk/platform', '@angular/cdk/bidi'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravura = global.bravura || {}, global.bravura.ui = global.bravura.ui || {}, global.bravura.ui.tooltip = {}), global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.common, global.ng.core, global.ng.material.core, global.ng.material.tooltip, global.ng.cdk.layout, global.ng.cdk.platform, global.ng.cdk.bidi));
5
+ })(this, (function (exports, i3, i1$1, scrolling, i2, i0, core, tooltip, i1, i2$1, i4) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -13,501 +13,540 @@
13
13
  var d = Object.getOwnPropertyDescriptor(e, k);
14
14
  Object.defineProperty(n, k, d.get ? d : {
15
15
  enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
16
+ get: function () { return e[k]; }
19
17
  });
20
18
  }
21
19
  });
22
20
  }
23
- n['default'] = e;
21
+ n["default"] = e;
24
22
  return Object.freeze(n);
25
23
  }
26
24
 
27
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
28
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
29
25
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
26
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
28
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
31
29
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
32
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
33
30
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
34
31
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
35
32
 
36
- /*! *****************************************************************************
37
- Copyright (c) Microsoft Corporation.
38
-
39
- Permission to use, copy, modify, and/or distribute this software for any
40
- purpose with or without fee is hereby granted.
41
-
42
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
44
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
- PERFORMANCE OF THIS SOFTWARE.
49
- ***************************************************************************** */
50
- /* global Reflect, Promise */
51
- var extendStatics = function (d, b) {
52
- extendStatics = Object.setPrototypeOf ||
53
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54
- function (d, b) { for (var p in b)
55
- if (Object.prototype.hasOwnProperty.call(b, p))
56
- d[p] = b[p]; };
57
- return extendStatics(d, b);
58
- };
59
- function __extends(d, b) {
60
- if (typeof b !== "function" && b !== null)
61
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62
- extendStatics(d, b);
63
- function __() { this.constructor = d; }
64
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
65
- }
66
- var __assign = function () {
67
- __assign = Object.assign || function __assign(t) {
68
- for (var s, i = 1, n = arguments.length; i < n; i++) {
69
- s = arguments[i];
70
- for (var p in s)
71
- if (Object.prototype.hasOwnProperty.call(s, p))
72
- t[p] = s[p];
73
- }
74
- return t;
75
- };
76
- return __assign.apply(this, arguments);
77
- };
78
- function __rest(s, e) {
79
- var t = {};
80
- for (var p in s)
81
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
82
- t[p] = s[p];
83
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
84
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
85
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
86
- t[p[i]] = s[p[i]];
87
- }
88
- return t;
89
- }
90
- function __decorate(decorators, target, key, desc) {
91
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
92
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
93
- r = Reflect.decorate(decorators, target, key, desc);
94
- else
95
- for (var i = decorators.length - 1; i >= 0; i--)
96
- if (d = decorators[i])
97
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
98
- return c > 3 && r && Object.defineProperty(target, key, r), r;
99
- }
100
- function __param(paramIndex, decorator) {
101
- return function (target, key) { decorator(target, key, paramIndex); };
102
- }
103
- function __metadata(metadataKey, metadataValue) {
104
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
105
- return Reflect.metadata(metadataKey, metadataValue);
106
- }
107
- function __awaiter(thisArg, _arguments, P, generator) {
108
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
109
- return new (P || (P = Promise))(function (resolve, reject) {
110
- function fulfilled(value) { try {
111
- step(generator.next(value));
112
- }
113
- catch (e) {
114
- reject(e);
115
- } }
116
- function rejected(value) { try {
117
- step(generator["throw"](value));
118
- }
119
- catch (e) {
120
- reject(e);
121
- } }
122
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
123
- step((generator = generator.apply(thisArg, _arguments || [])).next());
124
- });
125
- }
126
- function __generator(thisArg, body) {
127
- var _ = { label: 0, sent: function () { if (t[0] & 1)
128
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
129
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
130
- function verb(n) { return function (v) { return step([n, v]); }; }
131
- function step(op) {
132
- if (f)
133
- throw new TypeError("Generator is already executing.");
134
- while (_)
135
- try {
136
- 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)
137
- return t;
138
- if (y = 0, t)
139
- op = [op[0] & 2, t.value];
140
- switch (op[0]) {
141
- case 0:
142
- case 1:
143
- t = op;
144
- break;
145
- case 4:
146
- _.label++;
147
- return { value: op[1], done: false };
148
- case 5:
149
- _.label++;
150
- y = op[1];
151
- op = [0];
152
- continue;
153
- case 7:
154
- op = _.ops.pop();
155
- _.trys.pop();
156
- continue;
157
- default:
158
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
159
- _ = 0;
160
- continue;
161
- }
162
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
163
- _.label = op[1];
164
- break;
165
- }
166
- if (op[0] === 6 && _.label < t[1]) {
167
- _.label = t[1];
168
- t = op;
169
- break;
170
- }
171
- if (t && _.label < t[2]) {
172
- _.label = t[2];
173
- _.ops.push(op);
174
- break;
175
- }
176
- if (t[2])
177
- _.ops.pop();
178
- _.trys.pop();
179
- continue;
180
- }
181
- op = body.call(thisArg, _);
182
- }
183
- catch (e) {
184
- op = [6, e];
185
- y = 0;
186
- }
187
- finally {
188
- f = t = 0;
189
- }
190
- if (op[0] & 5)
191
- throw op[1];
192
- return { value: op[0] ? op[1] : void 0, done: true };
193
- }
194
- }
195
- var __createBinding = Object.create ? (function (o, m, k, k2) {
196
- if (k2 === undefined)
197
- k2 = k;
198
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
199
- }) : (function (o, m, k, k2) {
200
- if (k2 === undefined)
201
- k2 = k;
202
- o[k2] = m[k];
203
- });
204
- function __exportStar(m, o) {
205
- for (var p in m)
206
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
207
- __createBinding(o, m, p);
208
- }
209
- function __values(o) {
210
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
211
- if (m)
212
- return m.call(o);
213
- if (o && typeof o.length === "number")
214
- return {
215
- next: function () {
216
- if (o && i >= o.length)
217
- o = void 0;
218
- return { value: o && o[i++], done: !o };
219
- }
220
- };
221
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
222
- }
223
- function __read(o, n) {
224
- var m = typeof Symbol === "function" && o[Symbol.iterator];
225
- if (!m)
226
- return o;
227
- var i = m.call(o), r, ar = [], e;
228
- try {
229
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
230
- ar.push(r.value);
231
- }
232
- catch (error) {
233
- e = { error: error };
234
- }
235
- finally {
236
- try {
237
- if (r && !r.done && (m = i["return"]))
238
- m.call(i);
239
- }
240
- finally {
241
- if (e)
242
- throw e.error;
243
- }
244
- }
245
- return ar;
246
- }
247
- /** @deprecated */
248
- function __spread() {
249
- for (var ar = [], i = 0; i < arguments.length; i++)
250
- ar = ar.concat(__read(arguments[i]));
251
- return ar;
252
- }
253
- /** @deprecated */
254
- function __spreadArrays() {
255
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
- s += arguments[i].length;
257
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
258
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
259
- r[k] = a[j];
260
- return r;
261
- }
262
- function __spreadArray(to, from, pack) {
263
- if (pack || arguments.length === 2)
264
- for (var i = 0, l = from.length, ar; i < l; i++) {
265
- if (ar || !(i in from)) {
266
- if (!ar)
267
- ar = Array.prototype.slice.call(from, 0, i);
268
- ar[i] = from[i];
269
- }
270
- }
271
- return to.concat(ar || from);
272
- }
273
- function __await(v) {
274
- return this instanceof __await ? (this.v = v, this) : new __await(v);
275
- }
276
- function __asyncGenerator(thisArg, _arguments, generator) {
277
- if (!Symbol.asyncIterator)
278
- throw new TypeError("Symbol.asyncIterator is not defined.");
279
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
280
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
281
- function verb(n) { if (g[n])
282
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
283
- function resume(n, v) { try {
284
- step(g[n](v));
285
- }
286
- catch (e) {
287
- settle(q[0][3], e);
288
- } }
289
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
290
- function fulfill(value) { resume("next", value); }
291
- function reject(value) { resume("throw", value); }
292
- function settle(f, v) { if (f(v), q.shift(), q.length)
293
- resume(q[0][0], q[0][1]); }
294
- }
295
- function __asyncDelegator(o) {
296
- var i, p;
297
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
298
- 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; }
299
- }
300
- function __asyncValues(o) {
301
- if (!Symbol.asyncIterator)
302
- throw new TypeError("Symbol.asyncIterator is not defined.");
303
- var m = o[Symbol.asyncIterator], i;
304
- 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);
305
- 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); }); }; }
306
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
307
- }
308
- function __makeTemplateObject(cooked, raw) {
309
- if (Object.defineProperty) {
310
- Object.defineProperty(cooked, "raw", { value: raw });
311
- }
312
- else {
313
- cooked.raw = raw;
314
- }
315
- return cooked;
316
- }
317
- ;
318
- var __setModuleDefault = Object.create ? (function (o, v) {
319
- Object.defineProperty(o, "default", { enumerable: true, value: v });
320
- }) : function (o, v) {
321
- o["default"] = v;
322
- };
323
- function __importStar(mod) {
324
- if (mod && mod.__esModule)
325
- return mod;
326
- var result = {};
327
- if (mod != null)
328
- for (var k in mod)
329
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
330
- __createBinding(result, mod, k);
331
- __setModuleDefault(result, mod);
332
- return result;
333
- }
334
- function __importDefault(mod) {
335
- return (mod && mod.__esModule) ? mod : { default: mod };
336
- }
337
- function __classPrivateFieldGet(receiver, state, kind, f) {
338
- if (kind === "a" && !f)
339
- throw new TypeError("Private accessor was defined without a getter");
340
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
342
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
343
- }
344
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
345
- if (kind === "m")
346
- throw new TypeError("Private method is not writable");
347
- if (kind === "a" && !f)
348
- throw new TypeError("Private accessor was defined without a setter");
349
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
350
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
351
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
33
+ /*! *****************************************************************************
34
+ Copyright (c) Microsoft Corporation.
35
+
36
+ Permission to use, copy, modify, and/or distribute this software for any
37
+ purpose with or without fee is hereby granted.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
+ PERFORMANCE OF THIS SOFTWARE.
46
+ ***************************************************************************** */
47
+ /* global Reflect, Promise */
48
+ var extendStatics = function (d, b) {
49
+ extendStatics = Object.setPrototypeOf ||
50
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51
+ function (d, b) { for (var p in b)
52
+ if (Object.prototype.hasOwnProperty.call(b, p))
53
+ d[p] = b[p]; };
54
+ return extendStatics(d, b);
55
+ };
56
+ function __extends(d, b) {
57
+ if (typeof b !== "function" && b !== null)
58
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59
+ extendStatics(d, b);
60
+ function __() { this.constructor = d; }
61
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62
+ }
63
+ var __assign = function () {
64
+ __assign = Object.assign || function __assign(t) {
65
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
66
+ s = arguments[i];
67
+ for (var p in s)
68
+ if (Object.prototype.hasOwnProperty.call(s, p))
69
+ t[p] = s[p];
70
+ }
71
+ return t;
72
+ };
73
+ return __assign.apply(this, arguments);
74
+ };
75
+ function __rest(s, e) {
76
+ var t = {};
77
+ for (var p in s)
78
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
79
+ t[p] = s[p];
80
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
81
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
82
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
83
+ t[p[i]] = s[p[i]];
84
+ }
85
+ return t;
86
+ }
87
+ function __decorate(decorators, target, key, desc) {
88
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
90
+ r = Reflect.decorate(decorators, target, key, desc);
91
+ else
92
+ for (var i = decorators.length - 1; i >= 0; i--)
93
+ if (d = decorators[i])
94
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
95
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
96
+ }
97
+ function __param(paramIndex, decorator) {
98
+ return function (target, key) { decorator(target, key, paramIndex); };
99
+ }
100
+ function __metadata(metadataKey, metadataValue) {
101
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
102
+ return Reflect.metadata(metadataKey, metadataValue);
103
+ }
104
+ function __awaiter(thisArg, _arguments, P, generator) {
105
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
106
+ return new (P || (P = Promise))(function (resolve, reject) {
107
+ function fulfilled(value) { try {
108
+ step(generator.next(value));
109
+ }
110
+ catch (e) {
111
+ reject(e);
112
+ } }
113
+ function rejected(value) { try {
114
+ step(generator["throw"](value));
115
+ }
116
+ catch (e) {
117
+ reject(e);
118
+ } }
119
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
120
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
121
+ });
122
+ }
123
+ function __generator(thisArg, body) {
124
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
125
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
126
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
127
+ function verb(n) { return function (v) { return step([n, v]); }; }
128
+ function step(op) {
129
+ if (f)
130
+ throw new TypeError("Generator is already executing.");
131
+ while (_)
132
+ try {
133
+ 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)
134
+ return t;
135
+ if (y = 0, t)
136
+ op = [op[0] & 2, t.value];
137
+ switch (op[0]) {
138
+ case 0:
139
+ case 1:
140
+ t = op;
141
+ break;
142
+ case 4:
143
+ _.label++;
144
+ return { value: op[1], done: false };
145
+ case 5:
146
+ _.label++;
147
+ y = op[1];
148
+ op = [0];
149
+ continue;
150
+ case 7:
151
+ op = _.ops.pop();
152
+ _.trys.pop();
153
+ continue;
154
+ default:
155
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
156
+ _ = 0;
157
+ continue;
158
+ }
159
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
160
+ _.label = op[1];
161
+ break;
162
+ }
163
+ if (op[0] === 6 && _.label < t[1]) {
164
+ _.label = t[1];
165
+ t = op;
166
+ break;
167
+ }
168
+ if (t && _.label < t[2]) {
169
+ _.label = t[2];
170
+ _.ops.push(op);
171
+ break;
172
+ }
173
+ if (t[2])
174
+ _.ops.pop();
175
+ _.trys.pop();
176
+ continue;
177
+ }
178
+ op = body.call(thisArg, _);
179
+ }
180
+ catch (e) {
181
+ op = [6, e];
182
+ y = 0;
183
+ }
184
+ finally {
185
+ f = t = 0;
186
+ }
187
+ if (op[0] & 5)
188
+ throw op[1];
189
+ return { value: op[0] ? op[1] : void 0, done: true };
190
+ }
191
+ }
192
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
193
+ if (k2 === undefined)
194
+ k2 = k;
195
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
196
+ }) : (function (o, m, k, k2) {
197
+ if (k2 === undefined)
198
+ k2 = k;
199
+ o[k2] = m[k];
200
+ });
201
+ function __exportStar(m, o) {
202
+ for (var p in m)
203
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
204
+ __createBinding(o, m, p);
205
+ }
206
+ function __values(o) {
207
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
208
+ if (m)
209
+ return m.call(o);
210
+ if (o && typeof o.length === "number")
211
+ return {
212
+ next: function () {
213
+ if (o && i >= o.length)
214
+ o = void 0;
215
+ return { value: o && o[i++], done: !o };
216
+ }
217
+ };
218
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
219
+ }
220
+ function __read(o, n) {
221
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
222
+ if (!m)
223
+ return o;
224
+ var i = m.call(o), r, ar = [], e;
225
+ try {
226
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
227
+ ar.push(r.value);
228
+ }
229
+ catch (error) {
230
+ e = { error: error };
231
+ }
232
+ finally {
233
+ try {
234
+ if (r && !r.done && (m = i["return"]))
235
+ m.call(i);
236
+ }
237
+ finally {
238
+ if (e)
239
+ throw e.error;
240
+ }
241
+ }
242
+ return ar;
243
+ }
244
+ /** @deprecated */
245
+ function __spread() {
246
+ for (var ar = [], i = 0; i < arguments.length; i++)
247
+ ar = ar.concat(__read(arguments[i]));
248
+ return ar;
249
+ }
250
+ /** @deprecated */
251
+ function __spreadArrays() {
252
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
253
+ s += arguments[i].length;
254
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
255
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
256
+ r[k] = a[j];
257
+ return r;
258
+ }
259
+ function __spreadArray(to, from, pack) {
260
+ if (pack || arguments.length === 2)
261
+ for (var i = 0, l = from.length, ar; i < l; i++) {
262
+ if (ar || !(i in from)) {
263
+ if (!ar)
264
+ ar = Array.prototype.slice.call(from, 0, i);
265
+ ar[i] = from[i];
266
+ }
267
+ }
268
+ return to.concat(ar || from);
269
+ }
270
+ function __await(v) {
271
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
272
+ }
273
+ function __asyncGenerator(thisArg, _arguments, generator) {
274
+ if (!Symbol.asyncIterator)
275
+ throw new TypeError("Symbol.asyncIterator is not defined.");
276
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
277
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
278
+ function verb(n) { if (g[n])
279
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
280
+ function resume(n, v) { try {
281
+ step(g[n](v));
282
+ }
283
+ catch (e) {
284
+ settle(q[0][3], e);
285
+ } }
286
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
287
+ function fulfill(value) { resume("next", value); }
288
+ function reject(value) { resume("throw", value); }
289
+ function settle(f, v) { if (f(v), q.shift(), q.length)
290
+ resume(q[0][0], q[0][1]); }
291
+ }
292
+ function __asyncDelegator(o) {
293
+ var i, p;
294
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
295
+ 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; }
296
+ }
297
+ function __asyncValues(o) {
298
+ if (!Symbol.asyncIterator)
299
+ throw new TypeError("Symbol.asyncIterator is not defined.");
300
+ var m = o[Symbol.asyncIterator], i;
301
+ 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);
302
+ 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); }); }; }
303
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
304
+ }
305
+ function __makeTemplateObject(cooked, raw) {
306
+ if (Object.defineProperty) {
307
+ Object.defineProperty(cooked, "raw", { value: raw });
308
+ }
309
+ else {
310
+ cooked.raw = raw;
311
+ }
312
+ return cooked;
313
+ }
314
+ ;
315
+ var __setModuleDefault = Object.create ? (function (o, v) {
316
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
317
+ }) : function (o, v) {
318
+ o["default"] = v;
319
+ };
320
+ function __importStar(mod) {
321
+ if (mod && mod.__esModule)
322
+ return mod;
323
+ var result = {};
324
+ if (mod != null)
325
+ for (var k in mod)
326
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
327
+ __createBinding(result, mod, k);
328
+ __setModuleDefault(result, mod);
329
+ return result;
330
+ }
331
+ function __importDefault(mod) {
332
+ return (mod && mod.__esModule) ? mod : { default: mod };
333
+ }
334
+ function __classPrivateFieldGet(receiver, state, kind, f) {
335
+ if (kind === "a" && !f)
336
+ throw new TypeError("Private accessor was defined without a getter");
337
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
338
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
339
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
340
+ }
341
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
342
+ if (kind === "m")
343
+ throw new TypeError("Private method is not writable");
344
+ if (kind === "a" && !f)
345
+ throw new TypeError("Private accessor was defined without a setter");
346
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
347
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
348
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
352
349
  }
353
350
 
354
- var TooltipComponent = /** @class */ (function (_super) {
355
- __extends(TooltipComponent, _super);
356
- function TooltipComponent(changeDetectorRef, _breakpointObserver, _sanitizer) {
357
- var _this = _super.call(this, changeDetectorRef, _breakpointObserver) || this;
358
- _this._sanitizer = _sanitizer;
359
- _this.messageAsHtml = '';
360
- _this._messageCopy = '';
361
- return _this;
362
- }
363
- TooltipComponent.prototype.show = function (delay) {
364
- if (this._messageCopy !== this.message) {
365
- this.messageAsHtml = this._sanitizer.bypassSecurityTrustHtml(this.message);
366
- this._messageCopy = this.message;
367
- }
368
- _super.prototype.show.call(this, delay);
369
- };
370
- return TooltipComponent;
371
- }(tooltip.TooltipComponent));
372
- TooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.BreakpointObserver }, { token: i2__namespace.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
373
- TooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: TooltipComponent, selector: "bui-tooltip-component", host: { attributes: { "aria-hidden": "true" }, listeners: { "body:click": "this._handleBodyInteraction()", "body:auxclick": "this._handleBodyInteraction()" }, properties: { "style.zoom": "_visibility === \"visible\" ? 1 : null" } }, usesInheritance: true, ngImport: i0__namespace, template: "<div\n\tclass=\"mat-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t[class.mat-tooltip-handset]=\"(_isHandset | async)?.matches\"\n\t[@state]=\"_visibility\"\n\t(@state.start)=\"_animationStart()\"\n\t(@state.done)=\"_animationDone($event)\"\n\t[innerHTML]=\"messageAsHtml\"\n></div>\n", styles: [".bui-tooltip.mat-tooltip{max-width:100vw}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3__namespace.AsyncPipe }, animations: [tooltip.matTooltipAnimations.tooltipState], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
374
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipComponent, decorators: [{
375
- type: i0.Component,
376
- args: [{
377
- selector: 'bui-tooltip-component',
378
- templateUrl: './tooltip.component.html',
379
- styleUrls: ['./tooltip.component.scss'],
380
- encapsulation: i0.ViewEncapsulation.None,
381
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
382
- animations: [tooltip.matTooltipAnimations.tooltipState],
383
- host: {
384
- // Forces the element to have a layout in IE and Edge. This fixes issues where the element
385
- // won't be rendered if the animations are disabled or there is no web animations polyfill.
386
- '[style.zoom]': '_visibility === "visible" ? 1 : null',
387
- '(body:click)': 'this._handleBodyInteraction()',
388
- '(body:auxclick)': 'this._handleBodyInteraction()',
389
- 'aria-hidden': 'true'
390
- }
391
- }]
392
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.BreakpointObserver }, { type: i2__namespace.DomSanitizer }]; } });
351
+ /**
352
+ * @ignore
353
+ */
354
+ var BUI_TOOLTIP_TEMPLATE_REF = new i0.InjectionToken('@bravura/ui/tooltip/templateContainer');
355
+ var TooltipComponent = /** @class */ (function (_super) {
356
+ __extends(TooltipComponent, _super);
357
+ function TooltipComponent(changeDetectorRef, _breakpointObserver, _tooltip) {
358
+ var _this = _super.call(this, changeDetectorRef, _breakpointObserver) || this;
359
+ _this._tooltip = _tooltip;
360
+ _this._messageCopy = '';
361
+ return _this;
362
+ }
363
+ TooltipComponent.prototype.show = function (delay) {
364
+ if (this._messageCopy !== this.message && !this._tooltip.template) {
365
+ this.tooltipDiv.nativeElement.innerHTML = this.message;
366
+ this._messageCopy = this.message;
367
+ }
368
+ _super.prototype.show.call(this, delay);
369
+ };
370
+ return TooltipComponent;
371
+ }(tooltip.TooltipComponent));
372
+ TooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.BreakpointObserver }, { token: BUI_TOOLTIP_TEMPLATE_REF }], target: i0__namespace.ɵɵFactoryTarget.Component });
373
+ TooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TooltipComponent, selector: "bui-tooltip-component", host: { attributes: { "aria-hidden": "true" }, listeners: { "body:click": "this._handleBodyInteraction()", "body:auxclick": "this._handleBodyInteraction()" }, properties: { "style.zoom": "_visibility === \"visible\" ? 1 : null" } }, viewQueries: [{ propertyName: "tooltipDiv", first: true, predicate: ["tooltipDiv"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div\n\tclass=\"mat-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t[class.mat-tooltip-handset]=\"(_isHandset | async)?.matches\"\n\t[@state]=\"_visibility\"\n\t(@state.start)=\"_animationStart()\"\n\t(@state.done)=\"_animationDone($event)\"\n>\n\t<ng-template [ngIf]=\"_tooltip.template\">\n\t\t<ng-template [ngTemplateOutlet]=\"_tooltip.template\"></ng-template>\n\t</ng-template>\n\t<div #tooltipDiv></div>\n</div>\n", styles: [".bui-tooltip.mat-tooltip{max-width:100vw;font-size:inherit}\n"], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [tooltip.matTooltipAnimations.tooltipState], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
374
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipComponent, decorators: [{
375
+ type: i0.Component,
376
+ args: [{
377
+ selector: 'bui-tooltip-component',
378
+ templateUrl: './tooltip.component.html',
379
+ styleUrls: ['./tooltip.component.scss'],
380
+ encapsulation: i0.ViewEncapsulation.None,
381
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
382
+ animations: [tooltip.matTooltipAnimations.tooltipState],
383
+ host: {
384
+ // Forces the element to have a layout in IE and Edge. This fixes issues where the element
385
+ // won't be rendered if the animations are disabled or there is no web animations polyfill.
386
+ '[style.zoom]': '_visibility === "visible" ? 1 : null',
387
+ '(body:click)': 'this._handleBodyInteraction()',
388
+ '(body:auxclick)': 'this._handleBodyInteraction()',
389
+ 'aria-hidden': 'true'
390
+ }
391
+ }]
392
+ }], ctorParameters: function () {
393
+ return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.BreakpointObserver }, { type: undefined, decorators: [{
394
+ type: i0.Inject,
395
+ args: [BUI_TOOLTIP_TEMPLATE_REF]
396
+ }] }];
397
+ }, propDecorators: { tooltipDiv: [{
398
+ type: i0.ViewChild,
399
+ args: ['tooltipDiv', { static: true }]
400
+ }] } });
393
401
  TooltipComponent.ɵcmp.styles.push(tooltip.TooltipComponent.ɵcmp.styles);
394
402
 
395
- /**
396
- * This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying
397
- * HTML content in the overlay area.
398
- *
399
- * All the other features are identical as those in Angular Material tooltip.
400
- */
401
- var TooltipDirective = /** @class */ (function (_super) {
402
- __extends(TooltipDirective, _super);
403
- function TooltipDirective(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) {
404
- var _this = _super.call(this, overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) || this;
405
- _this._tooltipComponent = TooltipComponent;
406
- return _this;
407
- }
408
- Object.defineProperty(TooltipDirective.prototype, "buiTooltipPosition", {
409
- /** Allows the user to define the position of the tooltip relative to the parent element */
410
- get: function () {
411
- return this.position;
412
- },
413
- set: function (value) {
414
- this.position = value;
415
- },
416
- enumerable: false,
417
- configurable: true
418
- });
419
- Object.defineProperty(TooltipDirective.prototype, "buiTooltipDisabled", {
420
- /** Disables the display of the tooltip. */
421
- get: function () {
422
- return this.disabled;
423
- },
424
- set: function (value) {
425
- this.disabled = value;
426
- },
427
- enumerable: false,
428
- configurable: true
429
- });
430
- Object.defineProperty(TooltipDirective.prototype, "buiTooltip", {
431
- /** The message to be displayed in the tooltip. */
432
- get: function () {
433
- return this.message;
434
- },
435
- set: function (value) {
436
- this.message = value;
437
- },
438
- enumerable: false,
439
- configurable: true
440
- });
441
- Object.defineProperty(TooltipDirective.prototype, "buiTooltipClass", {
442
- /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
443
- get: function () {
444
- return this.tooltipClass;
445
- },
446
- set: function (value) {
447
- this.tooltipClass = value;
448
- },
449
- enumerable: false,
450
- configurable: true
451
- });
452
- return TooltipDirective;
453
- }(tooltip._MatTooltipBase));
454
- TooltipDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipDirective, deps: [{ token: i1__namespace$1.Overlay }, { token: i0__namespace.ElementRef }, { token: i1__namespace$1.ScrollDispatcher }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }, { token: i2__namespace$1.Platform }, { token: i3__namespace$1.AriaDescriber }, { token: i3__namespace$1.FocusMonitor }, { token: tooltip.MAT_TOOLTIP_SCROLL_STRATEGY }, { token: i4__namespace.Directionality, optional: true }, { token: tooltip.MAT_TOOLTIP_DEFAULT_OPTIONS, optional: true }, { token: i3.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Directive });
455
- TooltipDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.4", type: TooltipDirective, selector: "[buiTooltip]", inputs: { buiTooltipPosition: "buiTooltipPosition", buiTooltipDisabled: "buiTooltipDisabled", buiTooltip: "buiTooltip", buiTooltipClass: "buiTooltipClass" }, host: { classAttribute: "mat-tooltip-trigger bui-tooltip-trigger" }, exportAs: ["buiTooltip"], usesInheritance: true, ngImport: i0__namespace });
456
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipDirective, decorators: [{
457
- type: i0.Directive,
458
- args: [{
459
- selector: '[buiTooltip]',
460
- exportAs: 'buiTooltip',
461
- host: {
462
- class: 'mat-tooltip-trigger bui-tooltip-trigger'
463
- }
464
- }]
465
- }], ctorParameters: function () {
466
- return [{ type: i1__namespace$1.Overlay }, { type: i0__namespace.ElementRef }, { type: i1__namespace$1.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }, { type: i2__namespace$1.Platform }, { type: i3__namespace$1.AriaDescriber }, { type: i3__namespace$1.FocusMonitor }, { type: undefined, decorators: [{
467
- type: i0.Inject,
468
- args: [tooltip.MAT_TOOLTIP_SCROLL_STRATEGY]
469
- }] }, { type: i4__namespace.Directionality, decorators: [{
470
- type: i0.Optional
471
- }] }, { type: undefined, decorators: [{
472
- type: i0.Optional
473
- }, {
474
- type: i0.Inject,
475
- args: [tooltip.MAT_TOOLTIP_DEFAULT_OPTIONS]
476
- }] }, { type: undefined, decorators: [{
477
- type: i0.Inject,
478
- args: [i3.DOCUMENT]
479
- }] }];
480
- }, propDecorators: { buiTooltipPosition: [{
481
- type: i0.Input
482
- }], buiTooltipDisabled: [{
483
- type: i0.Input
484
- }], buiTooltip: [{
485
- type: i0.Input
486
- }], buiTooltipClass: [{
487
- type: i0.Input
403
+ /**
404
+ * This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying
405
+ * HTML content in the overlay area.
406
+ *
407
+ * All the other features are identical as those in Angular Material tooltip.
408
+ */
409
+ var TooltipDirective = /** @class */ (function (_super) {
410
+ __extends(TooltipDirective, _super);
411
+ function TooltipDirective(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) {
412
+ var _this = _super.call(this, overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) || this;
413
+ _this._tooltipComponent = TooltipComponent;
414
+ return _this;
415
+ }
416
+ Object.defineProperty(TooltipDirective.prototype, "buiTooltipPosition", {
417
+ /** Allows the user to define the position of the tooltip relative to the parent element */
418
+ get: function () {
419
+ return this.position;
420
+ },
421
+ set: function (value) {
422
+ this.position = value;
423
+ },
424
+ enumerable: false,
425
+ configurable: true
426
+ });
427
+ Object.defineProperty(TooltipDirective.prototype, "buiTooltipDisabled", {
428
+ /** Disables the display of the tooltip. */
429
+ get: function () {
430
+ return this.disabled;
431
+ },
432
+ set: function (value) {
433
+ this.disabled = value;
434
+ },
435
+ enumerable: false,
436
+ configurable: true
437
+ });
438
+ Object.defineProperty(TooltipDirective.prototype, "buiTooltip", {
439
+ /** The message to be displayed in the tooltip. */
440
+ get: function () {
441
+ return this._templateRef || this.message;
442
+ },
443
+ set: function (value) {
444
+ if (typeof value === 'string') {
445
+ this.message = value;
446
+ }
447
+ else {
448
+ this._templateRef = value;
449
+ if (value) {
450
+ this.message = '[bui-tooltip-template]';
451
+ }
452
+ else {
453
+ this._templateRef = undefined;
454
+ this.message = '';
455
+ }
456
+ }
457
+ },
458
+ enumerable: false,
459
+ configurable: true
460
+ });
461
+ Object.defineProperty(TooltipDirective.prototype, "template", {
462
+ /** @ignore */
463
+ get: function () {
464
+ return this._templateRef;
465
+ },
466
+ enumerable: false,
467
+ configurable: true
468
+ });
469
+ Object.defineProperty(TooltipDirective.prototype, "buiTooltipClass", {
470
+ /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
471
+ get: function () {
472
+ return this.tooltipClass;
473
+ },
474
+ set: function (value) {
475
+ this.tooltipClass = value;
476
+ },
477
+ enumerable: false,
478
+ configurable: true
479
+ });
480
+ return TooltipDirective;
481
+ }(tooltip._MatTooltipBase));
482
+ TooltipDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipDirective, deps: [{ token: i1__namespace$1.Overlay }, { token: i0__namespace.ElementRef }, { token: i1__namespace$1.ScrollDispatcher }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }, { token: i2__namespace$1.Platform }, { token: i3__namespace.AriaDescriber }, { token: i3__namespace.FocusMonitor }, { token: tooltip.MAT_TOOLTIP_SCROLL_STRATEGY }, { token: i4__namespace.Directionality, optional: true }, { token: tooltip.MAT_TOOLTIP_DEFAULT_OPTIONS, optional: true }, { token: i2.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Directive });
483
+ TooltipDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: TooltipDirective, selector: "[buiTooltip]", inputs: { buiTooltipPosition: "buiTooltipPosition", buiTooltipDisabled: "buiTooltipDisabled", buiTooltip: "buiTooltip", buiTooltipClass: "buiTooltipClass" }, host: { classAttribute: "mat-tooltip-trigger bui-tooltip-trigger" }, providers: [
484
+ {
485
+ provide: BUI_TOOLTIP_TEMPLATE_REF,
486
+ useExisting: i0.forwardRef(function () { return TooltipDirective; })
487
+ }
488
+ ], exportAs: ["buiTooltip"], usesInheritance: true, ngImport: i0__namespace });
489
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipDirective, decorators: [{
490
+ type: i0.Directive,
491
+ args: [{
492
+ selector: '[buiTooltip]',
493
+ exportAs: 'buiTooltip',
494
+ host: {
495
+ class: 'mat-tooltip-trigger bui-tooltip-trigger'
496
+ },
497
+ providers: [
498
+ {
499
+ provide: BUI_TOOLTIP_TEMPLATE_REF,
500
+ useExisting: i0.forwardRef(function () { return TooltipDirective; })
501
+ }
502
+ ]
503
+ }]
504
+ }], ctorParameters: function () {
505
+ return [{ type: i1__namespace$1.Overlay }, { type: i0__namespace.ElementRef }, { type: i1__namespace$1.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }, { type: i2__namespace$1.Platform }, { type: i3__namespace.AriaDescriber }, { type: i3__namespace.FocusMonitor }, { type: undefined, decorators: [{
506
+ type: i0.Inject,
507
+ args: [tooltip.MAT_TOOLTIP_SCROLL_STRATEGY]
508
+ }] }, { type: i4__namespace.Directionality, decorators: [{
509
+ type: i0.Optional
510
+ }] }, { type: undefined, decorators: [{
511
+ type: i0.Optional
512
+ }, {
513
+ type: i0.Inject,
514
+ args: [tooltip.MAT_TOOLTIP_DEFAULT_OPTIONS]
515
+ }] }, { type: undefined, decorators: [{
516
+ type: i0.Inject,
517
+ args: [i2.DOCUMENT]
518
+ }] }];
519
+ }, propDecorators: { buiTooltipPosition: [{
520
+ type: i0.Input
521
+ }], buiTooltipDisabled: [{
522
+ type: i0.Input
523
+ }], buiTooltip: [{
524
+ type: i0.Input
525
+ }], buiTooltipClass: [{
526
+ type: i0.Input
488
527
  }] } });
489
528
 
490
- var TooltipModule = /** @class */ (function () {
491
- function TooltipModule() {
492
- }
493
- return TooltipModule;
494
- }());
495
- TooltipModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
496
- TooltipModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipModule, declarations: [TooltipDirective, TooltipComponent], imports: [i3$1.A11yModule, i3.CommonModule, i1$1.OverlayModule, core.MatCommonModule], exports: [TooltipDirective, core.MatCommonModule, scrolling.CdkScrollableModule] });
497
- TooltipModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipModule, providers: [tooltip.MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[i3$1.A11yModule, i3.CommonModule, i1$1.OverlayModule, core.MatCommonModule], core.MatCommonModule, scrolling.CdkScrollableModule] });
498
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: TooltipModule, decorators: [{
499
- type: i0.NgModule,
500
- args: [{
501
- imports: [i3$1.A11yModule, i3.CommonModule, i1$1.OverlayModule, core.MatCommonModule],
502
- exports: [TooltipDirective, core.MatCommonModule, scrolling.CdkScrollableModule],
503
- declarations: [TooltipDirective, TooltipComponent],
504
- entryComponents: [TooltipComponent],
505
- providers: [tooltip.MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]
506
- }]
529
+ var TooltipModule = /** @class */ (function () {
530
+ function TooltipModule() {
531
+ }
532
+ return TooltipModule;
533
+ }());
534
+ TooltipModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
535
+ TooltipModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipModule, declarations: [TooltipDirective, TooltipComponent], imports: [i3.A11yModule, i2.CommonModule, i1$1.OverlayModule, core.MatCommonModule], exports: [TooltipDirective, core.MatCommonModule, scrolling.CdkScrollableModule] });
536
+ TooltipModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipModule, providers: [tooltip.MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[i3.A11yModule, i2.CommonModule, i1$1.OverlayModule, core.MatCommonModule], core.MatCommonModule, scrolling.CdkScrollableModule] });
537
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: TooltipModule, decorators: [{
538
+ type: i0.NgModule,
539
+ args: [{
540
+ imports: [i3.A11yModule, i2.CommonModule, i1$1.OverlayModule, core.MatCommonModule],
541
+ exports: [TooltipDirective, core.MatCommonModule, scrolling.CdkScrollableModule],
542
+ declarations: [TooltipDirective, TooltipComponent],
543
+ entryComponents: [TooltipComponent],
544
+ providers: [tooltip.MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]
545
+ }]
507
546
  }] });
508
547
 
509
- /**
510
- * Generated bundle index. Do not edit.
548
+ /**
549
+ * Generated bundle index. Do not edit.
511
550
  */
512
551
 
513
552
  exports.TooltipDirective = TooltipDirective;
@@ -515,5 +554,5 @@
515
554
 
516
555
  Object.defineProperty(exports, '__esModule', { value: true });
517
556
 
518
- })));
557
+ }));
519
558
  //# sourceMappingURL=bravura-ui-tooltip.umd.js.map