@coolon/angular-ui-powerups 0.0.1

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 (179) hide show
  1. package/README.md +7 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +3373 -0
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -0
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -0
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -0
  6. package/coolon-angular-ui-powerups.d.ts +12 -0
  7. package/coolon-angular-ui-powerups.metadata.json +1 -0
  8. package/esm2015/coolon-angular-ui-powerups.js +17 -0
  9. package/esm2015/index.js +6 -0
  10. package/esm2015/lib/angular-ui-powerups.module.js +48 -0
  11. package/esm2015/lib/components/disposable-component.js +14 -0
  12. package/esm2015/lib/components/forms/abstract-input.component.js +173 -0
  13. package/esm2015/lib/components/forms/number-input/number-input.component.js +26 -0
  14. package/esm2015/lib/components/forms/password-input/password-input.component.js +26 -0
  15. package/esm2015/lib/components/forms/select-input/select-input.component.js +60 -0
  16. package/esm2015/lib/components/forms/string-input/string-input.component.js +26 -0
  17. package/esm2015/lib/components/index.js +18 -0
  18. package/esm2015/lib/components/resize-aware.component.js +96 -0
  19. package/esm2015/lib/components/types/bounds.class.js +56 -0
  20. package/esm2015/lib/components/types/dimension.class.js +21 -0
  21. package/esm2015/lib/components/types/point.class.js +36 -0
  22. package/esm2015/lib/directives/command.directive.js +91 -0
  23. package/esm2015/lib/directives/focus-binding.directive.js +163 -0
  24. package/esm2015/lib/directives/index.js +10 -0
  25. package/esm2015/lib/interaction/abstract-activity.js +129 -0
  26. package/esm2015/lib/interaction/activity.js +27 -0
  27. package/esm2015/lib/interaction/alert.js +23 -0
  28. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +144 -0
  29. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.js +22 -0
  30. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.js +169 -0
  31. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +37 -0
  32. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +46 -0
  33. package/esm2015/lib/interaction/confirm.js +17 -0
  34. package/esm2015/lib/interaction/index.js +21 -0
  35. package/esm2015/lib/interaction/interaction-context.js +35 -0
  36. package/esm2015/lib/interaction/interaction.module.js +41 -0
  37. package/esm2015/lib/interaction/result.js +24 -0
  38. package/esm2015/lib/interaction/services/dialog-interaction.service.js +112 -0
  39. package/esm2015/lib/place/abstract-place-component.js +59 -0
  40. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +44 -0
  41. package/esm2015/lib/place/components/empty-state/empty-state.component.js +28 -0
  42. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +52 -0
  43. package/esm2015/lib/place/guards/leave-place.guard.js +52 -0
  44. package/esm2015/lib/place/guards/place-route.guard.js +74 -0
  45. package/esm2015/lib/place/index.js +25 -0
  46. package/esm2015/lib/place/place-component.js +17 -0
  47. package/esm2015/lib/place/place.decorator.js +67 -0
  48. package/esm2015/lib/place/place.module.js +38 -0
  49. package/esm2015/lib/place/place.service.js +61 -0
  50. package/esm2015/lib/place/route/json-types.js +13 -0
  51. package/esm2015/lib/place/route/parameter-decorators.js +82 -0
  52. package/esm2015/lib/place/route/parameter-definition.class.js +22 -0
  53. package/esm2015/lib/place/route/parameter-sanitiser.js +17 -0
  54. package/esm2015/lib/place/route/parameter-type.js +43 -0
  55. package/esm2015/lib/place/route/route-parameter-bindings.js +282 -0
  56. package/esm2015/lib/place/route/route-parameter-sanitiser.js +148 -0
  57. package/esm2015/public_api.js +10 -0
  58. package/esm5/coolon-angular-ui-powerups.js +17 -0
  59. package/esm5/index.js +6 -0
  60. package/esm5/lib/angular-ui-powerups.module.js +52 -0
  61. package/esm5/lib/components/disposable-component.js +24 -0
  62. package/esm5/lib/components/forms/abstract-input.component.js +218 -0
  63. package/esm5/lib/components/forms/number-input/number-input.component.js +33 -0
  64. package/esm5/lib/components/forms/password-input/password-input.component.js +33 -0
  65. package/esm5/lib/components/forms/select-input/select-input.component.js +67 -0
  66. package/esm5/lib/components/forms/string-input/string-input.component.js +33 -0
  67. package/esm5/lib/components/index.js +18 -0
  68. package/esm5/lib/components/resize-aware.component.js +124 -0
  69. package/esm5/lib/components/types/bounds.class.js +59 -0
  70. package/esm5/lib/components/types/dimension.class.js +19 -0
  71. package/esm5/lib/components/types/point.class.js +43 -0
  72. package/esm5/lib/directives/command.directive.js +107 -0
  73. package/esm5/lib/directives/focus-binding.directive.js +211 -0
  74. package/esm5/lib/directives/index.js +10 -0
  75. package/esm5/lib/interaction/abstract-activity.js +173 -0
  76. package/esm5/lib/interaction/activity.js +27 -0
  77. package/esm5/lib/interaction/alert.js +23 -0
  78. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +181 -0
  79. package/esm5/lib/interaction/components/activity-outlet/activity-outlet-context.js +22 -0
  80. package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.js +206 -0
  81. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +42 -0
  82. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +54 -0
  83. package/esm5/lib/interaction/confirm.js +17 -0
  84. package/esm5/lib/interaction/index.js +21 -0
  85. package/esm5/lib/interaction/interaction-context.js +45 -0
  86. package/esm5/lib/interaction/interaction.module.js +45 -0
  87. package/esm5/lib/interaction/result.js +24 -0
  88. package/esm5/lib/interaction/services/dialog-interaction.service.js +138 -0
  89. package/esm5/lib/place/abstract-place-component.js +66 -0
  90. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +49 -0
  91. package/esm5/lib/place/components/empty-state/empty-state.component.js +29 -0
  92. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +62 -0
  93. package/esm5/lib/place/guards/leave-place.guard.js +57 -0
  94. package/esm5/lib/place/guards/place-route.guard.js +78 -0
  95. package/esm5/lib/place/index.js +25 -0
  96. package/esm5/lib/place/place-component.js +17 -0
  97. package/esm5/lib/place/place.decorator.js +64 -0
  98. package/esm5/lib/place/place.module.js +42 -0
  99. package/esm5/lib/place/place.service.js +75 -0
  100. package/esm5/lib/place/route/json-types.js +13 -0
  101. package/esm5/lib/place/route/parameter-decorators.js +82 -0
  102. package/esm5/lib/place/route/parameter-definition.class.js +22 -0
  103. package/esm5/lib/place/route/parameter-sanitiser.js +17 -0
  104. package/esm5/lib/place/route/parameter-type.js +65 -0
  105. package/esm5/lib/place/route/route-parameter-bindings.js +327 -0
  106. package/esm5/lib/place/route/route-parameter-sanitiser.js +203 -0
  107. package/esm5/public_api.js +10 -0
  108. package/fesm2015/coolon-angular-ui-powerups.js +2687 -0
  109. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -0
  110. package/fesm5/coolon-angular-ui-powerups.js +3164 -0
  111. package/fesm5/coolon-angular-ui-powerups.js.map +1 -0
  112. package/index.d.ts +1 -0
  113. package/lib/angular-ui-powerups.module.d.ts +2 -0
  114. package/lib/components/disposable-component.d.ts +5 -0
  115. package/lib/components/forms/abstract-input.component.d.ts +34 -0
  116. package/lib/components/forms/number-input/number-input.component.d.ts +6 -0
  117. package/lib/components/forms/password-input/password-input.component.d.ts +6 -0
  118. package/lib/components/forms/select-input/select-input.component.d.ts +11 -0
  119. package/lib/components/forms/string-input/string-input.component.d.ts +6 -0
  120. package/lib/components/index.d.ts +13 -0
  121. package/lib/components/resize-aware.component.d.ts +22 -0
  122. package/lib/components/types/bounds.class.d.ts +16 -0
  123. package/lib/components/types/dimension.class.d.ts +5 -0
  124. package/lib/components/types/point.class.d.ts +10 -0
  125. package/lib/directives/command.directive.d.ts +11 -0
  126. package/lib/directives/focus-binding.directive.d.ts +21 -0
  127. package/lib/directives/index.d.ts +5 -0
  128. package/lib/interaction/abstract-activity.d.ts +17 -0
  129. package/lib/interaction/activity.d.ts +11 -0
  130. package/lib/interaction/alert.d.ts +5 -0
  131. package/lib/interaction/components/activity-container/activity-container.component.d.ts +32 -0
  132. package/lib/interaction/components/activity-outlet/activity-outlet-context.d.ts +10 -0
  133. package/lib/interaction/components/activity-outlet/activity-outlet.component.d.ts +30 -0
  134. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +8 -0
  135. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -0
  136. package/lib/interaction/confirm.d.ts +5 -0
  137. package/lib/interaction/index.d.ts +16 -0
  138. package/lib/interaction/interaction-context.d.ts +11 -0
  139. package/lib/interaction/interaction.module.d.ts +2 -0
  140. package/lib/interaction/result.d.ts +8 -0
  141. package/lib/interaction/services/dialog-interaction.service.d.ts +14 -0
  142. package/lib/place/abstract-place-component.d.ts +13 -0
  143. package/lib/place/components/busy-overlay/busy-overlay.component.d.ts +8 -0
  144. package/lib/place/components/empty-state/empty-state.component.d.ts +5 -0
  145. package/lib/place/components/place-outlet/place-outlet.component.d.ts +10 -0
  146. package/lib/place/guards/leave-place.guard.d.ts +10 -0
  147. package/lib/place/guards/place-route.guard.d.ts +9 -0
  148. package/lib/place/index.d.ts +20 -0
  149. package/lib/place/place-component.d.ts +5 -0
  150. package/lib/place/place.decorator.d.ts +18 -0
  151. package/lib/place/place.module.d.ts +2 -0
  152. package/lib/place/place.service.d.ts +8 -0
  153. package/lib/place/route/json-types.d.ts +7 -0
  154. package/lib/place/route/parameter-decorators.d.ts +9 -0
  155. package/lib/place/route/parameter-definition.class.d.ts +10 -0
  156. package/lib/place/route/parameter-sanitiser.d.ts +3 -0
  157. package/lib/place/route/parameter-type.d.ts +16 -0
  158. package/lib/place/route/route-parameter-bindings.d.ts +18 -0
  159. package/lib/place/route/route-parameter-sanitiser.d.ts +15 -0
  160. package/package.json +31 -0
  161. package/public_api.d.ts +5 -0
  162. package/schematics/collection.json +14 -0
  163. package/schematics/ng-add/index.d.ts +2 -0
  164. package/schematics/ng-add/index.js +12 -0
  165. package/schematics/ng-add/index.js.map +1 -0
  166. package/schematics/place-routes/index.d.ts +3 -0
  167. package/schematics/place-routes/index.js +92 -0
  168. package/schematics/place-routes/index.js.map +1 -0
  169. package/schematics/place-routes/place-def.d.ts +31 -0
  170. package/schematics/place-routes/place-def.js +75 -0
  171. package/schematics/place-routes/place-def.js.map +1 -0
  172. package/schematics/place-routes/scanner.d.ts +26 -0
  173. package/schematics/place-routes/scanner.js +124 -0
  174. package/schematics/place-routes/scanner.js.map +1 -0
  175. package/schematics/place-routes/schema.d.ts +7 -0
  176. package/schematics/place-routes/schema.js +3 -0
  177. package/schematics/place-routes/schema.js.map +1 -0
  178. package/schematics/place-routes/schema.json +17 -0
  179. package/schematics/place-routes/templates/apps/__project__/src/app/place-routes.ts.template +31 -0
@@ -0,0 +1,3373 @@
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';
6
+
7
+ ResizeObserver = ResizeObserver && ResizeObserver.hasOwnProperty('default') ? ResizeObserver['default'] : ResizeObserver;
8
+
9
+ /*! *****************************************************************************
10
+ Copyright (c) Microsoft Corporation. All rights reserved.
11
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
12
+ this file except in compliance with the License. You may obtain a copy of the
13
+ License at http://www.apache.org/licenses/LICENSE-2.0
14
+
15
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
17
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
18
+ MERCHANTABLITY OR NON-INFRINGEMENT.
19
+
20
+ See the Apache Version 2.0 License for specific language governing permissions
21
+ and limitations under the License.
22
+ ***************************************************************************** */
23
+ /* global Reflect, Promise */
24
+
25
+ var extendStatics = function(d, b) {
26
+ extendStatics = Object.setPrototypeOf ||
27
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
29
+ return extendStatics(d, b);
30
+ };
31
+
32
+ function __extends(d, b) {
33
+ extendStatics(d, b);
34
+ function __() { this.constructor = d; }
35
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
+ }
37
+
38
+ var __assign = function() {
39
+ __assign = Object.assign || function __assign(t) {
40
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
41
+ s = arguments[i];
42
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
43
+ }
44
+ return t;
45
+ };
46
+ return __assign.apply(this, arguments);
47
+ };
48
+
49
+ function __rest(s, e) {
50
+ var t = {};
51
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
+ t[p] = s[p];
53
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
+ t[p[i]] = s[p[i]];
57
+ }
58
+ return t;
59
+ }
60
+
61
+ function __decorate(decorators, target, key, desc) {
62
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
64
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
65
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
66
+ }
67
+
68
+ function __param(paramIndex, decorator) {
69
+ return function (target, key) { decorator(target, key, paramIndex); }
70
+ }
71
+
72
+ function __metadata(metadataKey, metadataValue) {
73
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
74
+ }
75
+
76
+ function __awaiter(thisArg, _arguments, P, generator) {
77
+ return new (P || (P = Promise))(function (resolve, reject) {
78
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
79
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
80
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
81
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
82
+ });
83
+ }
84
+
85
+ function __generator(thisArg, body) {
86
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
87
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
88
+ function verb(n) { return function (v) { return step([n, v]); }; }
89
+ function step(op) {
90
+ if (f) throw new TypeError("Generator is already executing.");
91
+ while (_) try {
92
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
93
+ if (y = 0, t) op = [op[0] & 2, t.value];
94
+ switch (op[0]) {
95
+ case 0: case 1: t = op; break;
96
+ case 4: _.label++; return { value: op[1], done: false };
97
+ case 5: _.label++; y = op[1]; op = [0]; continue;
98
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
99
+ default:
100
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
101
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
102
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
103
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
104
+ if (t[2]) _.ops.pop();
105
+ _.trys.pop(); continue;
106
+ }
107
+ op = body.call(thisArg, _);
108
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
109
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
110
+ }
111
+ }
112
+
113
+ function __exportStar(m, exports) {
114
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
115
+ }
116
+
117
+ function __values(o) {
118
+ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
119
+ if (m) return m.call(o);
120
+ return {
121
+ next: function () {
122
+ if (o && i >= o.length) o = void 0;
123
+ return { value: o && o[i++], done: !o };
124
+ }
125
+ };
126
+ }
127
+
128
+ function __read(o, n) {
129
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
130
+ if (!m) return o;
131
+ var i = m.call(o), r, ar = [], e;
132
+ try {
133
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
134
+ }
135
+ catch (error) { e = { error: error }; }
136
+ finally {
137
+ try {
138
+ if (r && !r.done && (m = i["return"])) m.call(i);
139
+ }
140
+ finally { if (e) throw e.error; }
141
+ }
142
+ return ar;
143
+ }
144
+
145
+ function __spread() {
146
+ for (var ar = [], i = 0; i < arguments.length; i++)
147
+ ar = ar.concat(__read(arguments[i]));
148
+ return ar;
149
+ }
150
+
151
+ function __spreadArrays() {
152
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
153
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
154
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
155
+ r[k] = a[j];
156
+ return r;
157
+ };
158
+
159
+ function __await(v) {
160
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
161
+ }
162
+
163
+ function __asyncGenerator(thisArg, _arguments, generator) {
164
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
165
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
166
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
167
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
168
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
169
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
170
+ function fulfill(value) { resume("next", value); }
171
+ function reject(value) { resume("throw", value); }
172
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
173
+ }
174
+
175
+ function __asyncDelegator(o) {
176
+ var i, p;
177
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
178
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
179
+ }
180
+
181
+ function __asyncValues(o) {
182
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
183
+ var m = o[Symbol.asyncIterator], i;
184
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
185
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
186
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
187
+ }
188
+
189
+ function __makeTemplateObject(cooked, raw) {
190
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
191
+ return cooked;
192
+ };
193
+
194
+ function __importStar(mod) {
195
+ if (mod && mod.__esModule) return mod;
196
+ var result = {};
197
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
198
+ result.default = mod;
199
+ return result;
200
+ }
201
+
202
+ function __importDefault(mod) {
203
+ return (mod && mod.__esModule) ? mod : { default: mod };
204
+ }
205
+
206
+ /**
207
+ * @fileoverview added by tsickle
208
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
209
+ */
210
+ var DisposableComponent = /** @class */ (function (_super) {
211
+ __extends(DisposableComponent, _super);
212
+ function DisposableComponent() {
213
+ return _super !== null && _super.apply(this, arguments) || this;
214
+ }
215
+ /**
216
+ * @return {?}
217
+ */
218
+ DisposableComponent.prototype.ngOnDestroy = /**
219
+ * @return {?}
220
+ */
221
+ function () {
222
+ this.dispose();
223
+ };
224
+ return DisposableComponent;
225
+ }(pectin.GarbageCollector));
226
+
227
+ /**
228
+ * @fileoverview added by tsickle
229
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
230
+ */
231
+ /** @type {?} */
232
+ var EMPTY_ERRORS = new pectin.MutableListModel().readonly;
233
+ /**
234
+ * @abstract
235
+ * @template T
236
+ */
237
+ var AbstractInputComponent = /** @class */ (function (_super) {
238
+ __extends(AbstractInputComponent, _super);
239
+ function AbstractInputComponent() {
240
+ var _this = _super.call(this) || this;
241
+ _this.focus = new core.EventEmitter();
242
+ _this.blur = new core.EventEmitter();
243
+ _this.enterKey = new core.EventEmitter();
244
+ _this.escapeKey = new core.EventEmitter();
245
+ /** @type {?} */
246
+ var self = _this;
247
+ _this.errorStateMatcher = {
248
+ isErrorState: /**
249
+ * @param {?} control
250
+ * @param {?} form
251
+ * @return {?}
252
+ */
253
+ function (control, form) {
254
+ return self.hasErrors();
255
+ }
256
+ };
257
+ return _this;
258
+ }
259
+ /**
260
+ * @return {?}
261
+ */
262
+ AbstractInputComponent.prototype.notifyClick = /**
263
+ * @return {?}
264
+ */
265
+ function () {
266
+ this.safelyInvoke(this.clickCommand);
267
+ };
268
+ /**
269
+ * @return {?}
270
+ */
271
+ AbstractInputComponent.prototype.notifyFocusIn = /**
272
+ * @return {?}
273
+ */
274
+ function () {
275
+ this.safelyInvoke(this.focusCommand);
276
+ this.focus.emit();
277
+ };
278
+ /**
279
+ * @return {?}
280
+ */
281
+ AbstractInputComponent.prototype.notifyFocusOut = /**
282
+ * @return {?}
283
+ */
284
+ function () {
285
+ this.safelyInvoke(this.blurCommand);
286
+ this.blur.emit();
287
+ };
288
+ /**
289
+ * @return {?}
290
+ */
291
+ AbstractInputComponent.prototype.notifyEnterKey = /**
292
+ * @return {?}
293
+ */
294
+ function () {
295
+ this.safelyInvoke(this.enterCommand);
296
+ this.enterKey.emit();
297
+ };
298
+ /**
299
+ * @return {?}
300
+ */
301
+ AbstractInputComponent.prototype.notifyEscapeKey = /**
302
+ * @return {?}
303
+ */
304
+ function () {
305
+ this.safelyInvoke(this.escapeCommand);
306
+ this.escapeKey.emit();
307
+ };
308
+ /**
309
+ * @protected
310
+ * @param {?} command
311
+ * @return {?}
312
+ */
313
+ AbstractInputComponent.prototype.safelyInvoke = /**
314
+ * @protected
315
+ * @param {?} command
316
+ * @return {?}
317
+ */
318
+ function (command) {
319
+ if (command && command.isEnabled()) {
320
+ command.execute();
321
+ }
322
+ };
323
+ /**
324
+ * @return {?}
325
+ */
326
+ AbstractInputComponent.prototype.ngOnInit = /**
327
+ * @return {?}
328
+ */
329
+ function () {
330
+ // this._focused = this.valueModel['focused'] || new ValueHolder();
331
+ };
332
+ /**
333
+ * @return {?}
334
+ */
335
+ AbstractInputComponent.prototype.isEnabled = /**
336
+ * @return {?}
337
+ */
338
+ function () {
339
+ return this.enabled.value;
340
+ };
341
+ Object.defineProperty(AbstractInputComponent.prototype, "enabled", {
342
+ get: /**
343
+ * @return {?}
344
+ */
345
+ function () {
346
+ // @ts-ignore
347
+ return ((/** @type {?} */ (this.valueModel))).enabled || pectin.Constant.TRUE;
348
+ },
349
+ enumerable: true,
350
+ configurable: true
351
+ });
352
+ /**
353
+ * @return {?}
354
+ */
355
+ AbstractInputComponent.prototype.hasErrors = /**
356
+ * @return {?}
357
+ */
358
+ function () {
359
+ return !this.errorList.query().isEmpty();
360
+ };
361
+ Object.defineProperty(AbstractInputComponent.prototype, "errorList", {
362
+ get: /**
363
+ * @return {?}
364
+ */
365
+ function () {
366
+ return ((/** @type {?} */ (this.valueModel))).errorList || EMPTY_ERRORS;
367
+ },
368
+ enumerable: true,
369
+ configurable: true
370
+ });
371
+ Object.defineProperty(AbstractInputComponent.prototype, "firstError", {
372
+ get: /**
373
+ * @return {?}
374
+ */
375
+ function () {
376
+ return this.hasErrors() ? this.errorList.value[0] : null;
377
+ },
378
+ enumerable: true,
379
+ configurable: true
380
+ });
381
+ AbstractInputComponent.propDecorators = {
382
+ valueModel: [{ type: core.Input }],
383
+ label: [{ type: core.Input }],
384
+ floatLabel: [{ type: core.Input }],
385
+ hint: [{ type: core.Input }],
386
+ placeholder: [{ type: core.Input }],
387
+ focusCommand: [{ type: core.Input, args: ['command.focus',] }],
388
+ blurCommand: [{ type: core.Input, args: ['command.blur',] }],
389
+ enterCommand: [{ type: core.Input, args: ['command.enter',] }],
390
+ escapeCommand: [{ type: core.Input, args: ['command.escape',] }],
391
+ clickCommand: [{ type: core.Input, args: ['command.click',] }],
392
+ focus: [{ type: core.Output }],
393
+ blur: [{ type: core.Output }],
394
+ enterKey: [{ type: core.Output }],
395
+ escapeKey: [{ type: core.Output }],
396
+ notifyClick: [{ type: core.HostListener, args: ['click',] }],
397
+ notifyFocusIn: [{ type: core.HostListener, args: ['focusin',] }],
398
+ notifyFocusOut: [{ type: core.HostListener, args: ['focusout',] }]
399
+ };
400
+ __decorate([
401
+ pectin.UseDelegate(),
402
+ __metadata("design:type", pectin.MutableValueModel)
403
+ ], AbstractInputComponent.prototype, "valueModel", void 0);
404
+ return AbstractInputComponent;
405
+ }(DisposableComponent));
406
+ if (false) {
407
+ /** @type {?} */
408
+ AbstractInputComponent.prototype.valueModel;
409
+ /** @type {?} */
410
+ AbstractInputComponent.prototype.label;
411
+ /** @type {?} */
412
+ AbstractInputComponent.prototype.floatLabel;
413
+ /** @type {?} */
414
+ AbstractInputComponent.prototype.hint;
415
+ /** @type {?} */
416
+ AbstractInputComponent.prototype.placeholder;
417
+ /** @type {?} */
418
+ AbstractInputComponent.prototype.focusCommand;
419
+ /** @type {?} */
420
+ AbstractInputComponent.prototype.blurCommand;
421
+ /** @type {?} */
422
+ AbstractInputComponent.prototype.enterCommand;
423
+ /** @type {?} */
424
+ AbstractInputComponent.prototype.escapeCommand;
425
+ /** @type {?} */
426
+ AbstractInputComponent.prototype.clickCommand;
427
+ /** @type {?} */
428
+ AbstractInputComponent.prototype.focus;
429
+ /** @type {?} */
430
+ AbstractInputComponent.prototype.blur;
431
+ /** @type {?} */
432
+ AbstractInputComponent.prototype.enterKey;
433
+ /** @type {?} */
434
+ AbstractInputComponent.prototype.escapeKey;
435
+ /** @type {?} */
436
+ AbstractInputComponent.prototype.errorStateMatcher;
437
+ }
438
+
439
+ /**
440
+ * @fileoverview added by tsickle
441
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
442
+ */
443
+ var NumberInputComponent = /** @class */ (function (_super) {
444
+ __extends(NumberInputComponent, _super);
445
+ function NumberInputComponent() {
446
+ return _super.call(this) || this;
447
+ }
448
+ /**
449
+ * @return {?}
450
+ */
451
+ NumberInputComponent.prototype.ngOnInit = /**
452
+ * @return {?}
453
+ */
454
+ function () {
455
+ };
456
+ NumberInputComponent.decorators = [
457
+ { type: core.Component, args: [{
458
+ selector: 'angular-ui-powerups-number-input',
459
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
460
+ styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
461
+ }] }
462
+ ];
463
+ /** @nocollapse */
464
+ NumberInputComponent.ctorParameters = function () { return []; };
465
+ return NumberInputComponent;
466
+ }(AbstractInputComponent));
467
+
468
+ /**
469
+ * @fileoverview added by tsickle
470
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
471
+ */
472
+ var CommandDirective = /** @class */ (function (_super) {
473
+ __extends(CommandDirective, _super);
474
+ function CommandDirective(elementRef) {
475
+ var _this = _super.call(this) || this;
476
+ _this.elementRef = elementRef;
477
+ return _this;
478
+ }
479
+ /**
480
+ * @return {?}
481
+ */
482
+ CommandDirective.prototype.ngOnInit = /**
483
+ * @return {?}
484
+ */
485
+ function () {
486
+ pectin.assert.notNil(this.pectinCommand);
487
+ };
488
+ /**
489
+ * @return {?}
490
+ */
491
+ CommandDirective.prototype.ngAfterViewInit = /**
492
+ * @return {?}
493
+ */
494
+ function () {
495
+ var _this = this;
496
+ // for some reason mat-buttons kills the disabled host binding. It works on a regular button but for now
497
+ // we need to do this.
498
+ var chain = pectin.Dsl.disposeWith(this).chain;
499
+ chain.value(this.pectinCommand.enabled).subscribe((/**
500
+ * @param {?} enabled
501
+ * @return {?}
502
+ */
503
+ function (enabled) {
504
+ if (enabled) {
505
+ _this.elementRef.nativeElement.removeAttribute('disabled');
506
+ if (_this.elementRef.nativeElement.tagName === 'A') {
507
+ _this.elementRef.nativeElement.setAttribute('href', 'javascript:void');
508
+ }
509
+ }
510
+ else {
511
+ _this.elementRef.nativeElement.setAttribute('disabled', 'disabled');
512
+ if (_this.elementRef.nativeElement.tagName === 'A') {
513
+ _this.elementRef.nativeElement.removeAttribute('href');
514
+ }
515
+ }
516
+ }));
517
+ };
518
+ /**
519
+ * @return {?}
520
+ */
521
+ CommandDirective.prototype.ngOnDestroy = /**
522
+ * @return {?}
523
+ */
524
+ function () {
525
+ this.dispose();
526
+ };
527
+ /**
528
+ * @param {?} $event
529
+ * @return {?}
530
+ */
531
+ CommandDirective.prototype.notifyClick = /**
532
+ * @param {?} $event
533
+ * @return {?}
534
+ */
535
+ function ($event) {
536
+ $event.preventDefault();
537
+ $event.stopPropagation();
538
+ if (this.pectinCommand.isEnabled()) {
539
+ this.pectinCommand.execute({ event: $event });
540
+ }
541
+ else {
542
+ console.warn('disabled command clicked, ignoring.');
543
+ }
544
+ };
545
+ CommandDirective.decorators = [
546
+ { type: core.Directive, args: [{
547
+ // tslint:disable-next-line:directive-selector
548
+ selector: '[pectinCommand]'
549
+ },] }
550
+ ];
551
+ /** @nocollapse */
552
+ CommandDirective.ctorParameters = function () { return [
553
+ { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] }
554
+ ]; };
555
+ CommandDirective.propDecorators = {
556
+ pectinCommand: [{ type: core.Input }],
557
+ notifyClick: [{ type: core.HostListener, args: ['click', ['$event'],] }]
558
+ };
559
+ return CommandDirective;
560
+ }(pectin.GarbageCollector));
561
+ if (false) {
562
+ /** @type {?} */
563
+ CommandDirective.prototype.pectinCommand;
564
+ /**
565
+ * @type {?}
566
+ * @private
567
+ */
568
+ CommandDirective.prototype.elementRef;
569
+ }
570
+
571
+ /**
572
+ * @fileoverview added by tsickle
573
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
574
+ */
575
+ var FocusBindingDirective = /** @class */ (function (_super) {
576
+ __extends(FocusBindingDirective, _super);
577
+ function FocusBindingDirective(el, ngZone, document) {
578
+ var _this = _super.call(this) || this;
579
+ _this.el = el;
580
+ _this.ngZone = ngZone;
581
+ // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
582
+ _this.document = (/** @type {?} */ (document));
583
+ return _this;
584
+ }
585
+ /**
586
+ * @return {?}
587
+ */
588
+ FocusBindingDirective.prototype.onFocusIn = /**
589
+ * @return {?}
590
+ */
591
+ function () {
592
+ this.pectinFocusBinding.focusCallbacks.notifyFocusIn();
593
+ };
594
+ /**
595
+ * @return {?}
596
+ */
597
+ FocusBindingDirective.prototype.onFocusOut = /**
598
+ * @return {?}
599
+ */
600
+ function () {
601
+ this.pectinFocusBinding.focusCallbacks.notifyFocusOut();
602
+ };
603
+ /**
604
+ * @return {?}
605
+ */
606
+ FocusBindingDirective.prototype.ngOnInit = /**
607
+ * @return {?}
608
+ */
609
+ function () {
610
+ };
611
+ /**
612
+ * @return {?}
613
+ */
614
+ FocusBindingDirective.prototype.ngAfterViewInit = /**
615
+ * @return {?}
616
+ */
617
+ function () {
618
+ var _this = this;
619
+ // TODO: Make this also track the current enabled/disabled state.
620
+ var chain = pectin.Dsl.disposeWith(this).chain;
621
+ chain.value(this.pectinFocusBinding.focused).subscribe((/**
622
+ * @param {?} focused
623
+ * @return {?}
624
+ */
625
+ function (focused) {
626
+ if (focused && !_this.alreadyHasFocus()) {
627
+ _this.tryAndFocus();
628
+ }
629
+ }));
630
+ };
631
+ // Hook method for debugging via tracing.
632
+ // Hook method for debugging via tracing.
633
+ /**
634
+ * @return {?}
635
+ */
636
+ FocusBindingDirective.prototype.alreadyHasFocus =
637
+ // Hook method for debugging via tracing.
638
+ /**
639
+ * @return {?}
640
+ */
641
+ function () {
642
+ return this.isFocused(this.focusTarget);
643
+ };
644
+ // Hook method for debugging via tracing.
645
+ // Hook method for debugging via tracing.
646
+ /**
647
+ * @param {?} element
648
+ * @return {?}
649
+ */
650
+ FocusBindingDirective.prototype.isFocused =
651
+ // Hook method for debugging via tracing.
652
+ /**
653
+ * @param {?} element
654
+ * @return {?}
655
+ */
656
+ function (element) {
657
+ return this.document.activeElement === element;
658
+ };
659
+ /**
660
+ * @param {?=} retries
661
+ * @return {?}
662
+ */
663
+ FocusBindingDirective.prototype.tryAndFocus = /**
664
+ * @param {?=} retries
665
+ * @return {?}
666
+ */
667
+ function (retries) {
668
+ var _this = this;
669
+ if (retries === void 0) { retries = 5; }
670
+ if (this.modelShouldStillHaveFocus() && this.canFocus()) {
671
+ if (!this.alreadyHasFocus()) {
672
+ this.focusTarget.focus();
673
+ }
674
+ // if we didn't get the focus we try again later.
675
+ if (!this.alreadyHasFocus()) {
676
+ pectin.Logger.get(this).log("focus failed, trying " + retries + " more times");
677
+ if (retries > 0) {
678
+ // try again on the next paint
679
+ // TODO: is there an angular way of doing this without calling a window function.
680
+ requestAnimationFrame((/**
681
+ * @return {?}
682
+ */
683
+ function () {
684
+ _this.tryAndFocus(retries - 1);
685
+ }));
686
+ }
687
+ else {
688
+ pectin.Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.");
689
+ }
690
+ }
691
+ }
692
+ };
693
+ Object.defineProperty(FocusBindingDirective.prototype, "focusTarget", {
694
+ get: /**
695
+ * @return {?}
696
+ */
697
+ function () {
698
+ return this.focusBindingTarget || this.el.nativeElement;
699
+ },
700
+ enumerable: true,
701
+ configurable: true
702
+ });
703
+ // Hook method for debugging via tracing.
704
+ // Hook method for debugging via tracing.
705
+ /**
706
+ * @return {?}
707
+ */
708
+ FocusBindingDirective.prototype.modelShouldStillHaveFocus =
709
+ // Hook method for debugging via tracing.
710
+ /**
711
+ * @return {?}
712
+ */
713
+ function () {
714
+ return this.pectinFocusBinding.focused.value;
715
+ };
716
+ // Hook method for debugging via tracing.
717
+ // Hook method for debugging via tracing.
718
+ /**
719
+ * @return {?}
720
+ */
721
+ FocusBindingDirective.prototype.canFocus =
722
+ // Hook method for debugging via tracing.
723
+ /**
724
+ * @return {?}
725
+ */
726
+ function () {
727
+ /** @type {?} */
728
+ var dimension = this.focusTarget.getBoundingClientRect();
729
+ /** @type {?} */
730
+ var hasSize = dimension.height >= 0 && dimension.height >= 0;
731
+ // tslint:disable-next-line:no-string-literal
732
+ return hasSize && !this.focusTarget['disabled'];
733
+ };
734
+ FocusBindingDirective.decorators = [
735
+ { type: core.Directive, args: [{
736
+ // tslint:disable-next-line:directive-selector
737
+ selector: '[pectinFocusBinding]'
738
+ },] }
739
+ ];
740
+ /** @nocollapse */
741
+ FocusBindingDirective.ctorParameters = function () { return [
742
+ { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
743
+ { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
744
+ { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
745
+ ]; };
746
+ FocusBindingDirective.propDecorators = {
747
+ pectinFocusBinding: [{ type: core.Input }],
748
+ focusBindingTarget: [{ type: core.Input }],
749
+ onFocusIn: [{ type: core.HostListener, args: ['focusin',] }],
750
+ onFocusOut: [{ type: core.HostListener, args: ['focusout',] }]
751
+ };
752
+ return FocusBindingDirective;
753
+ }(DisposableComponent));
754
+ if (false) {
755
+ /**
756
+ * @type {?}
757
+ * @private
758
+ */
759
+ FocusBindingDirective.prototype.document;
760
+ /** @type {?} */
761
+ FocusBindingDirective.prototype.pectinFocusBinding;
762
+ /** @type {?} */
763
+ FocusBindingDirective.prototype.focusBindingTarget;
764
+ /**
765
+ * @type {?}
766
+ * @private
767
+ */
768
+ FocusBindingDirective.prototype.el;
769
+ /**
770
+ * @type {?}
771
+ * @private
772
+ */
773
+ FocusBindingDirective.prototype.ngZone;
774
+ }
775
+
776
+ /**
777
+ * @fileoverview added by tsickle
778
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
779
+ */
780
+ var StringInputComponent = /** @class */ (function (_super) {
781
+ __extends(StringInputComponent, _super);
782
+ function StringInputComponent() {
783
+ return _super.call(this) || this;
784
+ }
785
+ /**
786
+ * @return {?}
787
+ */
788
+ StringInputComponent.prototype.ngOnInit = /**
789
+ * @return {?}
790
+ */
791
+ function () {
792
+ };
793
+ StringInputComponent.decorators = [
794
+ { type: core.Component, args: [{
795
+ selector: 'angular-ui-powerups-string-input',
796
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
797
+ styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
798
+ }] }
799
+ ];
800
+ /** @nocollapse */
801
+ StringInputComponent.ctorParameters = function () { return []; };
802
+ return StringInputComponent;
803
+ }(AbstractInputComponent));
804
+
805
+ /**
806
+ * @fileoverview added by tsickle
807
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
808
+ */
809
+ var PasswordInputComponent = /** @class */ (function (_super) {
810
+ __extends(PasswordInputComponent, _super);
811
+ function PasswordInputComponent() {
812
+ return _super.call(this) || this;
813
+ }
814
+ /**
815
+ * @return {?}
816
+ */
817
+ PasswordInputComponent.prototype.ngOnInit = /**
818
+ * @return {?}
819
+ */
820
+ function () {
821
+ };
822
+ PasswordInputComponent.decorators = [
823
+ { type: core.Component, args: [{
824
+ selector: 'angular-ui-powerups-password-input',
825
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
826
+ styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
827
+ }] }
828
+ ];
829
+ /** @nocollapse */
830
+ PasswordInputComponent.ctorParameters = function () { return []; };
831
+ return PasswordInputComponent;
832
+ }(AbstractInputComponent));
833
+
834
+ /**
835
+ * @fileoverview added by tsickle
836
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
837
+ */
838
+ /**
839
+ * @template T
840
+ */
841
+ var SelectInputComponent = /** @class */ (function (_super) {
842
+ __extends(SelectInputComponent, _super);
843
+ function SelectInputComponent() {
844
+ var _this = _super.call(this) || this;
845
+ _this.optionLabelFormat = (/**
846
+ * @param {?} option
847
+ * @return {?}
848
+ */
849
+ function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; });
850
+ return _this;
851
+ }
852
+ /**
853
+ * @return {?}
854
+ */
855
+ SelectInputComponent.prototype.ngOnInit = /**
856
+ * @return {?}
857
+ */
858
+ function () {
859
+ };
860
+ SelectInputComponent.decorators = [
861
+ { type: core.Component, args: [{
862
+ selector: 'angular-ui-powerups-select-input',
863
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of optionsModel.value\" [value]=\"option\">{{optionLabelFormat(option)}}\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
864
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
865
+ }] }
866
+ ];
867
+ /** @nocollapse */
868
+ SelectInputComponent.ctorParameters = function () { return []; };
869
+ SelectInputComponent.propDecorators = {
870
+ optionsModel: [{ type: core.Input }],
871
+ options: [{ type: core.Input }],
872
+ optionLabel: [{ type: core.Input }],
873
+ optionLabelFormat: [{ type: core.Input }]
874
+ };
875
+ __decorate([
876
+ pectin.UseDelegate(),
877
+ __metadata("design:type", pectin.ListModel)
878
+ ], SelectInputComponent.prototype, "optionsModel", void 0);
879
+ __decorate([
880
+ pectin.StoreInListModel('optionsModel'),
881
+ __metadata("design:type", Array)
882
+ ], SelectInputComponent.prototype, "options", void 0);
883
+ return SelectInputComponent;
884
+ }(AbstractInputComponent));
885
+ if (false) {
886
+ /** @type {?} */
887
+ SelectInputComponent.prototype.optionsModel;
888
+ /** @type {?} */
889
+ SelectInputComponent.prototype.options;
890
+ /** @type {?} */
891
+ SelectInputComponent.prototype.optionLabel;
892
+ /** @type {?} */
893
+ SelectInputComponent.prototype.optionLabelFormat;
894
+ }
895
+
896
+ /**
897
+ * @fileoverview added by tsickle
898
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
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
+
935
+ /**
936
+ * @fileoverview added by tsickle
937
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
938
+ */
939
+ var Dimension = /** @class */ (function () {
940
+ function Dimension(width, height) {
941
+ this.width = width;
942
+ this.height = height;
943
+ }
944
+ return Dimension;
945
+ }());
946
+ if (false) {
947
+ /** @type {?} */
948
+ Dimension.prototype.width;
949
+ /** @type {?} */
950
+ Dimension.prototype.height;
951
+ }
952
+
953
+ /**
954
+ * @fileoverview added by tsickle
955
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
956
+ */
957
+ var Point = /** @class */ (function () {
958
+ function Point(x, y) {
959
+ this.x = x;
960
+ this.y = y;
961
+ }
962
+ /**
963
+ * @param {?} data
964
+ * @return {?}
965
+ */
966
+ Point.from = /**
967
+ * @param {?} data
968
+ * @return {?}
969
+ */
970
+ function (data) {
971
+ return new Point(data.x, data.y);
972
+ };
973
+ /**
974
+ * @param {?} x
975
+ * @param {?} y
976
+ * @return {?}
977
+ */
978
+ Point.prototype.translate = /**
979
+ * @param {?} x
980
+ * @param {?} y
981
+ * @return {?}
982
+ */
983
+ function (x, y) {
984
+ return new Point(this.x + x, this.y + y);
985
+ };
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
+ /**
1010
+ * @param {?} point
1011
+ * @return {?}
1012
+ */
1013
+ Bounds.prototype.relativePositionOf = /**
1014
+ * @param {?} point
1015
+ * @return {?}
1016
+ */
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
+ }
1024
+ };
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
+ /**
1039
+ * @param {?} element
1040
+ * @return {?}
1041
+ */
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
+ }
1063
+ /**
1064
+ * @return {?}
1065
+ */
1066
+ ResizeAwareComponent.prototype.ngAfterViewInit = /**
1067
+ * @return {?}
1068
+ */
1069
+ 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
1078
+ * @return {?}
1079
+ */
1080
+ function (entries, observer) {
1081
+ _this.ngZone.run((/**
1082
+ * @return {?}
1083
+ */
1084
+ function () { return _this.updateBounds(); }));
1085
+ }));
1086
+ ro.observe(element);
1087
+ this.onDispose((/**
1088
+ * @return {?}
1089
+ */
1090
+ function () { return ro.disconnect(); }));
1091
+ };
1092
+ Object.defineProperty(ResizeAwareComponent.prototype, "boundsModel", {
1093
+ get: /**
1094
+ * @return {?}
1095
+ */
1096
+ 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;
1295
+ },
1296
+ enumerable: true,
1297
+ configurable: true
1298
+ });
1299
+ /**
1300
+ * @param {?} busyModel
1301
+ * @return {?}
1302
+ */
1303
+ AbstractActivity.prototype.busyWhile = /**
1304
+ * @param {?} busyModel
1305
+ * @return {?}
1306
+ */
1307
+ function (busyModel) {
1308
+ this._busyModel.setDelegate(busyModel);
1309
+ };
1310
+ /**
1311
+ * @return {?}
1312
+ */
1313
+ AbstractActivity.prototype.isBusy = /**
1314
+ * @return {?}
1315
+ */
1316
+ function () {
1317
+ return this._busyModel.value;
1318
+ };
1319
+ return AbstractActivity;
1320
+ }(DisposableComponent));
1321
+ if (false) {
1322
+ /**
1323
+ * @type {?}
1324
+ * @private
1325
+ */
1326
+ AbstractActivity.prototype._doneListeners;
1327
+ /**
1328
+ * @type {?}
1329
+ * @private
1330
+ */
1331
+ AbstractActivity.prototype._cancelListeners;
1332
+ /**
1333
+ * @type {?}
1334
+ * @private
1335
+ */
1336
+ AbstractActivity.prototype._finishListeners;
1337
+ /**
1338
+ * @type {?}
1339
+ * @private
1340
+ */
1341
+ AbstractActivity.prototype._busyModel;
1342
+ }
1343
+
1344
+ /**
1345
+ * @fileoverview added by tsickle
1346
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1347
+ */
1348
+ /** @type {?} */
1349
+ var ACTIVITY_DATA = new core.InjectionToken('InteractionActivityData');
1350
+ /**
1351
+ * @record
1352
+ * @template D, R, E
1353
+ */
1354
+ function Activity() { }
1355
+ if (false) {
1356
+ /** @type {?} */
1357
+ Activity.prototype.busy;
1358
+ /**
1359
+ * @param {?} callback
1360
+ * @return {?}
1361
+ */
1362
+ Activity.prototype.onDone = function (callback) { };
1363
+ /**
1364
+ * @param {?} callback
1365
+ * @return {?}
1366
+ */
1367
+ Activity.prototype.onCancel = function (callback) { };
1368
+ }
1369
+
1370
+ /**
1371
+ * @fileoverview added by tsickle
1372
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1373
+ */
1374
+ /**
1375
+ * @record
1376
+ */
1377
+ function Alert() { }
1378
+ if (false) {
1379
+ /**
1380
+ * @return {?}
1381
+ */
1382
+ Alert.prototype.title = function () { };
1383
+ /**
1384
+ * @return {?}
1385
+ */
1386
+ Alert.prototype.content = function () { };
1387
+ /**
1388
+ * @return {?}
1389
+ */
1390
+ Alert.prototype.ok = function () { };
1391
+ }
1392
+
1393
+ /**
1394
+ * @fileoverview added by tsickle
1395
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1396
+ */
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
+ }
1500
+ /**
1501
+ * @return {?}
1502
+ */
1503
+ ConfirmationDialogComponent.prototype.ngOnInit = /**
1504
+ * @return {?}
1505
+ */
1506
+ function () {
1507
+ };
1508
+ /**
1509
+ * @return {?}
1510
+ */
1511
+ ConfirmationDialogComponent.prototype.isDestructive = /**
1512
+ * @return {?}
1513
+ */
1514
+ function () {
1515
+ return this.confirm.destructive && this.confirm.destructive();
1516
+ };
1517
+ ConfirmationDialogComponent.decorators = [
1518
+ { type: core.Component, args: [{
1519
+ selector: 'angular-ui-powerups-confirmation-dialog',
1520
+ template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-button (click)=\"cancel()\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\" (click)=\"done(true)\">{{confirm.ok()}}</button>\n</p>\n\n",
1521
+ styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
1522
+ }] }
1523
+ ];
1524
+ /** @nocollapse */
1525
+ ConfirmationDialogComponent.ctorParameters = function () { return [
1526
+ { type: undefined, decorators: [{ type: core.Inject, args: [ACTIVITY_DATA,] }] }
1527
+ ]; };
1528
+ return ConfirmationDialogComponent;
1529
+ }(AbstractActivity));
1530
+ if (false) {
1531
+ /** @type {?} */
1532
+ ConfirmationDialogComponent.prototype.confirm;
1533
+ }
1534
+
1535
+ /**
1536
+ * @fileoverview added by tsickle
1537
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1538
+ */
1539
+ exports.ActivityContainerComponent = /** @class */ (function (_super) {
1540
+ __extends(ActivityContainerComponent, _super);
1541
+ function ActivityContainerComponent() {
1542
+ var _this = _super.call(this) || this;
1543
+ _this.activityTabs = new pectin.MutableListModel();
1544
+ _this.obsoleteTabs = [];
1545
+ return _this;
1546
+ }
1547
+ /**
1548
+ * @return {?}
1549
+ */
1550
+ ActivityContainerComponent.prototype.ngOnInit = /**
1551
+ * @return {?}
1552
+ */
1553
+ function () {
1554
+ };
1555
+ /**
1556
+ * @return {?}
1557
+ */
1558
+ ActivityContainerComponent.prototype.ngAfterViewInit = /**
1559
+ * @return {?}
1560
+ */
1561
+ function () {
1562
+ var _this = this;
1563
+ var observe = pectin.Dsl.disposeWith(this).observe;
1564
+ observe.valuesFrom(this.tabs.animationDone).subscribe((/**
1565
+ * @return {?}
1566
+ */
1567
+ function () { return _this.cleanUpTabs(); }));
1568
+ };
1569
+ /**
1570
+ * @template D, R, E
1571
+ * @param {?} options
1572
+ * @return {?}
1573
+ */
1574
+ ActivityContainerComponent.prototype.initialise = /**
1575
+ * @template D, R, E
1576
+ * @param {?} options
1577
+ * @return {?}
1578
+ */
1579
+ function (options) {
1580
+ this.initialActivity = __assign({}, options, { interactionContext: this });
1581
+ };
1582
+ /**
1583
+ * @template D, R, E
1584
+ * @param {?} activityType
1585
+ * @param {?=} data
1586
+ * @return {?}
1587
+ */
1588
+ ActivityContainerComponent.prototype.startActivity = /**
1589
+ * @template D, R, E
1590
+ * @param {?} activityType
1591
+ * @param {?=} data
1592
+ * @return {?}
1593
+ */
1594
+ function (activityType, data) {
1595
+ var _this = this;
1596
+ /** @type {?} */
1597
+ var deferred = deferred_class.Deferred.defer();
1598
+ /** @type {?} */
1599
+ var context = {
1600
+ interactionContext: this,
1601
+ activityClass: activityType,
1602
+ activityData: data,
1603
+ onDone: deferred.resolve,
1604
+ onCancel: deferred.reject
1605
+ };
1606
+ this.activityTabs.push(context);
1607
+ this.tabs.selectedIndex = this.activityTabs.length;
1608
+ return deferred.promise.finally((/**
1609
+ * @return {?}
1610
+ */
1611
+ function () {
1612
+ _this.obsoleteTabs.push(context);
1613
+ _this.tabs.selectedIndex = _this.activityTabs.length - 1;
1614
+ }));
1615
+ };
1616
+ /**
1617
+ * @param {?} alert
1618
+ * @return {?}
1619
+ */
1620
+ ActivityContainerComponent.prototype.alert = /**
1621
+ * @param {?} alert
1622
+ * @return {?}
1623
+ */
1624
+ function (alert) {
1625
+ return this.startActivity(AlertDialogComponent, alert);
1626
+ };
1627
+ /**
1628
+ * @param {?} confirm
1629
+ * @return {?}
1630
+ */
1631
+ ActivityContainerComponent.prototype.confirm = /**
1632
+ * @param {?} confirm
1633
+ * @return {?}
1634
+ */
1635
+ function (confirm) {
1636
+ return this.startActivity(ConfirmationDialogComponent, confirm);
1637
+ };
1638
+ /**
1639
+ * @private
1640
+ * @return {?}
1641
+ */
1642
+ ActivityContainerComponent.prototype.cleanUpTabs = /**
1643
+ * @private
1644
+ * @return {?}
1645
+ */
1646
+ function () {
1647
+ var _this = this;
1648
+ this.activityTabs.value = this.activityTabs.value.filter((/**
1649
+ * @param {?} tab
1650
+ * @return {?}
1651
+ */
1652
+ function (tab) {
1653
+ return !_this.obsoleteTabs.includes(tab);
1654
+ }));
1655
+ };
1656
+ ActivityContainerComponent.decorators = [
1657
+ { type: core.Component, args: [{
1658
+ selector: 'angular-ui-powerups-activity-container',
1659
+ template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\" [activityContext]=\"initialActivity\"></angular-ui-powerups-activity-outlet>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of activityTabs.value\">\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\" [activityContext]=\"tab\"></angular-ui-powerups-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
1660
+ styles: [":host{display:block}"]
1661
+ }] }
1662
+ ];
1663
+ /** @nocollapse */
1664
+ ActivityContainerComponent.ctorParameters = function () { return []; };
1665
+ ActivityContainerComponent.propDecorators = {
1666
+ parentInteractionContext: [{ type: core.Input }],
1667
+ initialActivity: [{ type: core.Input }],
1668
+ tabs: [{ type: core.ViewChild, args: ['tabs', { static: true },] }]
1669
+ };
1670
+ return ActivityContainerComponent;
1671
+ }(DisposableComponent));
1672
+ if (false) {
1673
+ /** @type {?} */
1674
+ exports.ActivityContainerComponent.prototype.parentInteractionContext;
1675
+ /** @type {?} */
1676
+ exports.ActivityContainerComponent.prototype.initialActivity;
1677
+ /** @type {?} */
1678
+ exports.ActivityContainerComponent.prototype.tabs;
1679
+ /** @type {?} */
1680
+ exports.ActivityContainerComponent.prototype.activityTabs;
1681
+ /**
1682
+ * @type {?}
1683
+ * @private
1684
+ */
1685
+ exports.ActivityContainerComponent.prototype.obsoleteTabs;
1686
+ }
1687
+ (function (ActivityContainerComponent) {
1688
+ /**
1689
+ * @record
1690
+ * @template D, R, E
1691
+ */
1692
+ function ActivityContext() { }
1693
+ ActivityContainerComponent.ActivityContext = ActivityContext;
1694
+ if (false) {
1695
+ /** @type {?} */
1696
+ ActivityContext.prototype.activityClass;
1697
+ /** @type {?} */
1698
+ ActivityContext.prototype.activityData;
1699
+ /** @type {?} */
1700
+ ActivityContext.prototype.onDone;
1701
+ /** @type {?} */
1702
+ ActivityContext.prototype.onCancel;
1703
+ }
1704
+ })(exports.ActivityContainerComponent || (exports.ActivityContainerComponent = {}));
1705
+
1706
+ /**
1707
+ * @fileoverview added by tsickle
1708
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1709
+ */
1710
+ /**
1711
+ * @template D, R, E
1712
+ */
1713
+ exports.ActivityOutletComponent = /** @class */ (function () {
1714
+ function ActivityOutletComponent(componentFactoryResolver, viewContainerRef, injector) {
1715
+ this.componentFactoryResolver = componentFactoryResolver;
1716
+ this.viewContainerRef = viewContainerRef;
1717
+ this.injector = injector;
1718
+ }
1719
+ Object.defineProperty(ActivityOutletComponent.prototype, "activityContext", {
1720
+ set: /**
1721
+ * @param {?} activityContext
1722
+ * @return {?}
1723
+ */
1724
+ function (activityContext) {
1725
+ this.loadActivity(activityContext);
1726
+ },
1727
+ enumerable: true,
1728
+ configurable: true
1729
+ });
1730
+ ;
1731
+ /**
1732
+ * @return {?}
1733
+ */
1734
+ ActivityOutletComponent.prototype.ngOnInit = /**
1735
+ * @return {?}
1736
+ */
1737
+ function () {
1738
+ };
1739
+ /**
1740
+ * @param {?} activityContext
1741
+ * @return {?}
1742
+ */
1743
+ ActivityOutletComponent.prototype.loadActivity = /**
1744
+ * @param {?} activityContext
1745
+ * @return {?}
1746
+ */
1747
+ function (activityContext) {
1748
+ /** @type {?} */
1749
+ var injector = core.Injector.create({
1750
+ providers: [
1751
+ {
1752
+ provide: InteractionContext,
1753
+ useValue: this
1754
+ },
1755
+ { provide: ACTIVITY_DATA, useValue: activityContext.activityData }
1756
+ ],
1757
+ parent: this.injector
1758
+ });
1759
+ /** @type {?} */
1760
+ var componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityContext.activityClass);
1761
+ this.viewContainerRef.clear();
1762
+ this.activityComponent = this.viewContainerRef.createComponent(componentFactory, 0, injector);
1763
+ this.activityComponent.instance.onDone(activityContext.onDone);
1764
+ this.activityComponent.instance.onCancel(activityContext.onCancel);
1765
+ };
1766
+ /**
1767
+ * @param {?} alert
1768
+ * @return {?}
1769
+ */
1770
+ ActivityOutletComponent.prototype.alert = /**
1771
+ * @param {?} alert
1772
+ * @return {?}
1773
+ */
1774
+ function (alert) {
1775
+ return this.interactionContext.alert(alert);
1776
+ };
1777
+ /**
1778
+ * @param {?} confirm
1779
+ * @return {?}
1780
+ */
1781
+ ActivityOutletComponent.prototype.confirm = /**
1782
+ * @param {?} confirm
1783
+ * @return {?}
1784
+ */
1785
+ function (confirm) {
1786
+ return this.interactionContext.confirm(confirm);
1787
+ };
1788
+ /**
1789
+ * @template D1, R1, E1
1790
+ * @param {?} activityType
1791
+ * @param {?=} data
1792
+ * @return {?}
1793
+ */
1794
+ ActivityOutletComponent.prototype.startActivity = /**
1795
+ * @template D1, R1, E1
1796
+ * @param {?} activityType
1797
+ * @param {?=} data
1798
+ * @return {?}
1799
+ */
1800
+ function (activityType, data) {
1801
+ return this.interactionContext.startActivity(activityType, data);
1802
+ };
1803
+ ActivityOutletComponent.decorators = [
1804
+ { type: core.Component, args: [{
1805
+ selector: 'angular-ui-powerups-activity-outlet',
1806
+ template: '',
1807
+ styles: [":host{display:block}"]
1808
+ }] }
1809
+ ];
1810
+ /** @nocollapse */
1811
+ ActivityOutletComponent.ctorParameters = function () { return [
1812
+ { type: core.ComponentFactoryResolver },
1813
+ { type: core.ViewContainerRef },
1814
+ { type: core.Injector }
1815
+ ]; };
1816
+ ActivityOutletComponent.propDecorators = {
1817
+ interactionContext: [{ type: core.Input }],
1818
+ activityContext: [{ type: core.Input }]
1819
+ };
1820
+ return ActivityOutletComponent;
1821
+ }());
1822
+ if (false) {
1823
+ /** @type {?} */
1824
+ exports.ActivityOutletComponent.prototype.interactionContext;
1825
+ /**
1826
+ * @type {?}
1827
+ * @private
1828
+ */
1829
+ exports.ActivityOutletComponent.prototype.activityComponent;
1830
+ /**
1831
+ * @type {?}
1832
+ * @private
1833
+ */
1834
+ exports.ActivityOutletComponent.prototype.componentFactoryResolver;
1835
+ /**
1836
+ * @type {?}
1837
+ * @private
1838
+ */
1839
+ exports.ActivityOutletComponent.prototype.viewContainerRef;
1840
+ /**
1841
+ * @type {?}
1842
+ * @private
1843
+ */
1844
+ exports.ActivityOutletComponent.prototype.injector;
1845
+ /* Skipping unhandled member: ;*/
1846
+ }
1847
+ (function (ActivityOutletComponent) {
1848
+ /**
1849
+ * @template D, R, E
1850
+ */
1851
+ var /**
1852
+ * @template D, R, E
1853
+ */
1854
+ OutletInteractionContext = /** @class */ (function () {
1855
+ function OutletInteractionContext(context) {
1856
+ this.context = context;
1857
+ }
1858
+ /**
1859
+ * @param {?} alert
1860
+ * @return {?}
1861
+ */
1862
+ OutletInteractionContext.prototype.alert = /**
1863
+ * @param {?} alert
1864
+ * @return {?}
1865
+ */
1866
+ function (alert) {
1867
+ return pectin.lang.notImplemented();
1868
+ };
1869
+ /**
1870
+ * @param {?} confirm
1871
+ * @return {?}
1872
+ */
1873
+ OutletInteractionContext.prototype.confirm = /**
1874
+ * @param {?} confirm
1875
+ * @return {?}
1876
+ */
1877
+ function (confirm) {
1878
+ return pectin.lang.notImplemented();
1879
+ };
1880
+ /**
1881
+ * @template D1, R1, E1
1882
+ * @param {?} activityType
1883
+ * @param {?=} data
1884
+ * @return {?}
1885
+ */
1886
+ OutletInteractionContext.prototype.startActivity = /**
1887
+ * @template D1, R1, E1
1888
+ * @param {?} activityType
1889
+ * @param {?=} data
1890
+ * @return {?}
1891
+ */
1892
+ function (activityType, data) {
1893
+ return pectin.lang.notImplemented();
1894
+ };
1895
+ return OutletInteractionContext;
1896
+ }());
1897
+ ActivityOutletComponent.OutletInteractionContext = OutletInteractionContext;
1898
+ if (false) {
1899
+ /**
1900
+ * @type {?}
1901
+ * @private
1902
+ */
1903
+ OutletInteractionContext.prototype.context;
1904
+ }
1905
+ })(exports.ActivityOutletComponent || (exports.ActivityOutletComponent = {}));
1906
+
1907
+ /**
1908
+ * @fileoverview added by tsickle
1909
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1910
+ */
1911
+ var DialogInteractionService = /** @class */ (function (_super) {
1912
+ __extends(DialogInteractionService, _super);
1913
+ function DialogInteractionService(dialogService) {
1914
+ var _this = _super.call(this) || this;
1915
+ _this.dialogService = dialogService;
1916
+ return _this;
1917
+ }
1918
+ /**
1919
+ * @template D, R, E
1920
+ * @param {?} activityType
1921
+ * @param {?=} data
1922
+ * @return {?}
1923
+ */
1924
+ DialogInteractionService.prototype.startActivity = /**
1925
+ * @template D, R, E
1926
+ * @param {?} activityType
1927
+ * @param {?=} data
1928
+ * @return {?}
1929
+ */
1930
+ function (activityType, data) {
1931
+ return this._startActivity(activityType, data);
1932
+ };
1933
+ /**
1934
+ * @private
1935
+ * @template D, R, E
1936
+ * @param {?} activityType
1937
+ * @param {?} data
1938
+ * @param {?=} disableClose
1939
+ * @return {?}
1940
+ */
1941
+ DialogInteractionService.prototype._startActivity = /**
1942
+ * @private
1943
+ * @template D, R, E
1944
+ * @param {?} activityType
1945
+ * @param {?} data
1946
+ * @param {?=} disableClose
1947
+ * @return {?}
1948
+ */
1949
+ function (activityType, data, disableClose) {
1950
+ var _this = this;
1951
+ if (disableClose === void 0) { disableClose = true; }
1952
+ /** @type {?} */
1953
+ var config = {
1954
+ data: data,
1955
+ disableClose: disableClose,
1956
+ panelClass: 'dialog-interaction-service',
1957
+ autoFocus: false
1958
+ };
1959
+ /** @type {?} */
1960
+ var matDialogRef = (/** @type {?} */ (this.dialogService.open(exports.ActivityContainerComponent, config)));
1961
+ return new Promise((/**
1962
+ * @param {?} resolve
1963
+ * @param {?} reject
1964
+ * @return {?}
1965
+ */
1966
+ function (resolve, reject) {
1967
+ /** @type {?} */
1968
+ var activityContainer = matDialogRef.componentInstance;
1969
+ activityContainer.parentInteractionContext = _this;
1970
+ activityContainer.initialise({
1971
+ activityClass: activityType,
1972
+ activityData: data,
1973
+ onDone: /**
1974
+ * @param {?} result
1975
+ * @return {?}
1976
+ */
1977
+ function (result) {
1978
+ resolve(result);
1979
+ matDialogRef.close(result);
1980
+ },
1981
+ onCancel: /**
1982
+ * @param {?} error
1983
+ * @return {?}
1984
+ */
1985
+ function (error) {
1986
+ reject(error);
1987
+ matDialogRef.close(error);
1988
+ }
1989
+ });
1990
+ matDialogRef.updateSize();
1991
+ }));
1992
+ };
1993
+ /**
1994
+ * @param {?} alert
1995
+ * @return {?}
1996
+ */
1997
+ DialogInteractionService.prototype.alert = /**
1998
+ * @param {?} alert
1999
+ * @return {?}
2000
+ */
2001
+ function (alert) {
2002
+ return this._startActivity(AlertDialogComponent, alert, false);
2003
+ };
2004
+ /**
2005
+ * @param {?} confirm
2006
+ * @return {?}
2007
+ */
2008
+ DialogInteractionService.prototype.confirm = /**
2009
+ * @param {?} confirm
2010
+ * @return {?}
2011
+ */
2012
+ function (confirm) {
2013
+ return this._startActivity(ConfirmationDialogComponent, confirm, true);
2014
+ };
2015
+ DialogInteractionService.decorators = [
2016
+ { type: core.Injectable, args: [{
2017
+ providedIn: 'root'
2018
+ },] }
2019
+ ];
2020
+ /** @nocollapse */
2021
+ DialogInteractionService.ctorParameters = function () { return [
2022
+ { type: material.MatDialog }
2023
+ ]; };
2024
+ /** @nocollapse */ DialogInteractionService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DialogInteractionService_Factory() { return new DialogInteractionService(core.ɵɵinject(dialog.MatDialog)); }, token: DialogInteractionService, providedIn: "root" });
2025
+ return DialogInteractionService;
2026
+ }(InteractionContext));
2027
+ if (false) {
2028
+ /**
2029
+ * @type {?}
2030
+ * @private
2031
+ */
2032
+ DialogInteractionService.prototype.dialogService;
2033
+ }
2034
+
2035
+ /**
2036
+ * @fileoverview added by tsickle
2037
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2038
+ */
2039
+ var InteractionModule = /** @class */ (function () {
2040
+ function InteractionModule() {
2041
+ }
2042
+ InteractionModule.decorators = [
2043
+ { type: core.NgModule, args: [{
2044
+ imports: [
2045
+ common.CommonModule,
2046
+ material.MatButtonModule,
2047
+ material.MatDialogModule,
2048
+ material.MatTabsModule,
2049
+ portal.PortalModule
2050
+ ],
2051
+ declarations: [
2052
+ exports.ActivityContainerComponent,
2053
+ ConfirmationDialogComponent,
2054
+ AlertDialogComponent,
2055
+ exports.ActivityOutletComponent
2056
+ ],
2057
+ entryComponents: [
2058
+ exports.ActivityContainerComponent,
2059
+ ConfirmationDialogComponent,
2060
+ AlertDialogComponent
2061
+ ],
2062
+ providers: [
2063
+ DialogInteractionService
2064
+ ]
2065
+ },] }
2066
+ ];
2067
+ return InteractionModule;
2068
+ }());
2069
+
2070
+ /**
2071
+ * @fileoverview added by tsickle
2072
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2073
+ */
2074
+ /**
2075
+ * @record
2076
+ * @template R, E
2077
+ */
2078
+ function Result() { }
2079
+ (function (Result) {
2080
+ /**
2081
+ * @record
2082
+ * @template R, E
2083
+ */
2084
+ function Callback() { }
2085
+ Result.Callback = Callback;
2086
+ if (false) {
2087
+ /** @type {?} */
2088
+ Callback.prototype.then;
2089
+ /** @type {?} */
2090
+ Callback.prototype.catch;
2091
+ }
2092
+ })(Result || (Result = {}));
2093
+
2094
+ /**
2095
+ * @fileoverview added by tsickle
2096
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2097
+ */
2098
+ /**
2099
+ * @record
2100
+ * @template D, R, E
2101
+ */
2102
+ function ActivityOutletContext() { }
2103
+ if (false) {
2104
+ /** @type {?} */
2105
+ ActivityOutletContext.prototype.interactionContext;
2106
+ /** @type {?} */
2107
+ ActivityOutletContext.prototype.activityClass;
2108
+ /** @type {?} */
2109
+ ActivityOutletContext.prototype.activityData;
2110
+ /** @type {?} */
2111
+ ActivityOutletContext.prototype.onDone;
2112
+ /** @type {?} */
2113
+ ActivityOutletContext.prototype.onCancel;
2114
+ }
2115
+
2116
+ /**
2117
+ * @fileoverview added by tsickle
2118
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2119
+ */
2120
+
2121
+ /**
2122
+ * @fileoverview added by tsickle
2123
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2124
+ */
2125
+ /**
2126
+ * @param {?} options
2127
+ * @return {?}
2128
+ */
2129
+ function Place(options) {
2130
+ return (/**
2131
+ * @param {?} target
2132
+ * @return {?}
2133
+ */
2134
+ function (target) {
2135
+ Reflect.defineMetadata('place.options', options, target);
2136
+ });
2137
+ }
2138
+ (function (Place) {
2139
+ /**
2140
+ * @record
2141
+ */
2142
+ function Options() { }
2143
+ Place.Options = Options;
2144
+ if (false) {
2145
+ /** @type {?} */
2146
+ Options.prototype.path;
2147
+ /** @type {?} */
2148
+ Options.prototype.title;
2149
+ /** @type {?|undefined} */
2150
+ Options.prototype.authenticate;
2151
+ }
2152
+ var Descriptor = /** @class */ (function () {
2153
+ function Descriptor(placeClass, options) {
2154
+ pectin.assert.notNil(options);
2155
+ this.path = options.path;
2156
+ this.title = options.title;
2157
+ this.authenticate = lodash.isNil(options.authenticate) || options.authenticate;
2158
+ }
2159
+ return Descriptor;
2160
+ }());
2161
+ Place.Descriptor = Descriptor;
2162
+ if (false) {
2163
+ /** @type {?} */
2164
+ Descriptor.prototype.path;
2165
+ /** @type {?} */
2166
+ Descriptor.prototype.authenticate;
2167
+ /** @type {?} */
2168
+ Descriptor.prototype.title;
2169
+ }
2170
+ /**
2171
+ * @param {?} klass
2172
+ * @return {?}
2173
+ */
2174
+ function getDescriptor(klass) {
2175
+ /** @type {?} */
2176
+ var placeOptions = Reflect.getMetadata('place.options', klass);
2177
+ return new Descriptor(klass, placeOptions);
2178
+ }
2179
+ Place.getDescriptor = getDescriptor;
2180
+ })(Place || (Place = {}));
2181
+
2182
+ /**
2183
+ * @fileoverview added by tsickle
2184
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2185
+ */
2186
+ /**
2187
+ * @record
2188
+ * @template T
2189
+ */
2190
+ function ResolvedParameter() { }
2191
+ if (false) {
2192
+ /** @type {?} */
2193
+ ResolvedParameter.prototype.parameter;
2194
+ /** @type {?} */
2195
+ ResolvedParameter.prototype.resolvedValue;
2196
+ }
2197
+ var ResolvedParameters = /** @class */ (function () {
2198
+ function ResolvedParameters(parameters) {
2199
+ this.parameters = parameters;
2200
+ }
2201
+ /**
2202
+ * @template T
2203
+ * @param {?} parameter
2204
+ * @return {?}
2205
+ */
2206
+ ResolvedParameters.prototype.get = /**
2207
+ * @template T
2208
+ * @param {?} parameter
2209
+ * @return {?}
2210
+ */
2211
+ function (parameter) {
2212
+ /** @type {?} */
2213
+ var resolved = this.parameters.find((/**
2214
+ * @param {?} p
2215
+ * @return {?}
2216
+ */
2217
+ function (p) { return p.parameter === parameter; }));
2218
+ return resolved ? resolved.resolvedValue : null;
2219
+ };
2220
+ /**
2221
+ * @template T
2222
+ * @param {?} parameter
2223
+ * @param {?} value
2224
+ * @return {?}
2225
+ */
2226
+ ResolvedParameters.prototype.replace = /**
2227
+ * @template T
2228
+ * @param {?} parameter
2229
+ * @param {?} value
2230
+ * @return {?}
2231
+ */
2232
+ function (parameter, value) {
2233
+ return new ResolvedParameters(this.parameters.filter((/**
2234
+ * @param {?} p
2235
+ * @return {?}
2236
+ */
2237
+ function (p) { return p.parameter !== parameter; })).concat({
2238
+ parameter: parameter,
2239
+ resolvedValue: value
2240
+ }));
2241
+ };
2242
+ /**
2243
+ * @protected
2244
+ * @return {?}
2245
+ */
2246
+ ResolvedParameters.prototype.getFormattedRouteId = /**
2247
+ * @protected
2248
+ * @return {?}
2249
+ */
2250
+ function () {
2251
+ /** @type {?} */
2252
+ var routeIdParam = this.getRouteIdParam();
2253
+ return routeIdParam ? routeIdParam.parameter.type.format(routeIdParam.resolvedValue) : null;
2254
+ };
2255
+ /**
2256
+ * @private
2257
+ * @return {?}
2258
+ */
2259
+ ResolvedParameters.prototype.getRouteIdParam = /**
2260
+ * @private
2261
+ * @return {?}
2262
+ */
2263
+ function () {
2264
+ return this.parameters.find((/**
2265
+ * @param {?} p
2266
+ * @return {?}
2267
+ */
2268
+ function (p) { return p.parameter.isRouteId; }));
2269
+ };
2270
+ /**
2271
+ * @protected
2272
+ * @return {?}
2273
+ */
2274
+ ResolvedParameters.prototype.getFormattedParameters = /**
2275
+ * @protected
2276
+ * @return {?}
2277
+ */
2278
+ function () {
2279
+ /** @type {?} */
2280
+ var params = {};
2281
+ /** @type {?} */
2282
+ var routeIdParam = this.parameters.filter((/**
2283
+ * @param {?} p
2284
+ * @return {?}
2285
+ */
2286
+ function (p) { return !p.parameter.isRouteId; })).forEach((/**
2287
+ * @param {?} p
2288
+ * @return {?}
2289
+ */
2290
+ function (p) {
2291
+ params[p.parameter.name] = p.parameter.type.format(p.resolvedValue);
2292
+ }));
2293
+ return params;
2294
+ };
2295
+ /**
2296
+ * @return {?}
2297
+ */
2298
+ ResolvedParameters.prototype.hasRouteId = /**
2299
+ * @return {?}
2300
+ */
2301
+ function () {
2302
+ return !!this.getRouteIdParam();
2303
+ };
2304
+ /**
2305
+ * @param {?} previous
2306
+ * @param {?} router
2307
+ * @param {?} activatedRoute
2308
+ * @return {?}
2309
+ */
2310
+ ResolvedParameters.prototype.redirect = /**
2311
+ * @param {?} previous
2312
+ * @param {?} router
2313
+ * @param {?} activatedRoute
2314
+ * @return {?}
2315
+ */
2316
+ function (previous, router, activatedRoute) {
2317
+ /** @type {?} */
2318
+ var routeId = this.getFormattedRouteId();
2319
+ /** @type {?} */
2320
+ var relativePath = !!previous.hasRouteId() ? '..' : '.';
2321
+ /** @type {?} */
2322
+ var path = routeId ? [relativePath, routeId, this.getFormattedParameters()] : [relativePath, this.getFormattedParameters()];
2323
+ router.navigate(path, {
2324
+ relativeTo: activatedRoute,
2325
+ });
2326
+ };
2327
+ __decorate([
2328
+ pectin.Trace(),
2329
+ __metadata("design:type", Function),
2330
+ __metadata("design:paramtypes", []),
2331
+ __metadata("design:returntype", void 0)
2332
+ ], ResolvedParameters.prototype, "getFormattedRouteId", null);
2333
+ __decorate([
2334
+ pectin.Trace(),
2335
+ __metadata("design:type", Function),
2336
+ __metadata("design:paramtypes", []),
2337
+ __metadata("design:returntype", void 0)
2338
+ ], ResolvedParameters.prototype, "getFormattedParameters", null);
2339
+ __decorate([
2340
+ pectin.Trace(),
2341
+ __metadata("design:type", Function),
2342
+ __metadata("design:paramtypes", [ResolvedParameters, router.Router, router.ActivatedRoute]),
2343
+ __metadata("design:returntype", void 0)
2344
+ ], ResolvedParameters.prototype, "redirect", null);
2345
+ return ResolvedParameters;
2346
+ }());
2347
+ if (false) {
2348
+ /** @type {?} */
2349
+ ResolvedParameters.prototype.parameters;
2350
+ }
2351
+ exports.RouteParameterBindings = /** @class */ (function (_super) {
2352
+ __extends(RouteParameterBindings, _super);
2353
+ function RouteParameterBindings(component, router, activatedRoute) {
2354
+ var _this = _super.call(this) || this;
2355
+ _this.component = component;
2356
+ _this.router = router;
2357
+ _this.activatedRoute = activatedRoute;
2358
+ _this._incomingRouteChange = new pectin.MutableValueModel(false);
2359
+ _this.resolvedParameters = new pectin.MutableValueModel();
2360
+ var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe;
2361
+ _this.txo = new pectin.TransactionObserver(); //.onEvent(e => console.log(e.toString()));
2362
+ //.onEvent(e => console.log(e.toString()));
2363
+ /** @type {?} */
2364
+ var routeParameterDefs = typescriptUtilities.Klass.get(component).getMetadataList(RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY);
2365
+ routeParameterDefs.forEach((/**
2366
+ * @param {?} parameter
2367
+ * @return {?}
2368
+ */
2369
+ function (parameter) { return _this.installBinding(parameter); }));
2370
+ /** @type {?} */
2371
+ var incomingResolvedRouteParameters = observe.valuesFrom(activatedRoute.paramMap)
2372
+ .last()
2373
+ .map((/**
2374
+ * @param {?} params
2375
+ * @return {?}
2376
+ */
2377
+ function (params) {
2378
+ /** @type {?} */
2379
+ var result = [];
2380
+ routeParameterDefs.forEach((/**
2381
+ * @param {?} parameter
2382
+ * @return {?}
2383
+ */
2384
+ function (parameter) {
2385
+ result.push({ parameter: parameter, resolvedValue: parameter.type.parse(params.get(parameter.name)) });
2386
+ }));
2387
+ return new ResolvedParameters(result);
2388
+ }));
2389
+ incomingResolvedRouteParameters.subscribe((/**
2390
+ * @param {?} resolvedParameters
2391
+ * @return {?}
2392
+ */
2393
+ function (resolvedParameters) {
2394
+ _this._incomingRouteChange.value = true;
2395
+ _this.resolvedParameters.value = resolvedParameters;
2396
+ _this._incomingRouteChange.value = false;
2397
+ }));
2398
+ when.valueOf(_this.resolvedParameters).changes((/**
2399
+ * @param {?} params
2400
+ * @param {?} previous
2401
+ * @return {?}
2402
+ */
2403
+ function (params, previous) {
2404
+ params.redirect(previous, router, activatedRoute);
2405
+ }), { unless: _this.incomingRouteChange });
2406
+ _this.txo.observe('incomingResolvedRouteParameters', incomingResolvedRouteParameters);
2407
+ _this.txo.observe('this.routeIsChanging', _this.incomingRouteChange);
2408
+ return _this;
2409
+ }
2410
+ Object.defineProperty(RouteParameterBindings.prototype, "incomingRouteChange", {
2411
+ get: /**
2412
+ * @return {?}
2413
+ */
2414
+ function () {
2415
+ return this._incomingRouteChange.readonly;
2416
+ },
2417
+ enumerable: true,
2418
+ configurable: true
2419
+ });
2420
+ /**
2421
+ * @protected
2422
+ * @template T
2423
+ * @param {?} parameter
2424
+ * @return {?}
2425
+ */
2426
+ RouteParameterBindings.prototype.installBinding = /**
2427
+ * @protected
2428
+ * @template T
2429
+ * @param {?} parameter
2430
+ * @return {?}
2431
+ */
2432
+ function (parameter) {
2433
+ /** @type {?} */
2434
+ var model = this.getModelFor(parameter);
2435
+ this.txo.observe(parameter.propertyName, model);
2436
+ this.registerDisposable(new pectin.Binding(this.resolvedParameters, model, {
2437
+ toRight: /**
2438
+ * @param {?} parameters
2439
+ * @return {?}
2440
+ */
2441
+ function (parameters) {
2442
+ return parameters.get(parameter);
2443
+ },
2444
+ toLeft: /**
2445
+ * @param {?} value
2446
+ * @param {?=} currentParameters
2447
+ * @return {?}
2448
+ */
2449
+ function (value, currentParameters) {
2450
+ return currentParameters.replace(parameter, value);
2451
+ }
2452
+ }));
2453
+ };
2454
+ /**
2455
+ * @private
2456
+ * @template T
2457
+ * @param {?} parameter
2458
+ * @return {?}
2459
+ */
2460
+ RouteParameterBindings.prototype.getModelFor = /**
2461
+ * @private
2462
+ * @template T
2463
+ * @param {?} parameter
2464
+ * @return {?}
2465
+ */
2466
+ function (parameter) {
2467
+ return this.component[parameter.propertyName];
2468
+ };
2469
+ return RouteParameterBindings;
2470
+ }(pectin.GarbageCollector));
2471
+ if (false) {
2472
+ /** @type {?} */
2473
+ exports.RouteParameterBindings.prototype._incomingRouteChange;
2474
+ /**
2475
+ * @type {?}
2476
+ * @private
2477
+ */
2478
+ exports.RouteParameterBindings.prototype.txo;
2479
+ /**
2480
+ * @type {?}
2481
+ * @private
2482
+ */
2483
+ exports.RouteParameterBindings.prototype.resolvedParameters;
2484
+ /**
2485
+ * @type {?}
2486
+ * @private
2487
+ */
2488
+ exports.RouteParameterBindings.prototype.component;
2489
+ /**
2490
+ * @type {?}
2491
+ * @private
2492
+ */
2493
+ exports.RouteParameterBindings.prototype.router;
2494
+ /**
2495
+ * @type {?}
2496
+ * @private
2497
+ */
2498
+ exports.RouteParameterBindings.prototype.activatedRoute;
2499
+ }
2500
+ (function (RouteParameterBindings) {
2501
+ RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY = Symbol('place:route:parameters');
2502
+ })(exports.RouteParameterBindings || (exports.RouteParameterBindings = {}));
2503
+
2504
+ /**
2505
+ * @fileoverview added by tsickle
2506
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2507
+ */
2508
+ var AbstractPlaceComponent = /** @class */ (function (_super) {
2509
+ __extends(AbstractPlaceComponent, _super);
2510
+ function AbstractPlaceComponent(activatedRoute, router) {
2511
+ var _this = _super.call(this) || this;
2512
+ _this.activatedRoute = activatedRoute;
2513
+ _this.routeBindingMediator = _this.registerDisposable(new exports.RouteParameterBindings(_this, router, activatedRoute));
2514
+ // See https://coolon.atlassian.net/browse/PEC-59
2515
+ ((/** @type {?} */ ((/** @type {?} */ (_this.titleModel))))).setDefault(_this.placeConfig.title);
2516
+ return _this;
2517
+ }
2518
+ Object.defineProperty(AbstractPlaceComponent.prototype, "placeConfig", {
2519
+ get: /**
2520
+ * @return {?}
2521
+ */
2522
+ function () {
2523
+ return Place.getDescriptor((/** @type {?} */ ((/** @type {?} */ (this.constructor)))));
2524
+ },
2525
+ enumerable: true,
2526
+ configurable: true
2527
+ });
2528
+ /**
2529
+ * @return {?}
2530
+ */
2531
+ AbstractPlaceComponent.prototype.canDeactivate = /**
2532
+ * @return {?}
2533
+ */
2534
+ function () {
2535
+ return true;
2536
+ };
2537
+ __decorate([
2538
+ pectin.UseDelegate(),
2539
+ __metadata("design:type", pectin.MutableValueModel)
2540
+ ], AbstractPlaceComponent.prototype, "titleModel", void 0);
2541
+ __decorate([
2542
+ fastMemoizeDecorator.Memoize(),
2543
+ __metadata("design:type", Place.Descriptor),
2544
+ __metadata("design:paramtypes", [])
2545
+ ], AbstractPlaceComponent.prototype, "placeConfig", null);
2546
+ return AbstractPlaceComponent;
2547
+ }(DisposableComponent));
2548
+ if (false) {
2549
+ /** @type {?} */
2550
+ AbstractPlaceComponent.prototype.titleModel;
2551
+ /**
2552
+ * @type {?}
2553
+ * @private
2554
+ */
2555
+ AbstractPlaceComponent.prototype.routeBindingMediator;
2556
+ /**
2557
+ * @type {?}
2558
+ * @protected
2559
+ */
2560
+ AbstractPlaceComponent.prototype.activatedRoute;
2561
+ }
2562
+
2563
+ /**
2564
+ * @fileoverview added by tsickle
2565
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2566
+ */
2567
+ /**
2568
+ * @record
2569
+ */
2570
+ function PlaceComponent() { }
2571
+ if (false) {
2572
+ /** @type {?} */
2573
+ PlaceComponent.prototype.titleModel;
2574
+ /**
2575
+ * @return {?}
2576
+ */
2577
+ PlaceComponent.prototype.canDeactivate = function () { };
2578
+ }
2579
+
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
+ /**
2815
+ * @fileoverview added by tsickle
2816
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2817
+ */
2818
+ var LeavePlaceGuard = /** @class */ (function () {
2819
+ function LeavePlaceGuard(router, injector) {
2820
+ this.router = router;
2821
+ this.injector = injector;
2822
+ }
2823
+ /**
2824
+ * @param {?} component
2825
+ * @param {?} currentRoute
2826
+ * @param {?} currentState
2827
+ * @param {?=} nextState
2828
+ * @return {?}
2829
+ */
2830
+ LeavePlaceGuard.prototype.canDeactivate = /**
2831
+ * @param {?} component
2832
+ * @param {?} currentRoute
2833
+ * @param {?} currentState
2834
+ * @param {?=} nextState
2835
+ * @return {?}
2836
+ */
2837
+ function (component, currentRoute, currentState, nextState) {
2838
+ return component.canDeactivate();
2839
+ };
2840
+ LeavePlaceGuard.decorators = [
2841
+ { type: core.Injectable, args: [{
2842
+ providedIn: 'root'
2843
+ },] }
2844
+ ];
2845
+ /** @nocollapse */
2846
+ LeavePlaceGuard.ctorParameters = function () { return [
2847
+ { type: router.Router },
2848
+ { type: core.Injector }
2849
+ ]; };
2850
+ /** @nocollapse */ LeavePlaceGuard.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function LeavePlaceGuard_Factory() { return new LeavePlaceGuard(core.ɵɵinject(router.Router), core.ɵɵinject(core.INJECTOR)); }, token: LeavePlaceGuard, providedIn: "root" });
2851
+ return LeavePlaceGuard;
2852
+ }());
2853
+ if (false) {
2854
+ /**
2855
+ * @type {?}
2856
+ * @private
2857
+ */
2858
+ LeavePlaceGuard.prototype.router;
2859
+ /**
2860
+ * @type {?}
2861
+ * @private
2862
+ */
2863
+ LeavePlaceGuard.prototype.injector;
2864
+ }
2865
+
2866
+ /**
2867
+ * @fileoverview added by tsickle
2868
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2869
+ */
2870
+ var RouteParameterSanitiser = /** @class */ (function () {
2871
+ function RouteParameterSanitiser(parameterDefs, injector) {
2872
+ this.parameterDefs = parameterDefs;
2873
+ this.injector = injector;
2874
+ this.sanitisedParameters = [];
2875
+ this.routeParameter = parameterDefs.find((/**
2876
+ * @param {?} p
2877
+ * @return {?}
2878
+ */
2879
+ function (p) { return p.isRouteId; }));
2880
+ this.queryParameters = parameterDefs.filter((/**
2881
+ * @param {?} p
2882
+ * @return {?}
2883
+ */
2884
+ function (p) { return !p.isRouteId; }));
2885
+ }
2886
+ /**
2887
+ * @param {?} snapshot
2888
+ * @return {?}
2889
+ */
2890
+ RouteParameterSanitiser.prototype.sanitise = /**
2891
+ * @param {?} snapshot
2892
+ * @return {?}
2893
+ */
2894
+ function (snapshot) {
2895
+ return __awaiter(this, void 0, void 0, function () {
2896
+ var e_1, _a, routeOk, _b, _c, param, e_1_1;
2897
+ return __generator(this, function (_d) {
2898
+ switch (_d.label) {
2899
+ case 0:
2900
+ if (!this.routeParameter) return [3 /*break*/, 2];
2901
+ return [4 /*yield*/, this.sanitiseParameter(this.routeParameter, snapshot.paramMap.get(this.routeParameter.name))];
2902
+ case 1:
2903
+ routeOk = _d.sent();
2904
+ if (!routeOk) {
2905
+ // if the route id isn't ok we redirect immediately as the query params may need to be sanitised in the
2906
+ // context of the route id.
2907
+ return [2 /*return*/, false];
2908
+ }
2909
+ _d.label = 2;
2910
+ case 2:
2911
+ _d.trys.push([2, 7, 8, 9]);
2912
+ _b = __values(this.queryParameters), _c = _b.next();
2913
+ _d.label = 3;
2914
+ case 3:
2915
+ if (!!_c.done) return [3 /*break*/, 6];
2916
+ param = _c.value;
2917
+ return [4 /*yield*/, this.sanitiseParameter(param, snapshot.queryParamMap.get(param.name))];
2918
+ case 4:
2919
+ _d.sent();
2920
+ _d.label = 5;
2921
+ case 5:
2922
+ _c = _b.next();
2923
+ return [3 /*break*/, 3];
2924
+ case 6: return [3 /*break*/, 9];
2925
+ case 7:
2926
+ e_1_1 = _d.sent();
2927
+ e_1 = { error: e_1_1 };
2928
+ return [3 /*break*/, 9];
2929
+ case 8:
2930
+ try {
2931
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2932
+ }
2933
+ finally { if (e_1) throw e_1.error; }
2934
+ return [7 /*endfinally*/];
2935
+ case 9: return [2 /*return*/, this.sanitisedParameters.length === 0];
2936
+ }
2937
+ });
2938
+ });
2939
+ };
2940
+ /**
2941
+ * @template T
2942
+ * @param {?} def
2943
+ * @param {?} formattedInitialValue
2944
+ * @return {?}
2945
+ */
2946
+ RouteParameterSanitiser.prototype.sanitiseParameter = /**
2947
+ * @template T
2948
+ * @param {?} def
2949
+ * @param {?} formattedInitialValue
2950
+ * @return {?}
2951
+ */
2952
+ function (def, formattedInitialValue) {
2953
+ return __awaiter(this, void 0, void 0, function () {
2954
+ var sanitiser, initialValue, sanitisedValue;
2955
+ return __generator(this, function (_a) {
2956
+ switch (_a.label) {
2957
+ case 0:
2958
+ if (!def) return [3 /*break*/, 2];
2959
+ sanitiser = this.getSanitiser(def);
2960
+ if (!sanitiser) return [3 /*break*/, 2];
2961
+ initialValue = def.type.parse(formattedInitialValue);
2962
+ return [4 /*yield*/, sanitiser.sanitise(initialValue)];
2963
+ case 1:
2964
+ sanitisedValue = _a.sent();
2965
+ if (initialValue !== sanitisedValue) {
2966
+ this.sanitisedParameters.push({ def: def, value: def.type.format(sanitisedValue) });
2967
+ return [2 /*return*/, false];
2968
+ }
2969
+ _a.label = 2;
2970
+ case 2: return [2 /*return*/, true];
2971
+ }
2972
+ });
2973
+ });
2974
+ };
2975
+ /**
2976
+ * @param {?} router
2977
+ * @return {?}
2978
+ */
2979
+ RouteParameterSanitiser.prototype.redirect = /**
2980
+ * @param {?} router
2981
+ * @return {?}
2982
+ */
2983
+ function (router) {
2984
+ var _this = this;
2985
+ pectin.assert.isTruthy(this.sanitisedParameters.length !== 0);
2986
+ /** @type {?} */
2987
+ var sanitisedRouteId = this.sanitisedParameters.find((/**
2988
+ * @param {?} s
2989
+ * @return {?}
2990
+ */
2991
+ function (s) { return s.def === _this.routeParameter; }));
2992
+ if (sanitisedRouteId) {
2993
+ return router.navigate(['..', sanitisedRouteId.value]);
2994
+ }
2995
+ else {
2996
+ /** @type {?} */
2997
+ var queryParams = this.sanitisedParameters.filter((/**
2998
+ * @param {?} s
2999
+ * @return {?}
3000
+ */
3001
+ function (s) { return s.def !== _this.routeParameter; }))
3002
+ .reduce((/**
3003
+ * @param {?} params
3004
+ * @param {?} item
3005
+ * @return {?}
3006
+ */
3007
+ function (params, item) {
3008
+ var _a;
3009
+ return (__assign({}, params, (_a = {}, _a[item.def.name] = item.value, _a)));
3010
+ }), {});
3011
+ return router.navigate(['.', queryParams]);
3012
+ }
3013
+ };
3014
+ /**
3015
+ * @private
3016
+ * @template T
3017
+ * @param {?} def
3018
+ * @return {?}
3019
+ */
3020
+ RouteParameterSanitiser.prototype.getSanitiser = /**
3021
+ * @private
3022
+ * @template T
3023
+ * @param {?} def
3024
+ * @return {?}
3025
+ */
3026
+ function (def) {
3027
+ return def.sanitiser ? this.injector.get(def.sanitiser, new def.sanitiser()) : null;
3028
+ };
3029
+ __decorate([
3030
+ pectin.Trace(),
3031
+ __metadata("design:type", Function),
3032
+ __metadata("design:paramtypes", [Object, String]),
3033
+ __metadata("design:returntype", Promise)
3034
+ ], RouteParameterSanitiser.prototype, "sanitiseParameter", null);
3035
+ __decorate([
3036
+ src.Memoize(),
3037
+ __metadata("design:type", Function),
3038
+ __metadata("design:paramtypes", [Object]),
3039
+ __metadata("design:returntype", Object)
3040
+ ], RouteParameterSanitiser.prototype, "getSanitiser", null);
3041
+ return RouteParameterSanitiser;
3042
+ }());
3043
+ if (false) {
3044
+ /**
3045
+ * @type {?}
3046
+ * @private
3047
+ */
3048
+ RouteParameterSanitiser.prototype.routeParameter;
3049
+ /**
3050
+ * @type {?}
3051
+ * @private
3052
+ */
3053
+ RouteParameterSanitiser.prototype.queryParameters;
3054
+ /**
3055
+ * @type {?}
3056
+ * @private
3057
+ */
3058
+ RouteParameterSanitiser.prototype.sanitisedParameters;
3059
+ /** @type {?} */
3060
+ RouteParameterSanitiser.prototype.parameterDefs;
3061
+ /** @type {?} */
3062
+ RouteParameterSanitiser.prototype.injector;
3063
+ }
3064
+
3065
+ /**
3066
+ * @fileoverview added by tsickle
3067
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3068
+ */
3069
+ var PlaceRouteGuard = /** @class */ (function () {
3070
+ function PlaceRouteGuard(router, injector) {
3071
+ this.router = router;
3072
+ this.injector = injector;
3073
+ }
3074
+ /**
3075
+ * @param {?} route
3076
+ * @param {?} state
3077
+ * @return {?}
3078
+ */
3079
+ PlaceRouteGuard.prototype.canActivate = /**
3080
+ * @param {?} route
3081
+ * @param {?} state
3082
+ * @return {?}
3083
+ */
3084
+ function (route, state) {
3085
+ var _this = this;
3086
+ /** @type {?} */
3087
+ var routeParameters = typescriptUtilities.Klass.get(route.component).getMetadataList(exports.RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY);
3088
+ /** @type {?} */
3089
+ var sanitiser = new RouteParameterSanitiser(routeParameters, this.injector);
3090
+ return sanitiser.sanitise(route).then((/**
3091
+ * @param {?} proceed
3092
+ * @return {?}
3093
+ */
3094
+ function (proceed) {
3095
+ if (!proceed) {
3096
+ sanitiser.redirect(_this.router);
3097
+ }
3098
+ return proceed;
3099
+ }));
3100
+ };
3101
+ PlaceRouteGuard.decorators = [
3102
+ { type: core.Injectable, args: [{
3103
+ providedIn: 'root'
3104
+ },] }
3105
+ ];
3106
+ /** @nocollapse */
3107
+ PlaceRouteGuard.ctorParameters = function () { return [
3108
+ { type: router.Router },
3109
+ { type: core.Injector }
3110
+ ]; };
3111
+ /** @nocollapse */ PlaceRouteGuard.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function PlaceRouteGuard_Factory() { return new PlaceRouteGuard(core.ɵɵinject(router.Router), core.ɵɵinject(core.INJECTOR)); }, token: PlaceRouteGuard, providedIn: "root" });
3112
+ __decorate([
3113
+ pectin.Trace(),
3114
+ __metadata("design:type", Function),
3115
+ __metadata("design:paramtypes", [router.ActivatedRouteSnapshot, router.RouterStateSnapshot]),
3116
+ __metadata("design:returntype", Object)
3117
+ ], PlaceRouteGuard.prototype, "canActivate", null);
3118
+ return PlaceRouteGuard;
3119
+ }());
3120
+ if (false) {
3121
+ /**
3122
+ * @type {?}
3123
+ * @private
3124
+ */
3125
+ PlaceRouteGuard.prototype.router;
3126
+ /**
3127
+ * @type {?}
3128
+ * @private
3129
+ */
3130
+ PlaceRouteGuard.prototype.injector;
3131
+ }
3132
+
3133
+ /**
3134
+ * @fileoverview added by tsickle
3135
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3136
+ */
3137
+ /**
3138
+ * @record
3139
+ */
3140
+ function JsonArray() { }
3141
+ /**
3142
+ * @record
3143
+ */
3144
+ function JsonMap() { }
3145
+
3146
+ /**
3147
+ * @fileoverview added by tsickle
3148
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3149
+ */
3150
+ /**
3151
+ * @record
3152
+ * @template T
3153
+ */
3154
+ function ParameterOptions() { }
3155
+ if (false) {
3156
+ /** @type {?|undefined} */
3157
+ ParameterOptions.prototype.as;
3158
+ /** @type {?|undefined} */
3159
+ ParameterOptions.prototype.sanitiser;
3160
+ }
3161
+ /**
3162
+ * @template T
3163
+ * @param {?} type
3164
+ * @param {?=} options
3165
+ * @return {?}
3166
+ */
3167
+ function RouteId(type, options) {
3168
+ // assert.isTruthy(type.isValid());
3169
+ return (/**
3170
+ * @param {?} prototype
3171
+ * @param {?} propertyKey
3172
+ * @return {?}
3173
+ */
3174
+ function (prototype, propertyKey) {
3175
+ /** @type {?} */
3176
+ var param = createDefinition(propertyKey, type, options, true);
3177
+ typescriptUtilities.Klass.get(prototype).addToOwnMetadataList(exports.RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY, param);
3178
+ pectin.UseDelegate()(prototype, propertyKey);
3179
+ });
3180
+ }
3181
+ /**
3182
+ * @template T
3183
+ * @param {?} type
3184
+ * @param {?=} options
3185
+ * @return {?}
3186
+ */
3187
+ function QueryParameter(type, options) {
3188
+ // assert.isTruthy(type.isValid());
3189
+ return (/**
3190
+ * @param {?} prototype
3191
+ * @param {?} propertyKey
3192
+ * @return {?}
3193
+ */
3194
+ function (prototype, propertyKey) {
3195
+ /** @type {?} */
3196
+ var param = createDefinition(propertyKey, type, options, false);
3197
+ typescriptUtilities.Klass.get(prototype).addToOwnMetadataList(exports.RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY, param);
3198
+ pectin.UseDelegate()(prototype, propertyKey);
3199
+ });
3200
+ }
3201
+ /**
3202
+ * @template T
3203
+ * @param {?} propertyName
3204
+ * @param {?} type
3205
+ * @param {?} options
3206
+ * @param {?} routeId
3207
+ * @return {?}
3208
+ */
3209
+ function createDefinition(propertyName, type, options, routeId) {
3210
+ /** @type {?} */
3211
+ var opts = typescriptUtilities.Opts.get(options);
3212
+ /** @type {?} */
3213
+ var propertyNameAsString = pectin.assert.notNil(propertyName).toString();
3214
+ /** @type {?} */
3215
+ var def = {
3216
+ name: opts.getOptional('as', propertyNameAsString),
3217
+ propertyName: propertyNameAsString,
3218
+ type: pectin.assert.notNil(type),
3219
+ sanitiser: opts.getOptional('sanitiser', null),
3220
+ isRouteId: routeId
3221
+ };
3222
+ return def;
3223
+ }
3224
+
3225
+ /**
3226
+ * @fileoverview added by tsickle
3227
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3228
+ */
3229
+ /**
3230
+ * @record
3231
+ * @template T
3232
+ */
3233
+ function ParameterDefinition() { }
3234
+ if (false) {
3235
+ /** @type {?} */
3236
+ ParameterDefinition.prototype.name;
3237
+ /** @type {?} */
3238
+ ParameterDefinition.prototype.propertyName;
3239
+ /** @type {?} */
3240
+ ParameterDefinition.prototype.type;
3241
+ /** @type {?} */
3242
+ ParameterDefinition.prototype.sanitiser;
3243
+ /** @type {?} */
3244
+ ParameterDefinition.prototype.isRouteId;
3245
+ }
3246
+
3247
+ /**
3248
+ * @fileoverview added by tsickle
3249
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3250
+ */
3251
+ /**
3252
+ * @record
3253
+ * @template T
3254
+ */
3255
+ function ParameterSanitiser() { }
3256
+ if (false) {
3257
+ /**
3258
+ * @param {?} value
3259
+ * @return {?}
3260
+ */
3261
+ ParameterSanitiser.prototype.sanitise = function (value) { };
3262
+ }
3263
+
3264
+ /**
3265
+ * @fileoverview added by tsickle
3266
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3267
+ */
3268
+ // WARNING: interface has both a type and a value, skipping emit
3269
+
3270
+ (function (ParameterType) {
3271
+ var StringType = /** @class */ (function () {
3272
+ function StringType() {
3273
+ }
3274
+ /**
3275
+ * @param {?} value
3276
+ * @return {?}
3277
+ */
3278
+ StringType.prototype.format = /**
3279
+ * @param {?} value
3280
+ * @return {?}
3281
+ */
3282
+ function (value) {
3283
+ return value;
3284
+ };
3285
+ /**
3286
+ * @param {?} value
3287
+ * @return {?}
3288
+ */
3289
+ StringType.prototype.parse = /**
3290
+ * @param {?} value
3291
+ * @return {?}
3292
+ */
3293
+ function (value) {
3294
+ return value;
3295
+ };
3296
+ return StringType;
3297
+ }());
3298
+ var NumberType = /** @class */ (function () {
3299
+ function NumberType() {
3300
+ }
3301
+ /**
3302
+ * @param {?} value
3303
+ * @return {?}
3304
+ */
3305
+ NumberType.prototype.format = /**
3306
+ * @param {?} value
3307
+ * @return {?}
3308
+ */
3309
+ function (value) {
3310
+ return "" + value;
3311
+ };
3312
+ /**
3313
+ * @param {?} value
3314
+ * @return {?}
3315
+ */
3316
+ NumberType.prototype.parse = /**
3317
+ * @param {?} value
3318
+ * @return {?}
3319
+ */
3320
+ function (value) {
3321
+ return +value;
3322
+ };
3323
+ return NumberType;
3324
+ }());
3325
+ ParameterType.STRING = new StringType();
3326
+ ParameterType.NUMBER = new NumberType();
3327
+ })(exports.ParameterType || (exports.ParameterType = {}));
3328
+
3329
+ exports.ACTIVITY_DATA = ACTIVITY_DATA;
3330
+ exports.AbstractActivity = AbstractActivity;
3331
+ exports.AbstractInputComponent = AbstractInputComponent;
3332
+ exports.AbstractPlaceComponent = AbstractPlaceComponent;
3333
+ exports.AlertDialogComponent = AlertDialogComponent;
3334
+ exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
3335
+ exports.BusyOverlayComponent = BusyOverlayComponent;
3336
+ exports.CommandDirective = CommandDirective;
3337
+ exports.ConfirmationDialogComponent = ConfirmationDialogComponent;
3338
+ exports.DialogInteractionService = DialogInteractionService;
3339
+ exports.Dimension = Dimension;
3340
+ exports.DisposableComponent = DisposableComponent;
3341
+ exports.EmptyStateComponent = EmptyStateComponent;
3342
+ exports.FocusBindingDirective = FocusBindingDirective;
3343
+ exports.INTERACTION_CONTEXT = INTERACTION_CONTEXT;
3344
+ exports.InteractionContext = InteractionContext;
3345
+ exports.InteractionModule = InteractionModule;
3346
+ exports.LeavePlaceGuard = LeavePlaceGuard;
3347
+ exports.NumberInputComponent = NumberInputComponent;
3348
+ exports.PasswordInputComponent = PasswordInputComponent;
3349
+ exports.Place = Place;
3350
+ exports.PlaceModule = PlaceModule;
3351
+ exports.PlaceOutletComponent = PlaceOutletComponent;
3352
+ exports.PlaceRouteGuard = PlaceRouteGuard;
3353
+ exports.PlaceService = PlaceService;
3354
+ exports.Point = Point;
3355
+ exports.QueryParameter = QueryParameter;
3356
+ exports.ResizeAwareComponent = ResizeAwareComponent;
3357
+ exports.RouteId = RouteId;
3358
+ exports.RouteParameterSanitiser = RouteParameterSanitiser;
3359
+ exports.SelectInputComponent = SelectInputComponent;
3360
+ exports.StringInputComponent = StringInputComponent;
3361
+ exports.ɵa = CommandDirective;
3362
+ exports.ɵb = FocusBindingDirective;
3363
+ exports.ɵc = DisposableComponent;
3364
+ exports.ɵd = NumberInputComponent;
3365
+ exports.ɵe = AbstractInputComponent;
3366
+ exports.ɵf = StringInputComponent;
3367
+ exports.ɵg = PasswordInputComponent;
3368
+ exports.ɵh = SelectInputComponent;
3369
+
3370
+ Object.defineProperty(exports, '__esModule', { value: true });
3371
+
3372
+ }));
3373
+ //# sourceMappingURL=coolon-angular-ui-powerups.umd.js.map