@firestitch/popover 12.3.0 → 14.0.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.
- package/app/class/popover-ref.d.ts +34 -34
- package/app/components/popover/popover.component.d.ts +6 -6
- package/app/components/popover-wrapper/popover-wrapper.component.d.ts +40 -40
- package/app/directives/popover.directive.d.ts +55 -55
- package/app/enums/position.d.ts +6 -6
- package/app/fs-popover.module.d.ts +11 -11
- package/app/helpers/create-injector.d.ts +4 -4
- package/app/helpers/create-overlay-ref.d.ts +4 -4
- package/app/helpers/create-position-strategy.d.ts +4 -4
- package/app/helpers/create-template-portal.d.ts +4 -4
- package/app/helpers/point-in-rect.d.ts +1 -1
- package/app/interfaces/popover-config.interface.d.ts +16 -16
- package/app/services/popover.service.d.ts +21 -21
- package/{esm2015/app/class/popover-ref.js → esm2020/app/class/popover-ref.mjs} +85 -85
- package/esm2020/app/components/popover/popover.component.mjs +15 -0
- package/esm2020/app/components/popover-wrapper/popover-wrapper.component.mjs +117 -0
- package/esm2020/app/directives/popover.directive.mjs +221 -0
- package/{esm2015/app/enums/position.js → esm2020/app/enums/position.mjs} +7 -7
- package/{esm2015/app/fs-popover.module.js → esm2020/app/fs-popover.module.mjs} +36 -38
- package/{esm2015/app/helpers/create-injector.js → esm2020/app/helpers/create-injector.mjs} +8 -8
- package/{esm2015/app/helpers/create-overlay-ref.js → esm2020/app/helpers/create-overlay-ref.mjs} +11 -11
- package/{esm2015/app/helpers/create-position-strategy.js → esm2020/app/helpers/create-position-strategy.mjs} +55 -55
- package/{esm2015/app/helpers/create-template-portal.js → esm2020/app/helpers/create-template-portal.mjs} +4 -4
- package/{esm2015/app/helpers/point-in-rect.js → esm2020/app/helpers/point-in-rect.mjs} +3 -3
- package/{esm2015/app/interfaces/popover-config.interface.js → esm2020/app/interfaces/popover-config.interface.mjs} +1 -1
- package/{esm2015/app/services/popover.service.js → esm2020/app/services/popover.service.mjs} +64 -64
- package/{esm2015/firestitch-popover.js → esm2020/firestitch-popover.mjs} +4 -4
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +8 -8
- package/fesm2015/firestitch-popover.mjs +611 -0
- package/fesm2015/firestitch-popover.mjs.map +1 -0
- package/{fesm2015/firestitch-popover.js → fesm2020/firestitch-popover.mjs} +565 -579
- package/fesm2020/firestitch-popover.mjs.map +1 -0
- package/{firestitch-popover.d.ts → index.d.ts} +5 -5
- package/package.json +21 -8
- package/public_api.d.ts +6 -6
- package/styles.scss +2 -2
- package/bundles/firestitch-popover.umd.js +0 -1070
- package/bundles/firestitch-popover.umd.js.map +0 -1
- package/esm2015/app/components/popover/popover.component.js +0 -20
- package/esm2015/app/components/popover-wrapper/popover-wrapper.component.js +0 -123
- package/esm2015/app/directives/popover.directive.js +0 -222
- package/fesm2015/firestitch-popover.js.map +0 -1
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, ViewChild, TemplateRef, Injectable, Directive, Optional, Input, HostBinding, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i3 from '@angular/cdk/portal';
|
|
6
|
+
import { BasePortalOutlet, CdkPortalOutlet, PortalInjector, TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
7
|
+
import * as i2$1 from '@angular/router';
|
|
8
|
+
import { NavigationEnd } from '@angular/router';
|
|
9
|
+
import { BehaviorSubject, combineLatest, Subject, fromEvent, timer, pipe, merge } from 'rxjs';
|
|
10
|
+
import { map, filter, takeUntil, debounceTime, delay, tap, switchMap, mapTo, startWith, distinctUntilChanged, withLatestFrom, finalize } from 'rxjs/operators';
|
|
11
|
+
import { guid } from '@firestitch/common';
|
|
12
|
+
import * as i1 from '@angular/cdk/overlay';
|
|
13
|
+
import { OverlayConfig } from '@angular/cdk/overlay';
|
|
14
|
+
|
|
15
|
+
var Position;
|
|
16
|
+
(function (Position) {
|
|
17
|
+
Position["North"] = "north";
|
|
18
|
+
Position["South"] = "south";
|
|
19
|
+
Position["East"] = "east";
|
|
20
|
+
Position["West"] = "west";
|
|
21
|
+
})(Position || (Position = {}));
|
|
22
|
+
|
|
23
|
+
function pointInRect(x1, y1, x2, y2, px, py) {
|
|
24
|
+
return (px > x1 && px < x2) && (py > y1 && py < y2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
class FsPopoverRef {
|
|
28
|
+
constructor(config = {}) {
|
|
29
|
+
this._autoShow$ = new BehaviorSubject(true);
|
|
30
|
+
this._autoClose$ = new BehaviorSubject(true);
|
|
31
|
+
this._componentLoading$ = new BehaviorSubject(true);
|
|
32
|
+
this._init(config);
|
|
33
|
+
}
|
|
34
|
+
get loadingDiameter() {
|
|
35
|
+
return this._loadingDiameter;
|
|
36
|
+
}
|
|
37
|
+
get size() {
|
|
38
|
+
return this._size;
|
|
39
|
+
}
|
|
40
|
+
get theme() {
|
|
41
|
+
return this._theme;
|
|
42
|
+
}
|
|
43
|
+
get loading() {
|
|
44
|
+
return this._loading;
|
|
45
|
+
}
|
|
46
|
+
get autoShow$() {
|
|
47
|
+
return this._autoShow$.asObservable();
|
|
48
|
+
}
|
|
49
|
+
get autoShow() {
|
|
50
|
+
return this._autoShow$.getValue();
|
|
51
|
+
}
|
|
52
|
+
set autoShow(value) {
|
|
53
|
+
this._autoShow$.next(value);
|
|
54
|
+
}
|
|
55
|
+
get autoClose$() {
|
|
56
|
+
return this._autoClose$.asObservable();
|
|
57
|
+
}
|
|
58
|
+
get autoClose() {
|
|
59
|
+
return this._autoClose$.getValue();
|
|
60
|
+
}
|
|
61
|
+
set autoClose(value) {
|
|
62
|
+
this._autoClose$.next(value);
|
|
63
|
+
}
|
|
64
|
+
get componentVisible$() {
|
|
65
|
+
return combineLatest([
|
|
66
|
+
this.autoShow$,
|
|
67
|
+
this.componentLoading$,
|
|
68
|
+
]).pipe(map(([autoShow, componentLoading]) => {
|
|
69
|
+
return autoShow || !componentLoading;
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
get componentLoading$() {
|
|
73
|
+
return this._componentLoading$.asObservable();
|
|
74
|
+
}
|
|
75
|
+
get componentLoading() {
|
|
76
|
+
return this._componentLoading$.getValue();
|
|
77
|
+
}
|
|
78
|
+
get wrapperClass() {
|
|
79
|
+
return this._wrapperClass;
|
|
80
|
+
}
|
|
81
|
+
get maxWidth() {
|
|
82
|
+
return this._maxWidth;
|
|
83
|
+
}
|
|
84
|
+
show() {
|
|
85
|
+
setTimeout(() => {
|
|
86
|
+
this._componentLoading$.next(false);
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
this.updatePosition();
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
close() {
|
|
93
|
+
this.overlayRef.detach();
|
|
94
|
+
this._componentLoading$.next(true);
|
|
95
|
+
}
|
|
96
|
+
updatePosition() {
|
|
97
|
+
this.overlayRef.updatePosition();
|
|
98
|
+
}
|
|
99
|
+
_init(config) {
|
|
100
|
+
this._wrapperClass = config.wrapperClass;
|
|
101
|
+
this._maxWidth = config.maxWidth;
|
|
102
|
+
this._loading = config.loading;
|
|
103
|
+
this._loadingDiameter = config.loadingDiameter;
|
|
104
|
+
this._size = config.size;
|
|
105
|
+
this._theme = config.theme;
|
|
106
|
+
this._autoShow$.next(config.autoShow);
|
|
107
|
+
this._autoClose$.next(config.autoClose);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
class FsPopoverWrapperComponent extends BasePortalOutlet {
|
|
112
|
+
constructor(popoverRef, _el, _zone, _renderer) {
|
|
113
|
+
super();
|
|
114
|
+
this.popoverRef = popoverRef;
|
|
115
|
+
this._el = _el;
|
|
116
|
+
this._zone = _zone;
|
|
117
|
+
this._renderer = _renderer;
|
|
118
|
+
this._updatePosition = new Subject();
|
|
119
|
+
this._destroy$ = new Subject();
|
|
120
|
+
this._updateClass();
|
|
121
|
+
this.wrapperClass = this.popoverRef.wrapperClass;
|
|
122
|
+
this.maxWidth = this.popoverRef.maxWidth;
|
|
123
|
+
}
|
|
124
|
+
set maxWidth(value) {
|
|
125
|
+
this._el.nativeElement.style.maxWidth = value ? value + 'px' : void 0;
|
|
126
|
+
}
|
|
127
|
+
set wrapperClass(value) {
|
|
128
|
+
this._wrapperClass = value;
|
|
129
|
+
this._updateClass();
|
|
130
|
+
}
|
|
131
|
+
ngOnInit() {
|
|
132
|
+
if (!this.popoverRef.autoShow && this.popoverRef.componentLoading) {
|
|
133
|
+
this._watchMousePosition();
|
|
134
|
+
}
|
|
135
|
+
this._observeContentChanges();
|
|
136
|
+
this._listenUpdatePositionRequests();
|
|
137
|
+
}
|
|
138
|
+
ngOnDestroy() {
|
|
139
|
+
this._contentChangesObserver.disconnect();
|
|
140
|
+
this._destroy$.next();
|
|
141
|
+
this._destroy$.complete();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Attach a TemplatePortal as content to this popover container.
|
|
145
|
+
* @param portal Portal to be attached as the popover content.
|
|
146
|
+
*/
|
|
147
|
+
attachTemplatePortal(portal) {
|
|
148
|
+
if (this._portalOutlet.hasAttached()) {
|
|
149
|
+
throw Error('Popover template already attached');
|
|
150
|
+
}
|
|
151
|
+
return this._portalOutlet.attachTemplatePortal(portal);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Attach a ComponentPortal as content to this popover container.
|
|
155
|
+
* @param portal Portal to be attached as the popover content.
|
|
156
|
+
*/
|
|
157
|
+
attachComponentPortal(portal) {
|
|
158
|
+
if (this._portalOutlet.hasAttached()) {
|
|
159
|
+
throw Error('Popover component already attached');
|
|
160
|
+
}
|
|
161
|
+
return this._portalOutlet.attachComponentPortal(portal);
|
|
162
|
+
}
|
|
163
|
+
setTextualContent(content) {
|
|
164
|
+
this.content = content;
|
|
165
|
+
}
|
|
166
|
+
updatePosition() {
|
|
167
|
+
this._updatePosition.next();
|
|
168
|
+
}
|
|
169
|
+
_watchMousePosition() {
|
|
170
|
+
const componentVisibilityChange$ = this.popoverRef.componentVisible$
|
|
171
|
+
.pipe(filter((value) => value === true));
|
|
172
|
+
this._zone.runOutsideAngular(() => {
|
|
173
|
+
fromEvent(document, 'mousemove')
|
|
174
|
+
.pipe(takeUntil(componentVisibilityChange$), takeUntil(this._destroy$))
|
|
175
|
+
.subscribe((e) => {
|
|
176
|
+
this.spinner.nativeElement.style.left = e.x + 'px';
|
|
177
|
+
this.spinner.nativeElement.style.top = (e.y + 20) + 'px';
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
_updateClass() {
|
|
182
|
+
if (this._wrapperClass) {
|
|
183
|
+
this._renderer.addClass(this._el.nativeElement, this._wrapperClass);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
_observeContentChanges() {
|
|
187
|
+
const config = {
|
|
188
|
+
childList: true,
|
|
189
|
+
subtree: true
|
|
190
|
+
};
|
|
191
|
+
this._contentChangesObserver = new MutationObserver(() => {
|
|
192
|
+
this.updatePosition();
|
|
193
|
+
});
|
|
194
|
+
this._contentChangesObserver.observe(this._el.nativeElement, config);
|
|
195
|
+
}
|
|
196
|
+
_listenUpdatePositionRequests() {
|
|
197
|
+
this._updatePosition
|
|
198
|
+
.pipe(debounceTime(50), takeUntil(this._destroy$))
|
|
199
|
+
.subscribe(() => {
|
|
200
|
+
this.popoverRef.updatePosition();
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
FsPopoverWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverWrapperComponent, deps: [{ token: FsPopoverRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
205
|
+
FsPopoverWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsPopoverWrapperComponent, selector: "fs-popover-wrapper", host: { classAttribute: "fs-popover-wrapper" }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }, { propertyName: "spinner", first: true, predicate: ["spinner"], descendants: true }], usesInheritance: true, ngImport: i0, 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"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverWrapperComponent, decorators: [{
|
|
207
|
+
type: Component,
|
|
208
|
+
args: [{ selector: 'fs-popover-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
209
|
+
'class': 'fs-popover-wrapper',
|
|
210
|
+
}, 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"] }]
|
|
211
|
+
}], ctorParameters: function () { return [{ type: FsPopoverRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { _portalOutlet: [{
|
|
212
|
+
type: ViewChild,
|
|
213
|
+
args: [CdkPortalOutlet, { static: true }]
|
|
214
|
+
}], spinner: [{
|
|
215
|
+
type: ViewChild,
|
|
216
|
+
args: ['spinner']
|
|
217
|
+
}] } });
|
|
218
|
+
|
|
219
|
+
function createPopupPositionStrategy(el, overlay, position) {
|
|
220
|
+
let overlayX = 'center';
|
|
221
|
+
let overlayY = 'center';
|
|
222
|
+
let originX = 'center';
|
|
223
|
+
let originY = 'center';
|
|
224
|
+
let offsetX = 0;
|
|
225
|
+
let offsetY = 0;
|
|
226
|
+
let panelClass = [];
|
|
227
|
+
switch (position) {
|
|
228
|
+
case Position.North:
|
|
229
|
+
originY = 'top';
|
|
230
|
+
overlayY = 'bottom';
|
|
231
|
+
panelClass = ['fs-popover-top'];
|
|
232
|
+
offsetY = -8;
|
|
233
|
+
break;
|
|
234
|
+
case Position.South:
|
|
235
|
+
originY = 'bottom';
|
|
236
|
+
overlayY = 'top';
|
|
237
|
+
panelClass = ['fs-popover-bottom'];
|
|
238
|
+
offsetY = 8;
|
|
239
|
+
break;
|
|
240
|
+
case Position.East:
|
|
241
|
+
overlayX = 'start';
|
|
242
|
+
originX = 'end';
|
|
243
|
+
panelClass = ['fs-popover-left'];
|
|
244
|
+
offsetX = 8;
|
|
245
|
+
break;
|
|
246
|
+
case Position.West:
|
|
247
|
+
overlayX = 'end';
|
|
248
|
+
originX = 'start';
|
|
249
|
+
panelClass = ['fs-popover-right'];
|
|
250
|
+
offsetX = -8;
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
return createBasePopupPositionStrategy(el, overlay)
|
|
254
|
+
.withPositions([
|
|
255
|
+
{
|
|
256
|
+
originX: originX,
|
|
257
|
+
originY: originY,
|
|
258
|
+
overlayX: overlayX,
|
|
259
|
+
overlayY: overlayY,
|
|
260
|
+
offsetX: offsetX,
|
|
261
|
+
offsetY: offsetY,
|
|
262
|
+
panelClass: panelClass,
|
|
263
|
+
}
|
|
264
|
+
]);
|
|
265
|
+
}
|
|
266
|
+
function createBasePopupPositionStrategy(el, overlay) {
|
|
267
|
+
return overlay.position()
|
|
268
|
+
.flexibleConnectedTo(el)
|
|
269
|
+
.withGrowAfterOpen(true)
|
|
270
|
+
.withFlexibleDimensions(false)
|
|
271
|
+
.withViewportMargin(4);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
function createOverlayRef(el, overlay, position) {
|
|
275
|
+
const config = {
|
|
276
|
+
positionStrategy: createPopupPositionStrategy(el, overlay, position),
|
|
277
|
+
scrollStrategy: overlay.scrollStrategies.reposition(),
|
|
278
|
+
hasBackdrop: false
|
|
279
|
+
};
|
|
280
|
+
const overlayConfig = new OverlayConfig(config);
|
|
281
|
+
return overlay.create(overlayConfig);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function createInjector(popoverRef, parentInjector) {
|
|
285
|
+
const injectionTokens = new WeakMap([
|
|
286
|
+
[FsPopoverRef, popoverRef],
|
|
287
|
+
]);
|
|
288
|
+
return new PortalInjector(parentInjector, injectionTokens);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function createTempatePortal(template, popoverRef, data) {
|
|
292
|
+
return new TemplatePortal(template, void 0, { data: data, popover: popoverRef });
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
class FsPopoverService {
|
|
296
|
+
constructor(_injector, _overlay) {
|
|
297
|
+
this._injector = _injector;
|
|
298
|
+
this._overlay = _overlay;
|
|
299
|
+
}
|
|
300
|
+
get hasActivePopover() {
|
|
301
|
+
return !!this._activeElement;
|
|
302
|
+
}
|
|
303
|
+
get activeElementGUID() {
|
|
304
|
+
return this._activeElementGUID;
|
|
305
|
+
}
|
|
306
|
+
setActivePopoverGUID(value) {
|
|
307
|
+
this._activeElementGUID = value;
|
|
308
|
+
}
|
|
309
|
+
openPopover(el, content, data, popoverRef, position) {
|
|
310
|
+
if (this._activeElement) {
|
|
311
|
+
this.close(this._activeElement.popoverRef);
|
|
312
|
+
}
|
|
313
|
+
const overlayRef = createOverlayRef(el, this._overlay, position);
|
|
314
|
+
const containerRef = this._openPortalPreview(FsPopoverWrapperComponent, overlayRef, popoverRef);
|
|
315
|
+
if (content instanceof TemplateRef) {
|
|
316
|
+
const templatePortal = createTempatePortal(content, popoverRef, data);
|
|
317
|
+
containerRef.instance.attachTemplatePortal(templatePortal);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
containerRef.instance.setTextualContent(content);
|
|
321
|
+
}
|
|
322
|
+
popoverRef.overlayRef = overlayRef;
|
|
323
|
+
this._activeElement = {
|
|
324
|
+
overlayRef,
|
|
325
|
+
popoverRef,
|
|
326
|
+
};
|
|
327
|
+
return containerRef.location.nativeElement;
|
|
328
|
+
}
|
|
329
|
+
close(popoverRef = null) {
|
|
330
|
+
if (this._activeElement.popoverRef === popoverRef) {
|
|
331
|
+
popoverRef.close();
|
|
332
|
+
this._activeElement = void 0;
|
|
333
|
+
this._activeElementGUID = void 0;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
_openPortalPreview(component, overlayRef, popoverRef) {
|
|
337
|
+
const containerPortal = new ComponentPortal(component, void 0, createInjector(popoverRef, this._injector));
|
|
338
|
+
return overlayRef.attach(containerPortal);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
FsPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverService, deps: [{ token: i0.Injector }, { token: i1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
342
|
+
FsPopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverService, providedIn: 'root' });
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverService, decorators: [{
|
|
344
|
+
type: Injectable,
|
|
345
|
+
args: [{
|
|
346
|
+
providedIn: 'root',
|
|
347
|
+
}]
|
|
348
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.Overlay }]; } });
|
|
349
|
+
|
|
350
|
+
class FsPopoverDirective {
|
|
351
|
+
constructor(_elRef, _popoverService, _ngZone, _router) {
|
|
352
|
+
this._elRef = _elRef;
|
|
353
|
+
this._popoverService = _popoverService;
|
|
354
|
+
this._ngZone = _ngZone;
|
|
355
|
+
this._router = _router;
|
|
356
|
+
this._guid = guid('xxxxxxx');
|
|
357
|
+
this.leaveDelay = 100;
|
|
358
|
+
this.showDelay = 0;
|
|
359
|
+
this.maxWidth = 250;
|
|
360
|
+
this.autoShow = true;
|
|
361
|
+
this.autoClose = true;
|
|
362
|
+
this.loadingDiameter = 20;
|
|
363
|
+
this.loading = true;
|
|
364
|
+
this.indication = true;
|
|
365
|
+
this.position = Position.South;
|
|
366
|
+
this.theme = 'light';
|
|
367
|
+
this.size = 'normal';
|
|
368
|
+
this.trigger = 'mouseover';
|
|
369
|
+
this.enabled = true;
|
|
370
|
+
this._initialized = false;
|
|
371
|
+
this._mouseEnter$ = fromEvent(this._elRef.nativeElement, 'mouseenter');
|
|
372
|
+
this._mouseMove$ = fromEvent(document, 'mousemove', { passive: true });
|
|
373
|
+
this._mouseLeave$ = fromEvent(this._elRef.nativeElement, 'mouseleave');
|
|
374
|
+
this._popoverClosed$ = new Subject();
|
|
375
|
+
this._destroy$ = new Subject();
|
|
376
|
+
}
|
|
377
|
+
get openTimer$() {
|
|
378
|
+
return timer(this.showDelay);
|
|
379
|
+
}
|
|
380
|
+
get closeTimer$() {
|
|
381
|
+
return timer(this.leaveDelay);
|
|
382
|
+
}
|
|
383
|
+
ngOnInit() {
|
|
384
|
+
if (this.enabled) {
|
|
385
|
+
this._initialize();
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
ngOnChanges(changes) {
|
|
389
|
+
var _a, _b;
|
|
390
|
+
if (((_a = changes.enabled) === null || _a === void 0 ? void 0 : _a.currentValue) !== ((_b = changes.enabled) === null || _b === void 0 ? void 0 : _b.previousValue)) {
|
|
391
|
+
if (this.enabled && !this._initialized) {
|
|
392
|
+
this._initialize();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
ngOnDestroy() {
|
|
397
|
+
this._popoverClosed$.next();
|
|
398
|
+
this._destroy$.next();
|
|
399
|
+
}
|
|
400
|
+
_closePopover() {
|
|
401
|
+
this._popoverClosed$.next();
|
|
402
|
+
this._ngZone.run(() => {
|
|
403
|
+
this._wrapperElement = null;
|
|
404
|
+
if (this._popoverService.hasActivePopover) {
|
|
405
|
+
this._popoverService.close(this._popoverRef);
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
_initialize() {
|
|
410
|
+
if (this._initialized) {
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
this._popoverRef = new FsPopoverRef({
|
|
414
|
+
maxWidth: this.maxWidth,
|
|
415
|
+
wrapperClass: this.wrapperClass,
|
|
416
|
+
autoShow: this.autoShow,
|
|
417
|
+
autoClose: this.autoClose,
|
|
418
|
+
loadingDiameter: this.loadingDiameter,
|
|
419
|
+
loading: this.loading,
|
|
420
|
+
size: this.size,
|
|
421
|
+
theme: this.theme,
|
|
422
|
+
});
|
|
423
|
+
this._ngZone.runOutsideAngular(() => {
|
|
424
|
+
if (this.trigger === 'click') {
|
|
425
|
+
this._listenMouseHostClick();
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
this._listenMouseHostEnter();
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
this._listenRouteChange();
|
|
432
|
+
this._initialized = true;
|
|
433
|
+
}
|
|
434
|
+
_listenRouteChange() {
|
|
435
|
+
this._router.events
|
|
436
|
+
.pipe(filter((event) => {
|
|
437
|
+
return event instanceof NavigationEnd;
|
|
438
|
+
}), pipe(takeUntil(this._destroy$
|
|
439
|
+
.pipe(delay(200)))))
|
|
440
|
+
.subscribe(() => {
|
|
441
|
+
this._closePopover();
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
_listenMouseHostClick() {
|
|
445
|
+
fromEvent(this._elRef.nativeElement, 'click', { passive: true })
|
|
446
|
+
.pipe(filter(() => this.enabled), tap((e) => {
|
|
447
|
+
e.stopPropagation();
|
|
448
|
+
this._openPopover();
|
|
449
|
+
}), switchMap(() => this._listenMouseHostLeave$()), switchMap(() => this.closeTimer$), takeUntil(this._destroy$))
|
|
450
|
+
.subscribe(() => {
|
|
451
|
+
this._closePopover();
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
_listenMouseHostEnter() {
|
|
455
|
+
const actualMouseState$ = merge(this._mouseLeave$.pipe(mapTo(true)), this._mouseEnter$.pipe(mapTo(false)))
|
|
456
|
+
.pipe(startWith(false), distinctUntilChanged());
|
|
457
|
+
this._mouseEnter$
|
|
458
|
+
.pipe(filter(() => this.enabled), filter(() => {
|
|
459
|
+
return !this._wrapperElement;
|
|
460
|
+
}), tap(() => {
|
|
461
|
+
this._popoverService.setActivePopoverGUID(this._guid);
|
|
462
|
+
}), switchMap(() => this.openTimer$),
|
|
463
|
+
// we have to check that after all delays mouse still over an elemen
|
|
464
|
+
withLatestFrom(actualMouseState$), filter(([_, mouseLeave]) => {
|
|
465
|
+
return !mouseLeave;
|
|
466
|
+
}), tap(() => this._openPopover()), switchMap(() => this._listenMouseHostLeave$()), switchMap(() => this.closeTimer$), tap(() => this._closePopover()), finalize(() => this._closePopover()), takeUntil(this._destroy$))
|
|
467
|
+
.subscribe();
|
|
468
|
+
}
|
|
469
|
+
_openPopover() {
|
|
470
|
+
if (this.trigger === 'mouseover' && this._popoverService.activeElementGUID !== this._guid) {
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
this._hostBounds = this._elRef.nativeElement.getBoundingClientRect();
|
|
474
|
+
this._ngZone.run(() => {
|
|
475
|
+
if (this.template) {
|
|
476
|
+
this._wrapperElement = this._popoverService.openPopover(this._elRef, this.template, this.data, this._popoverRef, this.position);
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
this._wrapperElement = this._popoverService.openPopover(this._elRef, this.text, this.data, this._popoverRef, this.position);
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
_listenMouseHostLeave$() {
|
|
484
|
+
const mouseMove$ = this._mouseMove$
|
|
485
|
+
.pipe(debounceTime(50), filter(() => !!this._wrapperElement), filter((event) => {
|
|
486
|
+
return this._popoverRef.autoClose && this._mouseLeftTheTargets(event);
|
|
487
|
+
}));
|
|
488
|
+
const mouseClick$ = fromEvent(this._elRef.nativeElement, 'click');
|
|
489
|
+
return merge(mouseMove$, mouseClick$);
|
|
490
|
+
//
|
|
491
|
+
// return this._mouseLeave$
|
|
492
|
+
// .pipe(
|
|
493
|
+
// //
|
|
494
|
+
// timeoutWith(200, mouseMove$),
|
|
495
|
+
// );
|
|
496
|
+
}
|
|
497
|
+
// Check if mouse left target or popover rects
|
|
498
|
+
_mouseLeftTheTargets(event) {
|
|
499
|
+
const hostBounds = this._hostBounds;
|
|
500
|
+
const popoverBounds = this._wrapperElement.getBoundingClientRect();
|
|
501
|
+
const pointInHostRect = pointInRect(hostBounds.x, hostBounds.y, hostBounds.x + hostBounds.width, hostBounds.y + hostBounds.height, event.x, event.y);
|
|
502
|
+
const pointInPopoverRect = pointInRect(popoverBounds.x, popoverBounds.y, popoverBounds.x + popoverBounds.width, popoverBounds.y + popoverBounds.height, event.x, event.y);
|
|
503
|
+
return !pointInHostRect && !pointInPopoverRect;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
FsPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverDirective, deps: [{ token: i0.ElementRef }, { token: FsPopoverService }, { token: i0.NgZone }, { token: i2$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
507
|
+
FsPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", 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", "class.fs-popover-enabled": "this.enabled" }, classAttribute: "fs-popover" }, usesOnChanges: true, ngImport: i0 });
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverDirective, decorators: [{
|
|
509
|
+
type: Directive,
|
|
510
|
+
args: [{
|
|
511
|
+
selector: '[fsPopover]',
|
|
512
|
+
host: {
|
|
513
|
+
'class': 'fs-popover',
|
|
514
|
+
},
|
|
515
|
+
}]
|
|
516
|
+
}], ctorParameters: function () {
|
|
517
|
+
return [{ type: i0.ElementRef }, { type: FsPopoverService }, { type: i0.NgZone }, { type: i2$1.Router, decorators: [{
|
|
518
|
+
type: Optional
|
|
519
|
+
}] }];
|
|
520
|
+
}, propDecorators: { text: [{
|
|
521
|
+
type: Input
|
|
522
|
+
}], template: [{
|
|
523
|
+
type: Input
|
|
524
|
+
}], data: [{
|
|
525
|
+
type: Input
|
|
526
|
+
}], leaveDelay: [{
|
|
527
|
+
type: Input
|
|
528
|
+
}], showDelay: [{
|
|
529
|
+
type: Input
|
|
530
|
+
}], maxWidth: [{
|
|
531
|
+
type: Input
|
|
532
|
+
}], wrapperClass: [{
|
|
533
|
+
type: Input
|
|
534
|
+
}], autoShow: [{
|
|
535
|
+
type: Input
|
|
536
|
+
}], autoClose: [{
|
|
537
|
+
type: Input
|
|
538
|
+
}], loadingDiameter: [{
|
|
539
|
+
type: Input
|
|
540
|
+
}], loading: [{
|
|
541
|
+
type: Input
|
|
542
|
+
}], indication: [{
|
|
543
|
+
type: Input
|
|
544
|
+
}, {
|
|
545
|
+
type: HostBinding,
|
|
546
|
+
args: ['class.indication']
|
|
547
|
+
}], position: [{
|
|
548
|
+
type: Input
|
|
549
|
+
}], theme: [{
|
|
550
|
+
type: Input
|
|
551
|
+
}], size: [{
|
|
552
|
+
type: Input
|
|
553
|
+
}], trigger: [{
|
|
554
|
+
type: Input
|
|
555
|
+
}], enabled: [{
|
|
556
|
+
type: Input
|
|
557
|
+
}, {
|
|
558
|
+
type: HostBinding,
|
|
559
|
+
args: ['class.fs-popover-enabled']
|
|
560
|
+
}] } });
|
|
561
|
+
|
|
562
|
+
class FsPopoverComponent extends FsPopoverDirective {
|
|
563
|
+
}
|
|
564
|
+
FsPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
565
|
+
FsPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsPopoverComponent, selector: "fs-popover", host: { classAttribute: "fs-popover-component" }, usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"{'popover-container': enabled}\">\n <ng-content></ng-content>\n</span>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverComponent, decorators: [{
|
|
567
|
+
type: Component,
|
|
568
|
+
args: [{ selector: 'fs-popover', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
569
|
+
'class': 'fs-popover-component',
|
|
570
|
+
}, template: "<span [ngClass]=\"{'popover-container': enabled}\">\n <ng-content></ng-content>\n</span>\n" }]
|
|
571
|
+
}] });
|
|
572
|
+
|
|
573
|
+
class FsPopoverModule {
|
|
574
|
+
}
|
|
575
|
+
FsPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
576
|
+
FsPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverModule, declarations: [FsPopoverComponent,
|
|
577
|
+
FsPopoverWrapperComponent,
|
|
578
|
+
FsPopoverDirective], imports: [CommonModule,
|
|
579
|
+
PortalModule], exports: [FsPopoverComponent,
|
|
580
|
+
FsPopoverDirective] });
|
|
581
|
+
FsPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverModule, imports: [CommonModule,
|
|
582
|
+
PortalModule] });
|
|
583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPopoverModule, decorators: [{
|
|
584
|
+
type: NgModule,
|
|
585
|
+
args: [{
|
|
586
|
+
imports: [
|
|
587
|
+
CommonModule,
|
|
588
|
+
PortalModule,
|
|
589
|
+
],
|
|
590
|
+
declarations: [
|
|
591
|
+
FsPopoverComponent,
|
|
592
|
+
FsPopoverWrapperComponent,
|
|
593
|
+
FsPopoverDirective,
|
|
594
|
+
],
|
|
595
|
+
exports: [
|
|
596
|
+
FsPopoverComponent,
|
|
597
|
+
FsPopoverDirective,
|
|
598
|
+
],
|
|
599
|
+
}]
|
|
600
|
+
}] });
|
|
601
|
+
|
|
602
|
+
/*
|
|
603
|
+
* Public API Surface of fs-menu
|
|
604
|
+
*/
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Generated bundle index. Do not edit.
|
|
608
|
+
*/
|
|
609
|
+
|
|
610
|
+
export { FsPopoverComponent, FsPopoverDirective, FsPopoverModule, FsPopoverRef, Position };
|
|
611
|
+
//# sourceMappingURL=firestitch-popover.mjs.map
|