@firestitch/popover 12.1.3 → 12.2.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 (35) hide show
  1. package/app/class/popover-ref.d.ts +34 -34
  2. package/app/components/popover/popover.component.d.ts +6 -50
  3. package/app/components/popover-wrapper/popover-wrapper.component.d.ts +41 -39
  4. package/app/directives/popover.directive.d.ts +55 -0
  5. package/app/enums/position.d.ts +6 -6
  6. package/app/fs-popover.module.d.ts +11 -10
  7. package/app/helpers/create-injector.d.ts +4 -4
  8. package/app/helpers/create-overlay-ref.d.ts +4 -4
  9. package/app/helpers/create-position-strategy.d.ts +4 -4
  10. package/app/helpers/create-template-portal.d.ts +4 -4
  11. package/app/helpers/point-in-rect.d.ts +1 -1
  12. package/app/interfaces/popover-config.interface.d.ts +16 -16
  13. package/app/services/popover.service.d.ts +21 -20
  14. package/bundles/firestitch-popover.umd.js +994 -937
  15. package/bundles/firestitch-popover.umd.js.map +1 -1
  16. package/esm2015/app/class/popover-ref.js +85 -85
  17. package/esm2015/app/components/popover/popover.component.js +17 -191
  18. package/esm2015/app/components/popover-wrapper/popover-wrapper.component.js +121 -118
  19. package/esm2015/app/directives/popover.directive.js +216 -0
  20. package/esm2015/app/enums/position.js +7 -7
  21. package/esm2015/app/fs-popover.module.js +38 -33
  22. package/esm2015/app/helpers/create-injector.js +8 -8
  23. package/esm2015/app/helpers/create-overlay-ref.js +11 -11
  24. package/esm2015/app/helpers/create-position-strategy.js +55 -55
  25. package/esm2015/app/helpers/create-template-portal.js +4 -4
  26. package/esm2015/app/helpers/point-in-rect.js +3 -3
  27. package/esm2015/app/interfaces/popover-config.interface.js +1 -1
  28. package/esm2015/app/services/popover.service.js +64 -59
  29. package/esm2015/firestitch-popover.js +4 -4
  30. package/esm2015/public_api.js +9 -8
  31. package/fesm2015/firestitch-popover.js +572 -521
  32. package/fesm2015/firestitch-popover.js.map +1 -1
  33. package/firestitch-popover.d.ts +5 -5
  34. package/package.json +1 -1
  35. package/public_api.d.ts +6 -5
@@ -28,972 +28,1029 @@
28
28
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
29
29
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
30
 
31
- /*! *****************************************************************************
32
- Copyright (c) Microsoft Corporation.
33
-
34
- Permission to use, copy, modify, and/or distribute this software for any
35
- purpose with or without fee is hereby granted.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
- PERFORMANCE OF THIS SOFTWARE.
44
- ***************************************************************************** */
45
- /* global Reflect, Promise */
46
- var extendStatics = function (d, b) {
47
- extendStatics = Object.setPrototypeOf ||
48
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
49
- function (d, b) { for (var p in b)
50
- if (Object.prototype.hasOwnProperty.call(b, p))
51
- d[p] = b[p]; };
52
- return extendStatics(d, b);
53
- };
54
- function __extends(d, b) {
55
- if (typeof b !== "function" && b !== null)
56
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
- extendStatics(d, b);
58
- function __() { this.constructor = d; }
59
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
- }
61
- var __assign = function () {
62
- __assign = Object.assign || function __assign(t) {
63
- for (var s, i = 1, n = arguments.length; i < n; i++) {
64
- s = arguments[i];
65
- for (var p in s)
66
- if (Object.prototype.hasOwnProperty.call(s, p))
67
- t[p] = s[p];
68
- }
69
- return t;
70
- };
71
- return __assign.apply(this, arguments);
72
- };
73
- function __rest(s, e) {
74
- var t = {};
75
- for (var p in s)
76
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
77
- t[p] = s[p];
78
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
79
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
80
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
81
- t[p[i]] = s[p[i]];
82
- }
83
- return t;
84
- }
85
- function __decorate(decorators, target, key, desc) {
86
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
87
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
88
- r = Reflect.decorate(decorators, target, key, desc);
89
- else
90
- for (var i = decorators.length - 1; i >= 0; i--)
91
- if (d = decorators[i])
92
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
93
- return c > 3 && r && Object.defineProperty(target, key, r), r;
94
- }
95
- function __param(paramIndex, decorator) {
96
- return function (target, key) { decorator(target, key, paramIndex); };
97
- }
98
- function __metadata(metadataKey, metadataValue) {
99
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
100
- return Reflect.metadata(metadataKey, metadataValue);
101
- }
102
- function __awaiter(thisArg, _arguments, P, generator) {
103
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
104
- return new (P || (P = Promise))(function (resolve, reject) {
105
- function fulfilled(value) { try {
106
- step(generator.next(value));
107
- }
108
- catch (e) {
109
- reject(e);
110
- } }
111
- function rejected(value) { try {
112
- step(generator["throw"](value));
113
- }
114
- catch (e) {
115
- reject(e);
116
- } }
117
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
118
- step((generator = generator.apply(thisArg, _arguments || [])).next());
119
- });
120
- }
121
- function __generator(thisArg, body) {
122
- var _ = { label: 0, sent: function () { if (t[0] & 1)
123
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
124
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
125
- function verb(n) { return function (v) { return step([n, v]); }; }
126
- function step(op) {
127
- if (f)
128
- throw new TypeError("Generator is already executing.");
129
- while (_)
130
- try {
131
- 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)
132
- return t;
133
- if (y = 0, t)
134
- op = [op[0] & 2, t.value];
135
- switch (op[0]) {
136
- case 0:
137
- case 1:
138
- t = op;
139
- break;
140
- case 4:
141
- _.label++;
142
- return { value: op[1], done: false };
143
- case 5:
144
- _.label++;
145
- y = op[1];
146
- op = [0];
147
- continue;
148
- case 7:
149
- op = _.ops.pop();
150
- _.trys.pop();
151
- continue;
152
- default:
153
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
154
- _ = 0;
155
- continue;
156
- }
157
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
158
- _.label = op[1];
159
- break;
160
- }
161
- if (op[0] === 6 && _.label < t[1]) {
162
- _.label = t[1];
163
- t = op;
164
- break;
165
- }
166
- if (t && _.label < t[2]) {
167
- _.label = t[2];
168
- _.ops.push(op);
169
- break;
170
- }
171
- if (t[2])
172
- _.ops.pop();
173
- _.trys.pop();
174
- continue;
175
- }
176
- op = body.call(thisArg, _);
177
- }
178
- catch (e) {
179
- op = [6, e];
180
- y = 0;
181
- }
182
- finally {
183
- f = t = 0;
184
- }
185
- if (op[0] & 5)
186
- throw op[1];
187
- return { value: op[0] ? op[1] : void 0, done: true };
188
- }
189
- }
190
- var __createBinding = Object.create ? (function (o, m, k, k2) {
191
- if (k2 === undefined)
192
- k2 = k;
193
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
194
- }) : (function (o, m, k, k2) {
195
- if (k2 === undefined)
196
- k2 = k;
197
- o[k2] = m[k];
198
- });
199
- function __exportStar(m, o) {
200
- for (var p in m)
201
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
202
- __createBinding(o, m, p);
203
- }
204
- function __values(o) {
205
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
206
- if (m)
207
- return m.call(o);
208
- if (o && typeof o.length === "number")
209
- return {
210
- next: function () {
211
- if (o && i >= o.length)
212
- o = void 0;
213
- return { value: o && o[i++], done: !o };
214
- }
215
- };
216
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
217
- }
218
- function __read(o, n) {
219
- var m = typeof Symbol === "function" && o[Symbol.iterator];
220
- if (!m)
221
- return o;
222
- var i = m.call(o), r, ar = [], e;
223
- try {
224
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
225
- ar.push(r.value);
226
- }
227
- catch (error) {
228
- e = { error: error };
229
- }
230
- finally {
231
- try {
232
- if (r && !r.done && (m = i["return"]))
233
- m.call(i);
234
- }
235
- finally {
236
- if (e)
237
- throw e.error;
238
- }
239
- }
240
- return ar;
241
- }
242
- /** @deprecated */
243
- function __spread() {
244
- for (var ar = [], i = 0; i < arguments.length; i++)
245
- ar = ar.concat(__read(arguments[i]));
246
- return ar;
247
- }
248
- /** @deprecated */
249
- function __spreadArrays() {
250
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
251
- s += arguments[i].length;
252
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
253
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
254
- r[k] = a[j];
255
- return r;
256
- }
257
- function __spreadArray(to, from, pack) {
258
- if (pack || arguments.length === 2)
259
- for (var i = 0, l = from.length, ar; i < l; i++) {
260
- if (ar || !(i in from)) {
261
- if (!ar)
262
- ar = Array.prototype.slice.call(from, 0, i);
263
- ar[i] = from[i];
264
- }
265
- }
266
- return to.concat(ar || Array.prototype.slice.call(from));
267
- }
268
- function __await(v) {
269
- return this instanceof __await ? (this.v = v, this) : new __await(v);
270
- }
271
- function __asyncGenerator(thisArg, _arguments, generator) {
272
- if (!Symbol.asyncIterator)
273
- throw new TypeError("Symbol.asyncIterator is not defined.");
274
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
275
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
276
- function verb(n) { if (g[n])
277
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
278
- function resume(n, v) { try {
279
- step(g[n](v));
280
- }
281
- catch (e) {
282
- settle(q[0][3], e);
283
- } }
284
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
285
- function fulfill(value) { resume("next", value); }
286
- function reject(value) { resume("throw", value); }
287
- function settle(f, v) { if (f(v), q.shift(), q.length)
288
- resume(q[0][0], q[0][1]); }
289
- }
290
- function __asyncDelegator(o) {
291
- var i, p;
292
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
293
- 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; }
294
- }
295
- function __asyncValues(o) {
296
- if (!Symbol.asyncIterator)
297
- throw new TypeError("Symbol.asyncIterator is not defined.");
298
- var m = o[Symbol.asyncIterator], i;
299
- 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);
300
- 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); }); }; }
301
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
302
- }
303
- function __makeTemplateObject(cooked, raw) {
304
- if (Object.defineProperty) {
305
- Object.defineProperty(cooked, "raw", { value: raw });
306
- }
307
- else {
308
- cooked.raw = raw;
309
- }
310
- return cooked;
311
- }
312
- ;
313
- var __setModuleDefault = Object.create ? (function (o, v) {
314
- Object.defineProperty(o, "default", { enumerable: true, value: v });
315
- }) : function (o, v) {
316
- o["default"] = v;
317
- };
318
- function __importStar(mod) {
319
- if (mod && mod.__esModule)
320
- return mod;
321
- var result = {};
322
- if (mod != null)
323
- for (var k in mod)
324
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
325
- __createBinding(result, mod, k);
326
- __setModuleDefault(result, mod);
327
- return result;
328
- }
329
- function __importDefault(mod) {
330
- return (mod && mod.__esModule) ? mod : { default: mod };
331
- }
332
- function __classPrivateFieldGet(receiver, state, kind, f) {
333
- if (kind === "a" && !f)
334
- throw new TypeError("Private accessor was defined without a getter");
335
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
336
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
337
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
338
- }
339
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
340
- if (kind === "m")
341
- throw new TypeError("Private method is not writable");
342
- if (kind === "a" && !f)
343
- throw new TypeError("Private accessor was defined without a setter");
344
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
345
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
346
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
31
+ /*! *****************************************************************************
32
+ Copyright (c) Microsoft Corporation.
33
+
34
+ Permission to use, copy, modify, and/or distribute this software for any
35
+ purpose with or without fee is hereby granted.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
+ PERFORMANCE OF THIS SOFTWARE.
44
+ ***************************************************************************** */
45
+ /* global Reflect, Promise */
46
+ var extendStatics = function (d, b) {
47
+ extendStatics = Object.setPrototypeOf ||
48
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
49
+ function (d, b) { for (var p in b)
50
+ if (Object.prototype.hasOwnProperty.call(b, p))
51
+ d[p] = b[p]; };
52
+ return extendStatics(d, b);
53
+ };
54
+ function __extends(d, b) {
55
+ if (typeof b !== "function" && b !== null)
56
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
+ extendStatics(d, b);
58
+ function __() { this.constructor = d; }
59
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
+ }
61
+ var __assign = function () {
62
+ __assign = Object.assign || function __assign(t) {
63
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
64
+ s = arguments[i];
65
+ for (var p in s)
66
+ if (Object.prototype.hasOwnProperty.call(s, p))
67
+ t[p] = s[p];
68
+ }
69
+ return t;
70
+ };
71
+ return __assign.apply(this, arguments);
72
+ };
73
+ function __rest(s, e) {
74
+ var t = {};
75
+ for (var p in s)
76
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
77
+ t[p] = s[p];
78
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
79
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
80
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
81
+ t[p[i]] = s[p[i]];
82
+ }
83
+ return t;
84
+ }
85
+ function __decorate(decorators, target, key, desc) {
86
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
87
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
88
+ r = Reflect.decorate(decorators, target, key, desc);
89
+ else
90
+ for (var i = decorators.length - 1; i >= 0; i--)
91
+ if (d = decorators[i])
92
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
93
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
94
+ }
95
+ function __param(paramIndex, decorator) {
96
+ return function (target, key) { decorator(target, key, paramIndex); };
97
+ }
98
+ function __metadata(metadataKey, metadataValue) {
99
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
100
+ return Reflect.metadata(metadataKey, metadataValue);
101
+ }
102
+ function __awaiter(thisArg, _arguments, P, generator) {
103
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
104
+ return new (P || (P = Promise))(function (resolve, reject) {
105
+ function fulfilled(value) { try {
106
+ step(generator.next(value));
107
+ }
108
+ catch (e) {
109
+ reject(e);
110
+ } }
111
+ function rejected(value) { try {
112
+ step(generator["throw"](value));
113
+ }
114
+ catch (e) {
115
+ reject(e);
116
+ } }
117
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
118
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
119
+ });
120
+ }
121
+ function __generator(thisArg, body) {
122
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
123
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
124
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
125
+ function verb(n) { return function (v) { return step([n, v]); }; }
126
+ function step(op) {
127
+ if (f)
128
+ throw new TypeError("Generator is already executing.");
129
+ while (_)
130
+ try {
131
+ 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)
132
+ return t;
133
+ if (y = 0, t)
134
+ op = [op[0] & 2, t.value];
135
+ switch (op[0]) {
136
+ case 0:
137
+ case 1:
138
+ t = op;
139
+ break;
140
+ case 4:
141
+ _.label++;
142
+ return { value: op[1], done: false };
143
+ case 5:
144
+ _.label++;
145
+ y = op[1];
146
+ op = [0];
147
+ continue;
148
+ case 7:
149
+ op = _.ops.pop();
150
+ _.trys.pop();
151
+ continue;
152
+ default:
153
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
154
+ _ = 0;
155
+ continue;
156
+ }
157
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
158
+ _.label = op[1];
159
+ break;
160
+ }
161
+ if (op[0] === 6 && _.label < t[1]) {
162
+ _.label = t[1];
163
+ t = op;
164
+ break;
165
+ }
166
+ if (t && _.label < t[2]) {
167
+ _.label = t[2];
168
+ _.ops.push(op);
169
+ break;
170
+ }
171
+ if (t[2])
172
+ _.ops.pop();
173
+ _.trys.pop();
174
+ continue;
175
+ }
176
+ op = body.call(thisArg, _);
177
+ }
178
+ catch (e) {
179
+ op = [6, e];
180
+ y = 0;
181
+ }
182
+ finally {
183
+ f = t = 0;
184
+ }
185
+ if (op[0] & 5)
186
+ throw op[1];
187
+ return { value: op[0] ? op[1] : void 0, done: true };
188
+ }
189
+ }
190
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
191
+ if (k2 === undefined)
192
+ k2 = k;
193
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
194
+ }) : (function (o, m, k, k2) {
195
+ if (k2 === undefined)
196
+ k2 = k;
197
+ o[k2] = m[k];
198
+ });
199
+ function __exportStar(m, o) {
200
+ for (var p in m)
201
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
202
+ __createBinding(o, m, p);
203
+ }
204
+ function __values(o) {
205
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
206
+ if (m)
207
+ return m.call(o);
208
+ if (o && typeof o.length === "number")
209
+ return {
210
+ next: function () {
211
+ if (o && i >= o.length)
212
+ o = void 0;
213
+ return { value: o && o[i++], done: !o };
214
+ }
215
+ };
216
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
217
+ }
218
+ function __read(o, n) {
219
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
220
+ if (!m)
221
+ return o;
222
+ var i = m.call(o), r, ar = [], e;
223
+ try {
224
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
225
+ ar.push(r.value);
226
+ }
227
+ catch (error) {
228
+ e = { error: error };
229
+ }
230
+ finally {
231
+ try {
232
+ if (r && !r.done && (m = i["return"]))
233
+ m.call(i);
234
+ }
235
+ finally {
236
+ if (e)
237
+ throw e.error;
238
+ }
239
+ }
240
+ return ar;
241
+ }
242
+ /** @deprecated */
243
+ function __spread() {
244
+ for (var ar = [], i = 0; i < arguments.length; i++)
245
+ ar = ar.concat(__read(arguments[i]));
246
+ return ar;
247
+ }
248
+ /** @deprecated */
249
+ function __spreadArrays() {
250
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
251
+ s += arguments[i].length;
252
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
253
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
254
+ r[k] = a[j];
255
+ return r;
256
+ }
257
+ function __spreadArray(to, from, pack) {
258
+ if (pack || arguments.length === 2)
259
+ for (var i = 0, l = from.length, ar; i < l; i++) {
260
+ if (ar || !(i in from)) {
261
+ if (!ar)
262
+ ar = Array.prototype.slice.call(from, 0, i);
263
+ ar[i] = from[i];
264
+ }
265
+ }
266
+ return to.concat(ar || Array.prototype.slice.call(from));
267
+ }
268
+ function __await(v) {
269
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
270
+ }
271
+ function __asyncGenerator(thisArg, _arguments, generator) {
272
+ if (!Symbol.asyncIterator)
273
+ throw new TypeError("Symbol.asyncIterator is not defined.");
274
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
275
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
276
+ function verb(n) { if (g[n])
277
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
278
+ function resume(n, v) { try {
279
+ step(g[n](v));
280
+ }
281
+ catch (e) {
282
+ settle(q[0][3], e);
283
+ } }
284
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
285
+ function fulfill(value) { resume("next", value); }
286
+ function reject(value) { resume("throw", value); }
287
+ function settle(f, v) { if (f(v), q.shift(), q.length)
288
+ resume(q[0][0], q[0][1]); }
289
+ }
290
+ function __asyncDelegator(o) {
291
+ var i, p;
292
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
293
+ 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; }
294
+ }
295
+ function __asyncValues(o) {
296
+ if (!Symbol.asyncIterator)
297
+ throw new TypeError("Symbol.asyncIterator is not defined.");
298
+ var m = o[Symbol.asyncIterator], i;
299
+ 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);
300
+ 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); }); }; }
301
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
302
+ }
303
+ function __makeTemplateObject(cooked, raw) {
304
+ if (Object.defineProperty) {
305
+ Object.defineProperty(cooked, "raw", { value: raw });
306
+ }
307
+ else {
308
+ cooked.raw = raw;
309
+ }
310
+ return cooked;
311
+ }
312
+ ;
313
+ var __setModuleDefault = Object.create ? (function (o, v) {
314
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
315
+ }) : function (o, v) {
316
+ o["default"] = v;
317
+ };
318
+ function __importStar(mod) {
319
+ if (mod && mod.__esModule)
320
+ return mod;
321
+ var result = {};
322
+ if (mod != null)
323
+ for (var k in mod)
324
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
325
+ __createBinding(result, mod, k);
326
+ __setModuleDefault(result, mod);
327
+ return result;
328
+ }
329
+ function __importDefault(mod) {
330
+ return (mod && mod.__esModule) ? mod : { default: mod };
331
+ }
332
+ function __classPrivateFieldGet(receiver, state, kind, f) {
333
+ if (kind === "a" && !f)
334
+ throw new TypeError("Private accessor was defined without a getter");
335
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
336
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
337
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
338
+ }
339
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
340
+ if (kind === "m")
341
+ throw new TypeError("Private method is not writable");
342
+ if (kind === "a" && !f)
343
+ throw new TypeError("Private accessor was defined without a setter");
344
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
345
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
346
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
347
347
  }
348
348
 
349
- exports.Position = void 0;
350
- (function (Position) {
351
- Position["North"] = "north";
352
- Position["South"] = "south";
353
- Position["East"] = "east";
354
- Position["West"] = "west";
349
+ exports.Position = void 0;
350
+ (function (Position) {
351
+ Position["North"] = "north";
352
+ Position["South"] = "south";
353
+ Position["East"] = "east";
354
+ Position["West"] = "west";
355
355
  })(exports.Position || (exports.Position = {}));
356
356
 
357
- function pointInRect(x1, y1, x2, y2, px, py) {
358
- return (px > x1 && px < x2) && (py > y1 && py < y2);
357
+ function pointInRect(x1, y1, x2, y2, px, py) {
358
+ return (px > x1 && px < x2) && (py > y1 && py < y2);
359
359
  }
360
360
 
361
- var FsPopoverRef = /** @class */ (function () {
362
- function FsPopoverRef(config) {
363
- if (config === void 0) { config = {}; }
364
- this._autoShow$ = new rxjs.BehaviorSubject(true);
365
- this._autoClose$ = new rxjs.BehaviorSubject(true);
366
- this._componentLoading$ = new rxjs.BehaviorSubject(true);
367
- this._init(config);
368
- }
369
- Object.defineProperty(FsPopoverRef.prototype, "loadingDiameter", {
370
- get: function () {
371
- return this._loadingDiameter;
372
- },
373
- enumerable: false,
374
- configurable: true
375
- });
376
- Object.defineProperty(FsPopoverRef.prototype, "size", {
377
- get: function () {
378
- return this._size;
379
- },
380
- enumerable: false,
381
- configurable: true
382
- });
383
- Object.defineProperty(FsPopoverRef.prototype, "theme", {
384
- get: function () {
385
- return this._theme;
386
- },
387
- enumerable: false,
388
- configurable: true
389
- });
390
- Object.defineProperty(FsPopoverRef.prototype, "loading", {
391
- get: function () {
392
- return this._loading;
393
- },
394
- enumerable: false,
395
- configurable: true
396
- });
397
- Object.defineProperty(FsPopoverRef.prototype, "autoShow$", {
398
- get: function () {
399
- return this._autoShow$.asObservable();
400
- },
401
- enumerable: false,
402
- configurable: true
403
- });
404
- Object.defineProperty(FsPopoverRef.prototype, "autoShow", {
405
- get: function () {
406
- return this._autoShow$.getValue();
407
- },
408
- set: function (value) {
409
- this._autoShow$.next(value);
410
- },
411
- enumerable: false,
412
- configurable: true
413
- });
414
- Object.defineProperty(FsPopoverRef.prototype, "autoClose$", {
415
- get: function () {
416
- return this._autoClose$.asObservable();
417
- },
418
- enumerable: false,
419
- configurable: true
420
- });
421
- Object.defineProperty(FsPopoverRef.prototype, "autoClose", {
422
- get: function () {
423
- return this._autoClose$.getValue();
424
- },
425
- set: function (value) {
426
- this._autoClose$.next(value);
427
- },
428
- enumerable: false,
429
- configurable: true
430
- });
431
- Object.defineProperty(FsPopoverRef.prototype, "componentVisible$", {
432
- get: function () {
433
- return rxjs.combineLatest([
434
- this.autoShow$,
435
- this.componentLoading$,
436
- ]).pipe(operators.map(function (_a) {
437
- var _b = __read(_a, 2), autoShow = _b[0], componentLoading = _b[1];
438
- return autoShow || !componentLoading;
439
- }));
440
- },
441
- enumerable: false,
442
- configurable: true
443
- });
444
- Object.defineProperty(FsPopoverRef.prototype, "componentLoading$", {
445
- get: function () {
446
- return this._componentLoading$.asObservable();
447
- },
448
- enumerable: false,
449
- configurable: true
450
- });
451
- Object.defineProperty(FsPopoverRef.prototype, "componentLoading", {
452
- get: function () {
453
- return this._componentLoading$.getValue();
454
- },
455
- enumerable: false,
456
- configurable: true
457
- });
458
- Object.defineProperty(FsPopoverRef.prototype, "wrapperClass", {
459
- get: function () {
460
- return this._wrapperClass;
461
- },
462
- enumerable: false,
463
- configurable: true
464
- });
465
- Object.defineProperty(FsPopoverRef.prototype, "maxWidth", {
466
- get: function () {
467
- return this._maxWidth;
468
- },
469
- enumerable: false,
470
- configurable: true
471
- });
472
- FsPopoverRef.prototype.show = function () {
473
- var _this = this;
474
- setTimeout(function () {
475
- _this._componentLoading$.next(false);
476
- setTimeout(function () {
477
- _this.updatePosition();
478
- });
479
- });
480
- };
481
- FsPopoverRef.prototype.close = function () {
482
- this.overlayRef.detach();
483
- this._componentLoading$.next(true);
484
- };
485
- FsPopoverRef.prototype.updatePosition = function () {
486
- this.overlayRef.updatePosition();
487
- };
488
- FsPopoverRef.prototype._init = function (config) {
489
- this._wrapperClass = config.wrapperClass;
490
- this._maxWidth = config.maxWidth;
491
- this._loading = config.loading;
492
- this._loadingDiameter = config.loadingDiameter;
493
- this._size = config.size;
494
- this._theme = config.theme;
495
- this._autoShow$.next(config.autoShow);
496
- this._autoClose$.next(config.autoClose);
497
- };
498
- return FsPopoverRef;
361
+ var FsPopoverRef = /** @class */ (function () {
362
+ function FsPopoverRef(config) {
363
+ if (config === void 0) { config = {}; }
364
+ this._autoShow$ = new rxjs.BehaviorSubject(true);
365
+ this._autoClose$ = new rxjs.BehaviorSubject(true);
366
+ this._componentLoading$ = new rxjs.BehaviorSubject(true);
367
+ this._init(config);
368
+ }
369
+ Object.defineProperty(FsPopoverRef.prototype, "loadingDiameter", {
370
+ get: function () {
371
+ return this._loadingDiameter;
372
+ },
373
+ enumerable: false,
374
+ configurable: true
375
+ });
376
+ Object.defineProperty(FsPopoverRef.prototype, "size", {
377
+ get: function () {
378
+ return this._size;
379
+ },
380
+ enumerable: false,
381
+ configurable: true
382
+ });
383
+ Object.defineProperty(FsPopoverRef.prototype, "theme", {
384
+ get: function () {
385
+ return this._theme;
386
+ },
387
+ enumerable: false,
388
+ configurable: true
389
+ });
390
+ Object.defineProperty(FsPopoverRef.prototype, "loading", {
391
+ get: function () {
392
+ return this._loading;
393
+ },
394
+ enumerable: false,
395
+ configurable: true
396
+ });
397
+ Object.defineProperty(FsPopoverRef.prototype, "autoShow$", {
398
+ get: function () {
399
+ return this._autoShow$.asObservable();
400
+ },
401
+ enumerable: false,
402
+ configurable: true
403
+ });
404
+ Object.defineProperty(FsPopoverRef.prototype, "autoShow", {
405
+ get: function () {
406
+ return this._autoShow$.getValue();
407
+ },
408
+ set: function (value) {
409
+ this._autoShow$.next(value);
410
+ },
411
+ enumerable: false,
412
+ configurable: true
413
+ });
414
+ Object.defineProperty(FsPopoverRef.prototype, "autoClose$", {
415
+ get: function () {
416
+ return this._autoClose$.asObservable();
417
+ },
418
+ enumerable: false,
419
+ configurable: true
420
+ });
421
+ Object.defineProperty(FsPopoverRef.prototype, "autoClose", {
422
+ get: function () {
423
+ return this._autoClose$.getValue();
424
+ },
425
+ set: function (value) {
426
+ this._autoClose$.next(value);
427
+ },
428
+ enumerable: false,
429
+ configurable: true
430
+ });
431
+ Object.defineProperty(FsPopoverRef.prototype, "componentVisible$", {
432
+ get: function () {
433
+ return rxjs.combineLatest([
434
+ this.autoShow$,
435
+ this.componentLoading$,
436
+ ]).pipe(operators.map(function (_a) {
437
+ var _b = __read(_a, 2), autoShow = _b[0], componentLoading = _b[1];
438
+ return autoShow || !componentLoading;
439
+ }));
440
+ },
441
+ enumerable: false,
442
+ configurable: true
443
+ });
444
+ Object.defineProperty(FsPopoverRef.prototype, "componentLoading$", {
445
+ get: function () {
446
+ return this._componentLoading$.asObservable();
447
+ },
448
+ enumerable: false,
449
+ configurable: true
450
+ });
451
+ Object.defineProperty(FsPopoverRef.prototype, "componentLoading", {
452
+ get: function () {
453
+ return this._componentLoading$.getValue();
454
+ },
455
+ enumerable: false,
456
+ configurable: true
457
+ });
458
+ Object.defineProperty(FsPopoverRef.prototype, "wrapperClass", {
459
+ get: function () {
460
+ return this._wrapperClass;
461
+ },
462
+ enumerable: false,
463
+ configurable: true
464
+ });
465
+ Object.defineProperty(FsPopoverRef.prototype, "maxWidth", {
466
+ get: function () {
467
+ return this._maxWidth;
468
+ },
469
+ enumerable: false,
470
+ configurable: true
471
+ });
472
+ FsPopoverRef.prototype.show = function () {
473
+ var _this = this;
474
+ setTimeout(function () {
475
+ _this._componentLoading$.next(false);
476
+ setTimeout(function () {
477
+ _this.updatePosition();
478
+ });
479
+ });
480
+ };
481
+ FsPopoverRef.prototype.close = function () {
482
+ this.overlayRef.detach();
483
+ this._componentLoading$.next(true);
484
+ };
485
+ FsPopoverRef.prototype.updatePosition = function () {
486
+ this.overlayRef.updatePosition();
487
+ };
488
+ FsPopoverRef.prototype._init = function (config) {
489
+ this._wrapperClass = config.wrapperClass;
490
+ this._maxWidth = config.maxWidth;
491
+ this._loading = config.loading;
492
+ this._loadingDiameter = config.loadingDiameter;
493
+ this._size = config.size;
494
+ this._theme = config.theme;
495
+ this._autoShow$.next(config.autoShow);
496
+ this._autoClose$.next(config.autoClose);
497
+ };
498
+ return FsPopoverRef;
499
499
  }());
500
500
 
501
- var FsPopoverWrapperComponent = /** @class */ (function (_super) {
502
- __extends(FsPopoverWrapperComponent, _super);
503
- function FsPopoverWrapperComponent(popoverRef, _el, _zone) {
504
- var _this = _super.call(this) || this;
505
- _this.popoverRef = popoverRef;
506
- _this._el = _el;
507
- _this._zone = _zone;
508
- _this.hidden = false;
509
- _this._updatePosition = new rxjs.Subject();
510
- _this._destroy$ = new rxjs.Subject();
511
- _this._updateClass();
512
- _this.wrapperClass = _this.popoverRef.wrapperClass;
513
- _this.maxWidth = _this.popoverRef.maxWidth;
514
- return _this;
515
- }
516
- Object.defineProperty(FsPopoverWrapperComponent.prototype, "maxWidth", {
517
- set: function (value) {
518
- this._el.nativeElement.style.maxWidth = value ? value + 'px' : void 0;
519
- },
520
- enumerable: false,
521
- configurable: true
522
- });
523
- Object.defineProperty(FsPopoverWrapperComponent.prototype, "wrapperClass", {
524
- set: function (value) {
525
- this._wrapperClass = value;
526
- this._updateClass();
527
- },
528
- enumerable: false,
529
- configurable: true
530
- });
531
- FsPopoverWrapperComponent.prototype.ngOnInit = function () {
532
- if (!this.popoverRef.autoShow && this.popoverRef.componentLoading) {
533
- this._watchMousePosition();
534
- }
535
- this._observeContentChanges();
536
- this._listenUpdatePositionRequests();
537
- };
538
- FsPopoverWrapperComponent.prototype.ngOnDestroy = function () {
539
- this._contentChangesObserver.disconnect();
540
- this._destroy$.next();
541
- this._destroy$.complete();
542
- };
543
- /**
544
- * Attach a TemplatePortal as content to this popover container.
545
- * @param portal Portal to be attached as the popover content.
546
- */
547
- FsPopoverWrapperComponent.prototype.attachTemplatePortal = function (portal) {
548
- if (this._portalOutlet.hasAttached()) {
549
- throw Error('Popover template already attached');
550
- }
551
- return this._portalOutlet.attachTemplatePortal(portal);
552
- };
553
- /**
554
- * Attach a ComponentPortal as content to this popover container.
555
- * @param portal Portal to be attached as the popover content.
556
- */
557
- FsPopoverWrapperComponent.prototype.attachComponentPortal = function (portal) {
558
- if (this._portalOutlet.hasAttached()) {
559
- throw Error('Popover component already attached');
560
- }
561
- return this._portalOutlet.attachComponentPortal(portal);
562
- };
563
- FsPopoverWrapperComponent.prototype.updatePosition = function () {
564
- this._updatePosition.next();
565
- };
566
- FsPopoverWrapperComponent.prototype._watchMousePosition = function () {
567
- var _this = this;
568
- var componentVisibilityChange$ = this.popoverRef.componentVisible$
569
- .pipe(operators.filter(function (value) { return value === true; }));
570
- this._zone.runOutsideAngular(function () {
571
- rxjs.fromEvent(document, 'mousemove')
572
- .pipe(operators.takeUntil(componentVisibilityChange$), operators.takeUntil(_this._destroy$))
573
- .subscribe(function (e) {
574
- _this.spinner.nativeElement.style.left = e.x + 'px';
575
- _this.spinner.nativeElement.style.top = (e.y + 20) + 'px';
576
- });
577
- });
578
- };
579
- FsPopoverWrapperComponent.prototype._updateClass = function () {
580
- this.class = ['popover-wrapper', this._wrapperClass].filter(Boolean).join(' ');
581
- };
582
- FsPopoverWrapperComponent.prototype._observeContentChanges = function () {
583
- var _this = this;
584
- var config = {
585
- childList: true,
586
- subtree: true
587
- };
588
- this._contentChangesObserver = new MutationObserver(function () {
589
- _this.updatePosition();
590
- });
591
- this._contentChangesObserver.observe(this._el.nativeElement, config);
592
- };
593
- FsPopoverWrapperComponent.prototype._listenUpdatePositionRequests = function () {
594
- var _this = this;
595
- this._updatePosition
596
- .pipe(operators.debounceTime(50), operators.takeUntil(this._destroy$))
597
- .subscribe(function () {
598
- _this.popoverRef.updatePosition();
599
- });
600
- };
601
- return FsPopoverWrapperComponent;
602
- }(i3.BasePortalOutlet));
603
- FsPopoverWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverWrapperComponent, deps: [{ token: FsPopoverRef }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
604
- FsPopoverWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsPopoverWrapperComponent, selector: "fs-popover-wrapper", host: { properties: { "class": "this.class" } }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: i3.CdkPortalOutlet, descendants: true, static: true }, { propertyName: "spinner", first: true, predicate: ["spinner"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"wrapper\" [ngClass]=\"{\n 'theme-dark' : popoverRef.theme === 'dark',\n 'size-tiny': popoverRef.size === 'tiny',\n 'size-small': popoverRef.size === 'small',\n 'hidden': !(popoverRef.componentVisible$ | async)\n }\">\n <div class=\"mat-elevation-z4 popover-content\">\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n\n <div class=\"fs-popover-arrow light\"></div>\n <div class=\"fs-popover-arrow dark\"></div>\n</div>\n\n<div class=\"loading-spinner\"\n #spinner\n *ngIf=\"popoverRef.loading && !(popoverRef.componentVisible$ | async)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" [attr.width]=\"popoverRef.loadingDiameter\" [attr.height]=\"popoverRef.loadingDiameter\" viewBox=\"0 0 42 42\" stroke=\"grey\">\n <g fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(1 1)\" stroke-width=\"3\">\n <circle stroke-opacity=\".5\" cx=\"18\" cy=\"18\" r=\"18\"/>\n <path d=\"M36 18c0-9.94-8.06-18-18-18\">\n <animateTransform attributeName=\"transform\" type=\"rotate\" from=\"0 18 18\" to=\"360 18 18\" dur=\"1s\" repeatCount=\"indefinite\"/>\n </path>\n </g>\n </g>\n </svg>\n</div>\n", styles: [".wrapper{padding:6px;animation:fadeIn ease .2s}.wrapper.hidden{display:none}.wrapper .popover-content{background:#fff;border-radius:4px;padding:8px;color:#1b1b1b;box-sizing:border-box;overflow:hidden}.wrapper.theme-dark .popover-content{background-color:#707070;color:#fff}.wrapper.size-small .popover-content{font-size:80%}.wrapper.size-tiny .popover-content{font-size:70%}.wrapper .fs-popover-arrow{width:0;height:0;font-size:0;line-height:0;position:absolute;z-index:200;z-index:1}.wrapper .fs-popover-arrow.dark{z-index:0}::ng-deep .fs-popover-top .fs-popover-arrow,::ng-deep .fs-popover-bottom .fs-popover-arrow{border-left:10px solid transparent;border-right:10px solid transparent}::ng-deep .fs-popover-left .fs-popover-arrow,::ng-deep .fs-popover-right .fs-popover-arrow{border-top:10px solid transparent;border-bottom:10px solid transparent}::ng-deep .fs-popover-top .fs-popover-arrow{bottom:-3px;left:calc(50% - 10px);border-top:10px solid #fff}::ng-deep .fs-popover-top .fs-popover-arrow.dark{border-top-color:#dfdfdf40;bottom:-4px}::ng-deep .fs-popover-bottom .fs-popover-arrow{top:-3px;left:calc(50% - 10px);border-bottom:10px solid #fff}::ng-deep .fs-popover-bottom .fs-popover-arrow.dark{border-bottom-color:#dfdfdf40;top:-4px}::ng-deep .fs-popover-left .fs-popover-arrow{left:-3px;top:calc(50% - 10px);border-right:10px solid #fff}::ng-deep .fs-popover-left .fs-popover-arrow.dark{border-right-color:#dfdfdf40;left:-4px}::ng-deep .fs-popover-right .fs-popover-arrow{right:-3px;top:calc(50% - 10px);border-left:10px solid #fff}::ng-deep .fs-popover-right .fs-popover-arrow.dark{border-left-color:#dfdfdf40;right:-4px}::ng-deep .fs-popover-bottom .wrapper.theme-dark .fs-popover-arrow{border-bottom-color:#707070}::ng-deep .fs-popover-left .wrapper.theme-dark .fs-popover-arrow{border-right-color:#707070}::ng-deep .fs-popover-right .wrapper.theme-dark .fs-popover-arrow{border-left-color:#707070}::ng-deep .fs-popover-top .wrapper.theme-dark .fs-popover-arrow{border-top-color:#707070}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}\n"], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
605
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverWrapperComponent, decorators: [{
606
- type: i0.Component,
607
- args: [{
608
- selector: 'fs-popover-wrapper',
609
- templateUrl: 'popover-wrapper.component.html',
610
- styleUrls: ['popover-wrapper.component.scss'],
611
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
612
- }]
613
- }], ctorParameters: function () { return [{ type: FsPopoverRef }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { _portalOutlet: [{
614
- type: i0.ViewChild,
615
- args: [i3.CdkPortalOutlet, { static: true }]
616
- }], spinner: [{
617
- type: i0.ViewChild,
618
- args: ['spinner']
619
- }], class: [{
620
- type: i0.HostBinding,
621
- args: ['class']
501
+ var FsPopoverWrapperComponent = /** @class */ (function (_super) {
502
+ __extends(FsPopoverWrapperComponent, _super);
503
+ function FsPopoverWrapperComponent(popoverRef, _el, _zone) {
504
+ var _this = _super.call(this) || this;
505
+ _this.popoverRef = popoverRef;
506
+ _this._el = _el;
507
+ _this._zone = _zone;
508
+ _this.hidden = false;
509
+ _this._updatePosition = new rxjs.Subject();
510
+ _this._destroy$ = new rxjs.Subject();
511
+ _this._updateClass();
512
+ _this.wrapperClass = _this.popoverRef.wrapperClass;
513
+ _this.maxWidth = _this.popoverRef.maxWidth;
514
+ return _this;
515
+ }
516
+ Object.defineProperty(FsPopoverWrapperComponent.prototype, "maxWidth", {
517
+ set: function (value) {
518
+ this._el.nativeElement.style.maxWidth = value ? value + 'px' : void 0;
519
+ },
520
+ enumerable: false,
521
+ configurable: true
522
+ });
523
+ Object.defineProperty(FsPopoverWrapperComponent.prototype, "wrapperClass", {
524
+ set: function (value) {
525
+ this._wrapperClass = value;
526
+ this._updateClass();
527
+ },
528
+ enumerable: false,
529
+ configurable: true
530
+ });
531
+ FsPopoverWrapperComponent.prototype.ngOnInit = function () {
532
+ if (!this.popoverRef.autoShow && this.popoverRef.componentLoading) {
533
+ this._watchMousePosition();
534
+ }
535
+ this._observeContentChanges();
536
+ this._listenUpdatePositionRequests();
537
+ };
538
+ FsPopoverWrapperComponent.prototype.ngOnDestroy = function () {
539
+ this._contentChangesObserver.disconnect();
540
+ this._destroy$.next();
541
+ this._destroy$.complete();
542
+ };
543
+ /**
544
+ * Attach a TemplatePortal as content to this popover container.
545
+ * @param portal Portal to be attached as the popover content.
546
+ */
547
+ FsPopoverWrapperComponent.prototype.attachTemplatePortal = function (portal) {
548
+ if (this._portalOutlet.hasAttached()) {
549
+ throw Error('Popover template already attached');
550
+ }
551
+ return this._portalOutlet.attachTemplatePortal(portal);
552
+ };
553
+ /**
554
+ * Attach a ComponentPortal as content to this popover container.
555
+ * @param portal Portal to be attached as the popover content.
556
+ */
557
+ FsPopoverWrapperComponent.prototype.attachComponentPortal = function (portal) {
558
+ if (this._portalOutlet.hasAttached()) {
559
+ throw Error('Popover component already attached');
560
+ }
561
+ return this._portalOutlet.attachComponentPortal(portal);
562
+ };
563
+ FsPopoverWrapperComponent.prototype.setTextualContent = function (content) {
564
+ this.content = content;
565
+ };
566
+ FsPopoverWrapperComponent.prototype.updatePosition = function () {
567
+ this._updatePosition.next();
568
+ };
569
+ FsPopoverWrapperComponent.prototype._watchMousePosition = function () {
570
+ var _this = this;
571
+ var componentVisibilityChange$ = this.popoverRef.componentVisible$
572
+ .pipe(operators.filter(function (value) { return value === true; }));
573
+ this._zone.runOutsideAngular(function () {
574
+ rxjs.fromEvent(document, 'mousemove')
575
+ .pipe(operators.takeUntil(componentVisibilityChange$), operators.takeUntil(_this._destroy$))
576
+ .subscribe(function (e) {
577
+ _this.spinner.nativeElement.style.left = e.x + 'px';
578
+ _this.spinner.nativeElement.style.top = (e.y + 20) + 'px';
579
+ });
580
+ });
581
+ };
582
+ FsPopoverWrapperComponent.prototype._updateClass = function () {
583
+ this.class = ['popover-wrapper', this._wrapperClass].filter(Boolean).join(' ');
584
+ };
585
+ FsPopoverWrapperComponent.prototype._observeContentChanges = function () {
586
+ var _this = this;
587
+ var config = {
588
+ childList: true,
589
+ subtree: true
590
+ };
591
+ this._contentChangesObserver = new MutationObserver(function () {
592
+ _this.updatePosition();
593
+ });
594
+ this._contentChangesObserver.observe(this._el.nativeElement, config);
595
+ };
596
+ FsPopoverWrapperComponent.prototype._listenUpdatePositionRequests = function () {
597
+ var _this = this;
598
+ this._updatePosition
599
+ .pipe(operators.debounceTime(50), operators.takeUntil(this._destroy$))
600
+ .subscribe(function () {
601
+ _this.popoverRef.updatePosition();
602
+ });
603
+ };
604
+ return FsPopoverWrapperComponent;
605
+ }(i3.BasePortalOutlet));
606
+ FsPopoverWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverWrapperComponent, deps: [{ token: FsPopoverRef }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
607
+ FsPopoverWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsPopoverWrapperComponent, selector: "fs-popover-wrapper", host: { properties: { "class": "this.class" } }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: i3.CdkPortalOutlet, descendants: true, static: true }, { propertyName: "spinner", first: true, predicate: ["spinner"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"wrapper\" [ngClass]=\"{\n 'theme-dark' : popoverRef.theme === 'dark',\n 'size-tiny': popoverRef.size === 'tiny',\n 'size-small': popoverRef.size === 'small',\n 'hidden': !(popoverRef.componentVisible$ | async)\n }\">\n <div class=\"mat-elevation-z4 popover-content\">\n <ng-container *ngIf=\"content\">\n {{content}}\n </ng-container>\n\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n\n <div class=\"fs-popover-arrow light\"></div>\n <div class=\"fs-popover-arrow dark\"></div>\n</div>\n\n<div class=\"loading-spinner\"\n #spinner\n *ngIf=\"popoverRef.loading && !(popoverRef.componentVisible$ | async)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" [attr.width]=\"popoverRef.loadingDiameter\" [attr.height]=\"popoverRef.loadingDiameter\" viewBox=\"0 0 42 42\" stroke=\"grey\">\n <g fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(1 1)\" stroke-width=\"3\">\n <circle stroke-opacity=\".5\" cx=\"18\" cy=\"18\" r=\"18\"/>\n <path d=\"M36 18c0-9.94-8.06-18-18-18\">\n <animateTransform attributeName=\"transform\" type=\"rotate\" from=\"0 18 18\" to=\"360 18 18\" dur=\"1s\" repeatCount=\"indefinite\"/>\n </path>\n </g>\n </g>\n </svg>\n</div>\n", styles: [".wrapper{padding:6px;animation:fadeIn ease .2s}.wrapper.hidden{display:none}.wrapper .popover-content{background:#fff;border-radius:4px;padding:8px;color:#1b1b1b;box-sizing:border-box;overflow:hidden}.wrapper.theme-dark .popover-content{background-color:#707070;color:#fff}.wrapper.size-small .popover-content{font-size:80%}.wrapper.size-tiny .popover-content{font-size:70%}.wrapper .fs-popover-arrow{width:0;height:0;font-size:0;line-height:0;position:absolute;z-index:200;z-index:1}.wrapper .fs-popover-arrow.dark{z-index:0}::ng-deep .fs-popover-top .fs-popover-arrow,::ng-deep .fs-popover-bottom .fs-popover-arrow{border-left:10px solid transparent;border-right:10px solid transparent}::ng-deep .fs-popover-left .fs-popover-arrow,::ng-deep .fs-popover-right .fs-popover-arrow{border-top:10px solid transparent;border-bottom:10px solid transparent}::ng-deep .fs-popover-top .fs-popover-arrow{bottom:-3px;left:calc(50% - 10px);border-top:10px solid #fff}::ng-deep .fs-popover-top .fs-popover-arrow.dark{border-top-color:#dfdfdf40;bottom:-4px}::ng-deep .fs-popover-bottom .fs-popover-arrow{top:-3px;left:calc(50% - 10px);border-bottom:10px solid #fff}::ng-deep .fs-popover-bottom .fs-popover-arrow.dark{border-bottom-color:#dfdfdf40;top:-4px}::ng-deep .fs-popover-left .fs-popover-arrow{left:-3px;top:calc(50% - 10px);border-right:10px solid #fff}::ng-deep .fs-popover-left .fs-popover-arrow.dark{border-right-color:#dfdfdf40;left:-4px}::ng-deep .fs-popover-right .fs-popover-arrow{right:-3px;top:calc(50% - 10px);border-left:10px solid #fff}::ng-deep .fs-popover-right .fs-popover-arrow.dark{border-left-color:#dfdfdf40;right:-4px}::ng-deep .fs-popover-bottom .wrapper.theme-dark .fs-popover-arrow{border-bottom-color:#707070}::ng-deep .fs-popover-left .wrapper.theme-dark .fs-popover-arrow{border-right-color:#707070}::ng-deep .fs-popover-right .wrapper.theme-dark .fs-popover-arrow{border-left-color:#707070}::ng-deep .fs-popover-top .wrapper.theme-dark .fs-popover-arrow{border-top-color:#707070}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}\n"], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
608
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverWrapperComponent, decorators: [{
609
+ type: i0.Component,
610
+ args: [{
611
+ selector: 'fs-popover-wrapper',
612
+ templateUrl: 'popover-wrapper.component.html',
613
+ styleUrls: ['popover-wrapper.component.scss'],
614
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
615
+ }]
616
+ }], ctorParameters: function () { return [{ type: FsPopoverRef }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { _portalOutlet: [{
617
+ type: i0.ViewChild,
618
+ args: [i3.CdkPortalOutlet, { static: true }]
619
+ }], spinner: [{
620
+ type: i0.ViewChild,
621
+ args: ['spinner']
622
+ }], class: [{
623
+ type: i0.HostBinding,
624
+ args: ['class']
622
625
  }] } });
623
626
 
624
- function createPopupPositionStrategy(el, overlay, position) {
625
- var overlayX = 'center';
626
- var overlayY = 'center';
627
- var originX = 'center';
628
- var originY = 'center';
629
- var offsetX = 0;
630
- var offsetY = 0;
631
- var panelClass = [];
632
- switch (position) {
633
- case exports.Position.North:
634
- originY = 'top';
635
- overlayY = 'bottom';
636
- panelClass = ['fs-popover-top'];
637
- offsetY = -8;
638
- break;
639
- case exports.Position.South:
640
- originY = 'bottom';
641
- overlayY = 'top';
642
- panelClass = ['fs-popover-bottom'];
643
- offsetY = 8;
644
- break;
645
- case exports.Position.East:
646
- overlayX = 'start';
647
- originX = 'end';
648
- panelClass = ['fs-popover-left'];
649
- offsetX = 8;
650
- break;
651
- case exports.Position.West:
652
- overlayX = 'end';
653
- originX = 'start';
654
- panelClass = ['fs-popover-right'];
655
- offsetX = -8;
656
- break;
657
- }
658
- return createBasePopupPositionStrategy(el, overlay)
659
- .withPositions([
660
- {
661
- originX: originX,
662
- originY: originY,
663
- overlayX: overlayX,
664
- overlayY: overlayY,
665
- offsetX: offsetX,
666
- offsetY: offsetY,
667
- panelClass: panelClass,
668
- }
669
- ]);
670
- }
671
- function createBasePopupPositionStrategy(el, overlay) {
672
- return overlay.position()
673
- .flexibleConnectedTo(el)
674
- .withGrowAfterOpen(true)
675
- .withFlexibleDimensions(false)
676
- .withViewportMargin(4);
627
+ function createPopupPositionStrategy(el, overlay, position) {
628
+ var overlayX = 'center';
629
+ var overlayY = 'center';
630
+ var originX = 'center';
631
+ var originY = 'center';
632
+ var offsetX = 0;
633
+ var offsetY = 0;
634
+ var panelClass = [];
635
+ switch (position) {
636
+ case exports.Position.North:
637
+ originY = 'top';
638
+ overlayY = 'bottom';
639
+ panelClass = ['fs-popover-top'];
640
+ offsetY = -8;
641
+ break;
642
+ case exports.Position.South:
643
+ originY = 'bottom';
644
+ overlayY = 'top';
645
+ panelClass = ['fs-popover-bottom'];
646
+ offsetY = 8;
647
+ break;
648
+ case exports.Position.East:
649
+ overlayX = 'start';
650
+ originX = 'end';
651
+ panelClass = ['fs-popover-left'];
652
+ offsetX = 8;
653
+ break;
654
+ case exports.Position.West:
655
+ overlayX = 'end';
656
+ originX = 'start';
657
+ panelClass = ['fs-popover-right'];
658
+ offsetX = -8;
659
+ break;
660
+ }
661
+ return createBasePopupPositionStrategy(el, overlay)
662
+ .withPositions([
663
+ {
664
+ originX: originX,
665
+ originY: originY,
666
+ overlayX: overlayX,
667
+ overlayY: overlayY,
668
+ offsetX: offsetX,
669
+ offsetY: offsetY,
670
+ panelClass: panelClass,
671
+ }
672
+ ]);
673
+ }
674
+ function createBasePopupPositionStrategy(el, overlay) {
675
+ return overlay.position()
676
+ .flexibleConnectedTo(el)
677
+ .withGrowAfterOpen(true)
678
+ .withFlexibleDimensions(false)
679
+ .withViewportMargin(4);
677
680
  }
678
681
 
679
- function createOverlayRef(el, overlay, position) {
680
- var config = {
681
- positionStrategy: createPopupPositionStrategy(el, overlay, position),
682
- scrollStrategy: overlay.scrollStrategies.reposition(),
683
- hasBackdrop: false
684
- };
685
- var overlayConfig = new i1.OverlayConfig(config);
686
- return overlay.create(overlayConfig);
682
+ function createOverlayRef(el, overlay, position) {
683
+ var config = {
684
+ positionStrategy: createPopupPositionStrategy(el, overlay, position),
685
+ scrollStrategy: overlay.scrollStrategies.reposition(),
686
+ hasBackdrop: false
687
+ };
688
+ var overlayConfig = new i1.OverlayConfig(config);
689
+ return overlay.create(overlayConfig);
687
690
  }
688
691
 
689
- function createInjector(popoverRef, parentInjector) {
690
- var injectionTokens = new WeakMap([
691
- [FsPopoverRef, popoverRef],
692
- ]);
693
- return new i3.PortalInjector(parentInjector, injectionTokens);
692
+ function createInjector(popoverRef, parentInjector) {
693
+ var injectionTokens = new WeakMap([
694
+ [FsPopoverRef, popoverRef],
695
+ ]);
696
+ return new i3.PortalInjector(parentInjector, injectionTokens);
694
697
  }
695
698
 
696
- function createTempatePortal(template, popoverRef, data) {
697
- return new i3.TemplatePortal(template, void 0, { data: data, popover: popoverRef });
699
+ function createTempatePortal(template, popoverRef, data) {
700
+ return new i3.TemplatePortal(template, void 0, { data: data, popover: popoverRef });
698
701
  }
699
702
 
700
- var FsPopoverService = /** @class */ (function () {
701
- function FsPopoverService(_injector, _overlay) {
702
- this._injector = _injector;
703
- this._overlay = _overlay;
704
- }
705
- Object.defineProperty(FsPopoverService.prototype, "hasActivePopover", {
706
- get: function () {
707
- return !!this._activeElement;
708
- },
709
- enumerable: false,
710
- configurable: true
711
- });
712
- Object.defineProperty(FsPopoverService.prototype, "activeElementGUID", {
713
- get: function () {
714
- return this._activeElementGUID;
715
- },
716
- enumerable: false,
717
- configurable: true
718
- });
719
- FsPopoverService.prototype.setActivePopoverGUID = function (value) {
720
- this._activeElementGUID = value;
721
- };
722
- FsPopoverService.prototype.openPopover = function (el, template, data, popoverRef, position) {
723
- if (this._activeElement) {
724
- this.close(this._activeElement.popoverRef);
725
- }
726
- var overlayRef = createOverlayRef(el, this._overlay, position);
727
- var containerRef = this._openPortalPreview(FsPopoverWrapperComponent, overlayRef, popoverRef);
728
- var templatePortal = createTempatePortal(template, popoverRef, data);
729
- containerRef.instance.attachTemplatePortal(templatePortal);
730
- popoverRef.overlayRef = overlayRef;
731
- this._activeElement = {
732
- overlayRef: overlayRef,
733
- popoverRef: popoverRef,
734
- };
735
- return containerRef.location.nativeElement;
736
- };
737
- FsPopoverService.prototype.close = function (popoverRef) {
738
- if (popoverRef === void 0) { popoverRef = null; }
739
- if (this._activeElement.popoverRef === popoverRef) {
740
- popoverRef.close();
741
- this._activeElement = void 0;
742
- this._activeElementGUID = void 0;
743
- }
744
- };
745
- FsPopoverService.prototype._openPortalPreview = function (component, overlayRef, popoverRef) {
746
- var containerPortal = new i3.ComponentPortal(component, void 0, createInjector(popoverRef, this._injector));
747
- return overlayRef.attach(containerPortal);
748
- };
749
- return FsPopoverService;
750
- }());
751
- FsPopoverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverService, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
752
- FsPopoverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverService, providedIn: 'root' });
753
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverService, decorators: [{
754
- type: i0.Injectable,
755
- args: [{
756
- providedIn: 'root',
757
- }]
703
+ var FsPopoverService = /** @class */ (function () {
704
+ function FsPopoverService(_injector, _overlay) {
705
+ this._injector = _injector;
706
+ this._overlay = _overlay;
707
+ }
708
+ Object.defineProperty(FsPopoverService.prototype, "hasActivePopover", {
709
+ get: function () {
710
+ return !!this._activeElement;
711
+ },
712
+ enumerable: false,
713
+ configurable: true
714
+ });
715
+ Object.defineProperty(FsPopoverService.prototype, "activeElementGUID", {
716
+ get: function () {
717
+ return this._activeElementGUID;
718
+ },
719
+ enumerable: false,
720
+ configurable: true
721
+ });
722
+ FsPopoverService.prototype.setActivePopoverGUID = function (value) {
723
+ this._activeElementGUID = value;
724
+ };
725
+ FsPopoverService.prototype.openPopover = function (el, content, data, popoverRef, position) {
726
+ if (this._activeElement) {
727
+ this.close(this._activeElement.popoverRef);
728
+ }
729
+ var overlayRef = createOverlayRef(el, this._overlay, position);
730
+ var containerRef = this._openPortalPreview(FsPopoverWrapperComponent, overlayRef, popoverRef);
731
+ if (content instanceof i0.TemplateRef) {
732
+ var templatePortal = createTempatePortal(content, popoverRef, data);
733
+ containerRef.instance.attachTemplatePortal(templatePortal);
734
+ }
735
+ else {
736
+ containerRef.instance.setTextualContent(content);
737
+ }
738
+ popoverRef.overlayRef = overlayRef;
739
+ this._activeElement = {
740
+ overlayRef: overlayRef,
741
+ popoverRef: popoverRef,
742
+ };
743
+ return containerRef.location.nativeElement;
744
+ };
745
+ FsPopoverService.prototype.close = function (popoverRef) {
746
+ if (popoverRef === void 0) { popoverRef = null; }
747
+ if (this._activeElement.popoverRef === popoverRef) {
748
+ popoverRef.close();
749
+ this._activeElement = void 0;
750
+ this._activeElementGUID = void 0;
751
+ }
752
+ };
753
+ FsPopoverService.prototype._openPortalPreview = function (component, overlayRef, popoverRef) {
754
+ var containerPortal = new i3.ComponentPortal(component, void 0, createInjector(popoverRef, this._injector));
755
+ return overlayRef.attach(containerPortal);
756
+ };
757
+ return FsPopoverService;
758
+ }());
759
+ FsPopoverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverService, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
760
+ FsPopoverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverService, providedIn: 'root' });
761
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverService, decorators: [{
762
+ type: i0.Injectable,
763
+ args: [{
764
+ providedIn: 'root',
765
+ }]
758
766
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i1__namespace.Overlay }]; } });
759
767
 
760
- var FsPopoverComponent = /** @class */ (function () {
761
- function FsPopoverComponent(_elRef, _popoverService, _ngZone, _router) {
762
- this._elRef = _elRef;
763
- this._popoverService = _popoverService;
764
- this._ngZone = _ngZone;
765
- this._router = _router;
766
- this._guid = common.guid('xxxxxxx');
767
- this.leaveDelay = 100;
768
- this.showDelay = 0;
769
- this.maxWidth = 250;
770
- this.autoShow = true;
771
- this.autoClose = true;
772
- this.loadingDiameter = 20;
773
- this.loading = true;
774
- this.indication = true;
775
- this.position = exports.Position.South;
776
- this.theme = 'light';
777
- this.size = 'normal';
778
- this.trigger = 'mouseover';
779
- this._mouseEnter$ = rxjs.fromEvent(this._elRef.nativeElement, 'mouseenter');
780
- this._mouseMove$ = rxjs.fromEvent(document, 'mousemove', { passive: true });
781
- this._mouseLeave$ = rxjs.fromEvent(this._elRef.nativeElement, 'mouseleave');
782
- this._popoverClosed$ = new rxjs.Subject();
783
- this._destroy$ = new rxjs.Subject();
784
- }
785
- Object.defineProperty(FsPopoverComponent.prototype, "openTimer$", {
786
- get: function () {
787
- return rxjs.timer(this.showDelay);
788
- },
789
- enumerable: false,
790
- configurable: true
791
- });
792
- Object.defineProperty(FsPopoverComponent.prototype, "closeTimer$", {
793
- get: function () {
794
- return rxjs.timer(this.leaveDelay);
795
- },
796
- enumerable: false,
797
- configurable: true
798
- });
799
- FsPopoverComponent.prototype.ngOnInit = function () {
800
- var _this = this;
801
- this._popoverRef = new FsPopoverRef({
802
- maxWidth: this.maxWidth,
803
- wrapperClass: this.wrapperClass,
804
- autoShow: this.autoShow,
805
- autoClose: this.autoClose,
806
- loadingDiameter: this.loadingDiameter,
807
- loading: this.loading,
808
- size: this.size,
809
- theme: this.theme,
810
- });
811
- this._ngZone.runOutsideAngular(function () {
812
- if (_this.trigger === 'click') {
813
- _this._listenMouseHostClick();
814
- }
815
- else {
816
- _this._listenMouseHostEnter();
817
- }
818
- });
819
- this._listenRouteChange();
820
- };
821
- FsPopoverComponent.prototype.ngOnDestroy = function () {
822
- this._popoverClosed$.next();
823
- this._destroy$.next();
824
- };
825
- FsPopoverComponent.prototype._closePopover = function () {
826
- var _this = this;
827
- this._popoverClosed$.next();
828
- this._ngZone.run(function () {
829
- _this._wrapperElement = null;
830
- if (_this._popoverService.hasActivePopover) {
831
- _this._popoverService.close(_this._popoverRef);
832
- }
833
- });
834
- };
835
- FsPopoverComponent.prototype._listenRouteChange = function () {
836
- var _this = this;
837
- this._router.events
838
- .pipe(operators.filter(function (event) {
839
- return event instanceof i2$1.NavigationEnd;
840
- }), rxjs.pipe(operators.takeUntil(this._destroy$
841
- .pipe(operators.delay(200)))))
842
- .subscribe(function () {
843
- _this._closePopover();
844
- });
845
- };
846
- FsPopoverComponent.prototype._listenMouseHostClick = function () {
847
- var _this = this;
848
- rxjs.fromEvent(this._elRef.nativeElement, 'click', { passive: true })
849
- .pipe(operators.tap(function (e) {
850
- e.stopPropagation();
851
- _this._openPopover();
852
- }), operators.switchMap(function () { return _this._listenMouseHostLeave$(); }), operators.switchMap(function () { return _this.closeTimer$; }), operators.takeUntil(this._destroy$))
853
- .subscribe(function () {
854
- _this._closePopover();
855
- });
856
- };
857
- FsPopoverComponent.prototype._listenMouseHostEnter = function () {
858
- var _this = this;
859
- var actualMouseState$ = rxjs.merge(this._mouseLeave$.pipe(operators.mapTo(true)), this._mouseEnter$.pipe(operators.mapTo(false)))
860
- .pipe(operators.startWith(false), operators.distinctUntilChanged());
861
- this._mouseEnter$
862
- .pipe(operators.filter(function () {
863
- return !_this._wrapperElement;
864
- }), operators.tap(function () {
865
- _this._popoverService.setActivePopoverGUID(_this._guid);
866
- }), operators.switchMap(function () { return _this.openTimer$; }),
867
- // we have to check that after all delays mouse still over an elemen
868
- operators.withLatestFrom(actualMouseState$), operators.filter(function (_a) {
869
- var _b = __read(_a, 2), _ = _b[0], mouseLeave = _b[1];
870
- return !mouseLeave;
871
- }), operators.tap(function () { return _this._openPopover(); }), operators.switchMap(function () { return _this._listenMouseHostLeave$(); }), operators.switchMap(function () { return _this.closeTimer$; }), operators.tap(function () { return _this._closePopover(); }), operators.finalize(function () { return _this._closePopover(); }), operators.takeUntil(this._destroy$))
872
- .subscribe();
873
- };
874
- FsPopoverComponent.prototype._openPopover = function () {
875
- var _this = this;
876
- if (this.trigger === 'mouseover' && this._popoverService.activeElementGUID !== this._guid) {
877
- return;
878
- }
879
- this._hostBounds = this._elRef.nativeElement.getBoundingClientRect();
880
- this._ngZone.run(function () {
881
- _this._wrapperElement = _this._popoverService.openPopover(_this._elRef, _this.template, _this.data, _this._popoverRef, _this.position);
882
- });
883
- };
884
- FsPopoverComponent.prototype._listenMouseHostLeave$ = function () {
885
- var _this = this;
886
- var mouseMove$ = this._mouseMove$
887
- .pipe(operators.debounceTime(50), operators.filter(function () { return !!_this._wrapperElement; }), operators.filter(function (event) {
888
- return _this._popoverRef.autoClose && _this._mouseLeftTheTargets(event);
889
- }));
890
- var mouseClick$ = rxjs.fromEvent(this._elRef.nativeElement, 'click');
891
- return rxjs.merge(mouseMove$, mouseClick$);
892
- //
893
- // return this._mouseLeave$
894
- // .pipe(
895
- // //
896
- // timeoutWith(200, mouseMove$),
897
- // );
898
- };
899
- // Check if mouse left target or popover rects
900
- FsPopoverComponent.prototype._mouseLeftTheTargets = function (event) {
901
- var hostBounds = this._hostBounds;
902
- var popoverBounds = this._wrapperElement.getBoundingClientRect();
903
- var pointInHostRect = pointInRect(hostBounds.x, hostBounds.y, hostBounds.x + hostBounds.width, hostBounds.y + hostBounds.height, event.x, event.y);
904
- var pointInPopoverRect = pointInRect(popoverBounds.x, popoverBounds.y, popoverBounds.x + popoverBounds.width, popoverBounds.y + popoverBounds.height, event.x, event.y);
905
- return !pointInHostRect && !pointInPopoverRect;
906
- };
907
- return FsPopoverComponent;
908
- }());
909
- FsPopoverComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverComponent, deps: [{ token: i0__namespace.ElementRef }, { token: FsPopoverService }, { token: i0__namespace.NgZone }, { token: i2__namespace$1.Router, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
910
- FsPopoverComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsPopoverComponent, selector: "fs-popover", inputs: { template: "template", data: "data", leaveDelay: "leaveDelay", showDelay: "showDelay", maxWidth: "maxWidth", wrapperClass: "wrapperClass", autoShow: "autoShow", autoClose: "autoClose", loadingDiameter: "loadingDiameter", loading: "loading", indication: "indication", position: "position", theme: "theme", size: "size", trigger: "trigger" }, host: { properties: { "class.indication": "this.indication" } }, ngImport: i0__namespace, template: "<span class=\"popover-container\"><ng-content></ng-content></span>\n", styles: [":host{display:inline-flex;cursor:pointer;position:relative}::ng-deep fs-popover.indication .popover-container{text-decoration:underline;-webkit-text-decoration-style:dashed;text-decoration-style:dashed;-webkit-text-decoration-color:#ccc;text-decoration-color:#ccc;text-underline-offset:3px;text-decoration-thickness:1px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
911
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverComponent, decorators: [{
912
- type: i0.Component,
913
- args: [{
914
- selector: 'fs-popover',
915
- templateUrl: 'popover.component.html',
916
- styleUrls: ['popover.component.scss'],
917
- changeDetection: i0.ChangeDetectionStrategy.OnPush
918
- }]
919
- }], ctorParameters: function () {
920
- return [{ type: i0__namespace.ElementRef }, { type: FsPopoverService }, { type: i0__namespace.NgZone }, { type: i2__namespace$1.Router, decorators: [{
921
- type: i0.Optional
922
- }] }];
923
- }, propDecorators: { template: [{
924
- type: i0.Input
925
- }], data: [{
926
- type: i0.Input
927
- }], leaveDelay: [{
928
- type: i0.Input
929
- }], showDelay: [{
930
- type: i0.Input
931
- }], maxWidth: [{
932
- type: i0.Input
933
- }], wrapperClass: [{
934
- type: i0.Input
935
- }], autoShow: [{
936
- type: i0.Input
937
- }], autoClose: [{
938
- type: i0.Input
939
- }], loadingDiameter: [{
940
- type: i0.Input
941
- }], loading: [{
942
- type: i0.Input
943
- }], indication: [{
944
- type: i0.Input
945
- }, {
946
- type: i0.HostBinding,
947
- args: ['class.indication']
948
- }], position: [{
949
- type: i0.Input
950
- }], theme: [{
951
- type: i0.Input
952
- }], size: [{
953
- type: i0.Input
954
- }], trigger: [{
955
- type: i0.Input
768
+ var FsPopoverDirective = /** @class */ (function () {
769
+ function FsPopoverDirective(_elRef, _popoverService, _ngZone, _router) {
770
+ this._elRef = _elRef;
771
+ this._popoverService = _popoverService;
772
+ this._ngZone = _ngZone;
773
+ this._router = _router;
774
+ this._guid = common.guid('xxxxxxx');
775
+ this.leaveDelay = 100;
776
+ this.showDelay = 0;
777
+ this.maxWidth = 250;
778
+ this.autoShow = true;
779
+ this.autoClose = true;
780
+ this.loadingDiameter = 20;
781
+ this.loading = true;
782
+ this.indication = true;
783
+ this.position = exports.Position.South;
784
+ this.theme = 'light';
785
+ this.size = 'normal';
786
+ this.trigger = 'mouseover';
787
+ this.enabled = true;
788
+ this._initialized = false;
789
+ this._mouseEnter$ = rxjs.fromEvent(this._elRef.nativeElement, 'mouseenter');
790
+ this._mouseMove$ = rxjs.fromEvent(document, 'mousemove', { passive: true });
791
+ this._mouseLeave$ = rxjs.fromEvent(this._elRef.nativeElement, 'mouseleave');
792
+ this._popoverClosed$ = new rxjs.Subject();
793
+ this._destroy$ = new rxjs.Subject();
794
+ }
795
+ Object.defineProperty(FsPopoverDirective.prototype, "openTimer$", {
796
+ get: function () {
797
+ return rxjs.timer(this.showDelay);
798
+ },
799
+ enumerable: false,
800
+ configurable: true
801
+ });
802
+ Object.defineProperty(FsPopoverDirective.prototype, "closeTimer$", {
803
+ get: function () {
804
+ return rxjs.timer(this.leaveDelay);
805
+ },
806
+ enumerable: false,
807
+ configurable: true
808
+ });
809
+ FsPopoverDirective.prototype.ngOnInit = function () {
810
+ if (this.enabled) {
811
+ this._initialize();
812
+ }
813
+ };
814
+ FsPopoverDirective.prototype.ngOnChanges = function (changes) {
815
+ var _a, _b;
816
+ if (((_a = changes.enabled) === null || _a === void 0 ? void 0 : _a.currentValue) !== ((_b = changes.enabled) === null || _b === void 0 ? void 0 : _b.previousValue)) {
817
+ if (this.enabled && !this._initialized) {
818
+ this._initialize();
819
+ }
820
+ }
821
+ };
822
+ FsPopoverDirective.prototype.ngOnDestroy = function () {
823
+ this._popoverClosed$.next();
824
+ this._destroy$.next();
825
+ };
826
+ FsPopoverDirective.prototype._closePopover = function () {
827
+ var _this = this;
828
+ this._popoverClosed$.next();
829
+ this._ngZone.run(function () {
830
+ _this._wrapperElement = null;
831
+ if (_this._popoverService.hasActivePopover) {
832
+ _this._popoverService.close(_this._popoverRef);
833
+ }
834
+ });
835
+ };
836
+ FsPopoverDirective.prototype._initialize = function () {
837
+ var _this = this;
838
+ if (this._initialized) {
839
+ return;
840
+ }
841
+ this._popoverRef = new FsPopoverRef({
842
+ maxWidth: this.maxWidth,
843
+ wrapperClass: this.wrapperClass,
844
+ autoShow: this.autoShow,
845
+ autoClose: this.autoClose,
846
+ loadingDiameter: this.loadingDiameter,
847
+ loading: this.loading,
848
+ size: this.size,
849
+ theme: this.theme,
850
+ });
851
+ this._ngZone.runOutsideAngular(function () {
852
+ if (_this.trigger === 'click') {
853
+ _this._listenMouseHostClick();
854
+ }
855
+ else {
856
+ _this._listenMouseHostEnter();
857
+ }
858
+ });
859
+ this._listenRouteChange();
860
+ this._initialized = true;
861
+ };
862
+ FsPopoverDirective.prototype._listenRouteChange = function () {
863
+ var _this = this;
864
+ this._router.events
865
+ .pipe(operators.filter(function (event) {
866
+ return event instanceof i2$1.NavigationEnd;
867
+ }), rxjs.pipe(operators.takeUntil(this._destroy$
868
+ .pipe(operators.delay(200)))))
869
+ .subscribe(function () {
870
+ _this._closePopover();
871
+ });
872
+ };
873
+ FsPopoverDirective.prototype._listenMouseHostClick = function () {
874
+ var _this = this;
875
+ rxjs.fromEvent(this._elRef.nativeElement, 'click', { passive: true })
876
+ .pipe(operators.filter(function () { return _this.enabled; }), operators.tap(function (e) {
877
+ e.stopPropagation();
878
+ _this._openPopover();
879
+ }), operators.switchMap(function () { return _this._listenMouseHostLeave$(); }), operators.switchMap(function () { return _this.closeTimer$; }), operators.takeUntil(this._destroy$))
880
+ .subscribe(function () {
881
+ _this._closePopover();
882
+ });
883
+ };
884
+ FsPopoverDirective.prototype._listenMouseHostEnter = function () {
885
+ var _this = this;
886
+ var actualMouseState$ = rxjs.merge(this._mouseLeave$.pipe(operators.mapTo(true)), this._mouseEnter$.pipe(operators.mapTo(false)))
887
+ .pipe(operators.startWith(false), operators.distinctUntilChanged());
888
+ this._mouseEnter$
889
+ .pipe(operators.filter(function () { return _this.enabled; }), operators.filter(function () {
890
+ return !_this._wrapperElement;
891
+ }), operators.tap(function () {
892
+ _this._popoverService.setActivePopoverGUID(_this._guid);
893
+ }), operators.switchMap(function () { return _this.openTimer$; }),
894
+ // we have to check that after all delays mouse still over an elemen
895
+ operators.withLatestFrom(actualMouseState$), operators.filter(function (_c) {
896
+ var _d = __read(_c, 2), _ = _d[0], mouseLeave = _d[1];
897
+ return !mouseLeave;
898
+ }), operators.tap(function () { return _this._openPopover(); }), operators.switchMap(function () { return _this._listenMouseHostLeave$(); }), operators.switchMap(function () { return _this.closeTimer$; }), operators.tap(function () { return _this._closePopover(); }), operators.finalize(function () { return _this._closePopover(); }), operators.takeUntil(this._destroy$))
899
+ .subscribe();
900
+ };
901
+ FsPopoverDirective.prototype._openPopover = function () {
902
+ var _this = this;
903
+ if (this.trigger === 'mouseover' && this._popoverService.activeElementGUID !== this._guid) {
904
+ return;
905
+ }
906
+ this._hostBounds = this._elRef.nativeElement.getBoundingClientRect();
907
+ this._ngZone.run(function () {
908
+ if (_this.template) {
909
+ _this._wrapperElement = _this._popoverService.openPopover(_this._elRef, _this.template, _this.data, _this._popoverRef, _this.position);
910
+ }
911
+ else {
912
+ _this._wrapperElement = _this._popoverService.openPopover(_this._elRef, _this.text, _this.data, _this._popoverRef, _this.position);
913
+ }
914
+ });
915
+ };
916
+ FsPopoverDirective.prototype._listenMouseHostLeave$ = function () {
917
+ var _this = this;
918
+ var mouseMove$ = this._mouseMove$
919
+ .pipe(operators.debounceTime(50), operators.filter(function () { return !!_this._wrapperElement; }), operators.filter(function (event) {
920
+ return _this._popoverRef.autoClose && _this._mouseLeftTheTargets(event);
921
+ }));
922
+ var mouseClick$ = rxjs.fromEvent(this._elRef.nativeElement, 'click');
923
+ return rxjs.merge(mouseMove$, mouseClick$);
924
+ //
925
+ // return this._mouseLeave$
926
+ // .pipe(
927
+ // //
928
+ // timeoutWith(200, mouseMove$),
929
+ // );
930
+ };
931
+ // Check if mouse left target or popover rects
932
+ FsPopoverDirective.prototype._mouseLeftTheTargets = function (event) {
933
+ var hostBounds = this._hostBounds;
934
+ var popoverBounds = this._wrapperElement.getBoundingClientRect();
935
+ var pointInHostRect = pointInRect(hostBounds.x, hostBounds.y, hostBounds.x + hostBounds.width, hostBounds.y + hostBounds.height, event.x, event.y);
936
+ var pointInPopoverRect = pointInRect(popoverBounds.x, popoverBounds.y, popoverBounds.x + popoverBounds.width, popoverBounds.y + popoverBounds.height, event.x, event.y);
937
+ return !pointInHostRect && !pointInPopoverRect;
938
+ };
939
+ return FsPopoverDirective;
940
+ }());
941
+ FsPopoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverDirective, deps: [{ token: i0__namespace.ElementRef }, { token: FsPopoverService }, { token: i0__namespace.NgZone }, { token: i2__namespace$1.Router, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
942
+ FsPopoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsPopoverDirective, selector: "[fsPopover]", inputs: { text: "text", template: "template", data: "data", leaveDelay: "leaveDelay", showDelay: "showDelay", maxWidth: "maxWidth", wrapperClass: "wrapperClass", autoShow: "autoShow", autoClose: "autoClose", loadingDiameter: "loadingDiameter", loading: "loading", indication: "indication", position: "position", theme: "theme", size: "size", trigger: "trigger", enabled: "enabled" }, host: { properties: { "class.indication": "this.indication" } }, usesOnChanges: true, ngImport: i0__namespace });
943
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverDirective, decorators: [{
944
+ type: i0.Directive,
945
+ args: [{
946
+ selector: '[fsPopover]',
947
+ }]
948
+ }], ctorParameters: function () {
949
+ return [{ type: i0__namespace.ElementRef }, { type: FsPopoverService }, { type: i0__namespace.NgZone }, { type: i2__namespace$1.Router, decorators: [{
950
+ type: i0.Optional
951
+ }] }];
952
+ }, propDecorators: { text: [{
953
+ type: i0.Input
954
+ }], template: [{
955
+ type: i0.Input
956
+ }], data: [{
957
+ type: i0.Input
958
+ }], leaveDelay: [{
959
+ type: i0.Input
960
+ }], showDelay: [{
961
+ type: i0.Input
962
+ }], maxWidth: [{
963
+ type: i0.Input
964
+ }], wrapperClass: [{
965
+ type: i0.Input
966
+ }], autoShow: [{
967
+ type: i0.Input
968
+ }], autoClose: [{
969
+ type: i0.Input
970
+ }], loadingDiameter: [{
971
+ type: i0.Input
972
+ }], loading: [{
973
+ type: i0.Input
974
+ }], indication: [{
975
+ type: i0.Input
976
+ }, {
977
+ type: i0.HostBinding,
978
+ args: ['class.indication']
979
+ }], position: [{
980
+ type: i0.Input
981
+ }], theme: [{
982
+ type: i0.Input
983
+ }], size: [{
984
+ type: i0.Input
985
+ }], trigger: [{
986
+ type: i0.Input
987
+ }], enabled: [{
988
+ type: i0.Input
956
989
  }] } });
957
990
 
958
- var FsPopoverModule = /** @class */ (function () {
959
- function FsPopoverModule() {
960
- }
961
- return FsPopoverModule;
962
- }());
963
- FsPopoverModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
964
- FsPopoverModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, declarations: [FsPopoverComponent,
965
- FsPopoverWrapperComponent], imports: [i2.CommonModule,
966
- i3.PortalModule], exports: [FsPopoverComponent] });
967
- FsPopoverModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, imports: [[
968
- i2.CommonModule,
969
- i3.PortalModule,
970
- ]] });
971
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, decorators: [{
972
- type: i0.NgModule,
973
- args: [{
974
- imports: [
975
- i2.CommonModule,
976
- i3.PortalModule,
977
- ],
978
- declarations: [
979
- FsPopoverComponent,
980
- FsPopoverWrapperComponent,
981
- ],
982
- exports: [
983
- FsPopoverComponent,
984
- ],
985
- }]
991
+ var FsPopoverComponent = /** @class */ (function (_super) {
992
+ __extends(FsPopoverComponent, _super);
993
+ function FsPopoverComponent() {
994
+ return _super !== null && _super.apply(this, arguments) || this;
995
+ }
996
+ return FsPopoverComponent;
997
+ }(FsPopoverDirective));
998
+ FsPopoverComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
999
+ FsPopoverComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsPopoverComponent, selector: "fs-popover", usesInheritance: true, ngImport: i0__namespace, template: "<span class=\"popover-container\"><ng-content></ng-content></span>\n", styles: [":host{display:inline-flex;cursor:pointer;position:relative}::ng-deep fs-popover.indication .popover-container{text-decoration:underline;-webkit-text-decoration-style:dashed;text-decoration-style:dashed;-webkit-text-decoration-color:#ccc;text-decoration-color:#ccc;text-underline-offset:3px;text-decoration-thickness:1px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1000
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverComponent, decorators: [{
1001
+ type: i0.Component,
1002
+ args: [{
1003
+ selector: 'fs-popover',
1004
+ templateUrl: 'popover.component.html',
1005
+ styleUrls: ['popover.component.scss'],
1006
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1007
+ }]
1008
+ }] });
1009
+
1010
+ var FsPopoverModule = /** @class */ (function () {
1011
+ function FsPopoverModule() {
1012
+ }
1013
+ return FsPopoverModule;
1014
+ }());
1015
+ FsPopoverModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1016
+ FsPopoverModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, declarations: [FsPopoverComponent,
1017
+ FsPopoverWrapperComponent,
1018
+ FsPopoverDirective], imports: [i2.CommonModule,
1019
+ i3.PortalModule], exports: [FsPopoverComponent,
1020
+ FsPopoverDirective] });
1021
+ FsPopoverModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, imports: [[
1022
+ i2.CommonModule,
1023
+ i3.PortalModule,
1024
+ ]] });
1025
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPopoverModule, decorators: [{
1026
+ type: i0.NgModule,
1027
+ args: [{
1028
+ imports: [
1029
+ i2.CommonModule,
1030
+ i3.PortalModule,
1031
+ ],
1032
+ declarations: [
1033
+ FsPopoverComponent,
1034
+ FsPopoverWrapperComponent,
1035
+ FsPopoverDirective,
1036
+ ],
1037
+ exports: [
1038
+ FsPopoverComponent,
1039
+ FsPopoverDirective,
1040
+ ],
1041
+ }]
986
1042
  }] });
987
1043
 
988
- /*
989
- * Public API Surface of fs-menu
1044
+ /*
1045
+ * Public API Surface of fs-menu
990
1046
  */
991
1047
 
992
- /**
993
- * Generated bundle index. Do not edit.
1048
+ /**
1049
+ * Generated bundle index. Do not edit.
994
1050
  */
995
1051
 
996
1052
  exports.FsPopoverComponent = FsPopoverComponent;
1053
+ exports.FsPopoverDirective = FsPopoverDirective;
997
1054
  exports.FsPopoverModule = FsPopoverModule;
998
1055
  exports.FsPopoverRef = FsPopoverRef;
999
1056