@coolon/angular-ui-powerups 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +375 -240
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +4 -0
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +4 -0
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  12. package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
  13. package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
  14. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  15. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +51 -0
  16. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -0
  17. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -0
  18. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +1 -0
  19. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +1 -0
  20. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +22 -9
  21. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  22. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  23. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  24. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +69 -0
  25. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -0
  26. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -0
  27. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +1 -0
  28. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
  29. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  30. package/esm2015/lib/interaction/index.js +2 -0
  31. package/esm2015/lib/interaction/index.js.map +1 -1
  32. package/esm2015/lib/interaction/index.metadata.json +1 -1
  33. package/esm2015/lib/interaction/interaction.module.js +16 -3
  34. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  35. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  36. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  37. package/esm2015/lib/interaction/services/interaction.service.js +0 -15
  38. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  39. package/esm5/coolon-angular-ui-powerups.js +4 -0
  40. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  41. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  42. package/esm5/lib/components/forms/text-input/text-input.component.js +1 -1
  43. package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
  44. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +58 -0
  45. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -0
  46. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +1 -0
  47. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +1 -0
  48. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +23 -9
  49. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  50. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  51. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +76 -0
  52. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -0
  53. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +1 -0
  54. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
  55. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  56. package/esm5/lib/interaction/index.js +2 -0
  57. package/esm5/lib/interaction/index.js.map +1 -1
  58. package/esm5/lib/interaction/interaction.module.js +16 -3
  59. package/esm5/lib/interaction/interaction.module.js.map +1 -1
  60. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  61. package/esm5/lib/interaction/services/interaction.service.js +0 -15
  62. package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
  63. package/fesm2015/coolon-angular-ui-powerups.js +328 -214
  64. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  65. package/fesm5/coolon-angular-ui-powerups.js +372 -243
  66. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  67. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +12 -0
  68. package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -1
  69. package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +17 -0
  70. package/lib/interaction/index.d.ts +2 -0
  71. package/package.json +3 -3
@@ -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/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@angular/material/dialog'), require('@angular/router'), require('@coolon/typescript-utilities'), require('lodash'), require('@angular/flex-layout'), require('@angular/material/progress-spinner'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('resize-observer-polyfill'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@coolon/pectin', '@angular/cdk/portal', '@angular/material/dialog', '@angular/router', '@coolon/typescript-utilities', 'lodash', '@angular/flex-layout', '@angular/material/progress-spinner', '@angular/material/list', '@angular/material/tooltip', '@typescript-plus/fast-memoize-decorator/dist/src', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'resize-observer-polyfill', 'rxjs'], 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.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.pectin, global.ng.cdk.portal, global.ng.material.dialog, global.ng.router, global.typescriptUtilities, global.___default, global.ng.flexLayout, global.ng.material.progressSpinner, global.ng.material.list, global.ng.material.tooltip, global.src, global.fastMemoizeDecorator, null, global.ng.animations, global.ResizeObserver, global.rxjs));
5
- }(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, button, checkbox, icon, pectin, portal, dialog, router, typescriptUtilities, ___default, flexLayout, progressSpinner, list, tooltip, src, fastMemoizeDecorator, reflectMetadata, animations$1, ResizeObserver, rxjs) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('lodash'), require('resize-observer-polyfill'), require('@coolon/typescript-utilities'), require('@angular/material/progress-spinner'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
3
+ typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@coolon/pectin', '@angular/cdk/portal', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', 'lodash', 'resize-observer-polyfill', '@coolon/typescript-utilities', '@angular/material/progress-spinner', '@angular/material/list', '@angular/material/tooltip', '@typescript-plus/fast-memoize-decorator/dist/src', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], 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.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.pectin, global.ng.cdk.portal, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.___default, global.ResizeObserver, global.typescriptUtilities, global.ng.material.progressSpinner, global.ng.material.list, global.ng.material.tooltip, global.src, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
5
+ }(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, button, checkbox, icon, pectin, portal, flexLayout, dialog, router, ___default, ResizeObserver, typescriptUtilities, progressSpinner, list, tooltip, src, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
6
6
 
7
7
  var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
8
8
  ResizeObserver = ResizeObserver && Object.prototype.hasOwnProperty.call(ResizeObserver, 'default') ? ResizeObserver['default'] : ResizeObserver;
@@ -1007,7 +1007,7 @@
1007
1007
  TextInputComponent = __decorate([
1008
1008
  core.Component({
1009
1009
  selector: 'aup-text-input',
1010
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
1010
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
1011
1011
  styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}textarea{overflow:auto}"]
1012
1012
  }),
1013
1013
  __metadata("design:paramtypes", [])
@@ -1372,6 +1372,170 @@
1372
1372
  return ComponentsModule;
1373
1373
  }());
1374
1374
 
1375
+ var Dimension = /** @class */ (function () {
1376
+ function Dimension(width, height) {
1377
+ this.width = width;
1378
+ this.height = height;
1379
+ }
1380
+ return Dimension;
1381
+ }());
1382
+
1383
+ var Point = /** @class */ (function () {
1384
+ function Point(x, y) {
1385
+ this.x = x;
1386
+ this.y = y;
1387
+ }
1388
+ Point.from = function (data) {
1389
+ return new Point(data.x, data.y);
1390
+ };
1391
+ Point.prototype.translate = function (x, y) {
1392
+ return new Point(this.x + x, this.y + y);
1393
+ };
1394
+ return Point;
1395
+ }());
1396
+
1397
+ exports.Bounds = /** @class */ (function (_super) {
1398
+ __extends(Bounds, _super);
1399
+ function Bounds(top, left, width, height) {
1400
+ var _this = _super.call(this, width, height) || this;
1401
+ _this.top = top;
1402
+ _this.left = left;
1403
+ _this.width = width;
1404
+ _this.height = height;
1405
+ return _this;
1406
+ }
1407
+ Bounds.prototype.relativePositionOf = function (point) {
1408
+ if (point instanceof MouseEvent) {
1409
+ return new Point(point.clientX - this.left, point.clientY - this.top);
1410
+ }
1411
+ else {
1412
+ return new Point(point.x - this.left, point.y - this.top);
1413
+ }
1414
+ };
1415
+ return Bounds;
1416
+ }(Dimension));
1417
+ (function (Bounds) {
1418
+ function ofElement(element) {
1419
+ var rect = element.getBoundingClientRect();
1420
+ return new Bounds(rect.top, rect.left, rect.width, rect.height);
1421
+ }
1422
+ Bounds.ofElement = ofElement;
1423
+ })(exports.Bounds || (exports.Bounds = {}));
1424
+
1425
+ var ResizeAwareComponent = /** @class */ (function (_super) {
1426
+ __extends(ResizeAwareComponent, _super);
1427
+ function ResizeAwareComponent(elementRef, ngZone) {
1428
+ var _this = _super.call(this) || this;
1429
+ _this.elementRef = elementRef;
1430
+ _this.ngZone = ngZone;
1431
+ _this._boundsModel = new pectin.MutableValueModel(new exports.Bounds(0, 0, 0, 0));
1432
+ return _this;
1433
+ }
1434
+ ResizeAwareComponent.prototype.ngAfterViewInit = function () {
1435
+ var _this = this;
1436
+ this.updateBounds();
1437
+ var element = this.elementRef.nativeElement;
1438
+ var ro = new ResizeObserver(function (entries, observer) {
1439
+ _this.ngZone.run(function () { return _this.updateBounds(); });
1440
+ });
1441
+ ro.observe(element);
1442
+ this.onDispose(function () { return ro.disconnect(); });
1443
+ };
1444
+ Object.defineProperty(ResizeAwareComponent.prototype, "boundsModel", {
1445
+ get: function () {
1446
+ return this._boundsModel.readonly;
1447
+ },
1448
+ enumerable: true,
1449
+ configurable: true
1450
+ });
1451
+ Object.defineProperty(ResizeAwareComponent.prototype, "nativeElement", {
1452
+ get: function () {
1453
+ return this.elementRef.nativeElement;
1454
+ },
1455
+ enumerable: true,
1456
+ configurable: true
1457
+ });
1458
+ // TODO: Make this handle body scroll
1459
+ ResizeAwareComponent.prototype.relativePositionOf = function (point) {
1460
+ return this.bounds.relativePositionOf(point);
1461
+ };
1462
+ Object.defineProperty(ResizeAwareComponent.prototype, "bounds", {
1463
+ get: function () {
1464
+ return this._boundsModel.value;
1465
+ },
1466
+ enumerable: true,
1467
+ configurable: true
1468
+ });
1469
+ ResizeAwareComponent.prototype.updateBounds = function () {
1470
+ this._boundsModel.value = exports.Bounds.ofElement(this.nativeElement);
1471
+ };
1472
+ ResizeAwareComponent.ctorParameters = function () { return [
1473
+ { type: core.ElementRef },
1474
+ { type: core.NgZone }
1475
+ ]; };
1476
+ ResizeAwareComponent = __decorate([
1477
+ core.Directive(),
1478
+ __metadata("design:paramtypes", [core.ElementRef, core.NgZone])
1479
+ ], ResizeAwareComponent);
1480
+ return ResizeAwareComponent;
1481
+ }(DisposableComponent));
1482
+
1483
+ /**
1484
+ * @file Automatically generated by barrelsby.
1485
+ */
1486
+
1487
+ var ActivityActionsComponent = /** @class */ (function (_super) {
1488
+ __extends(ActivityActionsComponent, _super);
1489
+ function ActivityActionsComponent() {
1490
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1491
+ _this.align = 'start';
1492
+ return _this;
1493
+ }
1494
+ Object.defineProperty(ActivityActionsComponent.prototype, "alignEnd", {
1495
+ get: function () {
1496
+ return this.align === 'end';
1497
+ },
1498
+ enumerable: true,
1499
+ configurable: true
1500
+ });
1501
+ ActivityActionsComponent.prototype.ngOnInit = function () {
1502
+ };
1503
+ ActivityActionsComponent.prototype.hasConfirmText = function () {
1504
+ return !___default__default.isEmpty(this.confirmText);
1505
+ };
1506
+ __decorate([
1507
+ core.Input(),
1508
+ pectin.TrackExternal(),
1509
+ __metadata("design:type", pectin.Command)
1510
+ ], ActivityActionsComponent.prototype, "confirmCommand", void 0);
1511
+ __decorate([
1512
+ core.Input(),
1513
+ __metadata("design:type", String)
1514
+ ], ActivityActionsComponent.prototype, "confirmText", void 0);
1515
+ __decorate([
1516
+ core.Input(),
1517
+ pectin.TrackExternal(),
1518
+ __metadata("design:type", pectin.Command)
1519
+ ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
1520
+ __decorate([
1521
+ core.Input(),
1522
+ __metadata("design:type", String)
1523
+ ], ActivityActionsComponent.prototype, "align", void 0);
1524
+ __decorate([
1525
+ core.HostBinding('class.align-end'),
1526
+ __metadata("design:type", Boolean),
1527
+ __metadata("design:paramtypes", [])
1528
+ ], ActivityActionsComponent.prototype, "alignEnd", null);
1529
+ ActivityActionsComponent = __decorate([
1530
+ core.Component({
1531
+ selector: 'aup-activity-actions',
1532
+ template: "<button class=\"cancel\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <mat-icon>clear</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <mat-icon>done</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
1533
+ styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}"]
1534
+ })
1535
+ ], ActivityActionsComponent);
1536
+ return ActivityActionsComponent;
1537
+ }(DisposableComponent));
1538
+
1375
1539
  var ACTIVITY_DATA = new core.InjectionToken('InteractionActivityData');
1376
1540
  var Activity = /** @class */ (function (_super) {
1377
1541
  __extends(Activity, _super);
@@ -1691,6 +1855,8 @@
1691
1855
  ActivityContainerComponent.prototype.ngAfterViewInit = function () {
1692
1856
  var _this = this;
1693
1857
  var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, observe = _a.observe;
1858
+ // using the component directly rather than (animationDone)=.. allows us
1859
+ // to keep our callback private.
1694
1860
  observe.valuesFrom(this.tabs.animationDone).subscribe(function () { return _this.onAnimationFinished(); });
1695
1861
  };
1696
1862
  ActivityContainerComponent.prototype.initialise = function (identifier, api) {
@@ -1797,6 +1963,12 @@
1797
1963
  ActivityContainerComponent.prototype.finishAndStartCleanup = function () {
1798
1964
  var _this = this;
1799
1965
  if (!this._deferredCleanUp) {
1966
+ // Important:
1967
+ // Clear our tabs so the next activity triggers a tab change.
1968
+ // Without this our animation done wasn't called when a single
1969
+ // new activity followed a single tab activity (since we're tracking
1970
+ // by activity index)
1971
+ this.activityTabs = [];
1800
1972
  var promise = this.interactionServiceApi.notifyFinished(this);
1801
1973
  this._deferredCleanUp = promise
1802
1974
  .finally(function () {
@@ -1808,26 +1980,32 @@
1808
1980
  ActivityContainerComponent.prototype.launchActivity = function (activityRef) {
1809
1981
  var cleanedTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
1810
1982
  this.activityTabs = cleanedTabs.concat(activityRef);
1811
- this.tabs.selectedIndex = this.activityTabs.length;
1983
+ this.synchroniseSelectedTabIndex();
1812
1984
  };
1813
1985
  ActivityContainerComponent.prototype.activityIndex = function (index, activityRef) {
1814
1986
  return index;
1815
1987
  };
1816
1988
  ;
1817
- // @Trace()
1818
1989
  ActivityContainerComponent.prototype.onAnimationFinished = function () {
1819
- this.getSelectedOutlet().component.onActivityReady();
1820
- this.activityTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
1990
+ if (this.onAnimationFinishedJob) {
1991
+ this.onAnimationFinishedJob();
1992
+ this.onAnimationFinishedJob = undefined;
1993
+ }
1821
1994
  };
1822
1995
  /**
1823
- * Synchronises the selected tab index. Returns true if there was no change to the selected index.
1996
+ * Synchronises the selected tab index.
1824
1997
  */
1825
- // @Trace()
1826
1998
  ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
1999
+ var _this = this;
1827
2000
  var previousIndex = this.tabs.selectedIndex;
1828
2001
  var newIndex = this.getActiveActivityCount() - 1;
1829
- this.tabs.selectedIndex = newIndex;
1830
- return previousIndex === newIndex;
2002
+ if (previousIndex !== newIndex) {
2003
+ this.tabs.selectedIndex = newIndex;
2004
+ this.onAnimationFinishedJob = function () {
2005
+ _this.getSelectedOutlet().component.onActivityReady();
2006
+ _this.activityTabs = _this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
2007
+ };
2008
+ }
1831
2009
  };
1832
2010
  ActivityContainerComponent.prototype.getSelectedOutlet = function () {
1833
2011
  return this.activityOutlets.toArray()[this.tabs.selectedIndex];
@@ -1864,7 +2042,7 @@
1864
2042
  ActivityContainerComponent = __decorate([
1865
2043
  core.Component({
1866
2044
  selector: 'aup-activity-container',
1867
- template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"dynamicHeight\" [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
2045
+ template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
1868
2046
  styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
1869
2047
  }),
1870
2048
  __metadata("design:paramtypes", [])
@@ -1955,21 +2133,6 @@
1955
2133
  // Todo: allow multiple inplace interactions..
1956
2134
  interactionContext.initialise("ip" + ++inplaceMonitorCount, new InteractionService_1.ApiAdapter(this.placeRouter, this.inPlaceInteractionRegistry));
1957
2135
  };
1958
- // private assertModalCanStart() {
1959
- // assert.isFalsey(this.inExclusiveInteraction.value);
1960
- // assert.isFalsey(this.modalActive.value);
1961
- // }
1962
- //
1963
- // private assertInPlaceCanStart() {
1964
- // assert.isFalsey(this.inExclusiveInteraction.value);
1965
- // assert.isFalsey(this.modalActive.value);
1966
- // assert.isFalsey(this._activeInlineContext.value);
1967
- // }
1968
- // // @Trace()
1969
- // getActiveContext(): InteractionContext {
1970
- // assert.isTruthy(this.isActive());
1971
- // return this._activeContext.value;
1972
- // }
1973
2136
  /**
1974
2137
  * Creates an interaction context that will prevent any other contexts from starting an
1975
2138
  * activity until it is disposed. This is intended for use by the router for passing
@@ -2150,6 +2313,172 @@
2150
2313
  return InPlaceInteractionContextComponent;
2151
2314
  }(DisposableComponent));
2152
2315
 
2316
+ var DialogInteractionContext = /** @class */ (function (_super) {
2317
+ __extends(DialogInteractionContext, _super);
2318
+ function DialogInteractionContext(identifier, api, dialogService, config) {
2319
+ var _this = _super.call(this) || this;
2320
+ _this.identifier = identifier;
2321
+ _this.api = api;
2322
+ _this.dialogService = dialogService;
2323
+ _this.config = config;
2324
+ _this.garbage = new pectin.GarbageCollector();
2325
+ typescriptUtilities.assert.notNil(dialogService);
2326
+ return _this;
2327
+ }
2328
+ DialogInteractionContext.prototype.cancelActiveActivity = function () {
2329
+ return this.activityContainer.cancelActiveActivity();
2330
+ };
2331
+ DialogInteractionContext.prototype.dispose = function () {
2332
+ if (this.isActive()) {
2333
+ pectin.lang.illegalState('Dispose called while active.');
2334
+ }
2335
+ this.garbage.dispose();
2336
+ };
2337
+ DialogInteractionContext.prototype.registerDisposable = function (disposable) {
2338
+ return this.garbage.registerDisposable(disposable);
2339
+ };
2340
+ DialogInteractionContext.prototype.isActive = function () {
2341
+ return !!this.activityContainer && this.activityContainer.isActive();
2342
+ };
2343
+ DialogInteractionContext.prototype.createAndLaunchActivity = function (activityType, data, disableClose) {
2344
+ var _this = this;
2345
+ typescriptUtilities.assert.isNil(this._currentActivityRef);
2346
+ var config = __assign(__assign({}, this.config), {
2347
+ disableClose: disableClose,
2348
+ panelClass: 'dialog-interaction-context'
2349
+ });
2350
+ var self = this;
2351
+ var matDialogRef = this.dialogService.open(ActivityContainerComponent, config);
2352
+ var activityContainer = this.activityContainer = matDialogRef.componentInstance;
2353
+ this.activityContainer.initialise(this.identifier, this.api);
2354
+ var activityResult = this.activityContainer.startActivity(activityType, data);
2355
+ activityResult.finally(function () { return matDialogRef.close(); });
2356
+ // we need to check if our onDone/onCancel methods above we called or if we were
2357
+ // closed by the user clicking the backdrop. If the later then we need to cancel our
2358
+ // activity.
2359
+ matDialogRef.afterClosed().subscribe(function (promiseAlreadyFinished) {
2360
+ if (activityContainer.isActive()) {
2361
+ activityContainer.cancelActiveActivity();
2362
+ }
2363
+ _this.activityContainer = null;
2364
+ });
2365
+ matDialogRef.updateSize();
2366
+ matDialogRef.afterOpened().subscribe(function (promiseAlreadyFinished) {
2367
+ matDialogRef.updateSize();
2368
+ });
2369
+ return activityResult;
2370
+ };
2371
+ return DialogInteractionContext;
2372
+ }(AbstractInteractionContext));
2373
+
2374
+ var DIALOG_INTERACTION_SERVICE_DEFAULTS = new core.InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
2375
+ var DialogInteractionContextFactory = /** @class */ (function (_super) {
2376
+ __extends(DialogInteractionContextFactory, _super);
2377
+ function DialogInteractionContextFactory(dialogService, dialogServiceDefaults, matDialogDefaultConfig) {
2378
+ var _this = _super.call(this) || this;
2379
+ _this.dialogService = dialogService;
2380
+ _this.dialogServiceDefaults = dialogServiceDefaults;
2381
+ _this.matDialogDefaultConfig = matDialogDefaultConfig;
2382
+ typescriptUtilities.assert.notNil(dialogService);
2383
+ return _this;
2384
+ }
2385
+ DialogInteractionContextFactory.prototype.createInteractionContext = function (identifier, api) {
2386
+ var config = __assign(__assign({ autoFocus: false, hasBackdrop: true, closeOnNavigation: false }, this.matDialogDefaultConfig), this.dialogServiceDefaults);
2387
+ return new DialogInteractionContext(identifier, api, this.dialogService, config);
2388
+ };
2389
+ DialogInteractionContextFactory.ctorParameters = function () { return [
2390
+ { type: dialog.MatDialog },
2391
+ { type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
2392
+ { type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [dialog.MAT_DIALOG_DEFAULT_OPTIONS,] }] }
2393
+ ]; };
2394
+ DialogInteractionContextFactory.ɵprov = core.ɵɵdefineInjectable({ factory: function DialogInteractionContextFactory_Factory() { return new DialogInteractionContextFactory(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(DIALOG_INTERACTION_SERVICE_DEFAULTS, 8), core.ɵɵinject(dialog.MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionContextFactory, providedIn: "root" });
2395
+ DialogInteractionContextFactory = __decorate([
2396
+ core.Injectable({
2397
+ providedIn: 'root'
2398
+ }),
2399
+ __param(1, core.Optional()), __param(1, core.Inject(DIALOG_INTERACTION_SERVICE_DEFAULTS)),
2400
+ __param(2, core.Optional()), __param(2, core.Inject(dialog.MAT_DIALOG_DEFAULT_OPTIONS)),
2401
+ __metadata("design:paramtypes", [dialog.MatDialog,
2402
+ dialog.MatDialogConfig,
2403
+ dialog.MatDialogConfig])
2404
+ ], DialogInteractionContextFactory);
2405
+ return DialogInteractionContextFactory;
2406
+ }(ModalInteractionContextFactory));
2407
+
2408
+ /**
2409
+ * @file Automatically generated by barrelsby.
2410
+ */
2411
+
2412
+ var AddItemInteractionContextComponent = /** @class */ (function (_super) {
2413
+ __extends(AddItemInteractionContextComponent, _super);
2414
+ function AddItemInteractionContextComponent() {
2415
+ var _this = _super.call(this) || this;
2416
+ _this.tabindex = 0;
2417
+ _this.clickCommand = pectin.Command.create(function (context) {
2418
+ if (_this.activityClass) {
2419
+ _this.startActivity(_this.activityClass, _this.activityData).catch(function (e) {
2420
+ // don't care.
2421
+ });
2422
+ }
2423
+ else {
2424
+ _this.addCommand.withContext(context).execute();
2425
+ }
2426
+ });
2427
+ return _this;
2428
+ }
2429
+ Object.defineProperty(AddItemInteractionContextComponent.prototype, "active", {
2430
+ get: function () {
2431
+ return this.interactionContext ? this.interactionContext.isActive() : false;
2432
+ },
2433
+ enumerable: true,
2434
+ configurable: true
2435
+ });
2436
+ AddItemInteractionContextComponent.prototype.startActivity = function (activityType, data) {
2437
+ return this.interactionContext.startActivity(activityType, data);
2438
+ };
2439
+ AddItemInteractionContextComponent.prototype.ngOnInit = function () {
2440
+ };
2441
+ __decorate([
2442
+ core.Input(),
2443
+ __metadata("design:type", String)
2444
+ ], AddItemInteractionContextComponent.prototype, "label", void 0);
2445
+ __decorate([
2446
+ core.Input(),
2447
+ __metadata("design:type", Object)
2448
+ ], AddItemInteractionContextComponent.prototype, "activityClass", void 0);
2449
+ __decorate([
2450
+ core.Input(),
2451
+ __metadata("design:type", Object)
2452
+ ], AddItemInteractionContextComponent.prototype, "activityData", void 0);
2453
+ __decorate([
2454
+ core.Input(),
2455
+ pectin.TrackExternal(),
2456
+ __metadata("design:type", pectin.Command)
2457
+ ], AddItemInteractionContextComponent.prototype, "addCommand", void 0);
2458
+ __decorate([
2459
+ core.ViewChild(InPlaceInteractionContextComponent),
2460
+ __metadata("design:type", InPlaceInteractionContextComponent)
2461
+ ], AddItemInteractionContextComponent.prototype, "interactionContext", void 0);
2462
+ __decorate([
2463
+ core.HostBinding('class.interaction-active'),
2464
+ __metadata("design:type", Boolean),
2465
+ __metadata("design:paramtypes", [])
2466
+ ], AddItemInteractionContextComponent.prototype, "active", null);
2467
+ __decorate([
2468
+ core.HostBinding('tabindex'),
2469
+ __metadata("design:type", Object)
2470
+ ], AddItemInteractionContextComponent.prototype, "tabindex", void 0);
2471
+ AddItemInteractionContextComponent = __decorate([
2472
+ core.Component({
2473
+ selector: 'aup-add-item-interaction-context',
2474
+ template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><mat-icon>add</mat-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n",
2475
+ styles: [":host{--def-link-color:var(--link-color, currentColor);--def-link-backgound:var(--link-background, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover{--link-background:rgba(0,0,0,0.1)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-backgound);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]
2476
+ }),
2477
+ __metadata("design:paramtypes", [])
2478
+ ], AddItemInteractionContextComponent);
2479
+ return AddItemInteractionContextComponent;
2480
+ }(DisposableComponent));
2481
+
2153
2482
  var InteractionModule = /** @class */ (function () {
2154
2483
  function InteractionModule() {
2155
2484
  }
@@ -2161,7 +2490,11 @@
2161
2490
  dialog.MatDialogModule,
2162
2491
  tabs.MatTabsModule,
2163
2492
  portal.PortalModule,
2164
- router.RouterModule
2493
+ router.RouterModule,
2494
+ icon.MatIconModule,
2495
+ DirectivesModule,
2496
+ flexLayout.FlexModule,
2497
+ flexLayout.GridModule
2165
2498
  ],
2166
2499
  declarations: [
2167
2500
  ActivityContainerComponent,
@@ -2169,12 +2502,16 @@
2169
2502
  ConfirmThenDialogComponent,
2170
2503
  AlertDialogComponent,
2171
2504
  ActivityOutletComponent,
2172
- InPlaceInteractionContextComponent
2505
+ InPlaceInteractionContextComponent,
2506
+ AddItemInteractionContextComponent,
2507
+ ActivityActionsComponent
2173
2508
  ],
2174
2509
  exports: [
2175
2510
  ActivityContainerComponent,
2176
2511
  ActivityOutletComponent,
2177
- InPlaceInteractionContextComponent
2512
+ InPlaceInteractionContextComponent,
2513
+ AddItemInteractionContextComponent,
2514
+ ActivityActionsComponent
2178
2515
  ],
2179
2516
  entryComponents: [
2180
2517
  ActivityContainerComponent,
@@ -4555,214 +4892,6 @@
4555
4892
  * @file Automatically generated by barrelsby.
4556
4893
  */
4557
4894
 
4558
- var Dimension = /** @class */ (function () {
4559
- function Dimension(width, height) {
4560
- this.width = width;
4561
- this.height = height;
4562
- }
4563
- return Dimension;
4564
- }());
4565
-
4566
- var Point = /** @class */ (function () {
4567
- function Point(x, y) {
4568
- this.x = x;
4569
- this.y = y;
4570
- }
4571
- Point.from = function (data) {
4572
- return new Point(data.x, data.y);
4573
- };
4574
- Point.prototype.translate = function (x, y) {
4575
- return new Point(this.x + x, this.y + y);
4576
- };
4577
- return Point;
4578
- }());
4579
-
4580
- exports.Bounds = /** @class */ (function (_super) {
4581
- __extends(Bounds, _super);
4582
- function Bounds(top, left, width, height) {
4583
- var _this = _super.call(this, width, height) || this;
4584
- _this.top = top;
4585
- _this.left = left;
4586
- _this.width = width;
4587
- _this.height = height;
4588
- return _this;
4589
- }
4590
- Bounds.prototype.relativePositionOf = function (point) {
4591
- if (point instanceof MouseEvent) {
4592
- return new Point(point.clientX - this.left, point.clientY - this.top);
4593
- }
4594
- else {
4595
- return new Point(point.x - this.left, point.y - this.top);
4596
- }
4597
- };
4598
- return Bounds;
4599
- }(Dimension));
4600
- (function (Bounds) {
4601
- function ofElement(element) {
4602
- var rect = element.getBoundingClientRect();
4603
- return new Bounds(rect.top, rect.left, rect.width, rect.height);
4604
- }
4605
- Bounds.ofElement = ofElement;
4606
- })(exports.Bounds || (exports.Bounds = {}));
4607
-
4608
- var ResizeAwareComponent = /** @class */ (function (_super) {
4609
- __extends(ResizeAwareComponent, _super);
4610
- function ResizeAwareComponent(elementRef, ngZone) {
4611
- var _this = _super.call(this) || this;
4612
- _this.elementRef = elementRef;
4613
- _this.ngZone = ngZone;
4614
- _this._boundsModel = new pectin.MutableValueModel(new exports.Bounds(0, 0, 0, 0));
4615
- return _this;
4616
- }
4617
- ResizeAwareComponent.prototype.ngAfterViewInit = function () {
4618
- var _this = this;
4619
- this.updateBounds();
4620
- var element = this.elementRef.nativeElement;
4621
- var ro = new ResizeObserver(function (entries, observer) {
4622
- _this.ngZone.run(function () { return _this.updateBounds(); });
4623
- });
4624
- ro.observe(element);
4625
- this.onDispose(function () { return ro.disconnect(); });
4626
- };
4627
- Object.defineProperty(ResizeAwareComponent.prototype, "boundsModel", {
4628
- get: function () {
4629
- return this._boundsModel.readonly;
4630
- },
4631
- enumerable: true,
4632
- configurable: true
4633
- });
4634
- Object.defineProperty(ResizeAwareComponent.prototype, "nativeElement", {
4635
- get: function () {
4636
- return this.elementRef.nativeElement;
4637
- },
4638
- enumerable: true,
4639
- configurable: true
4640
- });
4641
- // TODO: Make this handle body scroll
4642
- ResizeAwareComponent.prototype.relativePositionOf = function (point) {
4643
- return this.bounds.relativePositionOf(point);
4644
- };
4645
- Object.defineProperty(ResizeAwareComponent.prototype, "bounds", {
4646
- get: function () {
4647
- return this._boundsModel.value;
4648
- },
4649
- enumerable: true,
4650
- configurable: true
4651
- });
4652
- ResizeAwareComponent.prototype.updateBounds = function () {
4653
- this._boundsModel.value = exports.Bounds.ofElement(this.nativeElement);
4654
- };
4655
- ResizeAwareComponent.ctorParameters = function () { return [
4656
- { type: core.ElementRef },
4657
- { type: core.NgZone }
4658
- ]; };
4659
- ResizeAwareComponent = __decorate([
4660
- core.Directive(),
4661
- __metadata("design:paramtypes", [core.ElementRef, core.NgZone])
4662
- ], ResizeAwareComponent);
4663
- return ResizeAwareComponent;
4664
- }(DisposableComponent));
4665
-
4666
- /**
4667
- * @file Automatically generated by barrelsby.
4668
- */
4669
-
4670
- /**
4671
- * @file Automatically generated by barrelsby.
4672
- */
4673
-
4674
- var DialogInteractionContext = /** @class */ (function (_super) {
4675
- __extends(DialogInteractionContext, _super);
4676
- function DialogInteractionContext(identifier, api, dialogService, config) {
4677
- var _this = _super.call(this) || this;
4678
- _this.identifier = identifier;
4679
- _this.api = api;
4680
- _this.dialogService = dialogService;
4681
- _this.config = config;
4682
- _this.garbage = new pectin.GarbageCollector();
4683
- typescriptUtilities.assert.notNil(dialogService);
4684
- return _this;
4685
- }
4686
- DialogInteractionContext.prototype.cancelActiveActivity = function () {
4687
- return this.activityContainer.cancelActiveActivity();
4688
- };
4689
- DialogInteractionContext.prototype.dispose = function () {
4690
- if (this.isActive()) {
4691
- pectin.lang.illegalState('Dispose called while active.');
4692
- }
4693
- this.garbage.dispose();
4694
- };
4695
- DialogInteractionContext.prototype.registerDisposable = function (disposable) {
4696
- return this.garbage.registerDisposable(disposable);
4697
- };
4698
- DialogInteractionContext.prototype.isActive = function () {
4699
- return !!this.activityContainer && this.activityContainer.isActive();
4700
- };
4701
- DialogInteractionContext.prototype.createAndLaunchActivity = function (activityType, data, disableClose) {
4702
- var _this = this;
4703
- typescriptUtilities.assert.isNil(this._currentActivityRef);
4704
- var config = __assign(__assign({}, this.config), {
4705
- disableClose: disableClose,
4706
- panelClass: 'dialog-interaction-context'
4707
- });
4708
- var self = this;
4709
- var matDialogRef = this.dialogService.open(ActivityContainerComponent, config);
4710
- var activityContainer = this.activityContainer = matDialogRef.componentInstance;
4711
- this.activityContainer.initialise(this.identifier, this.api);
4712
- var activityResult = this.activityContainer.startActivity(activityType, data);
4713
- activityResult.finally(function () { return matDialogRef.close(); });
4714
- // we need to check if our onDone/onCancel methods above we called or if we were
4715
- // closed by the user clicking the backdrop. If the later then we need to cancel our
4716
- // activity.
4717
- matDialogRef.afterClosed().subscribe(function (promiseAlreadyFinished) {
4718
- if (activityContainer.isActive()) {
4719
- activityContainer.cancelActiveActivity();
4720
- }
4721
- _this.activityContainer = null;
4722
- });
4723
- matDialogRef.updateSize();
4724
- matDialogRef.afterOpened().subscribe(function (promiseAlreadyFinished) {
4725
- matDialogRef.updateSize();
4726
- });
4727
- return activityResult;
4728
- };
4729
- return DialogInteractionContext;
4730
- }(AbstractInteractionContext));
4731
-
4732
- var DIALOG_INTERACTION_SERVICE_DEFAULTS = new core.InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
4733
- var DialogInteractionContextFactory = /** @class */ (function (_super) {
4734
- __extends(DialogInteractionContextFactory, _super);
4735
- function DialogInteractionContextFactory(dialogService, dialogServiceDefaults, matDialogDefaultConfig) {
4736
- var _this = _super.call(this) || this;
4737
- _this.dialogService = dialogService;
4738
- _this.dialogServiceDefaults = dialogServiceDefaults;
4739
- _this.matDialogDefaultConfig = matDialogDefaultConfig;
4740
- typescriptUtilities.assert.notNil(dialogService);
4741
- return _this;
4742
- }
4743
- DialogInteractionContextFactory.prototype.createInteractionContext = function (identifier, api) {
4744
- var config = __assign(__assign({ autoFocus: false, hasBackdrop: true, closeOnNavigation: false }, this.matDialogDefaultConfig), this.dialogServiceDefaults);
4745
- return new DialogInteractionContext(identifier, api, this.dialogService, config);
4746
- };
4747
- DialogInteractionContextFactory.ctorParameters = function () { return [
4748
- { type: dialog.MatDialog },
4749
- { type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [DIALOG_INTERACTION_SERVICE_DEFAULTS,] }] },
4750
- { type: dialog.MatDialogConfig, decorators: [{ type: core.Optional }, { type: core.Inject, args: [dialog.MAT_DIALOG_DEFAULT_OPTIONS,] }] }
4751
- ]; };
4752
- DialogInteractionContextFactory.ɵprov = core.ɵɵdefineInjectable({ factory: function DialogInteractionContextFactory_Factory() { return new DialogInteractionContextFactory(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(DIALOG_INTERACTION_SERVICE_DEFAULTS, 8), core.ɵɵinject(dialog.MAT_DIALOG_DEFAULT_OPTIONS, 8)); }, token: DialogInteractionContextFactory, providedIn: "root" });
4753
- DialogInteractionContextFactory = __decorate([
4754
- core.Injectable({
4755
- providedIn: 'root'
4756
- }),
4757
- __param(1, core.Optional()), __param(1, core.Inject(DIALOG_INTERACTION_SERVICE_DEFAULTS)),
4758
- __param(2, core.Optional()), __param(2, core.Inject(dialog.MAT_DIALOG_DEFAULT_OPTIONS)),
4759
- __metadata("design:paramtypes", [dialog.MatDialog,
4760
- dialog.MatDialogConfig,
4761
- dialog.MatDialogConfig])
4762
- ], DialogInteractionContextFactory);
4763
- return DialogInteractionContextFactory;
4764
- }(ModalInteractionContextFactory));
4765
-
4766
4895
  /**
4767
4896
  * @file Automatically generated by barrelsby.
4768
4897
  */
@@ -5173,9 +5302,11 @@
5173
5302
  exports.AbstractPlaceNavigationComponent = AbstractPlaceNavigationComponent;
5174
5303
  exports.AbstractPopStateNavigation = AbstractPopStateNavigation;
5175
5304
  exports.Activity = Activity;
5305
+ exports.ActivityActionsComponent = ActivityActionsComponent;
5176
5306
  exports.ActivityContainerComponent = ActivityContainerComponent;
5177
5307
  exports.ActivityOutletComponent = ActivityOutletComponent;
5178
5308
  exports.ActivityRef = ActivityRef;
5309
+ exports.AddItemInteractionContextComponent = AddItemInteractionContextComponent;
5179
5310
  exports.AlertDialogComponent = AlertDialogComponent;
5180
5311
  exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
5181
5312
  exports.BusyOverlayComponent = BusyOverlayComponent;
@@ -5276,6 +5407,10 @@
5276
5407
  exports.ɵbx = AlertDialogComponent;
5277
5408
  exports.ɵbz = InPlaceInteractionContextComponent;
5278
5409
  exports.ɵc = FocusBindingDirective;
5410
+ exports.ɵca = AddItemInteractionContextComponent;
5411
+ exports.ɵcb = DisposableComponent;
5412
+ exports.ɵcc = InPlaceInteractionContextComponent;
5413
+ exports.ɵcd = ActivityActionsComponent;
5279
5414
  exports.ɵd = DisposableComponent;
5280
5415
  exports.ɵe = FocusBindingFactory;
5281
5416
  exports.ɵf = ComponentsModule;