@coolon/angular-ui-powerups 0.0.1 → 0.0.3

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('@angular/platform-browser'), require('@angular/platform-browser/animations'), require('@coolon/pectin'), require('resize-observer-polyfill'), require('@angular/cdk/portal'), require('@coolon/pectin/lib/promise/deferred.class'), require('@angular/material/dialog'), require('@typescript-plus/fast-memoize-decorator'), require('lodash'), require('reflect-metadata'), require('@angular/router'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src')) :
3
- typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material', '@angular/platform-browser', '@angular/platform-browser/animations', '@coolon/pectin', 'resize-observer-polyfill', '@angular/cdk/portal', '@coolon/pectin/lib/promise/deferred.class', '@angular/material/dialog', '@typescript-plus/fast-memoize-decorator', 'lodash', 'reflect-metadata', '@angular/router', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src'], factory) :
4
- (global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material, global.ng.platformBrowser, global.ng.platformBrowser.animations, global.pectin, global.ResizeObserver, global.ng.cdk.portal, global.deferred_class, global.ng.material.dialog, global.fastMemoizeDecorator, global.lodash, null, global.ng.router, global.typescriptUtilities, global.src));
5
- }(this, function (exports, common, core, forms, material, platformBrowser, animations, pectin, ResizeObserver, portal, deferred_class, dialog, fastMemoizeDecorator, lodash, reflectMetadata, router, typescriptUtilities, src) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('@angular/platform-browser'), require('@angular/platform-browser/animations'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@coolon/pectin/lib/promise/deferred.class'), require('@angular/material/dialog'), require('@angular/router'), require('resize-observer-polyfill'), require('@typescript-plus/fast-memoize-decorator'), require('lodash'), require('reflect-metadata'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src')) :
3
+ typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material', '@angular/platform-browser', '@angular/platform-browser/animations', '@coolon/pectin', '@angular/cdk/portal', '@coolon/pectin/lib/promise/deferred.class', '@angular/material/dialog', '@angular/router', 'resize-observer-polyfill', '@typescript-plus/fast-memoize-decorator', 'lodash', 'reflect-metadata', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src'], factory) :
4
+ (global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material, global.ng.platformBrowser, global.ng.platformBrowser.animations, global.pectin, global.ng.cdk.portal, global.deferred_class, global.ng.material.dialog, global.ng.router, global.ResizeObserver, global.fastMemoizeDecorator, global.lodash, null, global.typescriptUtilities, global.src));
5
+ }(this, function (exports, common, core, forms, material, platformBrowser, animations, pectin, portal, deferred_class, dialog, router, ResizeObserver, fastMemoizeDecorator, lodash, reflectMetadata, typescriptUtilities, src) { 'use strict';
6
6
 
7
7
  ResizeObserver = ResizeObserver && ResizeObserver.hasOwnProperty('default') ? ResizeObserver['default'] : ResizeObserver;
8
8
 
@@ -897,401 +897,159 @@
897
897
  * @fileoverview added by tsickle
898
898
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
899
899
  */
900
- var AngularUiPowerupsModule = /** @class */ (function () {
901
- function AngularUiPowerupsModule() {
902
- }
903
- AngularUiPowerupsModule.decorators = [
904
- { type: core.NgModule, args: [{
905
- declarations: [
906
- CommandDirective,
907
- FocusBindingDirective,
908
- NumberInputComponent,
909
- StringInputComponent,
910
- PasswordInputComponent,
911
- SelectInputComponent,
912
- ],
913
- imports: [
914
- common.CommonModule,
915
- platformBrowser.BrowserModule,
916
- animations.BrowserAnimationsModule,
917
- forms.FormsModule,
918
- material.MatInputModule,
919
- material.MatFormFieldModule,
920
- material.MatSelectModule
921
- ],
922
- exports: [
923
- CommandDirective,
924
- FocusBindingDirective,
925
- NumberInputComponent,
926
- StringInputComponent,
927
- PasswordInputComponent,
928
- SelectInputComponent,
929
- ]
930
- },] }
931
- ];
932
- return AngularUiPowerupsModule;
933
- }());
934
-
900
+ /** @type {?} */
901
+ var INTERACTION_CONTEXT = new core.InjectionToken('InteractionContext');
935
902
  /**
936
- * @fileoverview added by tsickle
937
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
903
+ * @abstract
938
904
  */
939
- var Dimension = /** @class */ (function () {
940
- function Dimension(width, height) {
941
- this.width = width;
942
- this.height = height;
905
+ var /**
906
+ * @abstract
907
+ */
908
+ InteractionContext = /** @class */ (function () {
909
+ function InteractionContext() {
943
910
  }
944
- return Dimension;
911
+ return InteractionContext;
945
912
  }());
946
913
  if (false) {
947
- /** @type {?} */
948
- Dimension.prototype.width;
949
- /** @type {?} */
950
- Dimension.prototype.height;
914
+ /**
915
+ * @abstract
916
+ * @template D, R, E
917
+ * @param {?} activityType
918
+ * @param {?=} data
919
+ * @return {?}
920
+ */
921
+ InteractionContext.prototype.startActivity = function (activityType, data) { };
922
+ /**
923
+ * @abstract
924
+ * @param {?} confirm
925
+ * @return {?}
926
+ */
927
+ InteractionContext.prototype.confirm = function (confirm) { };
928
+ /**
929
+ * @abstract
930
+ * @param {?} alert
931
+ * @return {?}
932
+ */
933
+ InteractionContext.prototype.alert = function (alert) { };
951
934
  }
952
935
 
953
936
  /**
954
937
  * @fileoverview added by tsickle
955
938
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
956
939
  */
957
- var Point = /** @class */ (function () {
958
- function Point(x, y) {
959
- this.x = x;
960
- this.y = y;
940
+ /**
941
+ * @template D, R, E
942
+ */
943
+ var /**
944
+ * @template D, R, E
945
+ */
946
+ AbstractActivity = /** @class */ (function (_super) {
947
+ __extends(AbstractActivity, _super);
948
+ function AbstractActivity() {
949
+ var _this = _super !== null && _super.apply(this, arguments) || this;
950
+ _this._doneListeners = new pectin.EventListenerList();
951
+ _this._cancelListeners = new pectin.EventListenerList();
952
+ _this._finishListeners = new pectin.EventListenerList();
953
+ _this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
954
+ return _this;
961
955
  }
962
956
  /**
963
- * @param {?} data
957
+ * @param {?} callback
964
958
  * @return {?}
965
959
  */
966
- Point.from = /**
967
- * @param {?} data
960
+ AbstractActivity.prototype.onDone = /**
961
+ * @param {?} callback
968
962
  * @return {?}
969
963
  */
970
- function (data) {
971
- return new Point(data.x, data.y);
964
+ function (callback) {
965
+ this._doneListeners.add(callback);
972
966
  };
973
967
  /**
974
- * @param {?} x
975
- * @param {?} y
968
+ * @param {?} callback
976
969
  * @return {?}
977
970
  */
978
- Point.prototype.translate = /**
979
- * @param {?} x
980
- * @param {?} y
971
+ AbstractActivity.prototype.onCancel = /**
972
+ * @param {?} callback
981
973
  * @return {?}
982
974
  */
983
- function (x, y) {
984
- return new Point(this.x + x, this.y + y);
975
+ function (callback) {
976
+ this._cancelListeners.add(callback);
985
977
  };
986
- return Point;
987
- }());
988
- if (false) {
989
- /** @type {?} */
990
- Point.prototype.x;
991
- /** @type {?} */
992
- Point.prototype.y;
993
- }
994
-
995
- /**
996
- * @fileoverview added by tsickle
997
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
998
- */
999
- exports.Bounds = /** @class */ (function (_super) {
1000
- __extends(Bounds, _super);
1001
- function Bounds(top, left, width, height) {
1002
- var _this = _super.call(this, width, height) || this;
1003
- _this.top = top;
1004
- _this.left = left;
1005
- _this.width = width;
1006
- _this.height = height;
1007
- return _this;
1008
- }
1009
978
  /**
1010
- * @param {?} point
979
+ * @param {?=} result
1011
980
  * @return {?}
1012
981
  */
1013
- Bounds.prototype.relativePositionOf = /**
1014
- * @param {?} point
982
+ AbstractActivity.prototype.done = /**
983
+ * @param {?=} result
1015
984
  * @return {?}
1016
985
  */
1017
- function (point) {
1018
- if (point instanceof MouseEvent) {
1019
- return new Point(point.clientX - this.left, point.clientY - this.top);
1020
- }
1021
- else {
1022
- return new Point(point.x - this.left, point.y - this.top);
1023
- }
986
+ function (result) {
987
+ var _this = this;
988
+ return this._doneListeners
989
+ .fireAndWait((/**
990
+ * @param {?} l
991
+ * @return {?}
992
+ */
993
+ function (l) { return l(result); }))
994
+ .finally((/**
995
+ * @return {?}
996
+ */
997
+ function () { return _this.finalizeAndDispose(); }));
1024
998
  };
1025
- return Bounds;
1026
- }(Dimension));
1027
- if (false) {
1028
- /** @type {?} */
1029
- exports.Bounds.prototype.top;
1030
- /** @type {?} */
1031
- exports.Bounds.prototype.left;
1032
- /** @type {?} */
1033
- exports.Bounds.prototype.width;
1034
- /** @type {?} */
1035
- exports.Bounds.prototype.height;
1036
- }
1037
- (function (Bounds) {
1038
999
  /**
1039
- * @param {?} element
1000
+ * @param {?=} error
1040
1001
  * @return {?}
1041
1002
  */
1042
- function ofElement(element) {
1043
- /** @type {?} */
1044
- var rect = element.getBoundingClientRect();
1045
- return new Bounds(rect.top, rect.left, rect.width, rect.height);
1046
- }
1047
- Bounds.ofElement = ofElement;
1048
- })(exports.Bounds || (exports.Bounds = {}));
1049
-
1050
- /**
1051
- * @fileoverview added by tsickle
1052
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1053
- */
1054
- var ResizeAwareComponent = /** @class */ (function (_super) {
1055
- __extends(ResizeAwareComponent, _super);
1056
- function ResizeAwareComponent(elementRef, ngZone) {
1057
- var _this = _super.call(this) || this;
1058
- _this.elementRef = elementRef;
1059
- _this.ngZone = ngZone;
1060
- _this._boundsModel = new pectin.ValueHolder(new exports.Bounds(0, 0, 0, 0));
1061
- return _this;
1062
- }
1003
+ AbstractActivity.prototype.cancel = /**
1004
+ * @param {?=} error
1005
+ * @return {?}
1006
+ */
1007
+ function (error) {
1008
+ var _this = this;
1009
+ return this._cancelListeners
1010
+ .fireAndWait((/**
1011
+ * @param {?} l
1012
+ * @return {?}
1013
+ */
1014
+ function (l) { return l(error); }))
1015
+ .finally((/**
1016
+ * @return {?}
1017
+ */
1018
+ function () { return _this.finalizeAndDispose(); }));
1019
+ };
1063
1020
  /**
1021
+ * @private
1064
1022
  * @return {?}
1065
1023
  */
1066
- ResizeAwareComponent.prototype.ngAfterViewInit = /**
1024
+ AbstractActivity.prototype.finalizeAndDispose = /**
1025
+ * @private
1067
1026
  * @return {?}
1068
1027
  */
1069
1028
  function () {
1070
- var _this = this;
1071
- this.updateBounds();
1072
- /** @type {?} */
1073
- var element = this.elementRef.nativeElement;
1074
- /** @type {?} */
1075
- var ro = new ResizeObserver((/**
1076
- * @param {?} entries
1077
- * @param {?} observer
1029
+ // this._activeModel.value = false;
1030
+ this._finishListeners.fire((/**
1031
+ * @param {?} l
1078
1032
  * @return {?}
1079
1033
  */
1080
- function (entries, observer) {
1081
- _this.ngZone.run((/**
1082
- * @return {?}
1083
- */
1084
- function () { return _this.updateBounds(); }));
1085
- }));
1086
- ro.observe(element);
1087
- this.onDispose((/**
1034
+ function (l) { return l(); }));
1035
+ // this._interactionContext = null;
1036
+ // this._initialized = false;
1037
+ [
1038
+ this._finishListeners,
1039
+ this._doneListeners,
1040
+ this._cancelListeners
1041
+ ].forEach((/**
1042
+ * @param {?} l
1088
1043
  * @return {?}
1089
1044
  */
1090
- function () { return ro.disconnect(); }));
1045
+ function (l) { return l.dispose(); }));
1091
1046
  };
1092
- Object.defineProperty(ResizeAwareComponent.prototype, "boundsModel", {
1047
+ Object.defineProperty(AbstractActivity.prototype, "busy", {
1093
1048
  get: /**
1094
1049
  * @return {?}
1095
1050
  */
1096
1051
  function () {
1097
- return this._boundsModel.readonly;
1098
- },
1099
- enumerable: true,
1100
- configurable: true
1101
- });
1102
- Object.defineProperty(ResizeAwareComponent.prototype, "nativeElement", {
1103
- get: /**
1104
- * @return {?}
1105
- */
1106
- function () {
1107
- return this.elementRef.nativeElement;
1108
- },
1109
- enumerable: true,
1110
- configurable: true
1111
- });
1112
- // TODO: Make this handle body scroll
1113
- // TODO: Make this handle body scroll
1114
- /**
1115
- * @param {?} point
1116
- * @return {?}
1117
- */
1118
- ResizeAwareComponent.prototype.relativePositionOf =
1119
- // TODO: Make this handle body scroll
1120
- /**
1121
- * @param {?} point
1122
- * @return {?}
1123
- */
1124
- function (point) {
1125
- return this.bounds.relativePositionOf(point);
1126
- };
1127
- Object.defineProperty(ResizeAwareComponent.prototype, "bounds", {
1128
- get: /**
1129
- * @return {?}
1130
- */
1131
- function () {
1132
- return this._boundsModel.value;
1133
- },
1134
- enumerable: true,
1135
- configurable: true
1136
- });
1137
- /**
1138
- * @private
1139
- * @return {?}
1140
- */
1141
- ResizeAwareComponent.prototype.updateBounds = /**
1142
- * @private
1143
- * @return {?}
1144
- */
1145
- function () {
1146
- this._boundsModel.value = exports.Bounds.ofElement(this.nativeElement);
1147
- };
1148
- return ResizeAwareComponent;
1149
- }(DisposableComponent));
1150
- if (false) {
1151
- /**
1152
- * @type {?}
1153
- * @private
1154
- */
1155
- ResizeAwareComponent.prototype._boundsModel;
1156
- /**
1157
- * @type {?}
1158
- * @protected
1159
- */
1160
- ResizeAwareComponent.prototype.elementRef;
1161
- /**
1162
- * @type {?}
1163
- * @protected
1164
- */
1165
- ResizeAwareComponent.prototype.ngZone;
1166
- }
1167
-
1168
- /**
1169
- * @fileoverview added by tsickle
1170
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1171
- */
1172
-
1173
- /**
1174
- * @fileoverview added by tsickle
1175
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1176
- */
1177
-
1178
- /**
1179
- * @fileoverview added by tsickle
1180
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1181
- */
1182
- /**
1183
- * @template D, R, E
1184
- */
1185
- var /**
1186
- * @template D, R, E
1187
- */
1188
- AbstractActivity = /** @class */ (function (_super) {
1189
- __extends(AbstractActivity, _super);
1190
- function AbstractActivity() {
1191
- var _this = _super !== null && _super.apply(this, arguments) || this;
1192
- _this._doneListeners = new pectin.EventListenerList();
1193
- _this._cancelListeners = new pectin.EventListenerList();
1194
- _this._finishListeners = new pectin.EventListenerList();
1195
- _this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
1196
- return _this;
1197
- }
1198
- /**
1199
- * @param {?} callback
1200
- * @return {?}
1201
- */
1202
- AbstractActivity.prototype.onDone = /**
1203
- * @param {?} callback
1204
- * @return {?}
1205
- */
1206
- function (callback) {
1207
- this._doneListeners.add(callback);
1208
- };
1209
- /**
1210
- * @param {?} callback
1211
- * @return {?}
1212
- */
1213
- AbstractActivity.prototype.onCancel = /**
1214
- * @param {?} callback
1215
- * @return {?}
1216
- */
1217
- function (callback) {
1218
- this._cancelListeners.add(callback);
1219
- };
1220
- /**
1221
- * @param {?=} result
1222
- * @return {?}
1223
- */
1224
- AbstractActivity.prototype.done = /**
1225
- * @param {?=} result
1226
- * @return {?}
1227
- */
1228
- function (result) {
1229
- var _this = this;
1230
- return this._doneListeners
1231
- .fireAndWait((/**
1232
- * @param {?} l
1233
- * @return {?}
1234
- */
1235
- function (l) { return l(result); }))
1236
- .finally((/**
1237
- * @return {?}
1238
- */
1239
- function () { return _this.finalizeAndDispose(); }));
1240
- };
1241
- /**
1242
- * @param {?=} error
1243
- * @return {?}
1244
- */
1245
- AbstractActivity.prototype.cancel = /**
1246
- * @param {?=} error
1247
- * @return {?}
1248
- */
1249
- function (error) {
1250
- var _this = this;
1251
- return this._cancelListeners
1252
- .fireAndWait((/**
1253
- * @param {?} l
1254
- * @return {?}
1255
- */
1256
- function (l) { return l(error); }))
1257
- .finally((/**
1258
- * @return {?}
1259
- */
1260
- function () { return _this.finalizeAndDispose(); }));
1261
- };
1262
- /**
1263
- * @private
1264
- * @return {?}
1265
- */
1266
- AbstractActivity.prototype.finalizeAndDispose = /**
1267
- * @private
1268
- * @return {?}
1269
- */
1270
- function () {
1271
- // this._activeModel.value = false;
1272
- this._finishListeners.fire((/**
1273
- * @param {?} l
1274
- * @return {?}
1275
- */
1276
- function (l) { return l(); }));
1277
- // this._interactionContext = null;
1278
- // this._initialized = false;
1279
- [
1280
- this._finishListeners,
1281
- this._doneListeners,
1282
- this._cancelListeners
1283
- ].forEach((/**
1284
- * @param {?} l
1285
- * @return {?}
1286
- */
1287
- function (l) { return l.dispose(); }));
1288
- };
1289
- Object.defineProperty(AbstractActivity.prototype, "busy", {
1290
- get: /**
1291
- * @return {?}
1292
- */
1293
- function () {
1294
- return this._busyModel.readonly;
1052
+ return this._busyModel.readonly;
1295
1053
  },
1296
1054
  enumerable: true,
1297
1055
  configurable: true
@@ -1371,132 +1129,52 @@
1371
1129
  * @fileoverview added by tsickle
1372
1130
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1373
1131
  */
1374
- /**
1375
- * @record
1376
- */
1377
- function Alert() { }
1378
- if (false) {
1379
- /**
1380
- * @return {?}
1381
- */
1382
- Alert.prototype.title = function () { };
1132
+ var AlertDialogComponent = /** @class */ (function (_super) {
1133
+ __extends(AlertDialogComponent, _super);
1134
+ function AlertDialogComponent(alert) {
1135
+ var _this = _super.call(this) || this;
1136
+ _this.alert = alert;
1137
+ return _this;
1138
+ }
1383
1139
  /**
1384
1140
  * @return {?}
1385
1141
  */
1386
- Alert.prototype.content = function () { };
1387
- /**
1142
+ AlertDialogComponent.prototype.ngOnInit = /**
1388
1143
  * @return {?}
1389
1144
  */
1390
- Alert.prototype.ok = function () { };
1145
+ function () {
1146
+ };
1147
+ AlertDialogComponent.decorators = [
1148
+ { type: core.Component, args: [{
1149
+ selector: 'angular-ui-powerups-alert-dialog',
1150
+ 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",
1151
+ styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
1152
+ }] }
1153
+ ];
1154
+ /** @nocollapse */
1155
+ AlertDialogComponent.ctorParameters = function () { return [
1156
+ { type: undefined, decorators: [{ type: core.Inject, args: [ACTIVITY_DATA,] }] }
1157
+ ]; };
1158
+ return AlertDialogComponent;
1159
+ }(AbstractActivity));
1160
+ if (false) {
1161
+ /** @type {?} */
1162
+ AlertDialogComponent.prototype.alert;
1391
1163
  }
1392
1164
 
1393
1165
  /**
1394
1166
  * @fileoverview added by tsickle
1395
1167
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1396
1168
  */
1397
- /**
1398
- * @record
1399
- */
1400
- function Confirm() { }
1401
- if (false) {
1402
- /** @type {?|undefined} */
1403
- Confirm.prototype.destructive;
1404
- /**
1405
- * @return {?}
1406
- */
1407
- Confirm.prototype.cancel = function () { };
1408
- }
1409
-
1410
- /**
1411
- * @fileoverview added by tsickle
1412
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1413
- */
1414
- /** @type {?} */
1415
- var INTERACTION_CONTEXT = new core.InjectionToken('InteractionContext');
1416
- /**
1417
- * @abstract
1418
- */
1419
- var /**
1420
- * @abstract
1421
- */
1422
- InteractionContext = /** @class */ (function () {
1423
- function InteractionContext() {
1424
- }
1425
- return InteractionContext;
1426
- }());
1427
- if (false) {
1428
- /**
1429
- * @abstract
1430
- * @template D, R, E
1431
- * @param {?} activityType
1432
- * @param {?=} data
1433
- * @return {?}
1434
- */
1435
- InteractionContext.prototype.startActivity = function (activityType, data) { };
1436
- /**
1437
- * @abstract
1438
- * @param {?} confirm
1439
- * @return {?}
1440
- */
1441
- InteractionContext.prototype.confirm = function (confirm) { };
1442
- /**
1443
- * @abstract
1444
- * @param {?} alert
1445
- * @return {?}
1446
- */
1447
- InteractionContext.prototype.alert = function (alert) { };
1448
- }
1449
-
1450
- /**
1451
- * @fileoverview added by tsickle
1452
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1453
- */
1454
- var AlertDialogComponent = /** @class */ (function (_super) {
1455
- __extends(AlertDialogComponent, _super);
1456
- function AlertDialogComponent(alert) {
1457
- var _this = _super.call(this) || this;
1458
- _this.alert = alert;
1459
- return _this;
1460
- }
1461
- /**
1462
- * @return {?}
1463
- */
1464
- AlertDialogComponent.prototype.ngOnInit = /**
1465
- * @return {?}
1466
- */
1467
- function () {
1468
- };
1469
- AlertDialogComponent.decorators = [
1470
- { type: core.Component, args: [{
1471
- selector: 'angular-ui-powerups-alert-dialog',
1472
- 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",
1473
- styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
1474
- }] }
1475
- ];
1476
- /** @nocollapse */
1477
- AlertDialogComponent.ctorParameters = function () { return [
1478
- { type: undefined, decorators: [{ type: core.Inject, args: [ACTIVITY_DATA,] }] }
1479
- ]; };
1480
- return AlertDialogComponent;
1481
- }(AbstractActivity));
1482
- if (false) {
1483
- /** @type {?} */
1484
- AlertDialogComponent.prototype.alert;
1485
- }
1486
-
1487
- /**
1488
- * @fileoverview added by tsickle
1489
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1490
- */
1491
- var ConfirmationDialogComponent = /** @class */ (function (_super) {
1492
- __extends(ConfirmationDialogComponent, _super);
1493
- function ConfirmationDialogComponent(confirm) {
1494
- var _this = _super.call(this) || this;
1495
- _this.confirm = confirm;
1496
- pectin.assert.notNil(confirm);
1497
- console.log(confirm);
1498
- return _this;
1499
- }
1169
+ var ConfirmationDialogComponent = /** @class */ (function (_super) {
1170
+ __extends(ConfirmationDialogComponent, _super);
1171
+ function ConfirmationDialogComponent(confirm) {
1172
+ var _this = _super.call(this) || this;
1173
+ _this.confirm = confirm;
1174
+ pectin.assert.notNil(confirm);
1175
+ console.log(confirm);
1176
+ return _this;
1177
+ }
1500
1178
  /**
1501
1179
  * @return {?}
1502
1180
  */
@@ -1536,7 +1214,7 @@
1536
1214
  * @fileoverview added by tsickle
1537
1215
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1538
1216
  */
1539
- exports.ActivityContainerComponent = /** @class */ (function (_super) {
1217
+ exports.ɵj = /** @class */ (function (_super) {
1540
1218
  __extends(ActivityContainerComponent, _super);
1541
1219
  function ActivityContainerComponent() {
1542
1220
  var _this = _super.call(this) || this;
@@ -1671,18 +1349,18 @@
1671
1349
  }(DisposableComponent));
1672
1350
  if (false) {
1673
1351
  /** @type {?} */
1674
- exports.ActivityContainerComponent.prototype.parentInteractionContext;
1352
+ exports.ɵj.prototype.parentInteractionContext;
1675
1353
  /** @type {?} */
1676
- exports.ActivityContainerComponent.prototype.initialActivity;
1354
+ exports.ɵj.prototype.initialActivity;
1677
1355
  /** @type {?} */
1678
- exports.ActivityContainerComponent.prototype.tabs;
1356
+ exports.ɵj.prototype.tabs;
1679
1357
  /** @type {?} */
1680
- exports.ActivityContainerComponent.prototype.activityTabs;
1358
+ exports.ɵj.prototype.activityTabs;
1681
1359
  /**
1682
1360
  * @type {?}
1683
1361
  * @private
1684
1362
  */
1685
- exports.ActivityContainerComponent.prototype.obsoleteTabs;
1363
+ exports.ɵj.prototype.obsoleteTabs;
1686
1364
  }
1687
1365
  (function (ActivityContainerComponent) {
1688
1366
  /**
@@ -1701,7 +1379,7 @@
1701
1379
  /** @type {?} */
1702
1380
  ActivityContext.prototype.onCancel;
1703
1381
  }
1704
- })(exports.ActivityContainerComponent || (exports.ActivityContainerComponent = {}));
1382
+ })(exports.ɵj || (exports.ɵj = {}));
1705
1383
 
1706
1384
  /**
1707
1385
  * @fileoverview added by tsickle
@@ -1710,7 +1388,7 @@
1710
1388
  /**
1711
1389
  * @template D, R, E
1712
1390
  */
1713
- exports.ActivityOutletComponent = /** @class */ (function () {
1391
+ exports.ɵq = /** @class */ (function () {
1714
1392
  function ActivityOutletComponent(componentFactoryResolver, viewContainerRef, injector) {
1715
1393
  this.componentFactoryResolver = componentFactoryResolver;
1716
1394
  this.viewContainerRef = viewContainerRef;
@@ -1821,27 +1499,27 @@
1821
1499
  }());
1822
1500
  if (false) {
1823
1501
  /** @type {?} */
1824
- exports.ActivityOutletComponent.prototype.interactionContext;
1502
+ exports.ɵq.prototype.interactionContext;
1825
1503
  /**
1826
1504
  * @type {?}
1827
1505
  * @private
1828
1506
  */
1829
- exports.ActivityOutletComponent.prototype.activityComponent;
1507
+ exports.ɵq.prototype.activityComponent;
1830
1508
  /**
1831
1509
  * @type {?}
1832
1510
  * @private
1833
1511
  */
1834
- exports.ActivityOutletComponent.prototype.componentFactoryResolver;
1512
+ exports.ɵq.prototype.componentFactoryResolver;
1835
1513
  /**
1836
1514
  * @type {?}
1837
1515
  * @private
1838
1516
  */
1839
- exports.ActivityOutletComponent.prototype.viewContainerRef;
1517
+ exports.ɵq.prototype.viewContainerRef;
1840
1518
  /**
1841
1519
  * @type {?}
1842
1520
  * @private
1843
1521
  */
1844
- exports.ActivityOutletComponent.prototype.injector;
1522
+ exports.ɵq.prototype.injector;
1845
1523
  /* Skipping unhandled member: ;*/
1846
1524
  }
1847
1525
  (function (ActivityOutletComponent) {
@@ -1902,7 +1580,7 @@
1902
1580
  */
1903
1581
  OutletInteractionContext.prototype.context;
1904
1582
  }
1905
- })(exports.ActivityOutletComponent || (exports.ActivityOutletComponent = {}));
1583
+ })(exports.ɵq || (exports.ɵq = {}));
1906
1584
 
1907
1585
  /**
1908
1586
  * @fileoverview added by tsickle
@@ -1957,7 +1635,7 @@
1957
1635
  autoFocus: false
1958
1636
  };
1959
1637
  /** @type {?} */
1960
- var matDialogRef = (/** @type {?} */ (this.dialogService.open(exports.ActivityContainerComponent, config)));
1638
+ var matDialogRef = (/** @type {?} */ (this.dialogService.open(exports.ɵj, config)));
1961
1639
  return new Promise((/**
1962
1640
  * @param {?} resolve
1963
1641
  * @param {?} reject
@@ -2049,13 +1727,13 @@
2049
1727
  portal.PortalModule
2050
1728
  ],
2051
1729
  declarations: [
2052
- exports.ActivityContainerComponent,
1730
+ exports.ɵj,
2053
1731
  ConfirmationDialogComponent,
2054
1732
  AlertDialogComponent,
2055
- exports.ActivityOutletComponent
1733
+ exports.ɵq
2056
1734
  ],
2057
1735
  entryComponents: [
2058
- exports.ActivityContainerComponent,
1736
+ exports.ɵj,
2059
1737
  ConfirmationDialogComponent,
2060
1738
  AlertDialogComponent
2061
1739
  ],
@@ -2067,6 +1745,564 @@
2067
1745
  return InteractionModule;
2068
1746
  }());
2069
1747
 
1748
+ /**
1749
+ * @fileoverview added by tsickle
1750
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1751
+ */
1752
+ var BusyOverlayComponent = /** @class */ (function () {
1753
+ function BusyOverlayComponent() {
1754
+ }
1755
+ /**
1756
+ * @return {?}
1757
+ */
1758
+ BusyOverlayComponent.prototype.ngOnInit = /**
1759
+ * @return {?}
1760
+ */
1761
+ function () {
1762
+ };
1763
+ BusyOverlayComponent.decorators = [
1764
+ { type: core.Component, args: [{
1765
+ selector: 'aup-busy-overlay',
1766
+ 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",
1767
+ 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}"]
1768
+ }] }
1769
+ ];
1770
+ /** @nocollapse */
1771
+ BusyOverlayComponent.ctorParameters = function () { return []; };
1772
+ BusyOverlayComponent.propDecorators = {
1773
+ busyModel: [{ type: core.Input }],
1774
+ busy: [{ type: core.Input }]
1775
+ };
1776
+ __decorate([
1777
+ pectin.UseDelegatingValueModel(),
1778
+ __metadata("design:type", pectin.ValueModel)
1779
+ ], BusyOverlayComponent.prototype, "busyModel", void 0);
1780
+ __decorate([
1781
+ pectin.StoreInValueModel('busyModel'),
1782
+ __metadata("design:type", Boolean)
1783
+ ], BusyOverlayComponent.prototype, "busy", void 0);
1784
+ return BusyOverlayComponent;
1785
+ }());
1786
+ if (false) {
1787
+ /** @type {?} */
1788
+ BusyOverlayComponent.prototype.busyModel;
1789
+ /** @type {?} */
1790
+ BusyOverlayComponent.prototype.busy;
1791
+ }
1792
+
1793
+ /**
1794
+ * @fileoverview added by tsickle
1795
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1796
+ */
1797
+ var EmptyStateComponent = /** @class */ (function () {
1798
+ function EmptyStateComponent() {
1799
+ }
1800
+ /**
1801
+ * @return {?}
1802
+ */
1803
+ EmptyStateComponent.prototype.ngOnInit = /**
1804
+ * @return {?}
1805
+ */
1806
+ function () {
1807
+ };
1808
+ EmptyStateComponent.decorators = [
1809
+ { type: core.Component, args: [{
1810
+ selector: 'angular-ui-powerups-empty-state',
1811
+ template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
1812
+ 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}"]
1813
+ }] }
1814
+ ];
1815
+ /** @nocollapse */
1816
+ EmptyStateComponent.ctorParameters = function () { return []; };
1817
+ return EmptyStateComponent;
1818
+ }());
1819
+
1820
+ /**
1821
+ * @fileoverview added by tsickle
1822
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1823
+ */
1824
+ var PlaceService = /** @class */ (function () {
1825
+ function PlaceService() {
1826
+ this._activePlaces = new pectin.MutableListModel();
1827
+ }
1828
+ Object.defineProperty(PlaceService.prototype, "activePlaces", {
1829
+ get: /**
1830
+ * @return {?}
1831
+ */
1832
+ function () {
1833
+ return this._activePlaces.readonly;
1834
+ },
1835
+ enumerable: true,
1836
+ configurable: true
1837
+ });
1838
+ /**
1839
+ * @param {?} place
1840
+ * @return {?}
1841
+ */
1842
+ PlaceService.prototype.onActivate = /**
1843
+ * @param {?} place
1844
+ * @return {?}
1845
+ */
1846
+ function (place) {
1847
+ this._activePlaces.push(place);
1848
+ };
1849
+ /**
1850
+ * @param {?} place
1851
+ * @return {?}
1852
+ */
1853
+ PlaceService.prototype.onDeactivate = /**
1854
+ * @param {?} place
1855
+ * @return {?}
1856
+ */
1857
+ function (place) {
1858
+ this._activePlaces.remove(place);
1859
+ };
1860
+ PlaceService.decorators = [
1861
+ { type: core.Injectable, args: [{
1862
+ providedIn: 'root'
1863
+ },] }
1864
+ ];
1865
+ /** @nocollapse */
1866
+ PlaceService.ctorParameters = function () { return []; };
1867
+ /** @nocollapse */ PlaceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function PlaceService_Factory() { return new PlaceService(); }, token: PlaceService, providedIn: "root" });
1868
+ __decorate([
1869
+ pectin.Trace(),
1870
+ __metadata("design:type", Function),
1871
+ __metadata("design:paramtypes", [Object]),
1872
+ __metadata("design:returntype", void 0)
1873
+ ], PlaceService.prototype, "onActivate", null);
1874
+ __decorate([
1875
+ pectin.Trace(),
1876
+ __metadata("design:type", Function),
1877
+ __metadata("design:paramtypes", [Object]),
1878
+ __metadata("design:returntype", void 0)
1879
+ ], PlaceService.prototype, "onDeactivate", null);
1880
+ return PlaceService;
1881
+ }());
1882
+ if (false) {
1883
+ /**
1884
+ * @type {?}
1885
+ * @private
1886
+ */
1887
+ PlaceService.prototype._activePlaces;
1888
+ }
1889
+
1890
+ /**
1891
+ * @fileoverview added by tsickle
1892
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1893
+ */
1894
+ var PlaceOutletComponent = /** @class */ (function () {
1895
+ function PlaceOutletComponent(placeService) {
1896
+ this.placeService = placeService;
1897
+ }
1898
+ /**
1899
+ * @return {?}
1900
+ */
1901
+ PlaceOutletComponent.prototype.ngOnInit = /**
1902
+ * @return {?}
1903
+ */
1904
+ function () {
1905
+ };
1906
+ /**
1907
+ * @param {?} $event
1908
+ * @return {?}
1909
+ */
1910
+ PlaceOutletComponent.prototype.onActivate = /**
1911
+ * @param {?} $event
1912
+ * @return {?}
1913
+ */
1914
+ function ($event) {
1915
+ this.placeService.onActivate($event);
1916
+ };
1917
+ /**
1918
+ * @param {?} $event
1919
+ * @return {?}
1920
+ */
1921
+ PlaceOutletComponent.prototype.onDeactivate = /**
1922
+ * @param {?} $event
1923
+ * @return {?}
1924
+ */
1925
+ function ($event) {
1926
+ this.placeService.onDeactivate($event);
1927
+ };
1928
+ PlaceOutletComponent.decorators = [
1929
+ { type: core.Component, args: [{
1930
+ selector: 'angular-ui-powerups-place-outlet',
1931
+ template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
1932
+ styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
1933
+ }] }
1934
+ ];
1935
+ /** @nocollapse */
1936
+ PlaceOutletComponent.ctorParameters = function () { return [
1937
+ { type: PlaceService }
1938
+ ]; };
1939
+ return PlaceOutletComponent;
1940
+ }());
1941
+ if (false) {
1942
+ /**
1943
+ * @type {?}
1944
+ * @private
1945
+ */
1946
+ PlaceOutletComponent.prototype.placeService;
1947
+ }
1948
+
1949
+ /**
1950
+ * @fileoverview added by tsickle
1951
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1952
+ */
1953
+ var PlaceModule = /** @class */ (function () {
1954
+ function PlaceModule() {
1955
+ }
1956
+ PlaceModule.decorators = [
1957
+ { type: core.NgModule, args: [{
1958
+ imports: [
1959
+ common.CommonModule,
1960
+ material.MatProgressSpinnerModule,
1961
+ router.RouterModule
1962
+ ],
1963
+ declarations: [
1964
+ EmptyStateComponent,
1965
+ BusyOverlayComponent,
1966
+ PlaceOutletComponent
1967
+ ],
1968
+ entryComponents: [BusyOverlayComponent],
1969
+ exports: [
1970
+ BusyOverlayComponent,
1971
+ PlaceOutletComponent,
1972
+ EmptyStateComponent
1973
+ ],
1974
+ providers: [
1975
+ PlaceService
1976
+ ]
1977
+ },] }
1978
+ ];
1979
+ return PlaceModule;
1980
+ }());
1981
+
1982
+ /**
1983
+ * @fileoverview added by tsickle
1984
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1985
+ */
1986
+ var AngularUiPowerupsModule = /** @class */ (function () {
1987
+ function AngularUiPowerupsModule() {
1988
+ }
1989
+ AngularUiPowerupsModule.decorators = [
1990
+ { type: core.NgModule, args: [{
1991
+ declarations: [
1992
+ CommandDirective,
1993
+ FocusBindingDirective,
1994
+ NumberInputComponent,
1995
+ StringInputComponent,
1996
+ PasswordInputComponent,
1997
+ SelectInputComponent,
1998
+ ],
1999
+ imports: [
2000
+ common.CommonModule,
2001
+ platformBrowser.BrowserModule,
2002
+ animations.BrowserAnimationsModule,
2003
+ forms.FormsModule,
2004
+ material.MatInputModule,
2005
+ material.MatFormFieldModule,
2006
+ material.MatSelectModule
2007
+ ],
2008
+ exports: [
2009
+ CommandDirective,
2010
+ FocusBindingDirective,
2011
+ NumberInputComponent,
2012
+ StringInputComponent,
2013
+ PasswordInputComponent,
2014
+ SelectInputComponent,
2015
+ InteractionModule,
2016
+ PlaceModule,
2017
+ ]
2018
+ },] }
2019
+ ];
2020
+ return AngularUiPowerupsModule;
2021
+ }());
2022
+
2023
+ /**
2024
+ * @fileoverview added by tsickle
2025
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2026
+ */
2027
+ var Dimension = /** @class */ (function () {
2028
+ function Dimension(width, height) {
2029
+ this.width = width;
2030
+ this.height = height;
2031
+ }
2032
+ return Dimension;
2033
+ }());
2034
+ if (false) {
2035
+ /** @type {?} */
2036
+ Dimension.prototype.width;
2037
+ /** @type {?} */
2038
+ Dimension.prototype.height;
2039
+ }
2040
+
2041
+ /**
2042
+ * @fileoverview added by tsickle
2043
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2044
+ */
2045
+ var Point = /** @class */ (function () {
2046
+ function Point(x, y) {
2047
+ this.x = x;
2048
+ this.y = y;
2049
+ }
2050
+ /**
2051
+ * @param {?} data
2052
+ * @return {?}
2053
+ */
2054
+ Point.from = /**
2055
+ * @param {?} data
2056
+ * @return {?}
2057
+ */
2058
+ function (data) {
2059
+ return new Point(data.x, data.y);
2060
+ };
2061
+ /**
2062
+ * @param {?} x
2063
+ * @param {?} y
2064
+ * @return {?}
2065
+ */
2066
+ Point.prototype.translate = /**
2067
+ * @param {?} x
2068
+ * @param {?} y
2069
+ * @return {?}
2070
+ */
2071
+ function (x, y) {
2072
+ return new Point(this.x + x, this.y + y);
2073
+ };
2074
+ return Point;
2075
+ }());
2076
+ if (false) {
2077
+ /** @type {?} */
2078
+ Point.prototype.x;
2079
+ /** @type {?} */
2080
+ Point.prototype.y;
2081
+ }
2082
+
2083
+ /**
2084
+ * @fileoverview added by tsickle
2085
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2086
+ */
2087
+ exports.Bounds = /** @class */ (function (_super) {
2088
+ __extends(Bounds, _super);
2089
+ function Bounds(top, left, width, height) {
2090
+ var _this = _super.call(this, width, height) || this;
2091
+ _this.top = top;
2092
+ _this.left = left;
2093
+ _this.width = width;
2094
+ _this.height = height;
2095
+ return _this;
2096
+ }
2097
+ /**
2098
+ * @param {?} point
2099
+ * @return {?}
2100
+ */
2101
+ Bounds.prototype.relativePositionOf = /**
2102
+ * @param {?} point
2103
+ * @return {?}
2104
+ */
2105
+ function (point) {
2106
+ if (point instanceof MouseEvent) {
2107
+ return new Point(point.clientX - this.left, point.clientY - this.top);
2108
+ }
2109
+ else {
2110
+ return new Point(point.x - this.left, point.y - this.top);
2111
+ }
2112
+ };
2113
+ return Bounds;
2114
+ }(Dimension));
2115
+ if (false) {
2116
+ /** @type {?} */
2117
+ exports.Bounds.prototype.top;
2118
+ /** @type {?} */
2119
+ exports.Bounds.prototype.left;
2120
+ /** @type {?} */
2121
+ exports.Bounds.prototype.width;
2122
+ /** @type {?} */
2123
+ exports.Bounds.prototype.height;
2124
+ }
2125
+ (function (Bounds) {
2126
+ /**
2127
+ * @param {?} element
2128
+ * @return {?}
2129
+ */
2130
+ function ofElement(element) {
2131
+ /** @type {?} */
2132
+ var rect = element.getBoundingClientRect();
2133
+ return new Bounds(rect.top, rect.left, rect.width, rect.height);
2134
+ }
2135
+ Bounds.ofElement = ofElement;
2136
+ })(exports.Bounds || (exports.Bounds = {}));
2137
+
2138
+ /**
2139
+ * @fileoverview added by tsickle
2140
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2141
+ */
2142
+ var ResizeAwareComponent = /** @class */ (function (_super) {
2143
+ __extends(ResizeAwareComponent, _super);
2144
+ function ResizeAwareComponent(elementRef, ngZone) {
2145
+ var _this = _super.call(this) || this;
2146
+ _this.elementRef = elementRef;
2147
+ _this.ngZone = ngZone;
2148
+ _this._boundsModel = new pectin.ValueHolder(new exports.Bounds(0, 0, 0, 0));
2149
+ return _this;
2150
+ }
2151
+ /**
2152
+ * @return {?}
2153
+ */
2154
+ ResizeAwareComponent.prototype.ngAfterViewInit = /**
2155
+ * @return {?}
2156
+ */
2157
+ function () {
2158
+ var _this = this;
2159
+ this.updateBounds();
2160
+ /** @type {?} */
2161
+ var element = this.elementRef.nativeElement;
2162
+ /** @type {?} */
2163
+ var ro = new ResizeObserver((/**
2164
+ * @param {?} entries
2165
+ * @param {?} observer
2166
+ * @return {?}
2167
+ */
2168
+ function (entries, observer) {
2169
+ _this.ngZone.run((/**
2170
+ * @return {?}
2171
+ */
2172
+ function () { return _this.updateBounds(); }));
2173
+ }));
2174
+ ro.observe(element);
2175
+ this.onDispose((/**
2176
+ * @return {?}
2177
+ */
2178
+ function () { return ro.disconnect(); }));
2179
+ };
2180
+ Object.defineProperty(ResizeAwareComponent.prototype, "boundsModel", {
2181
+ get: /**
2182
+ * @return {?}
2183
+ */
2184
+ function () {
2185
+ return this._boundsModel.readonly;
2186
+ },
2187
+ enumerable: true,
2188
+ configurable: true
2189
+ });
2190
+ Object.defineProperty(ResizeAwareComponent.prototype, "nativeElement", {
2191
+ get: /**
2192
+ * @return {?}
2193
+ */
2194
+ function () {
2195
+ return this.elementRef.nativeElement;
2196
+ },
2197
+ enumerable: true,
2198
+ configurable: true
2199
+ });
2200
+ // TODO: Make this handle body scroll
2201
+ // TODO: Make this handle body scroll
2202
+ /**
2203
+ * @param {?} point
2204
+ * @return {?}
2205
+ */
2206
+ ResizeAwareComponent.prototype.relativePositionOf =
2207
+ // TODO: Make this handle body scroll
2208
+ /**
2209
+ * @param {?} point
2210
+ * @return {?}
2211
+ */
2212
+ function (point) {
2213
+ return this.bounds.relativePositionOf(point);
2214
+ };
2215
+ Object.defineProperty(ResizeAwareComponent.prototype, "bounds", {
2216
+ get: /**
2217
+ * @return {?}
2218
+ */
2219
+ function () {
2220
+ return this._boundsModel.value;
2221
+ },
2222
+ enumerable: true,
2223
+ configurable: true
2224
+ });
2225
+ /**
2226
+ * @private
2227
+ * @return {?}
2228
+ */
2229
+ ResizeAwareComponent.prototype.updateBounds = /**
2230
+ * @private
2231
+ * @return {?}
2232
+ */
2233
+ function () {
2234
+ this._boundsModel.value = exports.Bounds.ofElement(this.nativeElement);
2235
+ };
2236
+ return ResizeAwareComponent;
2237
+ }(DisposableComponent));
2238
+ if (false) {
2239
+ /**
2240
+ * @type {?}
2241
+ * @private
2242
+ */
2243
+ ResizeAwareComponent.prototype._boundsModel;
2244
+ /**
2245
+ * @type {?}
2246
+ * @protected
2247
+ */
2248
+ ResizeAwareComponent.prototype.elementRef;
2249
+ /**
2250
+ * @type {?}
2251
+ * @protected
2252
+ */
2253
+ ResizeAwareComponent.prototype.ngZone;
2254
+ }
2255
+
2256
+ /**
2257
+ * @fileoverview added by tsickle
2258
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2259
+ */
2260
+
2261
+ /**
2262
+ * @fileoverview added by tsickle
2263
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2264
+ */
2265
+
2266
+ /**
2267
+ * @fileoverview added by tsickle
2268
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2269
+ */
2270
+ /**
2271
+ * @record
2272
+ */
2273
+ function Alert() { }
2274
+ if (false) {
2275
+ /**
2276
+ * @return {?}
2277
+ */
2278
+ Alert.prototype.title = function () { };
2279
+ /**
2280
+ * @return {?}
2281
+ */
2282
+ Alert.prototype.content = function () { };
2283
+ /**
2284
+ * @return {?}
2285
+ */
2286
+ Alert.prototype.ok = function () { };
2287
+ }
2288
+
2289
+ /**
2290
+ * @fileoverview added by tsickle
2291
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2292
+ */
2293
+ /**
2294
+ * @record
2295
+ */
2296
+ function Confirm() { }
2297
+ if (false) {
2298
+ /** @type {?|undefined} */
2299
+ Confirm.prototype.destructive;
2300
+ /**
2301
+ * @return {?}
2302
+ */
2303
+ Confirm.prototype.cancel = function () { };
2304
+ }
2305
+
2070
2306
  /**
2071
2307
  * @fileoverview added by tsickle
2072
2308
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2577,240 +2813,6 @@
2577
2813
  PlaceComponent.prototype.canDeactivate = function () { };
2578
2814
  }
2579
2815
 
2580
- /**
2581
- * @fileoverview added by tsickle
2582
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2583
- */
2584
- var BusyOverlayComponent = /** @class */ (function () {
2585
- function BusyOverlayComponent() {
2586
- }
2587
- /**
2588
- * @return {?}
2589
- */
2590
- BusyOverlayComponent.prototype.ngOnInit = /**
2591
- * @return {?}
2592
- */
2593
- function () {
2594
- };
2595
- BusyOverlayComponent.decorators = [
2596
- { type: core.Component, args: [{
2597
- selector: 'aup-busy-overlay',
2598
- 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",
2599
- 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}"]
2600
- }] }
2601
- ];
2602
- /** @nocollapse */
2603
- BusyOverlayComponent.ctorParameters = function () { return []; };
2604
- BusyOverlayComponent.propDecorators = {
2605
- busyModel: [{ type: core.Input }],
2606
- busy: [{ type: core.Input }]
2607
- };
2608
- __decorate([
2609
- pectin.UseDelegatingValueModel(),
2610
- __metadata("design:type", pectin.ValueModel)
2611
- ], BusyOverlayComponent.prototype, "busyModel", void 0);
2612
- __decorate([
2613
- pectin.StoreInValueModel('busyModel'),
2614
- __metadata("design:type", Boolean)
2615
- ], BusyOverlayComponent.prototype, "busy", void 0);
2616
- return BusyOverlayComponent;
2617
- }());
2618
- if (false) {
2619
- /** @type {?} */
2620
- BusyOverlayComponent.prototype.busyModel;
2621
- /** @type {?} */
2622
- BusyOverlayComponent.prototype.busy;
2623
- }
2624
-
2625
- /**
2626
- * @fileoverview added by tsickle
2627
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2628
- */
2629
- var EmptyStateComponent = /** @class */ (function () {
2630
- function EmptyStateComponent() {
2631
- }
2632
- /**
2633
- * @return {?}
2634
- */
2635
- EmptyStateComponent.prototype.ngOnInit = /**
2636
- * @return {?}
2637
- */
2638
- function () {
2639
- };
2640
- EmptyStateComponent.decorators = [
2641
- { type: core.Component, args: [{
2642
- selector: 'angular-ui-powerups-empty-state',
2643
- template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
2644
- 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}"]
2645
- }] }
2646
- ];
2647
- /** @nocollapse */
2648
- EmptyStateComponent.ctorParameters = function () { return []; };
2649
- return EmptyStateComponent;
2650
- }());
2651
-
2652
- /**
2653
- * @fileoverview added by tsickle
2654
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2655
- */
2656
- var PlaceService = /** @class */ (function () {
2657
- function PlaceService() {
2658
- this._activePlaces = new pectin.MutableListModel();
2659
- }
2660
- Object.defineProperty(PlaceService.prototype, "activePlaces", {
2661
- get: /**
2662
- * @return {?}
2663
- */
2664
- function () {
2665
- return this._activePlaces.readonly;
2666
- },
2667
- enumerable: true,
2668
- configurable: true
2669
- });
2670
- /**
2671
- * @param {?} place
2672
- * @return {?}
2673
- */
2674
- PlaceService.prototype.onActivate = /**
2675
- * @param {?} place
2676
- * @return {?}
2677
- */
2678
- function (place) {
2679
- this._activePlaces.push(place);
2680
- };
2681
- /**
2682
- * @param {?} place
2683
- * @return {?}
2684
- */
2685
- PlaceService.prototype.onDeactivate = /**
2686
- * @param {?} place
2687
- * @return {?}
2688
- */
2689
- function (place) {
2690
- this._activePlaces.remove(place);
2691
- };
2692
- PlaceService.decorators = [
2693
- { type: core.Injectable, args: [{
2694
- providedIn: 'root'
2695
- },] }
2696
- ];
2697
- /** @nocollapse */
2698
- PlaceService.ctorParameters = function () { return []; };
2699
- /** @nocollapse */ PlaceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function PlaceService_Factory() { return new PlaceService(); }, token: PlaceService, providedIn: "root" });
2700
- __decorate([
2701
- pectin.Trace(),
2702
- __metadata("design:type", Function),
2703
- __metadata("design:paramtypes", [Object]),
2704
- __metadata("design:returntype", void 0)
2705
- ], PlaceService.prototype, "onActivate", null);
2706
- __decorate([
2707
- pectin.Trace(),
2708
- __metadata("design:type", Function),
2709
- __metadata("design:paramtypes", [Object]),
2710
- __metadata("design:returntype", void 0)
2711
- ], PlaceService.prototype, "onDeactivate", null);
2712
- return PlaceService;
2713
- }());
2714
- if (false) {
2715
- /**
2716
- * @type {?}
2717
- * @private
2718
- */
2719
- PlaceService.prototype._activePlaces;
2720
- }
2721
-
2722
- /**
2723
- * @fileoverview added by tsickle
2724
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2725
- */
2726
- var PlaceOutletComponent = /** @class */ (function () {
2727
- function PlaceOutletComponent(placeService) {
2728
- this.placeService = placeService;
2729
- }
2730
- /**
2731
- * @return {?}
2732
- */
2733
- PlaceOutletComponent.prototype.ngOnInit = /**
2734
- * @return {?}
2735
- */
2736
- function () {
2737
- };
2738
- /**
2739
- * @param {?} $event
2740
- * @return {?}
2741
- */
2742
- PlaceOutletComponent.prototype.onActivate = /**
2743
- * @param {?} $event
2744
- * @return {?}
2745
- */
2746
- function ($event) {
2747
- this.placeService.onActivate($event);
2748
- };
2749
- /**
2750
- * @param {?} $event
2751
- * @return {?}
2752
- */
2753
- PlaceOutletComponent.prototype.onDeactivate = /**
2754
- * @param {?} $event
2755
- * @return {?}
2756
- */
2757
- function ($event) {
2758
- this.placeService.onDeactivate($event);
2759
- };
2760
- PlaceOutletComponent.decorators = [
2761
- { type: core.Component, args: [{
2762
- selector: 'angular-ui-powerups-place-outlet',
2763
- template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
2764
- styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
2765
- }] }
2766
- ];
2767
- /** @nocollapse */
2768
- PlaceOutletComponent.ctorParameters = function () { return [
2769
- { type: PlaceService }
2770
- ]; };
2771
- return PlaceOutletComponent;
2772
- }());
2773
- if (false) {
2774
- /**
2775
- * @type {?}
2776
- * @private
2777
- */
2778
- PlaceOutletComponent.prototype.placeService;
2779
- }
2780
-
2781
- /**
2782
- * @fileoverview added by tsickle
2783
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2784
- */
2785
- var PlaceModule = /** @class */ (function () {
2786
- function PlaceModule() {
2787
- }
2788
- PlaceModule.decorators = [
2789
- { type: core.NgModule, args: [{
2790
- imports: [
2791
- common.CommonModule,
2792
- material.MatProgressSpinnerModule,
2793
- router.RouterModule
2794
- ],
2795
- declarations: [
2796
- EmptyStateComponent,
2797
- BusyOverlayComponent,
2798
- PlaceOutletComponent
2799
- ],
2800
- entryComponents: [BusyOverlayComponent],
2801
- exports: [
2802
- BusyOverlayComponent,
2803
- PlaceOutletComponent,
2804
- EmptyStateComponent
2805
- ],
2806
- providers: [
2807
- PlaceService
2808
- ]
2809
- },] }
2810
- ];
2811
- return PlaceModule;
2812
- }());
2813
-
2814
2816
  /**
2815
2817
  * @fileoverview added by tsickle
2816
2818
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -3330,6 +3332,8 @@
3330
3332
  exports.AbstractActivity = AbstractActivity;
3331
3333
  exports.AbstractInputComponent = AbstractInputComponent;
3332
3334
  exports.AbstractPlaceComponent = AbstractPlaceComponent;
3335
+ exports.ActivityContainerComponent = exports.ɵj;
3336
+ exports.ActivityOutletComponent = exports.ɵq;
3333
3337
  exports.AlertDialogComponent = AlertDialogComponent;
3334
3338
  exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
3335
3339
  exports.BusyOverlayComponent = BusyOverlayComponent;
@@ -3366,6 +3370,18 @@
3366
3370
  exports.ɵf = StringInputComponent;
3367
3371
  exports.ɵg = PasswordInputComponent;
3368
3372
  exports.ɵh = SelectInputComponent;
3373
+ exports.ɵi = InteractionModule;
3374
+ exports.ɵk = ConfirmationDialogComponent;
3375
+ exports.ɵl = AbstractActivity;
3376
+ exports.ɵm = ACTIVITY_DATA;
3377
+ exports.ɵo = AlertDialogComponent;
3378
+ exports.ɵr = DialogInteractionService;
3379
+ exports.ɵs = InteractionContext;
3380
+ exports.ɵt = PlaceModule;
3381
+ exports.ɵu = EmptyStateComponent;
3382
+ exports.ɵv = BusyOverlayComponent;
3383
+ exports.ɵw = PlaceOutletComponent;
3384
+ exports.ɵx = PlaceService;
3369
3385
 
3370
3386
  Object.defineProperty(exports, '__esModule', { value: true });
3371
3387