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