@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.
Files changed (39) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +493 -734
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  5. package/coolon-angular-ui-powerups.d.ts +15 -0
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/coolon-angular-ui-powerups.js +15 -2
  8. package/esm2015/index.js +2 -2
  9. package/esm2015/lib/angular-ui-powerups.module.js +5 -1
  10. package/esm2015/public_api.js +3 -4
  11. package/esm5/coolon-angular-ui-powerups.js +15 -2
  12. package/esm5/index.js +2 -2
  13. package/esm5/lib/angular-ui-powerups.module.js +5 -1
  14. package/esm5/public_api.js +3 -4
  15. package/fesm2015/coolon-angular-ui-powerups.js +313 -525
  16. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  17. package/fesm5/coolon-angular-ui-powerups.js +374 -616
  18. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  19. package/package.json +1 -1
  20. package/public_api.d.ts +1 -2
  21. package/styles/styles.scss +11 -0
  22. package/esm2015/lib/components/index.js +0 -18
  23. package/esm2015/lib/components/resize-aware.component.js +0 -96
  24. package/esm2015/lib/components/types/bounds.class.js +0 -56
  25. package/esm2015/lib/components/types/dimension.class.js +0 -21
  26. package/esm2015/lib/components/types/point.class.js +0 -36
  27. package/esm2015/lib/directives/index.js +0 -10
  28. package/esm5/lib/components/index.js +0 -18
  29. package/esm5/lib/components/resize-aware.component.js +0 -124
  30. package/esm5/lib/components/types/bounds.class.js +0 -59
  31. package/esm5/lib/components/types/dimension.class.js +0 -19
  32. package/esm5/lib/components/types/point.class.js +0 -43
  33. package/esm5/lib/directives/index.js +0 -10
  34. package/lib/components/index.d.ts +0 -13
  35. package/lib/components/resize-aware.component.d.ts +0 -22
  36. package/lib/components/types/bounds.class.d.ts +0 -16
  37. package/lib/components/types/dimension.class.d.ts +0 -5
  38. package/lib/components/types/point.class.d.ts +0 -10
  39. 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, NgModule, InjectionToken, ViewChild, Injector, ComponentFactoryResolver, ViewContainerRef, Injectable, ɵɵdefineInjectable, ɵɵinject, INJECTOR } from '@angular/core';
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 { MatInputModule, MatFormFieldModule, MatSelectModule, MatDialog, MatButtonModule, MatDialogModule, MatTabsModule, MatProgressSpinnerModule } from '@angular/material';
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 { __decorate, __metadata, __awaiter } from 'tslib';
8
- import { GarbageCollector, MutableListModel, Constant, UseDelegate, MutableValueModel, assert, Dsl, Logger, ListModel, StoreInListModel, ValueHolder, EventListenerList, DelegatingValueModel, lang, Trace, TransactionObserver, Binding, UseDelegatingValueModel, ValueModel, StoreInValueModel } from '@coolon/pectin';
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
 
@@ -578,251 +577,36 @@ if (false) {
578
577
  * @fileoverview added by tsickle
579
578
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
580
579
  */
581
- class AngularUiPowerupsModule {
582
- }
583
- AngularUiPowerupsModule.decorators = [
584
- { type: NgModule, args: [{
585
- declarations: [
586
- CommandDirective,
587
- FocusBindingDirective,
588
- NumberInputComponent,
589
- StringInputComponent,
590
- PasswordInputComponent,
591
- SelectInputComponent,
592
- ],
593
- imports: [
594
- CommonModule,
595
- BrowserModule,
596
- BrowserAnimationsModule,
597
- FormsModule,
598
- MatInputModule,
599
- MatFormFieldModule,
600
- MatSelectModule
601
- ],
602
- exports: [
603
- CommandDirective,
604
- FocusBindingDirective,
605
- NumberInputComponent,
606
- StringInputComponent,
607
- PasswordInputComponent,
608
- SelectInputComponent,
609
- ]
610
- },] }
611
- ];
612
-
613
- /**
614
- * @fileoverview added by tsickle
615
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
616
- */
617
- class Dimension {
618
- /**
619
- * @param {?} width
620
- * @param {?} height
621
- */
622
- constructor(width, height) {
623
- this.width = width;
624
- this.height = height;
625
- }
626
- }
627
- if (false) {
628
- /** @type {?} */
629
- Dimension.prototype.width;
630
- /** @type {?} */
631
- Dimension.prototype.height;
632
- }
633
-
634
- /**
635
- * @fileoverview added by tsickle
636
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
637
- */
638
- class Point {
639
- /**
640
- * @param {?} x
641
- * @param {?} y
642
- */
643
- constructor(x, y) {
644
- this.x = x;
645
- this.y = y;
646
- }
647
- /**
648
- * @param {?} data
649
- * @return {?}
650
- */
651
- static from(data) {
652
- return new Point(data.x, data.y);
653
- }
654
- /**
655
- * @param {?} x
656
- * @param {?} y
657
- * @return {?}
658
- */
659
- translate(x, y) {
660
- return new Point(this.x + x, this.y + y);
661
- }
662
- }
663
- if (false) {
664
- /** @type {?} */
665
- Point.prototype.x;
666
- /** @type {?} */
667
- Point.prototype.y;
668
- }
669
-
580
+ /** @type {?} */
581
+ const INTERACTION_CONTEXT = new InjectionToken('InteractionContext');
670
582
  /**
671
- * @fileoverview added by tsickle
672
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
583
+ * @abstract
673
584
  */
674
- class Bounds extends Dimension {
675
- /**
676
- * @param {?} top
677
- * @param {?} left
678
- * @param {?} width
679
- * @param {?} height
680
- */
681
- constructor(top, left, width, height) {
682
- super(width, height);
683
- this.top = top;
684
- this.left = left;
685
- this.width = width;
686
- this.height = height;
687
- }
688
- /**
689
- * @param {?} point
690
- * @return {?}
691
- */
692
- relativePositionOf(point) {
693
- if (point instanceof MouseEvent) {
694
- return new Point(point.clientX - this.left, point.clientY - this.top);
695
- }
696
- else {
697
- return new Point(point.x - this.left, point.y - this.top);
698
- }
699
- }
585
+ class InteractionContext {
700
586
  }
701
587
  if (false) {
702
- /** @type {?} */
703
- Bounds.prototype.top;
704
- /** @type {?} */
705
- Bounds.prototype.left;
706
- /** @type {?} */
707
- Bounds.prototype.width;
708
- /** @type {?} */
709
- Bounds.prototype.height;
710
- }
711
- (function (Bounds) {
712
- /**
713
- * @param {?} element
714
- * @return {?}
715
- */
716
- function ofElement(element) {
717
- /** @type {?} */
718
- const rect = element.getBoundingClientRect();
719
- return new Bounds(rect.top, rect.left, rect.width, rect.height);
720
- }
721
- Bounds.ofElement = ofElement;
722
- })(Bounds || (Bounds = {}));
723
-
724
- /**
725
- * @fileoverview added by tsickle
726
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
727
- */
728
- class ResizeAwareComponent extends DisposableComponent {
729
- /**
730
- * @param {?} elementRef
731
- * @param {?} ngZone
732
- */
733
- constructor(elementRef, ngZone) {
734
- super();
735
- this.elementRef = elementRef;
736
- this.ngZone = ngZone;
737
- this._boundsModel = new ValueHolder(new Bounds(0, 0, 0, 0));
738
- }
739
- /**
740
- * @return {?}
741
- */
742
- ngAfterViewInit() {
743
- this.updateBounds();
744
- /** @type {?} */
745
- const element = this.elementRef.nativeElement;
746
- /** @type {?} */
747
- const ro = new ResizeObserver((/**
748
- * @param {?} entries
749
- * @param {?} observer
750
- * @return {?}
751
- */
752
- (entries, observer) => {
753
- this.ngZone.run((/**
754
- * @return {?}
755
- */
756
- () => this.updateBounds()));
757
- }));
758
- ro.observe(element);
759
- this.onDispose((/**
760
- * @return {?}
761
- */
762
- () => ro.disconnect()));
763
- }
764
- /**
765
- * @return {?}
766
- */
767
- get boundsModel() {
768
- return this._boundsModel.readonly;
769
- }
770
- /**
771
- * @return {?}
772
- */
773
- get nativeElement() {
774
- return this.elementRef.nativeElement;
775
- }
776
- // TODO: Make this handle body scroll
777
588
  /**
778
- * @param {?} point
589
+ * @abstract
590
+ * @template D, R, E
591
+ * @param {?} activityType
592
+ * @param {?=} data
779
593
  * @return {?}
780
594
  */
781
- relativePositionOf(point) {
782
- return this.bounds.relativePositionOf(point);
783
- }
595
+ InteractionContext.prototype.startActivity = function (activityType, data) { };
784
596
  /**
597
+ * @abstract
598
+ * @param {?} confirm
785
599
  * @return {?}
786
600
  */
787
- get bounds() {
788
- return this._boundsModel.value;
789
- }
601
+ InteractionContext.prototype.confirm = function (confirm) { };
790
602
  /**
791
- * @private
603
+ * @abstract
604
+ * @param {?} alert
792
605
  * @return {?}
793
606
  */
794
- updateBounds() {
795
- this._boundsModel.value = Bounds.ofElement(this.nativeElement);
796
- }
797
- }
798
- if (false) {
799
- /**
800
- * @type {?}
801
- * @private
802
- */
803
- ResizeAwareComponent.prototype._boundsModel;
804
- /**
805
- * @type {?}
806
- * @protected
807
- */
808
- ResizeAwareComponent.prototype.elementRef;
809
- /**
810
- * @type {?}
811
- * @protected
812
- */
813
- ResizeAwareComponent.prototype.ngZone;
607
+ InteractionContext.prototype.alert = function (alert) { };
814
608
  }
815
609
 
816
- /**
817
- * @fileoverview added by tsickle
818
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
819
- */
820
-
821
- /**
822
- * @fileoverview added by tsickle
823
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
824
- */
825
-
826
610
  /**
827
611
  * @fileoverview added by tsickle
828
612
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -976,80 +760,6 @@ if (false) {
976
760
  Activity.prototype.onCancel = function (callback) { };
977
761
  }
978
762
 
979
- /**
980
- * @fileoverview added by tsickle
981
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
982
- */
983
- /**
984
- * @record
985
- */
986
- function Alert() { }
987
- if (false) {
988
- /**
989
- * @return {?}
990
- */
991
- Alert.prototype.title = function () { };
992
- /**
993
- * @return {?}
994
- */
995
- Alert.prototype.content = function () { };
996
- /**
997
- * @return {?}
998
- */
999
- Alert.prototype.ok = function () { };
1000
- }
1001
-
1002
- /**
1003
- * @fileoverview added by tsickle
1004
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1005
- */
1006
- /**
1007
- * @record
1008
- */
1009
- function Confirm() { }
1010
- if (false) {
1011
- /** @type {?|undefined} */
1012
- Confirm.prototype.destructive;
1013
- /**
1014
- * @return {?}
1015
- */
1016
- Confirm.prototype.cancel = function () { };
1017
- }
1018
-
1019
- /**
1020
- * @fileoverview added by tsickle
1021
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1022
- */
1023
- /** @type {?} */
1024
- const INTERACTION_CONTEXT = new InjectionToken('InteractionContext');
1025
- /**
1026
- * @abstract
1027
- */
1028
- class InteractionContext {
1029
- }
1030
- if (false) {
1031
- /**
1032
- * @abstract
1033
- * @template D, R, E
1034
- * @param {?} activityType
1035
- * @param {?=} data
1036
- * @return {?}
1037
- */
1038
- InteractionContext.prototype.startActivity = function (activityType, data) { };
1039
- /**
1040
- * @abstract
1041
- * @param {?} confirm
1042
- * @return {?}
1043
- */
1044
- InteractionContext.prototype.confirm = function (confirm) { };
1045
- /**
1046
- * @abstract
1047
- * @param {?} alert
1048
- * @return {?}
1049
- */
1050
- InteractionContext.prototype.alert = function (alert) { };
1051
- }
1052
-
1053
763
  /**
1054
764
  * @fileoverview added by tsickle
1055
765
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -1567,18 +1277,301 @@ InteractionModule.decorators = [
1567
1277
  * @fileoverview added by tsickle
1568
1278
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1569
1279
  */
1570
- /**
1571
- * @record
1572
- * @template R, E
1573
- */
1574
- function Result() { }
1575
- (function (Result) {
1280
+ class BusyOverlayComponent {
1281
+ constructor() {
1282
+ }
1576
1283
  /**
1577
- * @record
1578
- * @template R, E
1284
+ * @return {?}
1579
1285
  */
1580
- function Callback() { }
1581
- Result.Callback = Callback;
1286
+ ngOnInit() {
1287
+ }
1288
+ }
1289
+ BusyOverlayComponent.decorators = [
1290
+ { type: Component, args: [{
1291
+ selector: 'aup-busy-overlay',
1292
+ 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",
1293
+ 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}"]
1294
+ }] }
1295
+ ];
1296
+ /** @nocollapse */
1297
+ BusyOverlayComponent.ctorParameters = () => [];
1298
+ BusyOverlayComponent.propDecorators = {
1299
+ busyModel: [{ type: Input }],
1300
+ busy: [{ type: Input }]
1301
+ };
1302
+ __decorate([
1303
+ UseDelegatingValueModel(),
1304
+ __metadata("design:type", ValueModel)
1305
+ ], BusyOverlayComponent.prototype, "busyModel", void 0);
1306
+ __decorate([
1307
+ StoreInValueModel('busyModel'),
1308
+ __metadata("design:type", Boolean)
1309
+ ], BusyOverlayComponent.prototype, "busy", void 0);
1310
+ if (false) {
1311
+ /** @type {?} */
1312
+ BusyOverlayComponent.prototype.busyModel;
1313
+ /** @type {?} */
1314
+ BusyOverlayComponent.prototype.busy;
1315
+ }
1316
+
1317
+ /**
1318
+ * @fileoverview added by tsickle
1319
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1320
+ */
1321
+ class EmptyStateComponent {
1322
+ constructor() {
1323
+ }
1324
+ /**
1325
+ * @return {?}
1326
+ */
1327
+ ngOnInit() {
1328
+ }
1329
+ }
1330
+ EmptyStateComponent.decorators = [
1331
+ { type: Component, args: [{
1332
+ selector: 'angular-ui-powerups-empty-state',
1333
+ template: `
1334
+ <div class="container">
1335
+ <ng-content></ng-content>
1336
+ </div>
1337
+ `,
1338
+ 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}"]
1339
+ }] }
1340
+ ];
1341
+ /** @nocollapse */
1342
+ EmptyStateComponent.ctorParameters = () => [];
1343
+
1344
+ /**
1345
+ * @fileoverview added by tsickle
1346
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1347
+ */
1348
+ class PlaceService {
1349
+ constructor() {
1350
+ this._activePlaces = new MutableListModel();
1351
+ }
1352
+ /**
1353
+ * @return {?}
1354
+ */
1355
+ get activePlaces() {
1356
+ return this._activePlaces.readonly;
1357
+ }
1358
+ /**
1359
+ * @param {?} place
1360
+ * @return {?}
1361
+ */
1362
+ onActivate(place) {
1363
+ this._activePlaces.push(place);
1364
+ }
1365
+ /**
1366
+ * @param {?} place
1367
+ * @return {?}
1368
+ */
1369
+ onDeactivate(place) {
1370
+ this._activePlaces.remove(place);
1371
+ }
1372
+ }
1373
+ PlaceService.decorators = [
1374
+ { type: Injectable, args: [{
1375
+ providedIn: 'root'
1376
+ },] }
1377
+ ];
1378
+ /** @nocollapse */
1379
+ PlaceService.ctorParameters = () => [];
1380
+ /** @nocollapse */ PlaceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceService_Factory() { return new PlaceService(); }, token: PlaceService, providedIn: "root" });
1381
+ __decorate([
1382
+ Trace(),
1383
+ __metadata("design:type", Function),
1384
+ __metadata("design:paramtypes", [Object]),
1385
+ __metadata("design:returntype", void 0)
1386
+ ], PlaceService.prototype, "onActivate", null);
1387
+ __decorate([
1388
+ Trace(),
1389
+ __metadata("design:type", Function),
1390
+ __metadata("design:paramtypes", [Object]),
1391
+ __metadata("design:returntype", void 0)
1392
+ ], PlaceService.prototype, "onDeactivate", null);
1393
+ if (false) {
1394
+ /**
1395
+ * @type {?}
1396
+ * @private
1397
+ */
1398
+ PlaceService.prototype._activePlaces;
1399
+ }
1400
+
1401
+ /**
1402
+ * @fileoverview added by tsickle
1403
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1404
+ */
1405
+ class PlaceOutletComponent {
1406
+ /**
1407
+ * @param {?} placeService
1408
+ */
1409
+ constructor(placeService) {
1410
+ this.placeService = placeService;
1411
+ }
1412
+ /**
1413
+ * @return {?}
1414
+ */
1415
+ ngOnInit() {
1416
+ }
1417
+ /**
1418
+ * @param {?} $event
1419
+ * @return {?}
1420
+ */
1421
+ onActivate($event) {
1422
+ this.placeService.onActivate($event);
1423
+ }
1424
+ /**
1425
+ * @param {?} $event
1426
+ * @return {?}
1427
+ */
1428
+ onDeactivate($event) {
1429
+ this.placeService.onDeactivate($event);
1430
+ }
1431
+ }
1432
+ PlaceOutletComponent.decorators = [
1433
+ { type: Component, args: [{
1434
+ selector: 'angular-ui-powerups-place-outlet',
1435
+ template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
1436
+ styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
1437
+ }] }
1438
+ ];
1439
+ /** @nocollapse */
1440
+ PlaceOutletComponent.ctorParameters = () => [
1441
+ { type: PlaceService }
1442
+ ];
1443
+ if (false) {
1444
+ /**
1445
+ * @type {?}
1446
+ * @private
1447
+ */
1448
+ PlaceOutletComponent.prototype.placeService;
1449
+ }
1450
+
1451
+ /**
1452
+ * @fileoverview added by tsickle
1453
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1454
+ */
1455
+ class PlaceModule {
1456
+ }
1457
+ PlaceModule.decorators = [
1458
+ { type: NgModule, args: [{
1459
+ imports: [
1460
+ CommonModule,
1461
+ MatProgressSpinnerModule,
1462
+ RouterModule
1463
+ ],
1464
+ declarations: [
1465
+ EmptyStateComponent,
1466
+ BusyOverlayComponent,
1467
+ PlaceOutletComponent
1468
+ ],
1469
+ entryComponents: [BusyOverlayComponent],
1470
+ exports: [
1471
+ BusyOverlayComponent,
1472
+ PlaceOutletComponent,
1473
+ EmptyStateComponent
1474
+ ],
1475
+ providers: [
1476
+ PlaceService
1477
+ ]
1478
+ },] }
1479
+ ];
1480
+
1481
+ /**
1482
+ * @fileoverview added by tsickle
1483
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1484
+ */
1485
+ class AngularUiPowerupsModule {
1486
+ }
1487
+ AngularUiPowerupsModule.decorators = [
1488
+ { type: NgModule, args: [{
1489
+ declarations: [
1490
+ CommandDirective,
1491
+ FocusBindingDirective,
1492
+ NumberInputComponent,
1493
+ StringInputComponent,
1494
+ PasswordInputComponent,
1495
+ SelectInputComponent,
1496
+ ],
1497
+ imports: [
1498
+ CommonModule,
1499
+ BrowserModule,
1500
+ BrowserAnimationsModule,
1501
+ FormsModule,
1502
+ MatInputModule,
1503
+ MatFormFieldModule,
1504
+ MatSelectModule
1505
+ ],
1506
+ exports: [
1507
+ CommandDirective,
1508
+ FocusBindingDirective,
1509
+ NumberInputComponent,
1510
+ StringInputComponent,
1511
+ PasswordInputComponent,
1512
+ SelectInputComponent,
1513
+ InteractionModule,
1514
+ PlaceModule,
1515
+ ]
1516
+ },] }
1517
+ ];
1518
+
1519
+ /**
1520
+ * @fileoverview added by tsickle
1521
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1522
+ */
1523
+ /**
1524
+ * @record
1525
+ */
1526
+ function Alert() { }
1527
+ if (false) {
1528
+ /**
1529
+ * @return {?}
1530
+ */
1531
+ Alert.prototype.title = function () { };
1532
+ /**
1533
+ * @return {?}
1534
+ */
1535
+ Alert.prototype.content = function () { };
1536
+ /**
1537
+ * @return {?}
1538
+ */
1539
+ Alert.prototype.ok = function () { };
1540
+ }
1541
+
1542
+ /**
1543
+ * @fileoverview added by tsickle
1544
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1545
+ */
1546
+ /**
1547
+ * @record
1548
+ */
1549
+ function Confirm() { }
1550
+ if (false) {
1551
+ /** @type {?|undefined} */
1552
+ Confirm.prototype.destructive;
1553
+ /**
1554
+ * @return {?}
1555
+ */
1556
+ Confirm.prototype.cancel = function () { };
1557
+ }
1558
+
1559
+ /**
1560
+ * @fileoverview added by tsickle
1561
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1562
+ */
1563
+ /**
1564
+ * @record
1565
+ * @template R, E
1566
+ */
1567
+ function Result() { }
1568
+ (function (Result) {
1569
+ /**
1570
+ * @record
1571
+ * @template R, E
1572
+ */
1573
+ function Callback() { }
1574
+ Result.Callback = Callback;
1582
1575
  if (false) {
1583
1576
  /** @type {?} */
1584
1577
  Callback.prototype.then;
@@ -2026,211 +2019,6 @@ if (false) {
2026
2019
  PlaceComponent.prototype.canDeactivate = function () { };
2027
2020
  }
2028
2021
 
2029
- /**
2030
- * @fileoverview added by tsickle
2031
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2032
- */
2033
- class BusyOverlayComponent {
2034
- constructor() {
2035
- }
2036
- /**
2037
- * @return {?}
2038
- */
2039
- ngOnInit() {
2040
- }
2041
- }
2042
- BusyOverlayComponent.decorators = [
2043
- { type: Component, args: [{
2044
- selector: 'aup-busy-overlay',
2045
- 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",
2046
- 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}"]
2047
- }] }
2048
- ];
2049
- /** @nocollapse */
2050
- BusyOverlayComponent.ctorParameters = () => [];
2051
- BusyOverlayComponent.propDecorators = {
2052
- busyModel: [{ type: Input }],
2053
- busy: [{ type: Input }]
2054
- };
2055
- __decorate([
2056
- UseDelegatingValueModel(),
2057
- __metadata("design:type", ValueModel)
2058
- ], BusyOverlayComponent.prototype, "busyModel", void 0);
2059
- __decorate([
2060
- StoreInValueModel('busyModel'),
2061
- __metadata("design:type", Boolean)
2062
- ], BusyOverlayComponent.prototype, "busy", void 0);
2063
- if (false) {
2064
- /** @type {?} */
2065
- BusyOverlayComponent.prototype.busyModel;
2066
- /** @type {?} */
2067
- BusyOverlayComponent.prototype.busy;
2068
- }
2069
-
2070
- /**
2071
- * @fileoverview added by tsickle
2072
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2073
- */
2074
- class EmptyStateComponent {
2075
- constructor() {
2076
- }
2077
- /**
2078
- * @return {?}
2079
- */
2080
- ngOnInit() {
2081
- }
2082
- }
2083
- EmptyStateComponent.decorators = [
2084
- { type: Component, args: [{
2085
- selector: 'angular-ui-powerups-empty-state',
2086
- template: `
2087
- <div class="container">
2088
- <ng-content></ng-content>
2089
- </div>
2090
- `,
2091
- 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}"]
2092
- }] }
2093
- ];
2094
- /** @nocollapse */
2095
- EmptyStateComponent.ctorParameters = () => [];
2096
-
2097
- /**
2098
- * @fileoverview added by tsickle
2099
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2100
- */
2101
- class PlaceService {
2102
- constructor() {
2103
- this._activePlaces = new MutableListModel();
2104
- }
2105
- /**
2106
- * @return {?}
2107
- */
2108
- get activePlaces() {
2109
- return this._activePlaces.readonly;
2110
- }
2111
- /**
2112
- * @param {?} place
2113
- * @return {?}
2114
- */
2115
- onActivate(place) {
2116
- this._activePlaces.push(place);
2117
- }
2118
- /**
2119
- * @param {?} place
2120
- * @return {?}
2121
- */
2122
- onDeactivate(place) {
2123
- this._activePlaces.remove(place);
2124
- }
2125
- }
2126
- PlaceService.decorators = [
2127
- { type: Injectable, args: [{
2128
- providedIn: 'root'
2129
- },] }
2130
- ];
2131
- /** @nocollapse */
2132
- PlaceService.ctorParameters = () => [];
2133
- /** @nocollapse */ PlaceService.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceService_Factory() { return new PlaceService(); }, token: PlaceService, providedIn: "root" });
2134
- __decorate([
2135
- Trace(),
2136
- __metadata("design:type", Function),
2137
- __metadata("design:paramtypes", [Object]),
2138
- __metadata("design:returntype", void 0)
2139
- ], PlaceService.prototype, "onActivate", null);
2140
- __decorate([
2141
- Trace(),
2142
- __metadata("design:type", Function),
2143
- __metadata("design:paramtypes", [Object]),
2144
- __metadata("design:returntype", void 0)
2145
- ], PlaceService.prototype, "onDeactivate", null);
2146
- if (false) {
2147
- /**
2148
- * @type {?}
2149
- * @private
2150
- */
2151
- PlaceService.prototype._activePlaces;
2152
- }
2153
-
2154
- /**
2155
- * @fileoverview added by tsickle
2156
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2157
- */
2158
- class PlaceOutletComponent {
2159
- /**
2160
- * @param {?} placeService
2161
- */
2162
- constructor(placeService) {
2163
- this.placeService = placeService;
2164
- }
2165
- /**
2166
- * @return {?}
2167
- */
2168
- ngOnInit() {
2169
- }
2170
- /**
2171
- * @param {?} $event
2172
- * @return {?}
2173
- */
2174
- onActivate($event) {
2175
- this.placeService.onActivate($event);
2176
- }
2177
- /**
2178
- * @param {?} $event
2179
- * @return {?}
2180
- */
2181
- onDeactivate($event) {
2182
- this.placeService.onDeactivate($event);
2183
- }
2184
- }
2185
- PlaceOutletComponent.decorators = [
2186
- { type: Component, args: [{
2187
- selector: 'angular-ui-powerups-place-outlet',
2188
- template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
2189
- styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
2190
- }] }
2191
- ];
2192
- /** @nocollapse */
2193
- PlaceOutletComponent.ctorParameters = () => [
2194
- { type: PlaceService }
2195
- ];
2196
- if (false) {
2197
- /**
2198
- * @type {?}
2199
- * @private
2200
- */
2201
- PlaceOutletComponent.prototype.placeService;
2202
- }
2203
-
2204
- /**
2205
- * @fileoverview added by tsickle
2206
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2207
- */
2208
- class PlaceModule {
2209
- }
2210
- PlaceModule.decorators = [
2211
- { type: NgModule, args: [{
2212
- imports: [
2213
- CommonModule,
2214
- MatProgressSpinnerModule,
2215
- RouterModule
2216
- ],
2217
- declarations: [
2218
- EmptyStateComponent,
2219
- BusyOverlayComponent,
2220
- PlaceOutletComponent
2221
- ],
2222
- entryComponents: [BusyOverlayComponent],
2223
- exports: [
2224
- BusyOverlayComponent,
2225
- PlaceOutletComponent,
2226
- EmptyStateComponent
2227
- ],
2228
- providers: [
2229
- PlaceService
2230
- ]
2231
- },] }
2232
- ];
2233
-
2234
2022
  /**
2235
2023
  * @fileoverview added by tsickle
2236
2024
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2683,5 +2471,5 @@ var ParameterType;
2683
2471
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2684
2472
  */
2685
2473
 
2686
- export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LeavePlaceGuard, NumberInputComponent, ParameterType, PasswordInputComponent, Place, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, Point, QueryParameter, ResizeAwareComponent, RouteId, RouteParameterBindings, RouteParameterSanitiser, SelectInputComponent, StringInputComponent, CommandDirective as ɵa, FocusBindingDirective as ɵb, DisposableComponent as ɵc, NumberInputComponent as ɵd, AbstractInputComponent as ɵe, StringInputComponent as ɵf, PasswordInputComponent as ɵg, SelectInputComponent as ɵh };
2474
+ 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 };
2687
2475
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map