@coolon/angular-ui-powerups 0.0.1 → 0.0.2
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/bundles/coolon-angular-ui-powerups.umd.js +493 -734
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +15 -0
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +15 -2
- package/esm2015/index.js +2 -2
- package/esm2015/lib/angular-ui-powerups.module.js +5 -1
- package/esm2015/public_api.js +3 -4
- package/esm5/coolon-angular-ui-powerups.js +15 -2
- package/esm5/index.js +2 -2
- package/esm5/lib/angular-ui-powerups.module.js +5 -1
- package/esm5/public_api.js +3 -4
- package/fesm2015/coolon-angular-ui-powerups.js +313 -525
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +374 -616
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -2
- package/styles/styles.scss +11 -0
- package/esm2015/lib/components/index.js +0 -18
- package/esm2015/lib/components/resize-aware.component.js +0 -96
- package/esm2015/lib/components/types/bounds.class.js +0 -56
- package/esm2015/lib/components/types/dimension.class.js +0 -21
- package/esm2015/lib/components/types/point.class.js +0 -36
- package/esm2015/lib/directives/index.js +0 -10
- package/esm5/lib/components/index.js +0 -18
- package/esm5/lib/components/resize-aware.component.js +0 -124
- package/esm5/lib/components/types/bounds.class.js +0 -59
- package/esm5/lib/components/types/dimension.class.js +0 -19
- package/esm5/lib/components/types/point.class.js +0 -43
- package/esm5/lib/directives/index.js +0 -10
- package/lib/components/index.d.ts +0 -13
- package/lib/components/resize-aware.component.d.ts +0 -22
- package/lib/components/types/bounds.class.d.ts +0 -16
- package/lib/components/types/dimension.class.d.ts +0 -5
- package/lib/components/types/point.class.d.ts +0 -10
- package/lib/directives/index.d.ts +0 -5
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
2
|
-
import { EventEmitter, Input, Output, HostListener, Component, Directive, ElementRef, Inject, NgZone,
|
|
2
|
+
import { EventEmitter, Input, Output, HostListener, Component, Directive, ElementRef, Inject, NgZone, InjectionToken, ViewChild, Injector, ComponentFactoryResolver, ViewContainerRef, Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, INJECTOR } from '@angular/core';
|
|
3
3
|
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import {
|
|
4
|
+
import { MatDialog, MatButtonModule, MatDialogModule, MatTabsModule, MatProgressSpinnerModule, MatInputModule, MatFormFieldModule, MatSelectModule } from '@angular/material';
|
|
5
5
|
import { BrowserModule } from '@angular/platform-browser';
|
|
6
6
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
7
7
|
import { __extends, __decorate, __metadata, __assign, __awaiter, __generator, __values } from 'tslib';
|
|
8
|
-
import { GarbageCollector, MutableListModel, Constant, UseDelegate, MutableValueModel, assert, Dsl, Logger, ListModel, StoreInListModel,
|
|
9
|
-
import ResizeObserver from 'resize-observer-polyfill';
|
|
8
|
+
import { GarbageCollector, MutableListModel, Constant, UseDelegate, MutableValueModel, assert, Dsl, Logger, ListModel, StoreInListModel, EventListenerList, DelegatingValueModel, lang, UseDelegatingValueModel, ValueModel, StoreInValueModel, Trace, TransactionObserver, Binding } from '@coolon/pectin';
|
|
10
9
|
import { PortalModule } from '@angular/cdk/portal';
|
|
11
10
|
import { Deferred } from '@coolon/pectin/lib/promise/deferred.class';
|
|
12
11
|
import { MatDialog as MatDialog$1 } from '@angular/material/dialog';
|
|
12
|
+
import { RouterModule, Router, ActivatedRoute, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
13
13
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator';
|
|
14
14
|
import { isNil } from 'lodash';
|
|
15
15
|
import 'reflect-metadata';
|
|
16
|
-
import { Router, ActivatedRoute, RouterModule, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
17
16
|
import { Klass, Opts } from '@coolon/typescript-utilities';
|
|
18
17
|
import { Memoize as Memoize$1 } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
19
18
|
|
|
@@ -711,284 +710,42 @@ if (false) {
|
|
|
711
710
|
* @fileoverview added by tsickle
|
|
712
711
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
713
712
|
*/
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
717
|
-
AngularUiPowerupsModule.decorators = [
|
|
718
|
-
{ type: NgModule, args: [{
|
|
719
|
-
declarations: [
|
|
720
|
-
CommandDirective,
|
|
721
|
-
FocusBindingDirective,
|
|
722
|
-
NumberInputComponent,
|
|
723
|
-
StringInputComponent,
|
|
724
|
-
PasswordInputComponent,
|
|
725
|
-
SelectInputComponent,
|
|
726
|
-
],
|
|
727
|
-
imports: [
|
|
728
|
-
CommonModule,
|
|
729
|
-
BrowserModule,
|
|
730
|
-
BrowserAnimationsModule,
|
|
731
|
-
FormsModule,
|
|
732
|
-
MatInputModule,
|
|
733
|
-
MatFormFieldModule,
|
|
734
|
-
MatSelectModule
|
|
735
|
-
],
|
|
736
|
-
exports: [
|
|
737
|
-
CommandDirective,
|
|
738
|
-
FocusBindingDirective,
|
|
739
|
-
NumberInputComponent,
|
|
740
|
-
StringInputComponent,
|
|
741
|
-
PasswordInputComponent,
|
|
742
|
-
SelectInputComponent,
|
|
743
|
-
]
|
|
744
|
-
},] }
|
|
745
|
-
];
|
|
746
|
-
return AngularUiPowerupsModule;
|
|
747
|
-
}());
|
|
748
|
-
|
|
713
|
+
/** @type {?} */
|
|
714
|
+
var INTERACTION_CONTEXT = new InjectionToken('InteractionContext');
|
|
749
715
|
/**
|
|
750
|
-
* @
|
|
751
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
716
|
+
* @abstract
|
|
752
717
|
*/
|
|
753
|
-
var
|
|
754
|
-
|
|
755
|
-
this.width = width;
|
|
756
|
-
this.height = height;
|
|
757
|
-
}
|
|
758
|
-
return Dimension;
|
|
759
|
-
}());
|
|
760
|
-
if (false) {
|
|
761
|
-
/** @type {?} */
|
|
762
|
-
Dimension.prototype.width;
|
|
763
|
-
/** @type {?} */
|
|
764
|
-
Dimension.prototype.height;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* @fileoverview added by tsickle
|
|
769
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
718
|
+
var /**
|
|
719
|
+
* @abstract
|
|
770
720
|
*/
|
|
771
|
-
|
|
772
|
-
function
|
|
773
|
-
this.x = x;
|
|
774
|
-
this.y = y;
|
|
721
|
+
InteractionContext = /** @class */ (function () {
|
|
722
|
+
function InteractionContext() {
|
|
775
723
|
}
|
|
776
|
-
|
|
777
|
-
* @param {?} data
|
|
778
|
-
* @return {?}
|
|
779
|
-
*/
|
|
780
|
-
Point.from = /**
|
|
781
|
-
* @param {?} data
|
|
782
|
-
* @return {?}
|
|
783
|
-
*/
|
|
784
|
-
function (data) {
|
|
785
|
-
return new Point(data.x, data.y);
|
|
786
|
-
};
|
|
787
|
-
/**
|
|
788
|
-
* @param {?} x
|
|
789
|
-
* @param {?} y
|
|
790
|
-
* @return {?}
|
|
791
|
-
*/
|
|
792
|
-
Point.prototype.translate = /**
|
|
793
|
-
* @param {?} x
|
|
794
|
-
* @param {?} y
|
|
795
|
-
* @return {?}
|
|
796
|
-
*/
|
|
797
|
-
function (x, y) {
|
|
798
|
-
return new Point(this.x + x, this.y + y);
|
|
799
|
-
};
|
|
800
|
-
return Point;
|
|
724
|
+
return InteractionContext;
|
|
801
725
|
}());
|
|
802
726
|
if (false) {
|
|
803
|
-
/** @type {?} */
|
|
804
|
-
Point.prototype.x;
|
|
805
|
-
/** @type {?} */
|
|
806
|
-
Point.prototype.y;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* @fileoverview added by tsickle
|
|
811
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
812
|
-
*/
|
|
813
|
-
var Bounds = /** @class */ (function (_super) {
|
|
814
|
-
__extends(Bounds, _super);
|
|
815
|
-
function Bounds(top, left, width, height) {
|
|
816
|
-
var _this = _super.call(this, width, height) || this;
|
|
817
|
-
_this.top = top;
|
|
818
|
-
_this.left = left;
|
|
819
|
-
_this.width = width;
|
|
820
|
-
_this.height = height;
|
|
821
|
-
return _this;
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* @param {?} point
|
|
825
|
-
* @return {?}
|
|
826
|
-
*/
|
|
827
|
-
Bounds.prototype.relativePositionOf = /**
|
|
828
|
-
* @param {?} point
|
|
829
|
-
* @return {?}
|
|
830
|
-
*/
|
|
831
|
-
function (point) {
|
|
832
|
-
if (point instanceof MouseEvent) {
|
|
833
|
-
return new Point(point.clientX - this.left, point.clientY - this.top);
|
|
834
|
-
}
|
|
835
|
-
else {
|
|
836
|
-
return new Point(point.x - this.left, point.y - this.top);
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
return Bounds;
|
|
840
|
-
}(Dimension));
|
|
841
|
-
if (false) {
|
|
842
|
-
/** @type {?} */
|
|
843
|
-
Bounds.prototype.top;
|
|
844
|
-
/** @type {?} */
|
|
845
|
-
Bounds.prototype.left;
|
|
846
|
-
/** @type {?} */
|
|
847
|
-
Bounds.prototype.width;
|
|
848
|
-
/** @type {?} */
|
|
849
|
-
Bounds.prototype.height;
|
|
850
|
-
}
|
|
851
|
-
(function (Bounds) {
|
|
852
|
-
/**
|
|
853
|
-
* @param {?} element
|
|
854
|
-
* @return {?}
|
|
855
|
-
*/
|
|
856
|
-
function ofElement(element) {
|
|
857
|
-
/** @type {?} */
|
|
858
|
-
var rect = element.getBoundingClientRect();
|
|
859
|
-
return new Bounds(rect.top, rect.left, rect.width, rect.height);
|
|
860
|
-
}
|
|
861
|
-
Bounds.ofElement = ofElement;
|
|
862
|
-
})(Bounds || (Bounds = {}));
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* @fileoverview added by tsickle
|
|
866
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
867
|
-
*/
|
|
868
|
-
var ResizeAwareComponent = /** @class */ (function (_super) {
|
|
869
|
-
__extends(ResizeAwareComponent, _super);
|
|
870
|
-
function ResizeAwareComponent(elementRef, ngZone) {
|
|
871
|
-
var _this = _super.call(this) || this;
|
|
872
|
-
_this.elementRef = elementRef;
|
|
873
|
-
_this.ngZone = ngZone;
|
|
874
|
-
_this._boundsModel = new ValueHolder(new Bounds(0, 0, 0, 0));
|
|
875
|
-
return _this;
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* @return {?}
|
|
879
|
-
*/
|
|
880
|
-
ResizeAwareComponent.prototype.ngAfterViewInit = /**
|
|
881
|
-
* @return {?}
|
|
882
|
-
*/
|
|
883
|
-
function () {
|
|
884
|
-
var _this = this;
|
|
885
|
-
this.updateBounds();
|
|
886
|
-
/** @type {?} */
|
|
887
|
-
var element = this.elementRef.nativeElement;
|
|
888
|
-
/** @type {?} */
|
|
889
|
-
var ro = new ResizeObserver((/**
|
|
890
|
-
* @param {?} entries
|
|
891
|
-
* @param {?} observer
|
|
892
|
-
* @return {?}
|
|
893
|
-
*/
|
|
894
|
-
function (entries, observer) {
|
|
895
|
-
_this.ngZone.run((/**
|
|
896
|
-
* @return {?}
|
|
897
|
-
*/
|
|
898
|
-
function () { return _this.updateBounds(); }));
|
|
899
|
-
}));
|
|
900
|
-
ro.observe(element);
|
|
901
|
-
this.onDispose((/**
|
|
902
|
-
* @return {?}
|
|
903
|
-
*/
|
|
904
|
-
function () { return ro.disconnect(); }));
|
|
905
|
-
};
|
|
906
|
-
Object.defineProperty(ResizeAwareComponent.prototype, "boundsModel", {
|
|
907
|
-
get: /**
|
|
908
|
-
* @return {?}
|
|
909
|
-
*/
|
|
910
|
-
function () {
|
|
911
|
-
return this._boundsModel.readonly;
|
|
912
|
-
},
|
|
913
|
-
enumerable: true,
|
|
914
|
-
configurable: true
|
|
915
|
-
});
|
|
916
|
-
Object.defineProperty(ResizeAwareComponent.prototype, "nativeElement", {
|
|
917
|
-
get: /**
|
|
918
|
-
* @return {?}
|
|
919
|
-
*/
|
|
920
|
-
function () {
|
|
921
|
-
return this.elementRef.nativeElement;
|
|
922
|
-
},
|
|
923
|
-
enumerable: true,
|
|
924
|
-
configurable: true
|
|
925
|
-
});
|
|
926
|
-
// TODO: Make this handle body scroll
|
|
927
|
-
// TODO: Make this handle body scroll
|
|
928
727
|
/**
|
|
929
|
-
* @
|
|
728
|
+
* @abstract
|
|
729
|
+
* @template D, R, E
|
|
730
|
+
* @param {?} activityType
|
|
731
|
+
* @param {?=} data
|
|
930
732
|
* @return {?}
|
|
931
733
|
*/
|
|
932
|
-
|
|
933
|
-
// TODO: Make this handle body scroll
|
|
734
|
+
InteractionContext.prototype.startActivity = function (activityType, data) { };
|
|
934
735
|
/**
|
|
935
|
-
* @
|
|
736
|
+
* @abstract
|
|
737
|
+
* @param {?} confirm
|
|
936
738
|
* @return {?}
|
|
937
739
|
*/
|
|
938
|
-
function (
|
|
939
|
-
return this.bounds.relativePositionOf(point);
|
|
940
|
-
};
|
|
941
|
-
Object.defineProperty(ResizeAwareComponent.prototype, "bounds", {
|
|
942
|
-
get: /**
|
|
943
|
-
* @return {?}
|
|
944
|
-
*/
|
|
945
|
-
function () {
|
|
946
|
-
return this._boundsModel.value;
|
|
947
|
-
},
|
|
948
|
-
enumerable: true,
|
|
949
|
-
configurable: true
|
|
950
|
-
});
|
|
740
|
+
InteractionContext.prototype.confirm = function (confirm) { };
|
|
951
741
|
/**
|
|
952
|
-
* @
|
|
953
|
-
* @
|
|
954
|
-
*/
|
|
955
|
-
ResizeAwareComponent.prototype.updateBounds = /**
|
|
956
|
-
* @private
|
|
742
|
+
* @abstract
|
|
743
|
+
* @param {?} alert
|
|
957
744
|
* @return {?}
|
|
958
745
|
*/
|
|
959
|
-
function () {
|
|
960
|
-
this._boundsModel.value = Bounds.ofElement(this.nativeElement);
|
|
961
|
-
};
|
|
962
|
-
return ResizeAwareComponent;
|
|
963
|
-
}(DisposableComponent));
|
|
964
|
-
if (false) {
|
|
965
|
-
/**
|
|
966
|
-
* @type {?}
|
|
967
|
-
* @private
|
|
968
|
-
*/
|
|
969
|
-
ResizeAwareComponent.prototype._boundsModel;
|
|
970
|
-
/**
|
|
971
|
-
* @type {?}
|
|
972
|
-
* @protected
|
|
973
|
-
*/
|
|
974
|
-
ResizeAwareComponent.prototype.elementRef;
|
|
975
|
-
/**
|
|
976
|
-
* @type {?}
|
|
977
|
-
* @protected
|
|
978
|
-
*/
|
|
979
|
-
ResizeAwareComponent.prototype.ngZone;
|
|
746
|
+
InteractionContext.prototype.alert = function (alert) { };
|
|
980
747
|
}
|
|
981
748
|
|
|
982
|
-
/**
|
|
983
|
-
* @fileoverview added by tsickle
|
|
984
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
985
|
-
*/
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* @fileoverview added by tsickle
|
|
989
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
990
|
-
*/
|
|
991
|
-
|
|
992
749
|
/**
|
|
993
750
|
* @fileoverview added by tsickle
|
|
994
751
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1185,132 +942,52 @@ if (false) {
|
|
|
1185
942
|
* @fileoverview added by tsickle
|
|
1186
943
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1187
944
|
*/
|
|
1188
|
-
/**
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
*/
|
|
1196
|
-
Alert.prototype.title = function () { };
|
|
945
|
+
var AlertDialogComponent = /** @class */ (function (_super) {
|
|
946
|
+
__extends(AlertDialogComponent, _super);
|
|
947
|
+
function AlertDialogComponent(alert) {
|
|
948
|
+
var _this = _super.call(this) || this;
|
|
949
|
+
_this.alert = alert;
|
|
950
|
+
return _this;
|
|
951
|
+
}
|
|
1197
952
|
/**
|
|
1198
953
|
* @return {?}
|
|
1199
954
|
*/
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
955
|
+
AlertDialogComponent.prototype.ngOnInit = /**
|
|
1202
956
|
* @return {?}
|
|
1203
957
|
*/
|
|
1204
|
-
|
|
958
|
+
function () {
|
|
959
|
+
};
|
|
960
|
+
AlertDialogComponent.decorators = [
|
|
961
|
+
{ type: Component, args: [{
|
|
962
|
+
selector: 'angular-ui-powerups-alert-dialog',
|
|
963
|
+
template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-raised-button color=\"primary\" (click)=\"done()\">{{alert.ok()}}</button>\n</p>\n",
|
|
964
|
+
styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
965
|
+
}] }
|
|
966
|
+
];
|
|
967
|
+
/** @nocollapse */
|
|
968
|
+
AlertDialogComponent.ctorParameters = function () { return [
|
|
969
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
970
|
+
]; };
|
|
971
|
+
return AlertDialogComponent;
|
|
972
|
+
}(AbstractActivity));
|
|
973
|
+
if (false) {
|
|
974
|
+
/** @type {?} */
|
|
975
|
+
AlertDialogComponent.prototype.alert;
|
|
1205
976
|
}
|
|
1206
977
|
|
|
1207
978
|
/**
|
|
1208
979
|
* @fileoverview added by tsickle
|
|
1209
980
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1210
981
|
*/
|
|
1211
|
-
/**
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
*/
|
|
1221
|
-
Confirm.prototype.cancel = function () { };
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* @fileoverview added by tsickle
|
|
1226
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1227
|
-
*/
|
|
1228
|
-
/** @type {?} */
|
|
1229
|
-
var INTERACTION_CONTEXT = new InjectionToken('InteractionContext');
|
|
1230
|
-
/**
|
|
1231
|
-
* @abstract
|
|
1232
|
-
*/
|
|
1233
|
-
var /**
|
|
1234
|
-
* @abstract
|
|
1235
|
-
*/
|
|
1236
|
-
InteractionContext = /** @class */ (function () {
|
|
1237
|
-
function InteractionContext() {
|
|
1238
|
-
}
|
|
1239
|
-
return InteractionContext;
|
|
1240
|
-
}());
|
|
1241
|
-
if (false) {
|
|
1242
|
-
/**
|
|
1243
|
-
* @abstract
|
|
1244
|
-
* @template D, R, E
|
|
1245
|
-
* @param {?} activityType
|
|
1246
|
-
* @param {?=} data
|
|
1247
|
-
* @return {?}
|
|
1248
|
-
*/
|
|
1249
|
-
InteractionContext.prototype.startActivity = function (activityType, data) { };
|
|
1250
|
-
/**
|
|
1251
|
-
* @abstract
|
|
1252
|
-
* @param {?} confirm
|
|
1253
|
-
* @return {?}
|
|
1254
|
-
*/
|
|
1255
|
-
InteractionContext.prototype.confirm = function (confirm) { };
|
|
1256
|
-
/**
|
|
1257
|
-
* @abstract
|
|
1258
|
-
* @param {?} alert
|
|
1259
|
-
* @return {?}
|
|
1260
|
-
*/
|
|
1261
|
-
InteractionContext.prototype.alert = function (alert) { };
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
* @fileoverview added by tsickle
|
|
1266
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1267
|
-
*/
|
|
1268
|
-
var AlertDialogComponent = /** @class */ (function (_super) {
|
|
1269
|
-
__extends(AlertDialogComponent, _super);
|
|
1270
|
-
function AlertDialogComponent(alert) {
|
|
1271
|
-
var _this = _super.call(this) || this;
|
|
1272
|
-
_this.alert = alert;
|
|
1273
|
-
return _this;
|
|
1274
|
-
}
|
|
1275
|
-
/**
|
|
1276
|
-
* @return {?}
|
|
1277
|
-
*/
|
|
1278
|
-
AlertDialogComponent.prototype.ngOnInit = /**
|
|
1279
|
-
* @return {?}
|
|
1280
|
-
*/
|
|
1281
|
-
function () {
|
|
1282
|
-
};
|
|
1283
|
-
AlertDialogComponent.decorators = [
|
|
1284
|
-
{ type: Component, args: [{
|
|
1285
|
-
selector: 'angular-ui-powerups-alert-dialog',
|
|
1286
|
-
template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-raised-button color=\"primary\" (click)=\"done()\">{{alert.ok()}}</button>\n</p>\n",
|
|
1287
|
-
styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1288
|
-
}] }
|
|
1289
|
-
];
|
|
1290
|
-
/** @nocollapse */
|
|
1291
|
-
AlertDialogComponent.ctorParameters = function () { return [
|
|
1292
|
-
{ type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
1293
|
-
]; };
|
|
1294
|
-
return AlertDialogComponent;
|
|
1295
|
-
}(AbstractActivity));
|
|
1296
|
-
if (false) {
|
|
1297
|
-
/** @type {?} */
|
|
1298
|
-
AlertDialogComponent.prototype.alert;
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
/**
|
|
1302
|
-
* @fileoverview added by tsickle
|
|
1303
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1304
|
-
*/
|
|
1305
|
-
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
1306
|
-
__extends(ConfirmationDialogComponent, _super);
|
|
1307
|
-
function ConfirmationDialogComponent(confirm) {
|
|
1308
|
-
var _this = _super.call(this) || this;
|
|
1309
|
-
_this.confirm = confirm;
|
|
1310
|
-
assert.notNil(confirm);
|
|
1311
|
-
console.log(confirm);
|
|
1312
|
-
return _this;
|
|
1313
|
-
}
|
|
982
|
+
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
983
|
+
__extends(ConfirmationDialogComponent, _super);
|
|
984
|
+
function ConfirmationDialogComponent(confirm) {
|
|
985
|
+
var _this = _super.call(this) || this;
|
|
986
|
+
_this.confirm = confirm;
|
|
987
|
+
assert.notNil(confirm);
|
|
988
|
+
console.log(confirm);
|
|
989
|
+
return _this;
|
|
990
|
+
}
|
|
1314
991
|
/**
|
|
1315
992
|
* @return {?}
|
|
1316
993
|
*/
|
|
@@ -1881,6 +1558,321 @@ var InteractionModule = /** @class */ (function () {
|
|
|
1881
1558
|
return InteractionModule;
|
|
1882
1559
|
}());
|
|
1883
1560
|
|
|
1561
|
+
/**
|
|
1562
|
+
* @fileoverview added by tsickle
|
|
1563
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1564
|
+
*/
|
|
1565
|
+
var BusyOverlayComponent = /** @class */ (function () {
|
|
1566
|
+
function BusyOverlayComponent() {
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* @return {?}
|
|
1570
|
+
*/
|
|
1571
|
+
BusyOverlayComponent.prototype.ngOnInit = /**
|
|
1572
|
+
* @return {?}
|
|
1573
|
+
*/
|
|
1574
|
+
function () {
|
|
1575
|
+
};
|
|
1576
|
+
BusyOverlayComponent.decorators = [
|
|
1577
|
+
{ type: Component, args: [{
|
|
1578
|
+
selector: 'aup-busy-overlay',
|
|
1579
|
+
template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
|
|
1580
|
+
styles: [":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color:rgba(0,0,0,.2);top:0;left:0;bottom:0;right:0;display:-ms-grid;display:grid;-ms-grid-columns:auto;grid-template-columns:auto;-ms-grid-rows:auto;grid-template-rows:auto;place-content:center}"]
|
|
1581
|
+
}] }
|
|
1582
|
+
];
|
|
1583
|
+
/** @nocollapse */
|
|
1584
|
+
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
1585
|
+
BusyOverlayComponent.propDecorators = {
|
|
1586
|
+
busyModel: [{ type: Input }],
|
|
1587
|
+
busy: [{ type: Input }]
|
|
1588
|
+
};
|
|
1589
|
+
__decorate([
|
|
1590
|
+
UseDelegatingValueModel(),
|
|
1591
|
+
__metadata("design:type", ValueModel)
|
|
1592
|
+
], BusyOverlayComponent.prototype, "busyModel", void 0);
|
|
1593
|
+
__decorate([
|
|
1594
|
+
StoreInValueModel('busyModel'),
|
|
1595
|
+
__metadata("design:type", Boolean)
|
|
1596
|
+
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
1597
|
+
return BusyOverlayComponent;
|
|
1598
|
+
}());
|
|
1599
|
+
if (false) {
|
|
1600
|
+
/** @type {?} */
|
|
1601
|
+
BusyOverlayComponent.prototype.busyModel;
|
|
1602
|
+
/** @type {?} */
|
|
1603
|
+
BusyOverlayComponent.prototype.busy;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* @fileoverview added by tsickle
|
|
1608
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1609
|
+
*/
|
|
1610
|
+
var EmptyStateComponent = /** @class */ (function () {
|
|
1611
|
+
function EmptyStateComponent() {
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* @return {?}
|
|
1615
|
+
*/
|
|
1616
|
+
EmptyStateComponent.prototype.ngOnInit = /**
|
|
1617
|
+
* @return {?}
|
|
1618
|
+
*/
|
|
1619
|
+
function () {
|
|
1620
|
+
};
|
|
1621
|
+
EmptyStateComponent.decorators = [
|
|
1622
|
+
{ type: Component, args: [{
|
|
1623
|
+
selector: 'angular-ui-powerups-empty-state',
|
|
1624
|
+
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1625
|
+
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
|
|
1626
|
+
}] }
|
|
1627
|
+
];
|
|
1628
|
+
/** @nocollapse */
|
|
1629
|
+
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
1630
|
+
return EmptyStateComponent;
|
|
1631
|
+
}());
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* @fileoverview added by tsickle
|
|
1635
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1636
|
+
*/
|
|
1637
|
+
var PlaceService = /** @class */ (function () {
|
|
1638
|
+
function PlaceService() {
|
|
1639
|
+
this._activePlaces = new MutableListModel();
|
|
1640
|
+
}
|
|
1641
|
+
Object.defineProperty(PlaceService.prototype, "activePlaces", {
|
|
1642
|
+
get: /**
|
|
1643
|
+
* @return {?}
|
|
1644
|
+
*/
|
|
1645
|
+
function () {
|
|
1646
|
+
return this._activePlaces.readonly;
|
|
1647
|
+
},
|
|
1648
|
+
enumerable: true,
|
|
1649
|
+
configurable: true
|
|
1650
|
+
});
|
|
1651
|
+
/**
|
|
1652
|
+
* @param {?} place
|
|
1653
|
+
* @return {?}
|
|
1654
|
+
*/
|
|
1655
|
+
PlaceService.prototype.onActivate = /**
|
|
1656
|
+
* @param {?} place
|
|
1657
|
+
* @return {?}
|
|
1658
|
+
*/
|
|
1659
|
+
function (place) {
|
|
1660
|
+
this._activePlaces.push(place);
|
|
1661
|
+
};
|
|
1662
|
+
/**
|
|
1663
|
+
* @param {?} place
|
|
1664
|
+
* @return {?}
|
|
1665
|
+
*/
|
|
1666
|
+
PlaceService.prototype.onDeactivate = /**
|
|
1667
|
+
* @param {?} place
|
|
1668
|
+
* @return {?}
|
|
1669
|
+
*/
|
|
1670
|
+
function (place) {
|
|
1671
|
+
this._activePlaces.remove(place);
|
|
1672
|
+
};
|
|
1673
|
+
PlaceService.decorators = [
|
|
1674
|
+
{ type: Injectable, args: [{
|
|
1675
|
+
providedIn: 'root'
|
|
1676
|
+
},] }
|
|
1677
|
+
];
|
|
1678
|
+
/** @nocollapse */
|
|
1679
|
+
PlaceService.ctorParameters = function () { return []; };
|
|
1680
|
+
/** @nocollapse */ PlaceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceService_Factory() { return new PlaceService(); }, token: PlaceService, providedIn: "root" });
|
|
1681
|
+
__decorate([
|
|
1682
|
+
Trace(),
|
|
1683
|
+
__metadata("design:type", Function),
|
|
1684
|
+
__metadata("design:paramtypes", [Object]),
|
|
1685
|
+
__metadata("design:returntype", void 0)
|
|
1686
|
+
], PlaceService.prototype, "onActivate", null);
|
|
1687
|
+
__decorate([
|
|
1688
|
+
Trace(),
|
|
1689
|
+
__metadata("design:type", Function),
|
|
1690
|
+
__metadata("design:paramtypes", [Object]),
|
|
1691
|
+
__metadata("design:returntype", void 0)
|
|
1692
|
+
], PlaceService.prototype, "onDeactivate", null);
|
|
1693
|
+
return PlaceService;
|
|
1694
|
+
}());
|
|
1695
|
+
if (false) {
|
|
1696
|
+
/**
|
|
1697
|
+
* @type {?}
|
|
1698
|
+
* @private
|
|
1699
|
+
*/
|
|
1700
|
+
PlaceService.prototype._activePlaces;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* @fileoverview added by tsickle
|
|
1705
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1706
|
+
*/
|
|
1707
|
+
var PlaceOutletComponent = /** @class */ (function () {
|
|
1708
|
+
function PlaceOutletComponent(placeService) {
|
|
1709
|
+
this.placeService = placeService;
|
|
1710
|
+
}
|
|
1711
|
+
/**
|
|
1712
|
+
* @return {?}
|
|
1713
|
+
*/
|
|
1714
|
+
PlaceOutletComponent.prototype.ngOnInit = /**
|
|
1715
|
+
* @return {?}
|
|
1716
|
+
*/
|
|
1717
|
+
function () {
|
|
1718
|
+
};
|
|
1719
|
+
/**
|
|
1720
|
+
* @param {?} $event
|
|
1721
|
+
* @return {?}
|
|
1722
|
+
*/
|
|
1723
|
+
PlaceOutletComponent.prototype.onActivate = /**
|
|
1724
|
+
* @param {?} $event
|
|
1725
|
+
* @return {?}
|
|
1726
|
+
*/
|
|
1727
|
+
function ($event) {
|
|
1728
|
+
this.placeService.onActivate($event);
|
|
1729
|
+
};
|
|
1730
|
+
/**
|
|
1731
|
+
* @param {?} $event
|
|
1732
|
+
* @return {?}
|
|
1733
|
+
*/
|
|
1734
|
+
PlaceOutletComponent.prototype.onDeactivate = /**
|
|
1735
|
+
* @param {?} $event
|
|
1736
|
+
* @return {?}
|
|
1737
|
+
*/
|
|
1738
|
+
function ($event) {
|
|
1739
|
+
this.placeService.onDeactivate($event);
|
|
1740
|
+
};
|
|
1741
|
+
PlaceOutletComponent.decorators = [
|
|
1742
|
+
{ type: Component, args: [{
|
|
1743
|
+
selector: 'angular-ui-powerups-place-outlet',
|
|
1744
|
+
template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
|
|
1745
|
+
styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
|
|
1746
|
+
}] }
|
|
1747
|
+
];
|
|
1748
|
+
/** @nocollapse */
|
|
1749
|
+
PlaceOutletComponent.ctorParameters = function () { return [
|
|
1750
|
+
{ type: PlaceService }
|
|
1751
|
+
]; };
|
|
1752
|
+
return PlaceOutletComponent;
|
|
1753
|
+
}());
|
|
1754
|
+
if (false) {
|
|
1755
|
+
/**
|
|
1756
|
+
* @type {?}
|
|
1757
|
+
* @private
|
|
1758
|
+
*/
|
|
1759
|
+
PlaceOutletComponent.prototype.placeService;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* @fileoverview added by tsickle
|
|
1764
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1765
|
+
*/
|
|
1766
|
+
var PlaceModule = /** @class */ (function () {
|
|
1767
|
+
function PlaceModule() {
|
|
1768
|
+
}
|
|
1769
|
+
PlaceModule.decorators = [
|
|
1770
|
+
{ type: NgModule, args: [{
|
|
1771
|
+
imports: [
|
|
1772
|
+
CommonModule,
|
|
1773
|
+
MatProgressSpinnerModule,
|
|
1774
|
+
RouterModule
|
|
1775
|
+
],
|
|
1776
|
+
declarations: [
|
|
1777
|
+
EmptyStateComponent,
|
|
1778
|
+
BusyOverlayComponent,
|
|
1779
|
+
PlaceOutletComponent
|
|
1780
|
+
],
|
|
1781
|
+
entryComponents: [BusyOverlayComponent],
|
|
1782
|
+
exports: [
|
|
1783
|
+
BusyOverlayComponent,
|
|
1784
|
+
PlaceOutletComponent,
|
|
1785
|
+
EmptyStateComponent
|
|
1786
|
+
],
|
|
1787
|
+
providers: [
|
|
1788
|
+
PlaceService
|
|
1789
|
+
]
|
|
1790
|
+
},] }
|
|
1791
|
+
];
|
|
1792
|
+
return PlaceModule;
|
|
1793
|
+
}());
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* @fileoverview added by tsickle
|
|
1797
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1798
|
+
*/
|
|
1799
|
+
var AngularUiPowerupsModule = /** @class */ (function () {
|
|
1800
|
+
function AngularUiPowerupsModule() {
|
|
1801
|
+
}
|
|
1802
|
+
AngularUiPowerupsModule.decorators = [
|
|
1803
|
+
{ type: NgModule, args: [{
|
|
1804
|
+
declarations: [
|
|
1805
|
+
CommandDirective,
|
|
1806
|
+
FocusBindingDirective,
|
|
1807
|
+
NumberInputComponent,
|
|
1808
|
+
StringInputComponent,
|
|
1809
|
+
PasswordInputComponent,
|
|
1810
|
+
SelectInputComponent,
|
|
1811
|
+
],
|
|
1812
|
+
imports: [
|
|
1813
|
+
CommonModule,
|
|
1814
|
+
BrowserModule,
|
|
1815
|
+
BrowserAnimationsModule,
|
|
1816
|
+
FormsModule,
|
|
1817
|
+
MatInputModule,
|
|
1818
|
+
MatFormFieldModule,
|
|
1819
|
+
MatSelectModule
|
|
1820
|
+
],
|
|
1821
|
+
exports: [
|
|
1822
|
+
CommandDirective,
|
|
1823
|
+
FocusBindingDirective,
|
|
1824
|
+
NumberInputComponent,
|
|
1825
|
+
StringInputComponent,
|
|
1826
|
+
PasswordInputComponent,
|
|
1827
|
+
SelectInputComponent,
|
|
1828
|
+
InteractionModule,
|
|
1829
|
+
PlaceModule,
|
|
1830
|
+
]
|
|
1831
|
+
},] }
|
|
1832
|
+
];
|
|
1833
|
+
return AngularUiPowerupsModule;
|
|
1834
|
+
}());
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* @fileoverview added by tsickle
|
|
1838
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1839
|
+
*/
|
|
1840
|
+
/**
|
|
1841
|
+
* @record
|
|
1842
|
+
*/
|
|
1843
|
+
function Alert() { }
|
|
1844
|
+
if (false) {
|
|
1845
|
+
/**
|
|
1846
|
+
* @return {?}
|
|
1847
|
+
*/
|
|
1848
|
+
Alert.prototype.title = function () { };
|
|
1849
|
+
/**
|
|
1850
|
+
* @return {?}
|
|
1851
|
+
*/
|
|
1852
|
+
Alert.prototype.content = function () { };
|
|
1853
|
+
/**
|
|
1854
|
+
* @return {?}
|
|
1855
|
+
*/
|
|
1856
|
+
Alert.prototype.ok = function () { };
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* @fileoverview added by tsickle
|
|
1861
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1862
|
+
*/
|
|
1863
|
+
/**
|
|
1864
|
+
* @record
|
|
1865
|
+
*/
|
|
1866
|
+
function Confirm() { }
|
|
1867
|
+
if (false) {
|
|
1868
|
+
/** @type {?|undefined} */
|
|
1869
|
+
Confirm.prototype.destructive;
|
|
1870
|
+
/**
|
|
1871
|
+
* @return {?}
|
|
1872
|
+
*/
|
|
1873
|
+
Confirm.prototype.cancel = function () { };
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1884
1876
|
/**
|
|
1885
1877
|
* @fileoverview added by tsickle
|
|
1886
1878
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -2391,240 +2383,6 @@ if (false) {
|
|
|
2391
2383
|
PlaceComponent.prototype.canDeactivate = function () { };
|
|
2392
2384
|
}
|
|
2393
2385
|
|
|
2394
|
-
/**
|
|
2395
|
-
* @fileoverview added by tsickle
|
|
2396
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2397
|
-
*/
|
|
2398
|
-
var BusyOverlayComponent = /** @class */ (function () {
|
|
2399
|
-
function BusyOverlayComponent() {
|
|
2400
|
-
}
|
|
2401
|
-
/**
|
|
2402
|
-
* @return {?}
|
|
2403
|
-
*/
|
|
2404
|
-
BusyOverlayComponent.prototype.ngOnInit = /**
|
|
2405
|
-
* @return {?}
|
|
2406
|
-
*/
|
|
2407
|
-
function () {
|
|
2408
|
-
};
|
|
2409
|
-
BusyOverlayComponent.decorators = [
|
|
2410
|
-
{ type: Component, args: [{
|
|
2411
|
-
selector: 'aup-busy-overlay',
|
|
2412
|
-
template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
|
|
2413
|
-
styles: [":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color:rgba(0,0,0,.2);top:0;left:0;bottom:0;right:0;display:-ms-grid;display:grid;-ms-grid-columns:auto;grid-template-columns:auto;-ms-grid-rows:auto;grid-template-rows:auto;place-content:center}"]
|
|
2414
|
-
}] }
|
|
2415
|
-
];
|
|
2416
|
-
/** @nocollapse */
|
|
2417
|
-
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
2418
|
-
BusyOverlayComponent.propDecorators = {
|
|
2419
|
-
busyModel: [{ type: Input }],
|
|
2420
|
-
busy: [{ type: Input }]
|
|
2421
|
-
};
|
|
2422
|
-
__decorate([
|
|
2423
|
-
UseDelegatingValueModel(),
|
|
2424
|
-
__metadata("design:type", ValueModel)
|
|
2425
|
-
], BusyOverlayComponent.prototype, "busyModel", void 0);
|
|
2426
|
-
__decorate([
|
|
2427
|
-
StoreInValueModel('busyModel'),
|
|
2428
|
-
__metadata("design:type", Boolean)
|
|
2429
|
-
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
2430
|
-
return BusyOverlayComponent;
|
|
2431
|
-
}());
|
|
2432
|
-
if (false) {
|
|
2433
|
-
/** @type {?} */
|
|
2434
|
-
BusyOverlayComponent.prototype.busyModel;
|
|
2435
|
-
/** @type {?} */
|
|
2436
|
-
BusyOverlayComponent.prototype.busy;
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
/**
|
|
2440
|
-
* @fileoverview added by tsickle
|
|
2441
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2442
|
-
*/
|
|
2443
|
-
var EmptyStateComponent = /** @class */ (function () {
|
|
2444
|
-
function EmptyStateComponent() {
|
|
2445
|
-
}
|
|
2446
|
-
/**
|
|
2447
|
-
* @return {?}
|
|
2448
|
-
*/
|
|
2449
|
-
EmptyStateComponent.prototype.ngOnInit = /**
|
|
2450
|
-
* @return {?}
|
|
2451
|
-
*/
|
|
2452
|
-
function () {
|
|
2453
|
-
};
|
|
2454
|
-
EmptyStateComponent.decorators = [
|
|
2455
|
-
{ type: Component, args: [{
|
|
2456
|
-
selector: 'angular-ui-powerups-empty-state',
|
|
2457
|
-
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
2458
|
-
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
|
|
2459
|
-
}] }
|
|
2460
|
-
];
|
|
2461
|
-
/** @nocollapse */
|
|
2462
|
-
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
2463
|
-
return EmptyStateComponent;
|
|
2464
|
-
}());
|
|
2465
|
-
|
|
2466
|
-
/**
|
|
2467
|
-
* @fileoverview added by tsickle
|
|
2468
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2469
|
-
*/
|
|
2470
|
-
var PlaceService = /** @class */ (function () {
|
|
2471
|
-
function PlaceService() {
|
|
2472
|
-
this._activePlaces = new MutableListModel();
|
|
2473
|
-
}
|
|
2474
|
-
Object.defineProperty(PlaceService.prototype, "activePlaces", {
|
|
2475
|
-
get: /**
|
|
2476
|
-
* @return {?}
|
|
2477
|
-
*/
|
|
2478
|
-
function () {
|
|
2479
|
-
return this._activePlaces.readonly;
|
|
2480
|
-
},
|
|
2481
|
-
enumerable: true,
|
|
2482
|
-
configurable: true
|
|
2483
|
-
});
|
|
2484
|
-
/**
|
|
2485
|
-
* @param {?} place
|
|
2486
|
-
* @return {?}
|
|
2487
|
-
*/
|
|
2488
|
-
PlaceService.prototype.onActivate = /**
|
|
2489
|
-
* @param {?} place
|
|
2490
|
-
* @return {?}
|
|
2491
|
-
*/
|
|
2492
|
-
function (place) {
|
|
2493
|
-
this._activePlaces.push(place);
|
|
2494
|
-
};
|
|
2495
|
-
/**
|
|
2496
|
-
* @param {?} place
|
|
2497
|
-
* @return {?}
|
|
2498
|
-
*/
|
|
2499
|
-
PlaceService.prototype.onDeactivate = /**
|
|
2500
|
-
* @param {?} place
|
|
2501
|
-
* @return {?}
|
|
2502
|
-
*/
|
|
2503
|
-
function (place) {
|
|
2504
|
-
this._activePlaces.remove(place);
|
|
2505
|
-
};
|
|
2506
|
-
PlaceService.decorators = [
|
|
2507
|
-
{ type: Injectable, args: [{
|
|
2508
|
-
providedIn: 'root'
|
|
2509
|
-
},] }
|
|
2510
|
-
];
|
|
2511
|
-
/** @nocollapse */
|
|
2512
|
-
PlaceService.ctorParameters = function () { return []; };
|
|
2513
|
-
/** @nocollapse */ PlaceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceService_Factory() { return new PlaceService(); }, token: PlaceService, providedIn: "root" });
|
|
2514
|
-
__decorate([
|
|
2515
|
-
Trace(),
|
|
2516
|
-
__metadata("design:type", Function),
|
|
2517
|
-
__metadata("design:paramtypes", [Object]),
|
|
2518
|
-
__metadata("design:returntype", void 0)
|
|
2519
|
-
], PlaceService.prototype, "onActivate", null);
|
|
2520
|
-
__decorate([
|
|
2521
|
-
Trace(),
|
|
2522
|
-
__metadata("design:type", Function),
|
|
2523
|
-
__metadata("design:paramtypes", [Object]),
|
|
2524
|
-
__metadata("design:returntype", void 0)
|
|
2525
|
-
], PlaceService.prototype, "onDeactivate", null);
|
|
2526
|
-
return PlaceService;
|
|
2527
|
-
}());
|
|
2528
|
-
if (false) {
|
|
2529
|
-
/**
|
|
2530
|
-
* @type {?}
|
|
2531
|
-
* @private
|
|
2532
|
-
*/
|
|
2533
|
-
PlaceService.prototype._activePlaces;
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
/**
|
|
2537
|
-
* @fileoverview added by tsickle
|
|
2538
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2539
|
-
*/
|
|
2540
|
-
var PlaceOutletComponent = /** @class */ (function () {
|
|
2541
|
-
function PlaceOutletComponent(placeService) {
|
|
2542
|
-
this.placeService = placeService;
|
|
2543
|
-
}
|
|
2544
|
-
/**
|
|
2545
|
-
* @return {?}
|
|
2546
|
-
*/
|
|
2547
|
-
PlaceOutletComponent.prototype.ngOnInit = /**
|
|
2548
|
-
* @return {?}
|
|
2549
|
-
*/
|
|
2550
|
-
function () {
|
|
2551
|
-
};
|
|
2552
|
-
/**
|
|
2553
|
-
* @param {?} $event
|
|
2554
|
-
* @return {?}
|
|
2555
|
-
*/
|
|
2556
|
-
PlaceOutletComponent.prototype.onActivate = /**
|
|
2557
|
-
* @param {?} $event
|
|
2558
|
-
* @return {?}
|
|
2559
|
-
*/
|
|
2560
|
-
function ($event) {
|
|
2561
|
-
this.placeService.onActivate($event);
|
|
2562
|
-
};
|
|
2563
|
-
/**
|
|
2564
|
-
* @param {?} $event
|
|
2565
|
-
* @return {?}
|
|
2566
|
-
*/
|
|
2567
|
-
PlaceOutletComponent.prototype.onDeactivate = /**
|
|
2568
|
-
* @param {?} $event
|
|
2569
|
-
* @return {?}
|
|
2570
|
-
*/
|
|
2571
|
-
function ($event) {
|
|
2572
|
-
this.placeService.onDeactivate($event);
|
|
2573
|
-
};
|
|
2574
|
-
PlaceOutletComponent.decorators = [
|
|
2575
|
-
{ type: Component, args: [{
|
|
2576
|
-
selector: 'angular-ui-powerups-place-outlet',
|
|
2577
|
-
template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
|
|
2578
|
-
styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
|
|
2579
|
-
}] }
|
|
2580
|
-
];
|
|
2581
|
-
/** @nocollapse */
|
|
2582
|
-
PlaceOutletComponent.ctorParameters = function () { return [
|
|
2583
|
-
{ type: PlaceService }
|
|
2584
|
-
]; };
|
|
2585
|
-
return PlaceOutletComponent;
|
|
2586
|
-
}());
|
|
2587
|
-
if (false) {
|
|
2588
|
-
/**
|
|
2589
|
-
* @type {?}
|
|
2590
|
-
* @private
|
|
2591
|
-
*/
|
|
2592
|
-
PlaceOutletComponent.prototype.placeService;
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
/**
|
|
2596
|
-
* @fileoverview added by tsickle
|
|
2597
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2598
|
-
*/
|
|
2599
|
-
var PlaceModule = /** @class */ (function () {
|
|
2600
|
-
function PlaceModule() {
|
|
2601
|
-
}
|
|
2602
|
-
PlaceModule.decorators = [
|
|
2603
|
-
{ type: NgModule, args: [{
|
|
2604
|
-
imports: [
|
|
2605
|
-
CommonModule,
|
|
2606
|
-
MatProgressSpinnerModule,
|
|
2607
|
-
RouterModule
|
|
2608
|
-
],
|
|
2609
|
-
declarations: [
|
|
2610
|
-
EmptyStateComponent,
|
|
2611
|
-
BusyOverlayComponent,
|
|
2612
|
-
PlaceOutletComponent
|
|
2613
|
-
],
|
|
2614
|
-
entryComponents: [BusyOverlayComponent],
|
|
2615
|
-
exports: [
|
|
2616
|
-
BusyOverlayComponent,
|
|
2617
|
-
PlaceOutletComponent,
|
|
2618
|
-
EmptyStateComponent
|
|
2619
|
-
],
|
|
2620
|
-
providers: [
|
|
2621
|
-
PlaceService
|
|
2622
|
-
]
|
|
2623
|
-
},] }
|
|
2624
|
-
];
|
|
2625
|
-
return PlaceModule;
|
|
2626
|
-
}());
|
|
2627
|
-
|
|
2628
2386
|
/**
|
|
2629
2387
|
* @fileoverview added by tsickle
|
|
2630
2388
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3160,5 +2918,5 @@ var ParameterType;
|
|
|
3160
2918
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3161
2919
|
*/
|
|
3162
2920
|
|
|
3163
|
-
export { ACTIVITY_DATA, AbstractActivity,
|
|
2921
|
+
export { ACTIVITY_DATA, AbstractActivity, AbstractPlaceComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, BusyOverlayComponent, ConfirmationDialogComponent, DialogInteractionService, EmptyStateComponent, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LeavePlaceGuard, ParameterType, Place, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, QueryParameter, RouteId, RouteParameterBindings, RouteParameterSanitiser, CommandDirective as ɵa, FocusBindingDirective as ɵb, DisposableComponent as ɵc, NumberInputComponent as ɵd, AbstractInputComponent as ɵe, StringInputComponent as ɵf, PasswordInputComponent as ɵg, SelectInputComponent as ɵh, ActivityContainerComponent as ɵi, ConfirmationDialogComponent as ɵj, AbstractActivity as ɵk, ACTIVITY_DATA as ɵl, AlertDialogComponent as ɵn, ActivityOutletComponent as ɵp, DialogInteractionService as ɵq, InteractionContext as ɵr, PlaceModule as ɵs, EmptyStateComponent as ɵt, BusyOverlayComponent as ɵu, PlaceOutletComponent as ɵv, PlaceService as ɵw };
|
|
3164
2922
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|