@enigmatry/entry-components 15.0.1-preview.6 → 15.1.0-preview
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/README.md +5 -0
- package/esm2020/modules/entry-components.module.mjs +5 -1
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/spinner/enigmatry-entry-components-spinner.mjs +5 -0
- package/esm2020/spinner/entry-spinner/spinner.component.mjs +81 -0
- package/esm2020/spinner/public-api.mjs +3 -0
- package/esm2020/spinner/spinner-overlay-container.mjs +42 -0
- package/esm2020/spinner/spinner.module.mjs +32 -0
- package/fesm2015/enigmatry-entry-components-spinner.mjs +156 -0
- package/fesm2015/enigmatry-entry-components-spinner.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components.mjs +5 -0
- package/fesm2015/enigmatry-entry-components.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components-spinner.mjs +153 -0
- package/fesm2020/enigmatry-entry-components-spinner.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components.mjs +5 -0
- package/fesm2020/enigmatry-entry-components.mjs.map +1 -1
- package/modules/entry-components.module.d.ts +3 -2
- package/package.json +9 -1
- package/public-api.d.ts +1 -0
- package/spinner/README.md +37 -0
- package/spinner/entry-spinner/spinner.component.d.ts +24 -0
- package/spinner/index.d.ts +5 -0
- package/spinner/public-api.d.ts +2 -0
- package/spinner/spinner-overlay-container.d.ts +17 -0
- package/spinner/spinner.module.d.ts +10 -0
package/README.md
CHANGED
|
@@ -10,6 +10,11 @@ npm install @enigmatry/entry-components
|
|
|
10
10
|
|
|
11
11
|
## Basic Usage
|
|
12
12
|
|
|
13
|
+
### Theming configuration guide
|
|
14
|
+
|
|
15
|
+
For detailed instructions on configuring the theming of entry components, refer to the
|
|
16
|
+
[Theming Configuration Guide](configure-theming.md)
|
|
17
|
+
|
|
13
18
|
## Compatibility with Angular Versions
|
|
14
19
|
|
|
15
20
|
| @enigmatry/entry-components | Angular version
|
|
@@ -7,6 +7,7 @@ import { EntryValidationModule } from '@enigmatry/entry-components/validation';
|
|
|
7
7
|
import { EntryFileInputModule } from '@enigmatry/entry-components/file-input';
|
|
8
8
|
import { EntryTableModule } from '@enigmatry/entry-components/table';
|
|
9
9
|
import { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';
|
|
10
|
+
import { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* Exports all entry components.
|
|
@@ -35,6 +36,7 @@ EntryComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
35
36
|
EntryValidationModule,
|
|
36
37
|
EntryPermissionModule,
|
|
37
38
|
EntrySearchFilterModule,
|
|
39
|
+
EntrySpinnerModule,
|
|
38
40
|
EntryTableModule] });
|
|
39
41
|
EntryComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntryComponentsModule, imports: [EntryButtonModule,
|
|
40
42
|
EntryCommonModule,
|
|
@@ -43,6 +45,7 @@ EntryComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
43
45
|
EntryValidationModule,
|
|
44
46
|
EntryPermissionModule,
|
|
45
47
|
EntrySearchFilterModule,
|
|
48
|
+
EntrySpinnerModule,
|
|
46
49
|
EntryTableModule] });
|
|
47
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntryComponentsModule, decorators: [{
|
|
48
51
|
type: NgModule,
|
|
@@ -56,8 +59,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
56
59
|
EntryValidationModule,
|
|
57
60
|
EntryPermissionModule,
|
|
58
61
|
EntrySearchFilterModule,
|
|
62
|
+
EntrySpinnerModule,
|
|
59
63
|
EntryTableModule
|
|
60
64
|
]
|
|
61
65
|
}]
|
|
62
66
|
}] });
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktY29tcG9uZW50cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvbW9kdWxlcy9lbnRyeS1jb21wb25lbnRzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBa0IsTUFBTSxlQUFlLENBQUM7QUFDOUUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDdkUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDdkUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLHNCQUFzQixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDeEcsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDcEYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDL0UsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDOUUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDckUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDekYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUNBQXFDLENBQUM7O0FBTXpFOzs7Ozs7R0FNRztBQWVILE1BQU0sT0FBTyxxQkFBcUI7SUFDaEMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxVQUF3QyxFQUFFO1FBRXZELE1BQU0se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dWxlV2l0aFByb3ZpZGVyczxFbnRyeUNvbXBvbmVudHNNb2R1bGU+IHtcclxuXHJcbiAgICBjb25zdCBwZXJtaXNzaW9uU2VydmljZVByb3ZpZGVyOiBQcm92aWRlcltdID0gb3B0aW9ucy5wZXJtaXNzaW9uU2VydmljZVxyXG4gICAgICA/IFt7IHByb3ZpZGU6IEVudHJ5UGVybWlzc2lvblNlcnZpY2UsIHVzZUNsYXNzOiBvcHRpb25zLnBlcm1pc3Npb25TZXJ2aWNlIH1dXHJcbiAgICAgIDogW107XHJcblxyXG4gICAgY29uc3QgcHJvdmlkZXJzOiBQcm92aWRlcltdID0gWy4uLnBlcm1pc3Npb25TZXJ2aWNlUHJvdmlkZXIsIC4uLk5HX0VWRU5UX1BMVUdJTlNdO1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgbmdNb2R1bGU6IEVudHJ5Q29tcG9uZW50c01vZHVsZSxcclxuICAgICAgcHJvdmlkZXJzXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=
|
package/esm2020/public-api.mjs
CHANGED
|
@@ -7,7 +7,8 @@ export * from '@enigmatry/entry-components/dialog';
|
|
|
7
7
|
export * from '@enigmatry/entry-components/file-input';
|
|
8
8
|
export * from '@enigmatry/entry-components/permissions';
|
|
9
9
|
export * from '@enigmatry/entry-components/search-filter';
|
|
10
|
+
export * from '@enigmatry/entry-components/spinner';
|
|
10
11
|
export * from '@enigmatry/entry-components/validation';
|
|
11
12
|
export * from '@enigmatry/entry-components/table';
|
|
12
13
|
export { EntryComponentsModule } from './modules/entry-components.module';
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9wdWJsaWMtYXBpLnRzIl0sIm5hb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24nO1xuZXhwb3J0ICogZnJvbSAnQGVuaWdtYXRyeS9lbnRyeS1jb21wb25lbnRzL3RhYmxlJztcblxuZXhwb3J0IHsgRW50cnlDb21wb25lbnRzTW9kdWxlIH0gZnJvbSAnLi9tb2R1bGVzL2VudHJ5LWNvbXBvbmVudHMubW9kdWxlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5pZ21hdHJ5LWVudHJ5LWNvbXBvbmVudHMtc3Bpbm5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9zcGlubmVyL2VuaWdtYXRyeS1lbnRyeS1jb21wb25lbnRzLXNwaW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Overlay, OverlayConfig, OverlayContainer } from '@angular/cdk/overlay';
|
|
2
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
3
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild } from '@angular/core';
|
|
4
|
+
import { SpinnerOverlayContainer } from '../spinner-overlay-container';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
7
|
+
import * as i2 from "@angular/material/progress-spinner";
|
|
8
|
+
export class EntrySpinnerComponent {
|
|
9
|
+
constructor(overlay, viewContainerRef, overlayContainer, elementRef) {
|
|
10
|
+
this.overlay = overlay;
|
|
11
|
+
this.viewContainerRef = viewContainerRef;
|
|
12
|
+
this.overlayContainer = overlayContainer;
|
|
13
|
+
this.elementRef = elementRef;
|
|
14
|
+
this.color = 'primary';
|
|
15
|
+
this.diameter = 30;
|
|
16
|
+
this.fullscreen = false;
|
|
17
|
+
this.hasBackgroundOverlay = true;
|
|
18
|
+
}
|
|
19
|
+
ngOnInit() {
|
|
20
|
+
this.createOverlay();
|
|
21
|
+
this.overlayRef.attach(new TemplatePortal(this.templateRef, this.viewContainerRef));
|
|
22
|
+
}
|
|
23
|
+
ngOnDestroy() {
|
|
24
|
+
this.disposeOverlayRef();
|
|
25
|
+
}
|
|
26
|
+
createOverlay() {
|
|
27
|
+
const overlayConfig = new OverlayConfig({
|
|
28
|
+
hasBackdrop: this.hasBackgroundOverlay,
|
|
29
|
+
positionStrategy: this.overlay.position()
|
|
30
|
+
.global()
|
|
31
|
+
.centerHorizontally()
|
|
32
|
+
.centerVertically()
|
|
33
|
+
});
|
|
34
|
+
this.configureOverlayContainer();
|
|
35
|
+
this.overlayRef = this.overlay.create(overlayConfig);
|
|
36
|
+
}
|
|
37
|
+
configureOverlayContainer() {
|
|
38
|
+
let appendTo = this.elementRef.nativeElement;
|
|
39
|
+
if (this.fullscreen) {
|
|
40
|
+
appendTo = document.body;
|
|
41
|
+
}
|
|
42
|
+
this.overlayContainer
|
|
43
|
+
.configure(appendTo, { fullscreen: this.fullscreen });
|
|
44
|
+
}
|
|
45
|
+
disposeOverlayRef() {
|
|
46
|
+
if (this.overlayRef) {
|
|
47
|
+
this.overlayRef.detach();
|
|
48
|
+
this.overlayRef.dispose();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
EntrySpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerComponent, deps: [{ token: i1.Overlay }, { token: i0.ViewContainerRef }, { token: i1.OverlayContainer }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
EntrySpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EntrySpinnerComponent, selector: "entry-spinner", inputs: { color: "color", diameter: "diameter", fullscreen: "fullscreen", hasBackgroundOverlay: "hasBackgroundOverlay" }, providers: [
|
|
54
|
+
Overlay,
|
|
55
|
+
{
|
|
56
|
+
provide: OverlayContainer,
|
|
57
|
+
useClass: SpinnerOverlayContainer
|
|
58
|
+
}
|
|
59
|
+
], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["matSpinner"], descendants: true, static: true }], ngImport: i0, template: "<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>", dependencies: [{ kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerComponent, decorators: [{
|
|
61
|
+
type: Component,
|
|
62
|
+
args: [{ selector: 'entry-spinner', providers: [
|
|
63
|
+
Overlay,
|
|
64
|
+
{
|
|
65
|
+
provide: OverlayContainer,
|
|
66
|
+
useClass: SpinnerOverlayContainer
|
|
67
|
+
}
|
|
68
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>" }]
|
|
69
|
+
}], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.ViewContainerRef }, { type: i1.OverlayContainer }, { type: i0.ElementRef }]; }, propDecorators: { color: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], diameter: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], fullscreen: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], hasBackgroundOverlay: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], templateRef: [{
|
|
78
|
+
type: ViewChild,
|
|
79
|
+
args: ['matSpinner', { static: true }]
|
|
80
|
+
}] } });
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bpbm5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvc3Bpbm5lci9lbnRyeS1zcGlubmVyL3NwaW5uZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnRyeS1jb21wb25lbnRzL3NwaW5uZXIvZW50cnktc3Bpbm5lci9zcGlubmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsYUFBYSxFQUFFLGdCQUFnQixFQUFjLE1BQU0sc0JBQXNCLENBQUM7QUFDNUYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3JELE9BQU8sRUFDTCx1QkFBdUIsRUFBRSxTQUFTLEVBQ3RCLEtBQUssRUFDSSxTQUFTLEVBQy9CLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDhCQUE4QixDQUFDOzs7O0FBY3ZFLE1BQU0sT0FBTyxxQkFBcUI7SUFXaEMsWUFDVSxPQUFnQixFQUNoQixnQkFBa0MsRUFDbEMsZ0JBQWtDLEVBQ2xDLFVBQW1DO1FBSG5DLFlBQU8sR0FBUCxPQUFPLENBQVM7UUFDaEIscUJBQWdCLEdBQWh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gICAgICAgIC5jZW50ZXJIb3Jpem9udGFsbHkoKVxuICAgICAgICAuY2VudGVyVmVydGljYWxseSgpXG4gICAgfSk7XG4gICAgdGhpcy5jb25maWd1cmVPdmVybGF5Q29udGFpbmVyKCk7XG4gICAgdGhpcy5vdmVybGF5UmVmID0gdGhpcy5vdmVybGF5LmNyZWF0ZShvdmVybGF5Q29uZmlnKTtcbiAgfVxuXG4gIHByaXZhdGUgY29uZmlndXJlT3ZlcmxheUNvbnRhaW5lcigpIHtcbiAgICBsZXQgYXBwZW5kVG8gPSB0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudDtcbiAgICBpZiAodGhpcy5mdWxsc2NyZWVuKSB7XG4gICAgICBhcHBlbmRUbyA9IGRvY3VtZW50LmJvZHk7XG4gICAgfVxuICAgICh0aGlzLm92ZXJsYXlDb250YWluZXIgYXMgU3Bpbm5lck92ZXJsYXlDb250YWluZXIpXG4gICAgICAuY29uZmlndXJlKGFwcGVuZFRvLCB7IGZ1bGxzY3JlZW46IHRoaXMuZnVsbHNjcmVlbiB9KTtcbiAgfVxuXG4gIHByaXZhdGUgZGlzcG9zZU92ZXJsYXlSZWYoKSB7XG4gICAgaWYgKHRoaXMub3ZlcmxheVJlZikge1xuICAgICAgdGhpcy5vdmVybGF5UmVmLmRldGFjaCgpO1xuICAgICAgdGhpcy5vdmVybGF5UmVmLmRpc3Bvc2UoKTtcbiAgICB9XG4gIH1cbn1cbiIsIjxuZy10ZW1wbGF0ZSAjbWF0U3Bpbm5lcj5cclxuXHQ8bWF0LXNwaW5uZXIgW2RpYW1ldGVyXT1cImRpYW1ldGVyXCIgW2NvbG9yXT1cImNvbG9yXCI+PC9tYXQtc3Bpbm5lcj5cclxuPC9uZy10ZW1wbGF0ZT4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EntrySpinnerComponent } from './entry-spinner/spinner.component';
|
|
2
|
+
export { EntrySpinnerModule } from './spinner.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9zcGlubmVyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDMUUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFbnRyeVNwaW5uZXJDb21wb25lbnQgfSBmcm9tICcuL2VudHJ5LXNwaW5uZXIvc3Bpbm5lci5jb21wb25lbnQnO1xuZXhwb3J0IHsgRW50cnlTcGlubmVyTW9kdWxlIH0gZnJvbSAnLi9zcGlubmVyLm1vZHVsZSc7XG4iXX0=
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
2
|
+
import { DOCUMENT } from '@angular/common';
|
|
3
|
+
import { Inject, Injectable } from '@angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/cdk/platform";
|
|
6
|
+
export class SpinnerOverlayContainer extends OverlayContainer {
|
|
7
|
+
constructor(document, platform) {
|
|
8
|
+
super(document, platform);
|
|
9
|
+
this._appendTo = this._document.body;
|
|
10
|
+
}
|
|
11
|
+
configure(appendTo, options) {
|
|
12
|
+
this._appendTo = appendTo;
|
|
13
|
+
this._options = options;
|
|
14
|
+
}
|
|
15
|
+
getContainerElement() {
|
|
16
|
+
if (!this._containerElement) {
|
|
17
|
+
this.createContainer();
|
|
18
|
+
}
|
|
19
|
+
return this._containerElement;
|
|
20
|
+
}
|
|
21
|
+
ngOnDestroy() {
|
|
22
|
+
this._containerElement?.remove();
|
|
23
|
+
}
|
|
24
|
+
createContainer() {
|
|
25
|
+
const containerClass = 'cdk-overlay-container';
|
|
26
|
+
const { fullscreen } = this._options;
|
|
27
|
+
const container = this._document.createElement('div');
|
|
28
|
+
container.classList.add(containerClass);
|
|
29
|
+
container.style.position = fullscreen ? 'fixed' : 'absolute';
|
|
30
|
+
this._appendTo.appendChild(container);
|
|
31
|
+
this._containerElement = container;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
SpinnerOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
SpinnerOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer, decorators: [{
|
|
37
|
+
type: Injectable
|
|
38
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
39
|
+
type: Inject,
|
|
40
|
+
args: [DOCUMENT]
|
|
41
|
+
}] }, { type: i1.Platform }]; } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bpbm5lci1vdmVybGF5LWNvbnRhaW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZW50cnktY29tcG9uZW50cy9zcGlubmVyL3NwaW5uZXItb3ZlcmxheS1jb250YWluZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFeEQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixD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gPSBjb250YWluZXI7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
4
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
5
|
+
import { EntrySpinnerComponent } from './entry-spinner/spinner.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class EntrySpinnerModule {
|
|
8
|
+
}
|
|
9
|
+
EntrySpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
EntrySpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, declarations: [EntrySpinnerComponent], imports: [CommonModule,
|
|
11
|
+
OverlayModule,
|
|
12
|
+
MatProgressSpinnerModule], exports: [EntrySpinnerComponent] });
|
|
13
|
+
EntrySpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, imports: [CommonModule,
|
|
14
|
+
OverlayModule,
|
|
15
|
+
MatProgressSpinnerModule] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, decorators: [{
|
|
17
|
+
type: NgModule,
|
|
18
|
+
args: [{
|
|
19
|
+
declarations: [
|
|
20
|
+
EntrySpinnerComponent
|
|
21
|
+
],
|
|
22
|
+
imports: [
|
|
23
|
+
CommonModule,
|
|
24
|
+
OverlayModule,
|
|
25
|
+
MatProgressSpinnerModule
|
|
26
|
+
],
|
|
27
|
+
exports: [
|
|
28
|
+
EntrySpinnerComponent
|
|
29
|
+
]
|
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1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgT3ZlcmxheU1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Nkay9vdmVybGF5JztcbmltcG9ydCB7IE1hdFByb2dyZXNzU3Bpbm5lck1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL3Byb2dyZXNzLXNwaW5uZXInO1xuaW1wb3J0IHsgRW50cnlTcGlubmVyQ29tcG9uZW50IH0gZnJvbSAnLi9lbnRyeS1zcGlubmVyL3NwaW5uZXIuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgRW50cnlTcGlubmVyQ29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgT3ZlcmxheU1vZHVsZSxcbiAgICBNYXRQcm9ncmVzc1NwaW5uZXJNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEVudHJ5U3Bpbm5lckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEVudHJ5U3Bpbm5lck1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
2
|
+
import { OverlayContainer, OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
3
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injectable, Inject, Component, ChangeDetectionStrategy, Input, ViewChild, NgModule } from '@angular/core';
|
|
6
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
7
|
+
import * as i1 from '@angular/cdk/platform';
|
|
8
|
+
import * as i2 from '@angular/material/progress-spinner';
|
|
9
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
10
|
+
|
|
11
|
+
class SpinnerOverlayContainer extends OverlayContainer {
|
|
12
|
+
constructor(document, platform) {
|
|
13
|
+
super(document, platform);
|
|
14
|
+
this._appendTo = this._document.body;
|
|
15
|
+
}
|
|
16
|
+
configure(appendTo, options) {
|
|
17
|
+
this._appendTo = appendTo;
|
|
18
|
+
this._options = options;
|
|
19
|
+
}
|
|
20
|
+
getContainerElement() {
|
|
21
|
+
if (!this._containerElement) {
|
|
22
|
+
this.createContainer();
|
|
23
|
+
}
|
|
24
|
+
return this._containerElement;
|
|
25
|
+
}
|
|
26
|
+
ngOnDestroy() {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = this._containerElement) === null || _a === void 0 ? void 0 : _a.remove();
|
|
29
|
+
}
|
|
30
|
+
createContainer() {
|
|
31
|
+
const containerClass = 'cdk-overlay-container';
|
|
32
|
+
const { fullscreen } = this._options;
|
|
33
|
+
const container = this._document.createElement('div');
|
|
34
|
+
container.classList.add(containerClass);
|
|
35
|
+
container.style.position = fullscreen ? 'fixed' : 'absolute';
|
|
36
|
+
this._appendTo.appendChild(container);
|
|
37
|
+
this._containerElement = container;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
SpinnerOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
+
SpinnerOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer, decorators: [{
|
|
43
|
+
type: Injectable
|
|
44
|
+
}], ctorParameters: function () {
|
|
45
|
+
return [{ type: Document, decorators: [{
|
|
46
|
+
type: Inject,
|
|
47
|
+
args: [DOCUMENT]
|
|
48
|
+
}] }, { type: i1.Platform }];
|
|
49
|
+
} });
|
|
50
|
+
|
|
51
|
+
class EntrySpinnerComponent {
|
|
52
|
+
constructor(overlay, viewContainerRef, overlayContainer, elementRef) {
|
|
53
|
+
this.overlay = overlay;
|
|
54
|
+
this.viewContainerRef = viewContainerRef;
|
|
55
|
+
this.overlayContainer = overlayContainer;
|
|
56
|
+
this.elementRef = elementRef;
|
|
57
|
+
this.color = 'primary';
|
|
58
|
+
this.diameter = 30;
|
|
59
|
+
this.fullscreen = false;
|
|
60
|
+
this.hasBackgroundOverlay = true;
|
|
61
|
+
}
|
|
62
|
+
ngOnInit() {
|
|
63
|
+
this.createOverlay();
|
|
64
|
+
this.overlayRef.attach(new TemplatePortal(this.templateRef, this.viewContainerRef));
|
|
65
|
+
}
|
|
66
|
+
ngOnDestroy() {
|
|
67
|
+
this.disposeOverlayRef();
|
|
68
|
+
}
|
|
69
|
+
createOverlay() {
|
|
70
|
+
const overlayConfig = new OverlayConfig({
|
|
71
|
+
hasBackdrop: this.hasBackgroundOverlay,
|
|
72
|
+
positionStrategy: this.overlay.position()
|
|
73
|
+
.global()
|
|
74
|
+
.centerHorizontally()
|
|
75
|
+
.centerVertically()
|
|
76
|
+
});
|
|
77
|
+
this.configureOverlayContainer();
|
|
78
|
+
this.overlayRef = this.overlay.create(overlayConfig);
|
|
79
|
+
}
|
|
80
|
+
configureOverlayContainer() {
|
|
81
|
+
let appendTo = this.elementRef.nativeElement;
|
|
82
|
+
if (this.fullscreen) {
|
|
83
|
+
appendTo = document.body;
|
|
84
|
+
}
|
|
85
|
+
this.overlayContainer
|
|
86
|
+
.configure(appendTo, { fullscreen: this.fullscreen });
|
|
87
|
+
}
|
|
88
|
+
disposeOverlayRef() {
|
|
89
|
+
if (this.overlayRef) {
|
|
90
|
+
this.overlayRef.detach();
|
|
91
|
+
this.overlayRef.dispose();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
EntrySpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerComponent, deps: [{ token: i1$1.Overlay }, { token: i0.ViewContainerRef }, { token: i1$1.OverlayContainer }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
96
|
+
EntrySpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EntrySpinnerComponent, selector: "entry-spinner", inputs: { color: "color", diameter: "diameter", fullscreen: "fullscreen", hasBackgroundOverlay: "hasBackgroundOverlay" }, providers: [
|
|
97
|
+
Overlay,
|
|
98
|
+
{
|
|
99
|
+
provide: OverlayContainer,
|
|
100
|
+
useClass: SpinnerOverlayContainer
|
|
101
|
+
}
|
|
102
|
+
], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["matSpinner"], descendants: true, static: true }], ngImport: i0, template: "<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>", dependencies: [{ kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerComponent, decorators: [{
|
|
104
|
+
type: Component,
|
|
105
|
+
args: [{ selector: 'entry-spinner', providers: [
|
|
106
|
+
Overlay,
|
|
107
|
+
{
|
|
108
|
+
provide: OverlayContainer,
|
|
109
|
+
useClass: SpinnerOverlayContainer
|
|
110
|
+
}
|
|
111
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>" }]
|
|
112
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.ViewContainerRef }, { type: i1$1.OverlayContainer }, { type: i0.ElementRef }]; }, propDecorators: { color: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], diameter: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], fullscreen: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], hasBackgroundOverlay: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], templateRef: [{
|
|
121
|
+
type: ViewChild,
|
|
122
|
+
args: ['matSpinner', { static: true }]
|
|
123
|
+
}] } });
|
|
124
|
+
|
|
125
|
+
class EntrySpinnerModule {
|
|
126
|
+
}
|
|
127
|
+
EntrySpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
128
|
+
EntrySpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, declarations: [EntrySpinnerComponent], imports: [CommonModule,
|
|
129
|
+
OverlayModule,
|
|
130
|
+
MatProgressSpinnerModule], exports: [EntrySpinnerComponent] });
|
|
131
|
+
EntrySpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, imports: [CommonModule,
|
|
132
|
+
OverlayModule,
|
|
133
|
+
MatProgressSpinnerModule] });
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, decorators: [{
|
|
135
|
+
type: NgModule,
|
|
136
|
+
args: [{
|
|
137
|
+
declarations: [
|
|
138
|
+
EntrySpinnerComponent
|
|
139
|
+
],
|
|
140
|
+
imports: [
|
|
141
|
+
CommonModule,
|
|
142
|
+
OverlayModule,
|
|
143
|
+
MatProgressSpinnerModule
|
|
144
|
+
],
|
|
145
|
+
exports: [
|
|
146
|
+
EntrySpinnerComponent
|
|
147
|
+
]
|
|
148
|
+
}]
|
|
149
|
+
}] });
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Generated bundle index. Do not edit.
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
export { EntrySpinnerComponent, EntrySpinnerModule };
|
|
156
|
+
//# sourceMappingURL=enigmatry-entry-components-spinner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-spinner.mjs","sources":["../../../../libs/entry-components/spinner/spinner-overlay-container.ts","../../../../libs/entry-components/spinner/entry-spinner/spinner.component.ts","../../../../libs/entry-components/spinner/entry-spinner/spinner.component.html","../../../../libs/entry-components/spinner/spinner.module.ts","../../../../libs/entry-components/spinner/enigmatry-entry-components-spinner.ts"],"sourcesContent":["import { OverlayContainer } from '@angular/cdk/overlay';\r\nimport { Platform } from '@angular/cdk/platform';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { Inject, Injectable, OnDestroy } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class SpinnerOverlayContainer extends OverlayContainer implements OnDestroy {\r\n\r\n private _appendTo: HTMLElement = this._document.body;\r\n private _options: { fullscreen: boolean };\r\n\r\n constructor(@Inject(DOCUMENT) document: Document, platform: Platform) {\r\n super(document, platform);\r\n }\r\n\r\n configure(appendTo: HTMLElement, options: { fullscreen: boolean }): void {\r\n this._appendTo = appendTo;\r\n this._options = options;\r\n }\r\n\r\n getContainerElement(): HTMLElement {\r\n if (!this._containerElement) {\r\n this.createContainer();\r\n }\r\n return this._containerElement;\r\n }\r\n\r\n ngOnDestroy() {\r\n this._containerElement?.remove();\r\n }\r\n\r\n private createContainer(): void {\r\n const containerClass = 'cdk-overlay-container';\r\n const { fullscreen } = this._options;\r\n\r\n const container = this._document.createElement('div');\r\n container.classList.add(containerClass);\r\n\r\n container.style.position = fullscreen ? 'fixed' : 'absolute';\r\n this._appendTo.appendChild(container);\r\n this._containerElement = container;\r\n }\r\n}\r\n","import { Overlay, OverlayConfig, OverlayContainer, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy, Component,\n ElementRef, Input, OnDestroy,\n OnInit, TemplateRef, ViewChild, ViewContainerRef\n} from '@angular/core';\nimport { ThemePalette } from '@angular/material/core';\nimport { SpinnerOverlayContainer } from '../spinner-overlay-container';\n\n@Component({\n selector: 'entry-spinner',\n templateUrl: './spinner.component.html',\n providers: [\n Overlay,\n {\n provide: OverlayContainer,\n useClass: SpinnerOverlayContainer\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntrySpinnerComponent implements OnInit, OnDestroy {\n\n @Input() color: ThemePalette = 'primary';\n @Input() diameter = 30;\n @Input() fullscreen = false;\n @Input() hasBackgroundOverlay = true;\n\n @ViewChild('matSpinner', { static: true })\n private templateRef: TemplateRef<any>;\n private overlayRef: OverlayRef;\n\n constructor(\n private overlay: Overlay,\n private viewContainerRef: ViewContainerRef,\n private overlayContainer: OverlayContainer,\n private elementRef: ElementRef<HTMLElement>) {\n }\n\n ngOnInit(): void {\n this.createOverlay();\n this.overlayRef.attach(new TemplatePortal(this.templateRef, this.viewContainerRef));\n }\n\n ngOnDestroy(): void {\n this.disposeOverlayRef();\n }\n\n private createOverlay() {\n const overlayConfig = new OverlayConfig({\n hasBackdrop: this.hasBackgroundOverlay,\n positionStrategy: this.overlay.position()\n .global()\n .centerHorizontally()\n .centerVertically()\n });\n this.configureOverlayContainer();\n this.overlayRef = this.overlay.create(overlayConfig);\n }\n\n private configureOverlayContainer() {\n let appendTo = this.elementRef.nativeElement;\n if (this.fullscreen) {\n appendTo = document.body;\n }\n (this.overlayContainer as SpinnerOverlayContainer)\n .configure(appendTo, { fullscreen: this.fullscreen });\n }\n\n private disposeOverlayRef() {\n if (this.overlayRef) {\n this.overlayRef.detach();\n this.overlayRef.dispose();\n }\n }\n}\n","<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { EntrySpinnerComponent } from './entry-spinner/spinner.component';\n\n@NgModule({\n declarations: [\n EntrySpinnerComponent\n ],\n imports: [\n CommonModule,\n OverlayModule,\n MatProgressSpinnerModule\n ],\n exports: [\n EntrySpinnerComponent\n ]\n})\nexport class EntrySpinnerModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAMM,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;IAK3D,WAA8B,CAAA,QAAkB,EAAE,QAAkB,EAAA;AAClE,QAAA,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAJpB,IAAA,CAAA,SAAS,GAAgB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAKpD;IAED,SAAS,CAAC,QAAqB,EAAE,OAAgC,EAAA;AAC/D,QAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;AAC1B,QAAA,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;KACzB;IAED,mBAAmB,GAAA;AACjB,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,IAAI,CAAC,eAAe,EAAE,CAAC;AACxB,SAAA;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC;KAC/B;IAED,WAAW,GAAA;;AACT,QAAA,CAAA,EAAA,GAAA,IAAI,CAAC,iBAAiB,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,MAAM,EAAE,CAAC;KAClC;IAEO,eAAe,GAAA;QACrB,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAC/C,QAAA,MAAM,EAAE,UAAU,EAAE,G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;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;iBACF,CAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -10,6 +10,8 @@ import { EntryPermissionService, EntryPermissionModule } from '@enigmatry/entry-
|
|
|
10
10
|
export * from '@enigmatry/entry-components/permissions';
|
|
11
11
|
import { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';
|
|
12
12
|
export * from '@enigmatry/entry-components/search-filter';
|
|
13
|
+
import { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';
|
|
14
|
+
export * from '@enigmatry/entry-components/spinner';
|
|
13
15
|
import { EntryValidationModule } from '@enigmatry/entry-components/validation';
|
|
14
16
|
export * from '@enigmatry/entry-components/validation';
|
|
15
17
|
import { EntryTableModule } from '@enigmatry/entry-components/table';
|
|
@@ -44,6 +46,7 @@ EntryComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
44
46
|
EntryValidationModule,
|
|
45
47
|
EntryPermissionModule,
|
|
46
48
|
EntrySearchFilterModule,
|
|
49
|
+
EntrySpinnerModule,
|
|
47
50
|
EntryTableModule] });
|
|
48
51
|
EntryComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntryComponentsModule, imports: [EntryButtonModule,
|
|
49
52
|
EntryCommonModule,
|
|
@@ -52,6 +55,7 @@ EntryComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
52
55
|
EntryValidationModule,
|
|
53
56
|
EntryPermissionModule,
|
|
54
57
|
EntrySearchFilterModule,
|
|
58
|
+
EntrySpinnerModule,
|
|
55
59
|
EntryTableModule] });
|
|
56
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntryComponentsModule, decorators: [{
|
|
57
61
|
type: NgModule,
|
|
@@ -65,6 +69,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
65
69
|
EntryValidationModule,
|
|
66
70
|
EntryPermissionModule,
|
|
67
71
|
EntrySearchFilterModule,
|
|
72
|
+
EntrySpinnerModule,
|
|
68
73
|
EntryTableModule
|
|
69
74
|
]
|
|
70
75
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../libs/entry-components/modules/entry-components.module.ts","../../../../libs/entry-components/public-api.ts","../../../../libs/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';\r\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\r\nimport { EntryDialogModule } from '@enigmatry/entry-components/dialog';\r\nimport { EntryPermissionModule, EntryPermissionService } from '@enigmatry/entry-components/permissions';\r\nimport { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';\r\nimport { EntryValidationModule } from '@enigmatry/entry-components/validation';\r\nimport { EntryFileInputModule } from '@enigmatry/entry-components/file-input';\r\nimport { EntryTableModule } from '@enigmatry/entry-components/table';\r\nimport { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';\r\n\r\ninterface EntryComponentsModuleOptions {\r\n permissionService?: Type<any>;\r\n}\r\n\r\n/**\r\n * Exports all entry components.\r\n *\r\n * Usage\r\n * import EntryComponentsModule in shared.module.ts to have access to all components, directives, pipes.\r\n * import EntryComponentsModule.forRoot() in app.module.ts to register root module providers.\r\n */\r\n@NgModule({\r\n declarations: [],\r\n exports: [\r\n EntryButtonModule,\r\n EntryCommonModule,\r\n EntryDialogModule,\r\n EntryFileInputModule,\r\n EntryValidationModule,\r\n EntryPermissionModule,\r\n EntrySearchFilterModule,\r\n EntryTableModule\r\n ]\r\n})\r\nexport class EntryComponentsModule {\r\n static forRoot(options: EntryComponentsModuleOptions = {}): ModuleWithProviders<EntryComponentsModule> {\r\n\r\n const permissionServiceProvider: Provider[] = options.permissionService\r\n ? [{ provide: EntryPermissionService, useClass: options.permissionService }]\r\n : [];\r\n\r\n const providers: Provider[] = [...permissionServiceProvider, ...NG_EVENT_PLUGINS];\r\n return {\r\n ngModule: EntryComponentsModule,\r\n providers\r\n };\r\n }\r\n}\r\n","\n/*\n * Public API Surface of entry-components\n */\nexport * from '@enigmatry/entry-components/button';\nexport * from '@enigmatry/entry-components/common';\nexport * from '@enigmatry/entry-components/dialog';\nexport * from '@enigmatry/entry-components/file-input';\nexport * from '@enigmatry/entry-components/permissions';\nexport * from '@enigmatry/entry-components/search-filter';\nexport * from '@enigmatry/entry-components/validation';\nexport * from '@enigmatry/entry-components/table';\n\nexport { EntryComponentsModule } from './modules/entry-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../libs/entry-components/modules/entry-components.module.ts","../../../../libs/entry-components/public-api.ts","../../../../libs/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';\r\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\r\nimport { EntryDialogModule } from '@enigmatry/entry-components/dialog';\r\nimport { EntryPermissionModule, EntryPermissionService } from '@enigmatry/entry-components/permissions';\r\nimport { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';\r\nimport { EntryValidationModule } from '@enigmatry/entry-components/validation';\r\nimport { EntryFileInputModule } from '@enigmatry/entry-components/file-input';\r\nimport { EntryTableModule } from '@enigmatry/entry-components/table';\r\nimport { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';\r\nimport { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';\r\n\r\ninterface EntryComponentsModuleOptions {\r\n permissionService?: Type<any>;\r\n}\r\n\r\n/**\r\n * Exports all entry components.\r\n *\r\n * Usage\r\n * import EntryComponentsModule in shared.module.ts to have access to all components, directives, pipes.\r\n * import EntryComponentsModule.forRoot() in app.module.ts to register root module providers.\r\n */\r\n@NgModule({\r\n declarations: [],\r\n exports: [\r\n EntryButtonModule,\r\n EntryCommonModule,\r\n EntryDialogModule,\r\n EntryFileInputModule,\r\n EntryValidationModule,\r\n EntryPermissionModule,\r\n EntrySearchFilterModule,\r\n EntrySpinnerModule,\r\n EntryTableModule\r\n ]\r\n})\r\nexport class EntryComponentsModule {\r\n static forRoot(options: EntryComponentsModuleOptions = {}): ModuleWithProviders<EntryComponentsModule> {\r\n\r\n const permissionServiceProvider: Provider[] = options.permissionService\r\n ? [{ provide: EntryPermissionService, useClass: options.permissionService }]\r\n : [];\r\n\r\n const providers: Provider[] = [...permissionServiceProvider, ...NG_EVENT_PLUGINS];\r\n return {\r\n ngModule: EntryComponentsModule,\r\n providers\r\n };\r\n }\r\n}\r\n","\n/*\n * Public API Surface of entry-components\n */\nexport * from '@enigmatry/entry-components/button';\nexport * from '@enigmatry/entry-components/common';\nexport * from '@enigmatry/entry-components/dialog';\nexport * from '@enigmatry/entry-components/file-input';\nexport * from '@enigmatry/entry-components/permissions';\nexport * from '@enigmatry/entry-components/search-filter';\nexport * from '@enigmatry/entry-components/spinner';\nexport * from '@enigmatry/entry-components/validation';\nexport * from '@enigmatry/entry-components/table';\n\nexport { EntryComponentsModule } from './modules/entry-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeA;;;;;;AAMG;MAeU,qBAAqB,CAAA;AAChC,IAAA,OAAO,OAAO,CAAC,OAAA,GAAwC,EAAE,EAAA;AAEvD,QAAA,MAAM,yBAAyB,GAAe,OAAO,CAAC,iBAAiB;AACrE,cAAE,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC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G;;;;"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
2
|
+
import { OverlayContainer, OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
3
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injectable, Inject, Component, ChangeDetectionStrategy, Input, ViewChild, NgModule } from '@angular/core';
|
|
6
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
7
|
+
import * as i1 from '@angular/cdk/platform';
|
|
8
|
+
import * as i2 from '@angular/material/progress-spinner';
|
|
9
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
10
|
+
|
|
11
|
+
class SpinnerOverlayContainer extends OverlayContainer {
|
|
12
|
+
constructor(document, platform) {
|
|
13
|
+
super(document, platform);
|
|
14
|
+
this._appendTo = this._document.body;
|
|
15
|
+
}
|
|
16
|
+
configure(appendTo, options) {
|
|
17
|
+
this._appendTo = appendTo;
|
|
18
|
+
this._options = options;
|
|
19
|
+
}
|
|
20
|
+
getContainerElement() {
|
|
21
|
+
if (!this._containerElement) {
|
|
22
|
+
this.createContainer();
|
|
23
|
+
}
|
|
24
|
+
return this._containerElement;
|
|
25
|
+
}
|
|
26
|
+
ngOnDestroy() {
|
|
27
|
+
this._containerElement?.remove();
|
|
28
|
+
}
|
|
29
|
+
createContainer() {
|
|
30
|
+
const containerClass = 'cdk-overlay-container';
|
|
31
|
+
const { fullscreen } = this._options;
|
|
32
|
+
const container = this._document.createElement('div');
|
|
33
|
+
container.classList.add(containerClass);
|
|
34
|
+
container.style.position = fullscreen ? 'fixed' : 'absolute';
|
|
35
|
+
this._appendTo.appendChild(container);
|
|
36
|
+
this._containerElement = container;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
SpinnerOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
40
|
+
SpinnerOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer });
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpinnerOverlayContainer, decorators: [{
|
|
42
|
+
type: Injectable
|
|
43
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
44
|
+
type: Inject,
|
|
45
|
+
args: [DOCUMENT]
|
|
46
|
+
}] }, { type: i1.Platform }]; } });
|
|
47
|
+
|
|
48
|
+
class EntrySpinnerComponent {
|
|
49
|
+
constructor(overlay, viewContainerRef, overlayContainer, elementRef) {
|
|
50
|
+
this.overlay = overlay;
|
|
51
|
+
this.viewContainerRef = viewContainerRef;
|
|
52
|
+
this.overlayContainer = overlayContainer;
|
|
53
|
+
this.elementRef = elementRef;
|
|
54
|
+
this.color = 'primary';
|
|
55
|
+
this.diameter = 30;
|
|
56
|
+
this.fullscreen = false;
|
|
57
|
+
this.hasBackgroundOverlay = true;
|
|
58
|
+
}
|
|
59
|
+
ngOnInit() {
|
|
60
|
+
this.createOverlay();
|
|
61
|
+
this.overlayRef.attach(new TemplatePortal(this.templateRef, this.viewContainerRef));
|
|
62
|
+
}
|
|
63
|
+
ngOnDestroy() {
|
|
64
|
+
this.disposeOverlayRef();
|
|
65
|
+
}
|
|
66
|
+
createOverlay() {
|
|
67
|
+
const overlayConfig = new OverlayConfig({
|
|
68
|
+
hasBackdrop: this.hasBackgroundOverlay,
|
|
69
|
+
positionStrategy: this.overlay.position()
|
|
70
|
+
.global()
|
|
71
|
+
.centerHorizontally()
|
|
72
|
+
.centerVertically()
|
|
73
|
+
});
|
|
74
|
+
this.configureOverlayContainer();
|
|
75
|
+
this.overlayRef = this.overlay.create(overlayConfig);
|
|
76
|
+
}
|
|
77
|
+
configureOverlayContainer() {
|
|
78
|
+
let appendTo = this.elementRef.nativeElement;
|
|
79
|
+
if (this.fullscreen) {
|
|
80
|
+
appendTo = document.body;
|
|
81
|
+
}
|
|
82
|
+
this.overlayContainer
|
|
83
|
+
.configure(appendTo, { fullscreen: this.fullscreen });
|
|
84
|
+
}
|
|
85
|
+
disposeOverlayRef() {
|
|
86
|
+
if (this.overlayRef) {
|
|
87
|
+
this.overlayRef.detach();
|
|
88
|
+
this.overlayRef.dispose();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
EntrySpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerComponent, deps: [{ token: i1$1.Overlay }, { token: i0.ViewContainerRef }, { token: i1$1.OverlayContainer }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
93
|
+
EntrySpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EntrySpinnerComponent, selector: "entry-spinner", inputs: { color: "color", diameter: "diameter", fullscreen: "fullscreen", hasBackgroundOverlay: "hasBackgroundOverlay" }, providers: [
|
|
94
|
+
Overlay,
|
|
95
|
+
{
|
|
96
|
+
provide: OverlayContainer,
|
|
97
|
+
useClass: SpinnerOverlayContainer
|
|
98
|
+
}
|
|
99
|
+
], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["matSpinner"], descendants: true, static: true }], ngImport: i0, template: "<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>", dependencies: [{ kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerComponent, decorators: [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{ selector: 'entry-spinner', providers: [
|
|
103
|
+
Overlay,
|
|
104
|
+
{
|
|
105
|
+
provide: OverlayContainer,
|
|
106
|
+
useClass: SpinnerOverlayContainer
|
|
107
|
+
}
|
|
108
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>" }]
|
|
109
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.ViewContainerRef }, { type: i1$1.OverlayContainer }, { type: i0.ElementRef }]; }, propDecorators: { color: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], diameter: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], fullscreen: [{
|
|
114
|
+
type: Input
|
|
115
|
+
}], hasBackgroundOverlay: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], templateRef: [{
|
|
118
|
+
type: ViewChild,
|
|
119
|
+
args: ['matSpinner', { static: true }]
|
|
120
|
+
}] } });
|
|
121
|
+
|
|
122
|
+
class EntrySpinnerModule {
|
|
123
|
+
}
|
|
124
|
+
EntrySpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
125
|
+
EntrySpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, declarations: [EntrySpinnerComponent], imports: [CommonModule,
|
|
126
|
+
OverlayModule,
|
|
127
|
+
MatProgressSpinnerModule], exports: [EntrySpinnerComponent] });
|
|
128
|
+
EntrySpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, imports: [CommonModule,
|
|
129
|
+
OverlayModule,
|
|
130
|
+
MatProgressSpinnerModule] });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntrySpinnerModule, decorators: [{
|
|
132
|
+
type: NgModule,
|
|
133
|
+
args: [{
|
|
134
|
+
declarations: [
|
|
135
|
+
EntrySpinnerComponent
|
|
136
|
+
],
|
|
137
|
+
imports: [
|
|
138
|
+
CommonModule,
|
|
139
|
+
OverlayModule,
|
|
140
|
+
MatProgressSpinnerModule
|
|
141
|
+
],
|
|
142
|
+
exports: [
|
|
143
|
+
EntrySpinnerComponent
|
|
144
|
+
]
|
|
145
|
+
}]
|
|
146
|
+
}] });
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Generated bundle index. Do not edit.
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
export { EntrySpinnerComponent, EntrySpinnerModule };
|
|
153
|
+
//# sourceMappingURL=enigmatry-entry-components-spinner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-spinner.mjs","sources":["../../../../libs/entry-components/spinner/spinner-overlay-container.ts","../../../../libs/entry-components/spinner/entry-spinner/spinner.component.ts","../../../../libs/entry-components/spinner/entry-spinner/spinner.component.html","../../../../libs/entry-components/spinner/spinner.module.ts","../../../../libs/entry-components/spinner/enigmatry-entry-components-spinner.ts"],"sourcesContent":["import { OverlayContainer } from '@angular/cdk/overlay';\r\nimport { Platform } from '@angular/cdk/platform';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { Inject, Injectable, OnDestroy } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class SpinnerOverlayContainer extends OverlayContainer implements OnDestroy {\r\n\r\n private _appendTo: HTMLElement = this._document.body;\r\n private _options: { fullscreen: boolean };\r\n\r\n constructor(@Inject(DOCUMENT) document: Document, platform: Platform) {\r\n super(document, platform);\r\n }\r\n\r\n configure(appendTo: HTMLElement, options: { fullscreen: boolean }): void {\r\n this._appendTo = appendTo;\r\n this._options = options;\r\n }\r\n\r\n getContainerElement(): HTMLElement {\r\n if (!this._containerElement) {\r\n this.createContainer();\r\n }\r\n return this._containerElement;\r\n }\r\n\r\n ngOnDestroy() {\r\n this._containerElement?.remove();\r\n }\r\n\r\n private createContainer(): void {\r\n const containerClass = 'cdk-overlay-container';\r\n const { fullscreen } = this._options;\r\n\r\n const container = this._document.createElement('div');\r\n container.classList.add(containerClass);\r\n\r\n container.style.position = fullscreen ? 'fixed' : 'absolute';\r\n this._appendTo.appendChild(container);\r\n this._containerElement = container;\r\n }\r\n}\r\n","import { Overlay, OverlayConfig, OverlayContainer, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy, Component,\n ElementRef, Input, OnDestroy,\n OnInit, TemplateRef, ViewChild, ViewContainerRef\n} from '@angular/core';\nimport { ThemePalette } from '@angular/material/core';\nimport { SpinnerOverlayContainer } from '../spinner-overlay-container';\n\n@Component({\n selector: 'entry-spinner',\n templateUrl: './spinner.component.html',\n providers: [\n Overlay,\n {\n provide: OverlayContainer,\n useClass: SpinnerOverlayContainer\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntrySpinnerComponent implements OnInit, OnDestroy {\n\n @Input() color: ThemePalette = 'primary';\n @Input() diameter = 30;\n @Input() fullscreen = false;\n @Input() hasBackgroundOverlay = true;\n\n @ViewChild('matSpinner', { static: true })\n private templateRef: TemplateRef<any>;\n private overlayRef: OverlayRef;\n\n constructor(\n private overlay: Overlay,\n private viewContainerRef: ViewContainerRef,\n private overlayContainer: OverlayContainer,\n private elementRef: ElementRef<HTMLElement>) {\n }\n\n ngOnInit(): void {\n this.createOverlay();\n this.overlayRef.attach(new TemplatePortal(this.templateRef, this.viewContainerRef));\n }\n\n ngOnDestroy(): void {\n this.disposeOverlayRef();\n }\n\n private createOverlay() {\n const overlayConfig = new OverlayConfig({\n hasBackdrop: this.hasBackgroundOverlay,\n positionStrategy: this.overlay.position()\n .global()\n .centerHorizontally()\n .centerVertically()\n });\n this.configureOverlayContainer();\n this.overlayRef = this.overlay.create(overlayConfig);\n }\n\n private configureOverlayContainer() {\n let appendTo = this.elementRef.nativeElement;\n if (this.fullscreen) {\n appendTo = document.body;\n }\n (this.overlayContainer as SpinnerOverlayContainer)\n .configure(appendTo, { fullscreen: this.fullscreen });\n }\n\n private disposeOverlayRef() {\n if (this.overlayRef) {\n this.overlayRef.detach();\n this.overlayRef.dispose();\n }\n }\n}\n","<ng-template #matSpinner>\r\n\t<mat-spinner [diameter]=\"diameter\" [color]=\"color\"></mat-spinner>\r\n</ng-template>","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { EntrySpinnerComponent } from './entry-spinner/spinner.component';\n\n@NgModule({\n declarations: [\n EntrySpinnerComponent\n ],\n imports: [\n CommonModule,\n OverlayModule,\n MatProgressSpinnerModule\n ],\n exports: [\n EntrySpinnerComponent\n ]\n})\nexport class EntrySpinnerModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAMM,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;IAK3D,WAA8B,CAAA,QAAkB,EAAE,QAAkB,EAAA;AAClE,QAAA,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAJpB,QAAA,IAAA,CAAA,SAAS,GAAgB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAKpD;IAED,SAAS,CAAC,QAAqB,EAAE,OAAgC,EAAA;AAC/D,QAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;AAC1B,QAAA,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;KACzB;IAED,mBAAmB,GAAA;AACjB,QAAA,IAAI,CAAC,IAAI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SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAR3B,YAAY;QACZ,aAAa;QACb,wBAAwB,CAAA,EAAA,CAAA,CAAA;4FAMf,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAb9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;AACF,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -10,6 +10,8 @@ import { EntryPermissionService, EntryPermissionModule } from '@enigmatry/entry-
|
|
|
10
10
|
export * from '@enigmatry/entry-components/permissions';
|
|
11
11
|
import { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';
|
|
12
12
|
export * from '@enigmatry/entry-components/search-filter';
|
|
13
|
+
import { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';
|
|
14
|
+
export * from '@enigmatry/entry-components/spinner';
|
|
13
15
|
import { EntryValidationModule } from '@enigmatry/entry-components/validation';
|
|
14
16
|
export * from '@enigmatry/entry-components/validation';
|
|
15
17
|
import { EntryTableModule } from '@enigmatry/entry-components/table';
|
|
@@ -44,6 +46,7 @@ EntryComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
44
46
|
EntryValidationModule,
|
|
45
47
|
EntryPermissionModule,
|
|
46
48
|
EntrySearchFilterModule,
|
|
49
|
+
EntrySpinnerModule,
|
|
47
50
|
EntryTableModule] });
|
|
48
51
|
EntryComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntryComponentsModule, imports: [EntryButtonModule,
|
|
49
52
|
EntryCommonModule,
|
|
@@ -52,6 +55,7 @@ EntryComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
52
55
|
EntryValidationModule,
|
|
53
56
|
EntryPermissionModule,
|
|
54
57
|
EntrySearchFilterModule,
|
|
58
|
+
EntrySpinnerModule,
|
|
55
59
|
EntryTableModule] });
|
|
56
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EntryComponentsModule, decorators: [{
|
|
57
61
|
type: NgModule,
|
|
@@ -65,6 +69,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
65
69
|
EntryValidationModule,
|
|
66
70
|
EntryPermissionModule,
|
|
67
71
|
EntrySearchFilterModule,
|
|
72
|
+
EntrySpinnerModule,
|
|
68
73
|
EntryTableModule
|
|
69
74
|
]
|
|
70
75
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../libs/entry-components/modules/entry-components.module.ts","../../../../libs/entry-components/public-api.ts","../../../../libs/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';\r\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\r\nimport { EntryDialogModule } from '@enigmatry/entry-components/dialog';\r\nimport { EntryPermissionModule, EntryPermissionService } from '@enigmatry/entry-components/permissions';\r\nimport { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';\r\nimport { EntryValidationModule } from '@enigmatry/entry-components/validation';\r\nimport { EntryFileInputModule } from '@enigmatry/entry-components/file-input';\r\nimport { EntryTableModule } from '@enigmatry/entry-components/table';\r\nimport { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';\r\n\r\ninterface EntryComponentsModuleOptions {\r\n permissionService?: Type<any>;\r\n}\r\n\r\n/**\r\n * Exports all entry components.\r\n *\r\n * Usage\r\n * import EntryComponentsModule in shared.module.ts to have access to all components, directives, pipes.\r\n * import EntryComponentsModule.forRoot() in app.module.ts to register root module providers.\r\n */\r\n@NgModule({\r\n declarations: [],\r\n exports: [\r\n EntryButtonModule,\r\n EntryCommonModule,\r\n EntryDialogModule,\r\n EntryFileInputModule,\r\n EntryValidationModule,\r\n EntryPermissionModule,\r\n EntrySearchFilterModule,\r\n EntryTableModule\r\n ]\r\n})\r\nexport class EntryComponentsModule {\r\n static forRoot(options: EntryComponentsModuleOptions = {}): ModuleWithProviders<EntryComponentsModule> {\r\n\r\n const permissionServiceProvider: Provider[] = options.permissionService\r\n ? [{ provide: EntryPermissionService, useClass: options.permissionService }]\r\n : [];\r\n\r\n const providers: Provider[] = [...permissionServiceProvider, ...NG_EVENT_PLUGINS];\r\n return {\r\n ngModule: EntryComponentsModule,\r\n providers\r\n };\r\n }\r\n}\r\n","\n/*\n * Public API Surface of entry-components\n */\nexport * from '@enigmatry/entry-components/button';\nexport * from '@enigmatry/entry-components/common';\nexport * from '@enigmatry/entry-components/dialog';\nexport * from '@enigmatry/entry-components/file-input';\nexport * from '@enigmatry/entry-components/permissions';\nexport * from '@enigmatry/entry-components/search-filter';\nexport * from '@enigmatry/entry-components/validation';\nexport * from '@enigmatry/entry-components/table';\n\nexport { EntryComponentsModule } from './modules/entry-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components.mjs","sources":["../../../../libs/entry-components/modules/entry-components.module.ts","../../../../libs/entry-components/public-api.ts","../../../../libs/entry-components/enigmatry-entry-components.ts"],"sourcesContent":["import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';\r\nimport { EntryButtonModule } from '@enigmatry/entry-components/button';\r\nimport { EntryDialogModule } from '@enigmatry/entry-components/dialog';\r\nimport { EntryPermissionModule, EntryPermissionService } from '@enigmatry/entry-components/permissions';\r\nimport { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';\r\nimport { EntryValidationModule } from '@enigmatry/entry-components/validation';\r\nimport { EntryFileInputModule } from '@enigmatry/entry-components/file-input';\r\nimport { EntryTableModule } from '@enigmatry/entry-components/table';\r\nimport { EntryCommonModule, NG_EVENT_PLUGINS } from '@enigmatry/entry-components/common';\r\nimport { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';\r\n\r\ninterface EntryComponentsModuleOptions {\r\n permissionService?: Type<any>;\r\n}\r\n\r\n/**\r\n * Exports all entry components.\r\n *\r\n * Usage\r\n * import EntryComponentsModule in shared.module.ts to have access to all components, directives, pipes.\r\n * import EntryComponentsModule.forRoot() in app.module.ts to register root module providers.\r\n */\r\n@NgModule({\r\n declarations: [],\r\n exports: [\r\n EntryButtonModule,\r\n EntryCommonModule,\r\n EntryDialogModule,\r\n EntryFileInputModule,\r\n EntryValidationModule,\r\n EntryPermissionModule,\r\n EntrySearchFilterModule,\r\n EntrySpinnerModule,\r\n EntryTableModule\r\n ]\r\n})\r\nexport class EntryComponentsModule {\r\n static forRoot(options: EntryComponentsModuleOptions = {}): ModuleWithProviders<EntryComponentsModule> {\r\n\r\n const permissionServiceProvider: Provider[] = options.permissionService\r\n ? [{ provide: EntryPermissionService, useClass: options.permissionService }]\r\n : [];\r\n\r\n const providers: Provider[] = [...permissionServiceProvider, ...NG_EVENT_PLUGINS];\r\n return {\r\n ngModule: EntryComponentsModule,\r\n providers\r\n };\r\n }\r\n}\r\n","\n/*\n * Public API Surface of entry-components\n */\nexport * from '@enigmatry/entry-components/button';\nexport * from '@enigmatry/entry-components/common';\nexport * from '@enigmatry/entry-components/dialog';\nexport * from '@enigmatry/entry-components/file-input';\nexport * from '@enigmatry/entry-components/permissions';\nexport * from '@enigmatry/entry-components/search-filter';\nexport * from '@enigmatry/entry-components/spinner';\nexport * from '@enigmatry/entry-components/validation';\nexport * from '@enigmatry/entry-components/table';\n\nexport { EntryComponentsModule } from './modules/entry-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;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A,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,iBAAiB;wBACjB,iBAAiB;wBACjB,oBAAoB;wBACpB,qBAAqB;wBACrB,qBAAqB;wBACrB,uBAAuB;wBACvB,kBAAkB;wBAClB,gBAAgB;AACjB,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;ACHH;;AAEG;;;;"}
|
|
@@ -7,7 +7,8 @@ import * as i4 from "@enigmatry/entry-components/file-input";
|
|
|
7
7
|
import * as i5 from "@enigmatry/entry-components/validation";
|
|
8
8
|
import * as i6 from "@enigmatry/entry-components/permissions";
|
|
9
9
|
import * as i7 from "@enigmatry/entry-components/search-filter";
|
|
10
|
-
import * as i8 from "@enigmatry/entry-components/
|
|
10
|
+
import * as i8 from "@enigmatry/entry-components/spinner";
|
|
11
|
+
import * as i9 from "@enigmatry/entry-components/table";
|
|
11
12
|
interface EntryComponentsModuleOptions {
|
|
12
13
|
permissionService?: Type<any>;
|
|
13
14
|
}
|
|
@@ -21,7 +22,7 @@ interface EntryComponentsModuleOptions {
|
|
|
21
22
|
export declare class EntryComponentsModule {
|
|
22
23
|
static forRoot(options?: EntryComponentsModuleOptions): ModuleWithProviders<EntryComponentsModule>;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntryComponentsModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EntryComponentsModule, never, never, [typeof i1.EntryButtonModule, typeof i2.EntryCommonModule, typeof i3.EntryDialogModule, typeof i4.EntryFileInputModule, typeof i5.EntryValidationModule, typeof i6.EntryPermissionModule, typeof i7.EntrySearchFilterModule, typeof i8.EntryTableModule]>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EntryComponentsModule, never, never, [typeof i1.EntryButtonModule, typeof i2.EntryCommonModule, typeof i3.EntryDialogModule, typeof i4.EntryFileInputModule, typeof i5.EntryValidationModule, typeof i6.EntryPermissionModule, typeof i7.EntrySearchFilterModule, typeof i8.EntrySpinnerModule, typeof i9.EntryTableModule]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<EntryComponentsModule>;
|
|
26
27
|
}
|
|
27
28
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmatry/entry-components",
|
|
3
|
-
"version": "15.0
|
|
3
|
+
"version": "15.1.0-preview",
|
|
4
4
|
"author": "Enigmatry",
|
|
5
5
|
"description": "Enigmatry entry angular material components",
|
|
6
6
|
"homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
|
|
@@ -91,6 +91,14 @@
|
|
|
91
91
|
"node": "./fesm2015/enigmatry-entry-components-search-filter.mjs",
|
|
92
92
|
"default": "./fesm2020/enigmatry-entry-components-search-filter.mjs"
|
|
93
93
|
},
|
|
94
|
+
"./spinner": {
|
|
95
|
+
"types": "./spinner/index.d.ts",
|
|
96
|
+
"esm2020": "./esm2020/spinner/enigmatry-entry-components-spinner.mjs",
|
|
97
|
+
"es2020": "./fesm2020/enigmatry-entry-components-spinner.mjs",
|
|
98
|
+
"es2015": "./fesm2015/enigmatry-entry-components-spinner.mjs",
|
|
99
|
+
"node": "./fesm2015/enigmatry-entry-components-spinner.mjs",
|
|
100
|
+
"default": "./fesm2020/enigmatry-entry-components-spinner.mjs"
|
|
101
|
+
},
|
|
94
102
|
"./table": {
|
|
95
103
|
"types": "./table/index.d.ts",
|
|
96
104
|
"esm2020": "./esm2020/table/enigmatry-entry-components-table.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from '@enigmatry/entry-components/dialog';
|
|
|
4
4
|
export * from '@enigmatry/entry-components/file-input';
|
|
5
5
|
export * from '@enigmatry/entry-components/permissions';
|
|
6
6
|
export * from '@enigmatry/entry-components/search-filter';
|
|
7
|
+
export * from '@enigmatry/entry-components/spinner';
|
|
7
8
|
export * from '@enigmatry/entry-components/validation';
|
|
8
9
|
export * from '@enigmatry/entry-components/table';
|
|
9
10
|
export { EntryComponentsModule } from './modules/entry-components.module';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Entry spinner
|
|
2
|
+
|
|
3
|
+
Loading spinner that is intended to inform the user that an operation is in progress.
|
|
4
|
+
|
|
5
|
+
## Integration
|
|
6
|
+
|
|
7
|
+
Import component module in your shared module:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { EntrySpinnerModule } from '@enigmatry/entry-components/spinner';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Show spinner:
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<entry-spinner *ngIf="loading"></entry-spinner>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Show spinner positioned in the center of the screen and with background overlay:
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<entry-spinner *ngIf="loading" [fullscreen]="true" [hasBackgroundOverlay]="true"></entry-spinner>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Spinner inputs
|
|
29
|
+
|
|
30
|
+
- color: `ThemePalette ` *default* `primary`
|
|
31
|
+
- 'primary' | 'accent' | 'warn'
|
|
32
|
+
- diameter: `number` *default* `30`
|
|
33
|
+
- Diameter of the progress spinner (will set width and height of svg)
|
|
34
|
+
- fullscreen: `boolean` *default* `false`
|
|
35
|
+
- Show spinner in full screen or relative to the container.
|
|
36
|
+
- hasBackgroundOverlay: `boolean` *default* `true`
|
|
37
|
+
- Show spinner with or without a background overlay.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Overlay, OverlayContainer } from '@angular/cdk/overlay';
|
|
2
|
+
import { ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { ThemePalette } from '@angular/material/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class EntrySpinnerComponent implements OnInit, OnDestroy {
|
|
6
|
+
private overlay;
|
|
7
|
+
private viewContainerRef;
|
|
8
|
+
private overlayContainer;
|
|
9
|
+
private elementRef;
|
|
10
|
+
color: ThemePalette;
|
|
11
|
+
diameter: number;
|
|
12
|
+
fullscreen: boolean;
|
|
13
|
+
hasBackgroundOverlay: boolean;
|
|
14
|
+
private templateRef;
|
|
15
|
+
private overlayRef;
|
|
16
|
+
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, overlayContainer: OverlayContainer, elementRef: ElementRef<HTMLElement>);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
private createOverlay;
|
|
20
|
+
private configureOverlayContainer;
|
|
21
|
+
private disposeOverlayRef;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntrySpinnerComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntrySpinnerComponent, "entry-spinner", never, { "color": "color"; "diameter": "diameter"; "fullscreen": "fullscreen"; "hasBackgroundOverlay": "hasBackgroundOverlay"; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
2
|
+
import { Platform } from '@angular/cdk/platform';
|
|
3
|
+
import { OnDestroy } from '@angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SpinnerOverlayContainer extends OverlayContainer implements OnDestroy {
|
|
6
|
+
private _appendTo;
|
|
7
|
+
private _options;
|
|
8
|
+
constructor(document: Document, platform: Platform);
|
|
9
|
+
configure(appendTo: HTMLElement, options: {
|
|
10
|
+
fullscreen: boolean;
|
|
11
|
+
}): void;
|
|
12
|
+
getContainerElement(): HTMLElement;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
private createContainer;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerOverlayContainer, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpinnerOverlayContainer>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./entry-spinner/spinner.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/cdk/overlay";
|
|
5
|
+
import * as i4 from "@angular/material/progress-spinner";
|
|
6
|
+
export declare class EntrySpinnerModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntrySpinnerModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EntrySpinnerModule, [typeof i1.EntrySpinnerComponent], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.MatProgressSpinnerModule], [typeof i1.EntrySpinnerComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EntrySpinnerModule>;
|
|
10
|
+
}
|