@rxap/window-system 12.1.0 → 13.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/index.mjs +17 -0
- package/esm2020/lib/default-window/default-window.component.mjs +13 -0
- package/esm2020/lib/tokens.mjs +8 -0
- package/esm2020/lib/utilities.mjs +24 -0
- package/esm2020/lib/window-action-bar/window-action-bar.component.mjs +28 -0
- package/esm2020/lib/window-config.mjs +11 -0
- package/esm2020/lib/window-container/window-container.component.mjs +85 -0
- package/esm2020/lib/window-content/window-content.component.mjs +74 -0
- package/esm2020/lib/window-context.mjs +2 -0
- package/esm2020/lib/window-footer.directive.mjs +57 -0
- package/esm2020/lib/window-ref.mjs +162 -0
- package/esm2020/lib/window-resizer/window-resizer.component.mjs +79 -0
- package/esm2020/lib/window-system.module.mjs +92 -0
- package/esm2020/lib/window-task-bar/window-task/window-task.component.mjs +33 -0
- package/esm2020/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +39 -0
- package/esm2020/lib/window-task-bar/window-task-bar.component.mjs +35 -0
- package/esm2020/lib/window-task-bar/window-task-bar.module.mjs +52 -0
- package/esm2020/lib/window-title.directive.mjs +57 -0
- package/esm2020/lib/window-tool-bar/window-tool-bar.component.mjs +25 -0
- package/esm2020/lib/window.service.mjs +163 -0
- package/esm2020/rxap-window-system.mjs +5 -0
- package/fesm2015/rxap-window-system.mjs +933 -0
- package/fesm2015/rxap-window-system.mjs.map +1 -0
- package/{fesm2015/rxap-window-system.js → fesm2020/rxap-window-system.mjs} +90 -126
- package/fesm2020/rxap-window-system.mjs.map +1 -0
- package/package.json +38 -24
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-window-system.umd.js +0 -1384
- package/bundles/rxap-window-system.umd.js.map +0 -1
- package/esm2015/index.js +0 -17
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/default-window/default-window.component.js +0 -18
- package/esm2015/lib/default-window/default-window.component.js.map +0 -1
- package/esm2015/lib/tokens.js +0 -8
- package/esm2015/lib/tokens.js.map +0 -1
- package/esm2015/lib/utilities.js +0 -24
- package/esm2015/lib/utilities.js.map +0 -1
- package/esm2015/lib/window-action-bar/window-action-bar.component.js +0 -32
- package/esm2015/lib/window-action-bar/window-action-bar.component.js.map +0 -1
- package/esm2015/lib/window-config.js +0 -11
- package/esm2015/lib/window-config.js.map +0 -1
- package/esm2015/lib/window-container/window-container.component.js +0 -91
- package/esm2015/lib/window-container/window-container.component.js.map +0 -1
- package/esm2015/lib/window-content/window-content.component.js +0 -79
- package/esm2015/lib/window-content/window-content.component.js.map +0 -1
- package/esm2015/lib/window-context.js +0 -2
- package/esm2015/lib/window-context.js.map +0 -1
- package/esm2015/lib/window-footer.directive.js +0 -57
- package/esm2015/lib/window-footer.directive.js.map +0 -1
- package/esm2015/lib/window-ref.js +0 -157
- package/esm2015/lib/window-ref.js.map +0 -1
- package/esm2015/lib/window-resizer/window-resizer.component.js +0 -84
- package/esm2015/lib/window-resizer/window-resizer.component.js.map +0 -1
- package/esm2015/lib/window-system.module.js +0 -95
- package/esm2015/lib/window-system.module.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task/window-task.component.js +0 -38
- package/esm2015/lib/window-task-bar/window-task/window-task.component.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.js +0 -43
- package/esm2015/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task-bar.component.js +0 -40
- package/esm2015/lib/window-task-bar/window-task-bar.component.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task-bar.module.js +0 -53
- package/esm2015/lib/window-task-bar/window-task-bar.module.js.map +0 -1
- package/esm2015/lib/window-title.directive.js +0 -57
- package/esm2015/lib/window-title.directive.js.map +0 -1
- package/esm2015/lib/window-tool-bar/window-tool-bar.component.js +0 -30
- package/esm2015/lib/window-tool-bar/window-tool-bar.component.js.map +0 -1
- package/esm2015/lib/window.service.js +0 -156
- package/esm2015/lib/window.service.js.map +0 -1
- package/esm2015/rxap-window-system.js +0 -5
- package/esm2015/rxap-window-system.js.map +0 -1
- package/fesm2015/rxap-window-system.js.map +0 -1
|
@@ -1,1384 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/toolbar'), require('rxjs'), require('rxjs/operators'), require('@rxap/utilities'), require('@angular/flex-layout/extended'), require('@angular/common'), require('@rxap/services'), require('@angular/flex-layout/flex'), require('@angular/cdk/portal'), require('@rxap/material-directives/icon'), require('@angular/material/progress-bar'), require('@angular/cdk/drag-drop'), require('@angular/flex-layout'), require('@rxap/utilities/rxjs'), require('@angular/cdk/overlay'), require('@rxap/components'), require('uuid'), require('@rxap/directives'), require('@angular/material/badge')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@rxap/window-system', ['exports', '@angular/core', '@angular/material/button', '@angular/material/icon', '@angular/material/toolbar', 'rxjs', 'rxjs/operators', '@rxap/utilities', '@angular/flex-layout/extended', '@angular/common', '@rxap/services', '@angular/flex-layout/flex', '@angular/cdk/portal', '@rxap/material-directives/icon', '@angular/material/progress-bar', '@angular/cdk/drag-drop', '@angular/flex-layout', '@rxap/utilities/rxjs', '@angular/cdk/overlay', '@rxap/components', 'uuid', '@rxap/directives', '@angular/material/badge'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap['window-system'] = {}), global.ng.core, global.ng.material.button, global.ng.material.icon, global.ng.material.toolbar, global.rxjs, global.rxjs.operators, global.utilities, global.ng.flexLayout.extended, global.ng.common, global.i1$1, global.ng.flexLayout.flex, global.ng.cdk.portal, global.i7, global.ng.material.progressBar, global.ng.cdk.dragDrop, global.ng.flexLayout, global.rxjs$1, global.ng.cdk.overlay, global.i1$2, global.uuid, global.i7$1, global.ng.material.badge));
|
|
5
|
-
}(this, (function (exports, i0, i3$1, i1, i3, rxjs, operators, utilities, i2, i8, i1$1, i4, i6, i7, i3$2, i5, flexLayout, rxjs$1, i1$3, i1$2, uuid, i7$1, i7$2) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
29
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
31
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
32
|
-
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
33
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
34
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
35
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
36
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
37
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
38
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
39
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
40
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
41
|
-
var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
|
|
42
|
-
var i7__namespace$2 = /*#__PURE__*/_interopNamespace(i7$2);
|
|
43
|
-
|
|
44
|
-
var RXAP_WINDOW_CONTEXT = new i0.InjectionToken('rxap/core/window/WINDOW_CONTEXT');
|
|
45
|
-
var RXAP_WINDOW_DATA = new i0.InjectionToken('rxap/core/window/WINDOW_DATA');
|
|
46
|
-
var RXAP_WINDOW_CONTAINER_CONTEXT = new i0.InjectionToken('rxap/core/window/WINDOW_CONTAINER_CONTEXT');
|
|
47
|
-
var RXAP_WINDOW_REF = new i0.InjectionToken('rxap/window-system/WINDOW_REF');
|
|
48
|
-
var RXAP_WINDOW_SETTINGS = new i0.InjectionToken('rxap/window-system/window-settings');
|
|
49
|
-
var RXAP_WINDOW_DEFAULT_SETTINGS = new i0.InjectionToken('rxap/window-system/default-window-settings');
|
|
50
|
-
|
|
51
|
-
/*! *****************************************************************************
|
|
52
|
-
Copyright (c) Microsoft Corporation.
|
|
53
|
-
|
|
54
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
55
|
-
purpose with or without fee is hereby granted.
|
|
56
|
-
|
|
57
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
58
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
59
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
60
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
61
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
62
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
63
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
64
|
-
***************************************************************************** */
|
|
65
|
-
/* global Reflect, Promise */
|
|
66
|
-
var extendStatics = function (d, b) {
|
|
67
|
-
extendStatics = Object.setPrototypeOf ||
|
|
68
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
69
|
-
function (d, b) { for (var p in b)
|
|
70
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
71
|
-
d[p] = b[p]; };
|
|
72
|
-
return extendStatics(d, b);
|
|
73
|
-
};
|
|
74
|
-
function __extends(d, b) {
|
|
75
|
-
if (typeof b !== "function" && b !== null)
|
|
76
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
77
|
-
extendStatics(d, b);
|
|
78
|
-
function __() { this.constructor = d; }
|
|
79
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80
|
-
}
|
|
81
|
-
var __assign = function () {
|
|
82
|
-
__assign = Object.assign || function __assign(t) {
|
|
83
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
84
|
-
s = arguments[i];
|
|
85
|
-
for (var p in s)
|
|
86
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
87
|
-
t[p] = s[p];
|
|
88
|
-
}
|
|
89
|
-
return t;
|
|
90
|
-
};
|
|
91
|
-
return __assign.apply(this, arguments);
|
|
92
|
-
};
|
|
93
|
-
function __rest(s, e) {
|
|
94
|
-
var t = {};
|
|
95
|
-
for (var p in s)
|
|
96
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
97
|
-
t[p] = s[p];
|
|
98
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
99
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
100
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
101
|
-
t[p[i]] = s[p[i]];
|
|
102
|
-
}
|
|
103
|
-
return t;
|
|
104
|
-
}
|
|
105
|
-
function __decorate(decorators, target, key, desc) {
|
|
106
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
107
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
108
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
109
|
-
else
|
|
110
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
111
|
-
if (d = decorators[i])
|
|
112
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
113
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
114
|
-
}
|
|
115
|
-
function __param(paramIndex, decorator) {
|
|
116
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
117
|
-
}
|
|
118
|
-
function __metadata(metadataKey, metadataValue) {
|
|
119
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
120
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
121
|
-
}
|
|
122
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
123
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
124
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
125
|
-
function fulfilled(value) { try {
|
|
126
|
-
step(generator.next(value));
|
|
127
|
-
}
|
|
128
|
-
catch (e) {
|
|
129
|
-
reject(e);
|
|
130
|
-
} }
|
|
131
|
-
function rejected(value) { try {
|
|
132
|
-
step(generator["throw"](value));
|
|
133
|
-
}
|
|
134
|
-
catch (e) {
|
|
135
|
-
reject(e);
|
|
136
|
-
} }
|
|
137
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
138
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function __generator(thisArg, body) {
|
|
142
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
143
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
144
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
145
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
146
|
-
function step(op) {
|
|
147
|
-
if (f)
|
|
148
|
-
throw new TypeError("Generator is already executing.");
|
|
149
|
-
while (_)
|
|
150
|
-
try {
|
|
151
|
-
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)
|
|
152
|
-
return t;
|
|
153
|
-
if (y = 0, t)
|
|
154
|
-
op = [op[0] & 2, t.value];
|
|
155
|
-
switch (op[0]) {
|
|
156
|
-
case 0:
|
|
157
|
-
case 1:
|
|
158
|
-
t = op;
|
|
159
|
-
break;
|
|
160
|
-
case 4:
|
|
161
|
-
_.label++;
|
|
162
|
-
return { value: op[1], done: false };
|
|
163
|
-
case 5:
|
|
164
|
-
_.label++;
|
|
165
|
-
y = op[1];
|
|
166
|
-
op = [0];
|
|
167
|
-
continue;
|
|
168
|
-
case 7:
|
|
169
|
-
op = _.ops.pop();
|
|
170
|
-
_.trys.pop();
|
|
171
|
-
continue;
|
|
172
|
-
default:
|
|
173
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
174
|
-
_ = 0;
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
178
|
-
_.label = op[1];
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
182
|
-
_.label = t[1];
|
|
183
|
-
t = op;
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
if (t && _.label < t[2]) {
|
|
187
|
-
_.label = t[2];
|
|
188
|
-
_.ops.push(op);
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
if (t[2])
|
|
192
|
-
_.ops.pop();
|
|
193
|
-
_.trys.pop();
|
|
194
|
-
continue;
|
|
195
|
-
}
|
|
196
|
-
op = body.call(thisArg, _);
|
|
197
|
-
}
|
|
198
|
-
catch (e) {
|
|
199
|
-
op = [6, e];
|
|
200
|
-
y = 0;
|
|
201
|
-
}
|
|
202
|
-
finally {
|
|
203
|
-
f = t = 0;
|
|
204
|
-
}
|
|
205
|
-
if (op[0] & 5)
|
|
206
|
-
throw op[1];
|
|
207
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
211
|
-
if (k2 === undefined)
|
|
212
|
-
k2 = k;
|
|
213
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
214
|
-
}) : (function (o, m, k, k2) {
|
|
215
|
-
if (k2 === undefined)
|
|
216
|
-
k2 = k;
|
|
217
|
-
o[k2] = m[k];
|
|
218
|
-
});
|
|
219
|
-
function __exportStar(m, o) {
|
|
220
|
-
for (var p in m)
|
|
221
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
222
|
-
__createBinding(o, m, p);
|
|
223
|
-
}
|
|
224
|
-
function __values(o) {
|
|
225
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
226
|
-
if (m)
|
|
227
|
-
return m.call(o);
|
|
228
|
-
if (o && typeof o.length === "number")
|
|
229
|
-
return {
|
|
230
|
-
next: function () {
|
|
231
|
-
if (o && i >= o.length)
|
|
232
|
-
o = void 0;
|
|
233
|
-
return { value: o && o[i++], done: !o };
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
237
|
-
}
|
|
238
|
-
function __read(o, n) {
|
|
239
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
240
|
-
if (!m)
|
|
241
|
-
return o;
|
|
242
|
-
var i = m.call(o), r, ar = [], e;
|
|
243
|
-
try {
|
|
244
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
245
|
-
ar.push(r.value);
|
|
246
|
-
}
|
|
247
|
-
catch (error) {
|
|
248
|
-
e = { error: error };
|
|
249
|
-
}
|
|
250
|
-
finally {
|
|
251
|
-
try {
|
|
252
|
-
if (r && !r.done && (m = i["return"]))
|
|
253
|
-
m.call(i);
|
|
254
|
-
}
|
|
255
|
-
finally {
|
|
256
|
-
if (e)
|
|
257
|
-
throw e.error;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return ar;
|
|
261
|
-
}
|
|
262
|
-
/** @deprecated */
|
|
263
|
-
function __spread() {
|
|
264
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
265
|
-
ar = ar.concat(__read(arguments[i]));
|
|
266
|
-
return ar;
|
|
267
|
-
}
|
|
268
|
-
/** @deprecated */
|
|
269
|
-
function __spreadArrays() {
|
|
270
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
271
|
-
s += arguments[i].length;
|
|
272
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
273
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
274
|
-
r[k] = a[j];
|
|
275
|
-
return r;
|
|
276
|
-
}
|
|
277
|
-
function __spreadArray(to, from) {
|
|
278
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
279
|
-
to[j] = from[i];
|
|
280
|
-
return to;
|
|
281
|
-
}
|
|
282
|
-
function __await(v) {
|
|
283
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
284
|
-
}
|
|
285
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
286
|
-
if (!Symbol.asyncIterator)
|
|
287
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
288
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
289
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
290
|
-
function verb(n) { if (g[n])
|
|
291
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
292
|
-
function resume(n, v) { try {
|
|
293
|
-
step(g[n](v));
|
|
294
|
-
}
|
|
295
|
-
catch (e) {
|
|
296
|
-
settle(q[0][3], e);
|
|
297
|
-
} }
|
|
298
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
299
|
-
function fulfill(value) { resume("next", value); }
|
|
300
|
-
function reject(value) { resume("throw", value); }
|
|
301
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
302
|
-
resume(q[0][0], q[0][1]); }
|
|
303
|
-
}
|
|
304
|
-
function __asyncDelegator(o) {
|
|
305
|
-
var i, p;
|
|
306
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
307
|
-
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; }
|
|
308
|
-
}
|
|
309
|
-
function __asyncValues(o) {
|
|
310
|
-
if (!Symbol.asyncIterator)
|
|
311
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
312
|
-
var m = o[Symbol.asyncIterator], i;
|
|
313
|
-
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);
|
|
314
|
-
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); }); }; }
|
|
315
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
316
|
-
}
|
|
317
|
-
function __makeTemplateObject(cooked, raw) {
|
|
318
|
-
if (Object.defineProperty) {
|
|
319
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
cooked.raw = raw;
|
|
323
|
-
}
|
|
324
|
-
return cooked;
|
|
325
|
-
}
|
|
326
|
-
;
|
|
327
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
328
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
329
|
-
}) : function (o, v) {
|
|
330
|
-
o["default"] = v;
|
|
331
|
-
};
|
|
332
|
-
function __importStar(mod) {
|
|
333
|
-
if (mod && mod.__esModule)
|
|
334
|
-
return mod;
|
|
335
|
-
var result = {};
|
|
336
|
-
if (mod != null)
|
|
337
|
-
for (var k in mod)
|
|
338
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
339
|
-
__createBinding(result, mod, k);
|
|
340
|
-
__setModuleDefault(result, mod);
|
|
341
|
-
return result;
|
|
342
|
-
}
|
|
343
|
-
function __importDefault(mod) {
|
|
344
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
345
|
-
}
|
|
346
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
347
|
-
if (kind === "a" && !f)
|
|
348
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
349
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
350
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
351
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
352
|
-
}
|
|
353
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
354
|
-
if (kind === "m")
|
|
355
|
-
throw new TypeError("Private method is not writable");
|
|
356
|
-
if (kind === "a" && !f)
|
|
357
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
358
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
359
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
360
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
var WindowResizerComponent = /** @class */ (function () {
|
|
364
|
-
function WindowResizerComponent(context) {
|
|
365
|
-
this.width$ = new i0.EventEmitter();
|
|
366
|
-
this.height$ = new i0.EventEmitter();
|
|
367
|
-
this.resizing$ = new i0.EventEmitter();
|
|
368
|
-
this._subscription = new rxjs.Subscription();
|
|
369
|
-
this.windowRef = context.windowRef;
|
|
370
|
-
}
|
|
371
|
-
WindowResizerComponent.prototype.ngOnDestroy = function () {
|
|
372
|
-
this._subscription.unsubscribe();
|
|
373
|
-
};
|
|
374
|
-
WindowResizerComponent.prototype.ngOnInit = function () {
|
|
375
|
-
var _this = this;
|
|
376
|
-
var originalMouseX = 0;
|
|
377
|
-
var originalMouseY = 0;
|
|
378
|
-
var originalWidth = 0;
|
|
379
|
-
var originalHeight = 0;
|
|
380
|
-
this._subscription.add(rxjs.fromEvent(this.resizerRef.nativeElement, 'mousedown').pipe(operators.tap(function (event) {
|
|
381
|
-
_this.resizing$.emit(true);
|
|
382
|
-
originalMouseX = event.pageX;
|
|
383
|
-
originalMouseY = event.pageY;
|
|
384
|
-
originalWidth = parseFloat(getComputedStyle(_this.containerRef.nativeElement, null)
|
|
385
|
-
.getPropertyValue('width')
|
|
386
|
-
.replace('px', ''));
|
|
387
|
-
originalHeight = parseFloat(getComputedStyle(_this.containerRef.nativeElement, null)
|
|
388
|
-
.getPropertyValue('height')
|
|
389
|
-
.replace('px', ''));
|
|
390
|
-
}), operators.switchMap(function () { return rxjs.fromEvent(window, 'mousemove').pipe(operators.takeUntil(rxjs.fromEvent(window, 'mouseup')), operators.map(function (event) { return ({
|
|
391
|
-
width: originalWidth + (event.pageX - originalMouseX),
|
|
392
|
-
height: originalHeight + (event.pageY - originalMouseY)
|
|
393
|
-
}); }), operators.filter(function (size) { return (Number(_this.windowRef.getSizeConfig().minHeight) || 0) <=
|
|
394
|
-
size.height &&
|
|
395
|
-
(Number(_this.windowRef.getSizeConfig().minWidth) || 0) <=
|
|
396
|
-
size.width; }), operators.map(function (size) { return ({ width: size.width + 'px', height: size.height + 'px' }); }), operators.tap(function (size) {
|
|
397
|
-
_this.width$.emit(size.width);
|
|
398
|
-
_this.height$.emit(size.height);
|
|
399
|
-
}), operators.tap(function (size) {
|
|
400
|
-
_this.windowRef.setHeight(size.height);
|
|
401
|
-
_this.windowRef.setWidth(size.width);
|
|
402
|
-
}), operators.finalize(function () { return _this.resizing$.emit(false); })); })).subscribe());
|
|
403
|
-
};
|
|
404
|
-
return WindowResizerComponent;
|
|
405
|
-
}());
|
|
406
|
-
WindowResizerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
407
|
-
WindowResizerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowResizerComponent, selector: "rxap-window-resizer", inputs: { containerRef: "containerRef" }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div #resizer class=\"resizer\">\n <mat-icon [fxShow]=\"resizing$ | async\">texture</mat-icon>\n</div>\n", styles: [".resizer,:host{position:absolute;top:auto;left:auto;right:0;bottom:0;width:24px;height:24px;cursor:nwse-resize;z-index:100}"], components: [{ type: i1__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }], pipes: { "async": i8__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
408
|
-
__decorate([
|
|
409
|
-
utilities.Required,
|
|
410
|
-
__metadata("design:type", i0.ElementRef)
|
|
411
|
-
], WindowResizerComponent.prototype, "containerRef", void 0);
|
|
412
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowResizerComponent, decorators: [{
|
|
413
|
-
type: i0.Component,
|
|
414
|
-
args: [{
|
|
415
|
-
selector: 'rxap-window-resizer',
|
|
416
|
-
templateUrl: './window-resizer.component.html',
|
|
417
|
-
styleUrls: ['./window-resizer.component.scss'],
|
|
418
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
419
|
-
}]
|
|
420
|
-
}], ctorParameters: function () {
|
|
421
|
-
return [{ type: undefined, decorators: [{
|
|
422
|
-
type: i0.Inject,
|
|
423
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
424
|
-
}] }];
|
|
425
|
-
}, propDecorators: { containerRef: [{
|
|
426
|
-
type: i0.Input
|
|
427
|
-
}], resizerRef: [{
|
|
428
|
-
type: i0.ViewChild,
|
|
429
|
-
args: ['resizer', { static: true }]
|
|
430
|
-
}], width$: [{
|
|
431
|
-
type: i0.Output,
|
|
432
|
-
args: ['width']
|
|
433
|
-
}], height$: [{
|
|
434
|
-
type: i0.Output,
|
|
435
|
-
args: ['height']
|
|
436
|
-
}], resizing$: [{
|
|
437
|
-
type: i0.Output,
|
|
438
|
-
args: ['resizing']
|
|
439
|
-
}] } });
|
|
440
|
-
|
|
441
|
-
var WindowToolBarComponent = /** @class */ (function () {
|
|
442
|
-
function WindowToolBarComponent(context) {
|
|
443
|
-
this.windowRef = context.windowRef;
|
|
444
|
-
}
|
|
445
|
-
return WindowToolBarComponent;
|
|
446
|
-
}());
|
|
447
|
-
WindowToolBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
448
|
-
WindowToolBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowToolBarComponent, selector: "rxap-window-tool-bar", ngImport: i0__namespace, template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"1.5rem\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1.0rem\">\n <ng-template [ngIf]=\"windowRef.titlePortal$ | async\" [ngIfElse]=\"titleFromSettings\" let-titlePortal>\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n </ng-template>\n <ng-template #titleFromSettings>\n <ng-template [ngIf]=\"windowRef.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"nogrow\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.settings.minimizable !== false\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n", styles: [":host{width:100%}.header{height:64px}"], components: [{ type: i3__namespace.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i1__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i7__namespace.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], pipes: { "async": i8__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
449
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowToolBarComponent, decorators: [{
|
|
450
|
-
type: i0.Component,
|
|
451
|
-
args: [{
|
|
452
|
-
selector: 'rxap-window-tool-bar',
|
|
453
|
-
templateUrl: './window-tool-bar.component.html',
|
|
454
|
-
styleUrls: ['./window-tool-bar.component.scss'],
|
|
455
|
-
changeDetection: i0.ChangeDetectionStrategy.Default
|
|
456
|
-
}]
|
|
457
|
-
}], ctorParameters: function () {
|
|
458
|
-
return [{ type: undefined, decorators: [{
|
|
459
|
-
type: i0.Inject,
|
|
460
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
461
|
-
}] }];
|
|
462
|
-
} });
|
|
463
|
-
|
|
464
|
-
function GetWindowStartPos() {
|
|
465
|
-
var top = '16px';
|
|
466
|
-
var left = '16px';
|
|
467
|
-
// TODO : remove hack to get a better window starting position
|
|
468
|
-
var rxapLayoutHeaderElements = document.getElementsByClassName('rxap-layout-header');
|
|
469
|
-
if (rxapLayoutHeaderElements) {
|
|
470
|
-
var rxapLayoutHeaderElement = rxapLayoutHeaderElements.item(0);
|
|
471
|
-
if (rxapLayoutHeaderElement && rxapLayoutHeaderElement instanceof HTMLElement) {
|
|
472
|
-
top = (rxapLayoutHeaderElement.offsetHeight + 16) + 'px';
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
var rxapLayoutSidenavs = document.getElementsByClassName('rxap-layout-sidenav');
|
|
476
|
-
if (rxapLayoutSidenavs) {
|
|
477
|
-
var rxapLayoutSidenav = rxapLayoutSidenavs.item(0);
|
|
478
|
-
if (rxapLayoutSidenav && rxapLayoutSidenav instanceof HTMLElement) {
|
|
479
|
-
var container = rxapLayoutSidenav.firstElementChild;
|
|
480
|
-
if (container && container instanceof HTMLElement) {
|
|
481
|
-
left = (container.offsetWidth + 16) + 'px';
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
return { top: top, left: left };
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
var WindowRef = /** @class */ (function (_super) {
|
|
489
|
-
__extends(WindowRef, _super);
|
|
490
|
-
function WindowRef(overlayRef, overlay, settings) {
|
|
491
|
-
var _this = _super.call(this) || this;
|
|
492
|
-
_this.overlayRef = overlayRef;
|
|
493
|
-
_this.overlay = overlay;
|
|
494
|
-
_this.settings = settings;
|
|
495
|
-
_this.width$ = new rxjs.BehaviorSubject(_this.getWidth());
|
|
496
|
-
_this.height$ = new rxjs.BehaviorSubject(_this.getHeight());
|
|
497
|
-
/**
|
|
498
|
-
* @deprecated removed. use the subscribe method and wait for the resolve event
|
|
499
|
-
*/
|
|
500
|
-
_this.closed$ = new rxjs.Subject();
|
|
501
|
-
_this.attachedRef$ = new rxjs.ReplaySubject(1);
|
|
502
|
-
/**
|
|
503
|
-
* stores the window size before fullScreen
|
|
504
|
-
* @internal
|
|
505
|
-
*/
|
|
506
|
-
_this.oldSizes = null;
|
|
507
|
-
/**
|
|
508
|
-
* @internal
|
|
509
|
-
*/
|
|
510
|
-
_this.footerPortal$ = new rxjs.ReplaySubject(1);
|
|
511
|
-
/**
|
|
512
|
-
* @internal
|
|
513
|
-
*/
|
|
514
|
-
_this.titlePortal$ = new rxjs.ReplaySubject(1);
|
|
515
|
-
_this.settings$ = new rxjs.ReplaySubject(1);
|
|
516
|
-
return _this;
|
|
517
|
-
}
|
|
518
|
-
Object.defineProperty(WindowRef.prototype, "isMinimized", {
|
|
519
|
-
get: function () {
|
|
520
|
-
return this.overlayRef.hostElement.style.display === 'none';
|
|
521
|
-
},
|
|
522
|
-
enumerable: false,
|
|
523
|
-
configurable: true
|
|
524
|
-
});
|
|
525
|
-
/**
|
|
526
|
-
* @deprecated removed. use the complete method
|
|
527
|
-
* @param result
|
|
528
|
-
*/
|
|
529
|
-
WindowRef.prototype.close = function (result) {
|
|
530
|
-
this.closed$.next(result);
|
|
531
|
-
if (result !== undefined) {
|
|
532
|
-
this.next(result);
|
|
533
|
-
}
|
|
534
|
-
this.complete();
|
|
535
|
-
};
|
|
536
|
-
WindowRef.prototype.complete = function () {
|
|
537
|
-
this.overlayRef.dispose();
|
|
538
|
-
_super.prototype.complete.call(this);
|
|
539
|
-
};
|
|
540
|
-
WindowRef.prototype.minimize = function () {
|
|
541
|
-
this.overlayRef.hostElement.style.display = 'none';
|
|
542
|
-
};
|
|
543
|
-
WindowRef.prototype.reopen = function () {
|
|
544
|
-
var startPos = GetWindowStartPos();
|
|
545
|
-
this.setPos(startPos.left, startPos.top);
|
|
546
|
-
this.overlayRef.hostElement.style.display = 'flex';
|
|
547
|
-
};
|
|
548
|
-
WindowRef.prototype.getSizeConfig = function () {
|
|
549
|
-
var config = this.overlayRef.getConfig();
|
|
550
|
-
return {
|
|
551
|
-
width: config.width,
|
|
552
|
-
height: config.height,
|
|
553
|
-
minHeight: config.minHeight,
|
|
554
|
-
minWidth: config.minWidth,
|
|
555
|
-
maxHeight: config.maxHeight,
|
|
556
|
-
maxWidth: config.maxWidth
|
|
557
|
-
};
|
|
558
|
-
};
|
|
559
|
-
WindowRef.prototype.setWidth = function (width) {
|
|
560
|
-
this.overlayRef.updateSize(Object.assign(Object.assign({}, this.getSizeConfig()), { width: width }));
|
|
561
|
-
this.width$.next(width);
|
|
562
|
-
};
|
|
563
|
-
WindowRef.prototype.setHeight = function (height) {
|
|
564
|
-
this.overlayRef.updateSize(Object.assign(Object.assign({}, this.getSizeConfig()), { height: height }));
|
|
565
|
-
this.height$.next(height);
|
|
566
|
-
};
|
|
567
|
-
WindowRef.prototype.getWidth = function () {
|
|
568
|
-
// tslint:disable-next-line:no-non-null-assertion
|
|
569
|
-
return this.getSizeConfig().width + '';
|
|
570
|
-
// return this.overlayRef.overlayElement.offsetWidth + 'px'
|
|
571
|
-
};
|
|
572
|
-
WindowRef.prototype.getHeight = function () {
|
|
573
|
-
// tslint:disable-next-line:no-non-null-assertion
|
|
574
|
-
return this.getSizeConfig().height + '';
|
|
575
|
-
// return this.overlayRef.overlayElement.offsetHeight + 'px';
|
|
576
|
-
};
|
|
577
|
-
WindowRef.prototype.setPos = function (x, y) {
|
|
578
|
-
this.overlayRef.updatePositionStrategy(this
|
|
579
|
-
.overlay
|
|
580
|
-
.position()
|
|
581
|
-
.global()
|
|
582
|
-
.top(y)
|
|
583
|
-
.left(x));
|
|
584
|
-
this.overlayRef.updatePosition();
|
|
585
|
-
};
|
|
586
|
-
WindowRef.prototype.getPos = function () {
|
|
587
|
-
var pos = this.overlayRef.overlayElement.getBoundingClientRect();
|
|
588
|
-
return { x: pos.left + 'px', y: pos.top + 'px' };
|
|
589
|
-
};
|
|
590
|
-
WindowRef.prototype.fullScreen = function () {
|
|
591
|
-
if (this.oldSizes === null) {
|
|
592
|
-
this.oldSizes = {
|
|
593
|
-
width: this.overlayRef.overlayElement.offsetWidth + 'px',
|
|
594
|
-
height: this.overlayRef.overlayElement.offsetHeight + 'px',
|
|
595
|
-
pos: this.getPos()
|
|
596
|
-
};
|
|
597
|
-
this.setWidth('100vw');
|
|
598
|
-
this.setHeight('100vh');
|
|
599
|
-
this.setPos('0px', '0px');
|
|
600
|
-
}
|
|
601
|
-
else {
|
|
602
|
-
this.setWidth(this.oldSizes.width);
|
|
603
|
-
this.setHeight(this.oldSizes.height);
|
|
604
|
-
this.setPos(this.oldSizes.pos.x, this.oldSizes.pos.y);
|
|
605
|
-
this.oldSizes = null;
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
/**
|
|
609
|
-
* @param portal
|
|
610
|
-
*/
|
|
611
|
-
WindowRef.prototype.setFooterPortal = function (portal) {
|
|
612
|
-
var _this = this;
|
|
613
|
-
setTimeout(function () {
|
|
614
|
-
_this.footerPortal$.next(portal);
|
|
615
|
-
});
|
|
616
|
-
};
|
|
617
|
-
WindowRef.prototype.setTitlePortal = function (portal) {
|
|
618
|
-
var _this = this;
|
|
619
|
-
setTimeout(function () {
|
|
620
|
-
_this.titlePortal$.next(portal);
|
|
621
|
-
});
|
|
622
|
-
};
|
|
623
|
-
WindowRef.prototype.setAttachedRef = function (attachedRef) {
|
|
624
|
-
if (attachedRef instanceof i0.ComponentRef) {
|
|
625
|
-
this.updateWindowSettings(attachedRef);
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
this.updateWindowSettings();
|
|
629
|
-
}
|
|
630
|
-
this.attachedRef$.next(attachedRef);
|
|
631
|
-
};
|
|
632
|
-
/**
|
|
633
|
-
* Injects the window settings from the component ref injector and overwrites
|
|
634
|
-
* the settings
|
|
635
|
-
* @private
|
|
636
|
-
*/
|
|
637
|
-
WindowRef.prototype.updateWindowSettings = function (componentRef) {
|
|
638
|
-
var _this = this;
|
|
639
|
-
var _a;
|
|
640
|
-
var settings = (_a = componentRef === null || componentRef === void 0 ? void 0 : componentRef.injector.get(RXAP_WINDOW_SETTINGS, null, i0.InjectFlags.Optional)) !== null && _a !== void 0 ? _a : this.settings;
|
|
641
|
-
if (settings) {
|
|
642
|
-
// prevent change diction error: ExpressionChangedAfterItHasBeenCheckedError
|
|
643
|
-
setTimeout(function () {
|
|
644
|
-
_this.settings$.next(Object.assign({}, _this.settings, settings));
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
return WindowRef;
|
|
649
|
-
}(rxjs.Subject));
|
|
650
|
-
|
|
651
|
-
var WindowContainerComponent = /** @class */ (function () {
|
|
652
|
-
function WindowContainerComponent(context, windowRef, windowInstance) {
|
|
653
|
-
this.context = context;
|
|
654
|
-
this.windowRef = windowRef;
|
|
655
|
-
this.windowInstance = windowInstance;
|
|
656
|
-
}
|
|
657
|
-
Object.defineProperty(WindowContainerComponent.prototype, "id", {
|
|
658
|
-
get: function () {
|
|
659
|
-
return this.context.id;
|
|
660
|
-
},
|
|
661
|
-
enumerable: false,
|
|
662
|
-
configurable: true
|
|
663
|
-
});
|
|
664
|
-
WindowContainerComponent.prototype.ngOnInit = function () {
|
|
665
|
-
this.width$ = rxjs.merge(this.windowContainerResizer.width$, this.windowRef.width$);
|
|
666
|
-
this.height$ = rxjs.merge(this.windowContainerResizer.height$, this.windowRef.height$);
|
|
667
|
-
};
|
|
668
|
-
WindowContainerComponent.prototype.onDragEnded = function ($event) {
|
|
669
|
-
var nativeElement = $event.source.element.nativeElement;
|
|
670
|
-
var pos = nativeElement.getBoundingClientRect();
|
|
671
|
-
$event.source.reset();
|
|
672
|
-
this.windowRef.setPos(pos.left + 'px', pos.top + 'px');
|
|
673
|
-
};
|
|
674
|
-
WindowContainerComponent.prototype.dragConstrainPosition = function (point, dragRef) {
|
|
675
|
-
var height = document.body.offsetHeight;
|
|
676
|
-
var width = document.body.offsetWidth;
|
|
677
|
-
if (point.y <= 0) {
|
|
678
|
-
point.y = 0;
|
|
679
|
-
}
|
|
680
|
-
if (point.x <= 0) {
|
|
681
|
-
point.x = 0;
|
|
682
|
-
}
|
|
683
|
-
if (point.y > height - 64) {
|
|
684
|
-
point.y = height - 64;
|
|
685
|
-
}
|
|
686
|
-
if (point.x > width - 100) {
|
|
687
|
-
point.x = width - 100;
|
|
688
|
-
}
|
|
689
|
-
return point;
|
|
690
|
-
};
|
|
691
|
-
return WindowContainerComponent;
|
|
692
|
-
}());
|
|
693
|
-
WindowContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContainerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: i1$1.LoadingIndicatorService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
694
|
-
WindowContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowContainerComponent, selector: "rxap-window-container", host: { properties: { "attr.data-id": "this.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, static: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n [cdkDragConstrainPosition]=\"dragConstrainPosition\"\n class=\"container mat-elevation-z4\"\n fxLayout=\"column\">\n\n <div cdkDragHandle class=\"tool-bar\" fxFlex=\"nogrow\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content\" fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n", styles: [".container{cursor:move;position:relative;z-index:1;max-height:100vh;max-width:100vw}.container:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.container .tool-bar{width:100%}.container .content{overflow:auto;width:100%}.container .footer{width:100%;height:64px}"], components: [{ type: WindowToolBarComponent, selector: "rxap-window-tool-bar" }, { type: i3__namespace.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i3__namespace$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: WindowResizerComponent, selector: "rxap-window-resizer", inputs: ["containerRef"], outputs: ["width", "height", "resizing"] }], directives: [{ type: i5__namespace.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i2__namespace.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i8__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i8__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
695
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContainerComponent, decorators: [{
|
|
696
|
-
type: i0.Component,
|
|
697
|
-
args: [{
|
|
698
|
-
selector: 'rxap-window-container',
|
|
699
|
-
templateUrl: './window-container.component.html',
|
|
700
|
-
styleUrls: ['./window-container.component.scss'],
|
|
701
|
-
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
702
|
-
host: {
|
|
703
|
-
class: 'rxap-window-container'
|
|
704
|
-
}
|
|
705
|
-
}]
|
|
706
|
-
}], ctorParameters: function () {
|
|
707
|
-
return [{ type: undefined, decorators: [{
|
|
708
|
-
type: i0.Inject,
|
|
709
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
710
|
-
}] }, { type: WindowRef, decorators: [{
|
|
711
|
-
type: i0.Inject,
|
|
712
|
-
args: [RXAP_WINDOW_REF]
|
|
713
|
-
}] }, { type: i1__namespace$1.LoadingIndicatorService, decorators: [{
|
|
714
|
-
type: i0.Inject,
|
|
715
|
-
args: [i1$1.LoadingIndicatorService]
|
|
716
|
-
}] }];
|
|
717
|
-
}, propDecorators: { footerContent: [{
|
|
718
|
-
type: i0.ContentChild,
|
|
719
|
-
args: ['[footer]', { static: true }]
|
|
720
|
-
}], containerRef: [{
|
|
721
|
-
type: i0.ViewChild,
|
|
722
|
-
args: ['container', { static: true }]
|
|
723
|
-
}], windowContainerResizer: [{
|
|
724
|
-
type: i0.ViewChild,
|
|
725
|
-
args: [WindowResizerComponent, { static: true }]
|
|
726
|
-
}], id: [{
|
|
727
|
-
type: i0.HostBinding,
|
|
728
|
-
args: ['attr.data-id']
|
|
729
|
-
}] } });
|
|
730
|
-
|
|
731
|
-
var WindowContentComponent = /** @class */ (function () {
|
|
732
|
-
function WindowContentComponent(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
|
|
733
|
-
this.windowRef = windowRef;
|
|
734
|
-
this.injector = injector;
|
|
735
|
-
this.viewContainerRef = viewContainerRef;
|
|
736
|
-
this.loadingIndicatorService = loadingIndicatorService;
|
|
737
|
-
this.portal = null;
|
|
738
|
-
this.context = context;
|
|
739
|
-
}
|
|
740
|
-
WindowContentComponent.prototype.ngOnInit = function () {
|
|
741
|
-
if (this.context.template) {
|
|
742
|
-
this.portal = new i6.TemplatePortal(this.context.template, this.viewContainerRef);
|
|
743
|
-
}
|
|
744
|
-
else if (this.context.component) {
|
|
745
|
-
this.portal = new i6.ComponentPortal(this.context.component, this.viewContainerRef, this.injector);
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
WindowContentComponent.prototype.ngAfterViewInit = function () {
|
|
749
|
-
var _this = this;
|
|
750
|
-
this.portalOutlet.attached.pipe(operators.startWith(this.portalOutlet.attachedRef), rxjs$1.isDefined(), operators.take(1), operators.tap(function (attachedRef) { return _this.windowRef.setAttachedRef(attachedRef); }), operators.tap(function (attachedRef) {
|
|
751
|
-
var promise = [];
|
|
752
|
-
if (attachedRef instanceof i0.ComponentRef) {
|
|
753
|
-
attachedRef.changeDetectorRef.detectChanges();
|
|
754
|
-
var loading$ = attachedRef.instance.loading$;
|
|
755
|
-
if (loading$ && rxjs.isObservable(loading$)) {
|
|
756
|
-
if (i0.isDevMode()) {
|
|
757
|
-
console.warn('The component has a loading indicator member');
|
|
758
|
-
}
|
|
759
|
-
_this.loadingIndicatorService.attachLoading(loading$);
|
|
760
|
-
promise.push(loading$.pipe(operators.filter(Boolean), operators.take(1), operators.delay(100), operators.tap(function () { return attachedRef.changeDetectorRef.detectChanges(); })).toPromise());
|
|
761
|
-
}
|
|
762
|
-
else {
|
|
763
|
-
_this.loadingIndicatorService.disable();
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
_this.loadingIndicatorService.disable();
|
|
768
|
-
}
|
|
769
|
-
return Promise.all(promise);
|
|
770
|
-
}), operators.timeout(10000), operators.catchError(function (error) {
|
|
771
|
-
if (error instanceof rxjs.TimeoutError) {
|
|
772
|
-
if (i0.isDevMode()) {
|
|
773
|
-
console.warn('The window content never resolved the attached ref');
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
return rxjs.throwError(error);
|
|
777
|
-
})).subscribe();
|
|
778
|
-
};
|
|
779
|
-
return WindowContentComponent;
|
|
780
|
-
}());
|
|
781
|
-
WindowContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContentComponent, deps: [{ token: RXAP_WINDOW_CONTAINER_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: i0__namespace.Injector }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace$1.LoadingIndicatorService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
782
|
-
WindowContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowContentComponent, selector: "rxap-window-content", viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: i6.CdkPortalOutlet, descendants: true }], ngImport: i0__namespace, template: "<div class=\"content\">\n <div class=\"inner\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </div>\n</div>\n", styles: [".content{cursor:auto}.content .inner{padding:1.5rem}"], directives: [{ type: i6__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
783
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContentComponent, decorators: [{
|
|
784
|
-
type: i0.Component,
|
|
785
|
-
args: [{
|
|
786
|
-
selector: 'rxap-window-content',
|
|
787
|
-
templateUrl: './window-content.component.html',
|
|
788
|
-
styleUrls: ['./window-content.component.scss'],
|
|
789
|
-
changeDetection: i0.ChangeDetectionStrategy.Default
|
|
790
|
-
}]
|
|
791
|
-
}], ctorParameters: function () {
|
|
792
|
-
return [{ type: undefined, decorators: [{
|
|
793
|
-
type: i0.Inject,
|
|
794
|
-
args: [RXAP_WINDOW_CONTAINER_CONTEXT]
|
|
795
|
-
}] }, { type: undefined, decorators: [{
|
|
796
|
-
type: i0.Inject,
|
|
797
|
-
args: [RXAP_WINDOW_REF]
|
|
798
|
-
}] }, { type: i0__namespace.Injector }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace$1.LoadingIndicatorService }];
|
|
799
|
-
}, propDecorators: { portalOutlet: [{
|
|
800
|
-
type: i0.ViewChild,
|
|
801
|
-
args: [i6.CdkPortalOutlet]
|
|
802
|
-
}] } });
|
|
803
|
-
|
|
804
|
-
var DefaultWindowComponent = /** @class */ (function () {
|
|
805
|
-
function DefaultWindowComponent() {
|
|
806
|
-
}
|
|
807
|
-
return DefaultWindowComponent;
|
|
808
|
-
}());
|
|
809
|
-
DefaultWindowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DefaultWindowComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
810
|
-
DefaultWindowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: DefaultWindowComponent, selector: "rxap-default-window", ngImport: i0__namespace, template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n", styles: [""], components: [{ type: WindowContainerComponent, selector: "rxap-window-container" }, { type: WindowContentComponent, selector: "rxap-window-content" }], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
811
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DefaultWindowComponent, decorators: [{
|
|
812
|
-
type: i0.Component,
|
|
813
|
-
args: [{
|
|
814
|
-
selector: 'rxap-default-window',
|
|
815
|
-
templateUrl: './default-window.component.html',
|
|
816
|
-
styleUrls: ['./default-window.component.scss'],
|
|
817
|
-
changeDetection: i0.ChangeDetectionStrategy.Default
|
|
818
|
-
}]
|
|
819
|
-
}] });
|
|
820
|
-
|
|
821
|
-
var WindowActionBarComponent = /** @class */ (function () {
|
|
822
|
-
function WindowActionBarComponent(context, injector) {
|
|
823
|
-
this.injector = injector;
|
|
824
|
-
this.definitions = null;
|
|
825
|
-
this.position = 'start';
|
|
826
|
-
if (context.windowRef.settings.actions) {
|
|
827
|
-
this.definitions = context.windowRef.settings.actions.definitions;
|
|
828
|
-
this.position = context.windowRef.settings.actions.position || this.position;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
return WindowActionBarComponent;
|
|
832
|
-
}());
|
|
833
|
-
WindowActionBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
834
|
-
WindowActionBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowActionBarComponent, selector: "rxap-window-action-bar", ngImport: i0__namespace, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\" fxLayoutGap=\".8rem\">\n <button *ngFor=\"let definition of definitions\" [rxap-button]=\"definition\" fxFlex=\"nogrow\"></button>\n</mat-toolbar-row>\n", styles: [".container{padding:.8rem}"], components: [{ type: i1__namespace$2.ButtonComponent, selector: "button[rxap-button]", inputs: ["disabled", "disableRipple", "color", "context", "contextAll", "action", "rxap-button", "icon", "tooltip", "tooltipDisabled", "label", "show", "confirm"], outputs: ["confirmed", "unconfirmed"] }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
|
|
835
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowActionBarComponent, decorators: [{
|
|
836
|
-
type: i0.Component,
|
|
837
|
-
args: [{
|
|
838
|
-
selector: 'rxap-window-action-bar',
|
|
839
|
-
templateUrl: './window-action-bar.component.html',
|
|
840
|
-
styleUrls: ['./window-action-bar.component.scss']
|
|
841
|
-
}]
|
|
842
|
-
}], ctorParameters: function () {
|
|
843
|
-
return [{ type: undefined, decorators: [{
|
|
844
|
-
type: i0.Inject,
|
|
845
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
846
|
-
}] }, { type: i0__namespace.Injector }];
|
|
847
|
-
} });
|
|
848
|
-
|
|
849
|
-
var DEFAULT_WINDOW_CONFIG = {
|
|
850
|
-
resizeable: true,
|
|
851
|
-
draggable: true,
|
|
852
|
-
injector: null,
|
|
853
|
-
componentFactoryResolver: null,
|
|
854
|
-
minWidth: '384px',
|
|
855
|
-
minHeight: '192px',
|
|
856
|
-
maxWidth: '100vw',
|
|
857
|
-
maxHeight: '100vw'
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
var WindowService = /** @class */ (function () {
|
|
861
|
-
function WindowService(injector, overlay, componentFactoryResolver, defaultWindowSettings) {
|
|
862
|
-
this.injector = injector;
|
|
863
|
-
this.overlay = overlay;
|
|
864
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
865
|
-
this.defaultWindowSettings = defaultWindowSettings;
|
|
866
|
-
this.activeCount$ = new rxjs.Subject();
|
|
867
|
-
this.active = new Map();
|
|
868
|
-
}
|
|
869
|
-
Object.defineProperty(WindowService.prototype, "hasActiveWindows", {
|
|
870
|
-
get: function () {
|
|
871
|
-
return this.active.size !== 0;
|
|
872
|
-
},
|
|
873
|
-
enumerable: false,
|
|
874
|
-
configurable: true
|
|
875
|
-
});
|
|
876
|
-
Object.defineProperty(WindowService.prototype, "activeWindowCount", {
|
|
877
|
-
get: function () {
|
|
878
|
-
return this.active.size;
|
|
879
|
-
},
|
|
880
|
-
enumerable: false,
|
|
881
|
-
configurable: true
|
|
882
|
-
});
|
|
883
|
-
Object.defineProperty(WindowService.prototype, "allActiveWindows", {
|
|
884
|
-
get: function () {
|
|
885
|
-
return Array.from(this.active.values());
|
|
886
|
-
},
|
|
887
|
-
enumerable: false,
|
|
888
|
-
configurable: true
|
|
889
|
-
});
|
|
890
|
-
WindowService.prototype.get = function (id) {
|
|
891
|
-
if (!this.has(id)) {
|
|
892
|
-
throw new Error("Active Window with id '" + id + "' not found");
|
|
893
|
-
}
|
|
894
|
-
// tslint:disable-next-line:no-non-null-assertion
|
|
895
|
-
return this.active.get(id);
|
|
896
|
-
};
|
|
897
|
-
WindowService.prototype.close = function (id) {
|
|
898
|
-
var windowRef = this.get(id);
|
|
899
|
-
windowRef.complete();
|
|
900
|
-
};
|
|
901
|
-
WindowService.prototype.has = function (id) {
|
|
902
|
-
return this.active.has(id);
|
|
903
|
-
};
|
|
904
|
-
WindowService.prototype.open = function (config) {
|
|
905
|
-
var _this = this;
|
|
906
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
907
|
-
// Override default configuration
|
|
908
|
-
var windowConfig = Object.assign(Object.assign(Object.assign({ id: uuid.v4() }, DEFAULT_WINDOW_CONFIG), ((_a = this.defaultWindowSettings) !== null && _a !== void 0 ? _a : {})), config);
|
|
909
|
-
if (this.has(windowConfig.id)) {
|
|
910
|
-
return this.get(windowConfig.id);
|
|
911
|
-
}
|
|
912
|
-
// Returns an OverlayRef which is a PortalHost
|
|
913
|
-
var overlayRef = this.createOverlay(windowConfig);
|
|
914
|
-
// Instantiate remote control
|
|
915
|
-
var windowRef = new WindowRef(overlayRef, this.overlay, windowConfig);
|
|
916
|
-
var context = {
|
|
917
|
-
id: windowConfig.id,
|
|
918
|
-
overlayRef: overlayRef,
|
|
919
|
-
windowRef: windowRef,
|
|
920
|
-
data: windowConfig.data,
|
|
921
|
-
};
|
|
922
|
-
var containerContext = {
|
|
923
|
-
template: windowConfig.template,
|
|
924
|
-
component: windowConfig.component,
|
|
925
|
-
};
|
|
926
|
-
var injector = i0.Injector.create({
|
|
927
|
-
parent: (_b = windowConfig.injector) !== null && _b !== void 0 ? _b : this.injector,
|
|
928
|
-
providers: [
|
|
929
|
-
{
|
|
930
|
-
provide: RXAP_WINDOW_CONTAINER_CONTEXT,
|
|
931
|
-
useValue: containerContext,
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
provide: RXAP_WINDOW_CONTEXT,
|
|
935
|
-
useValue: context,
|
|
936
|
-
},
|
|
937
|
-
{
|
|
938
|
-
provide: RXAP_WINDOW_DATA,
|
|
939
|
-
useValue: windowConfig.data,
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
provide: RXAP_WINDOW_REF,
|
|
943
|
-
useValue: windowRef,
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
provide: i1$1.LoadingIndicatorService,
|
|
947
|
-
useClass: i1$1.LoadingIndicatorService,
|
|
948
|
-
},
|
|
949
|
-
],
|
|
950
|
-
name: (_c = windowConfig === null || windowConfig === void 0 ? void 0 : windowConfig.injectorName) !== null && _c !== void 0 ? _c : 'WindowService',
|
|
951
|
-
});
|
|
952
|
-
var containerPortal = new i6.ComponentPortal(DefaultWindowComponent, (_e = (_d = injector.get(i0.ViewContainerRef, null, i0.InjectFlags.Optional)) !== null && _d !== void 0 ? _d : windowConfig.viewContainerRef) !== null && _e !== void 0 ? _e : null, injector, (_g = (_f = injector.get(i0.ComponentFactoryResolver, null, i0.InjectFlags.Optional)) !== null && _f !== void 0 ? _f : windowConfig.componentFactoryResolver) !== null && _g !== void 0 ? _g : this.componentFactoryResolver);
|
|
953
|
-
overlayRef.attach(containerPortal);
|
|
954
|
-
overlayRef
|
|
955
|
-
.backdropClick()
|
|
956
|
-
.pipe(operators.take(1), operators.tap(function () { return windowRef.complete(); }))
|
|
957
|
-
.subscribe();
|
|
958
|
-
windowRef.pipe(operators.finalize(function () { return _this.remove(windowConfig.id); })).subscribe();
|
|
959
|
-
this.add(windowRef);
|
|
960
|
-
return windowRef;
|
|
961
|
-
};
|
|
962
|
-
WindowService.prototype.remove = function (id) {
|
|
963
|
-
var result = this.active.delete(id);
|
|
964
|
-
this.activeCount$.next(this.active.size);
|
|
965
|
-
return result;
|
|
966
|
-
};
|
|
967
|
-
WindowService.prototype.add = function (windowRef) {
|
|
968
|
-
this.active.set(windowRef.settings.id, windowRef);
|
|
969
|
-
this.activeCount$.next(this.active.size);
|
|
970
|
-
};
|
|
971
|
-
WindowService.prototype.createOverlay = function (_j) {
|
|
972
|
-
var panelClass = _j.panelClass, width = _j.width, height = _j.height, minHeight = _j.minHeight, minWidth = _j.minWidth, maxHeight = _j.maxHeight, maxWidth = _j.maxWidth;
|
|
973
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
974
|
-
var startPos = GetWindowStartPos();
|
|
975
|
-
var positionStrategy = this.overlay
|
|
976
|
-
.position()
|
|
977
|
-
.global()
|
|
978
|
-
.top(startPos.top)
|
|
979
|
-
.left(startPos.left);
|
|
980
|
-
var overlayConfig = new i1$3.OverlayConfig({
|
|
981
|
-
hasBackdrop: false,
|
|
982
|
-
panelClass: panelClass,
|
|
983
|
-
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
984
|
-
width: width,
|
|
985
|
-
height: height,
|
|
986
|
-
maxWidth: (_b = maxWidth !== null && maxWidth !== void 0 ? maxWidth : (_a = this.defaultWindowSettings) === null || _a === void 0 ? void 0 : _a.maxWidth) !== null && _b !== void 0 ? _b : '100vw',
|
|
987
|
-
maxHeight: (_d = maxHeight !== null && maxHeight !== void 0 ? maxHeight : (_c = this.defaultWindowSettings) === null || _c === void 0 ? void 0 : _c.maxHeight) !== null && _d !== void 0 ? _d : '100vh',
|
|
988
|
-
minWidth: (_f = minWidth !== null && minWidth !== void 0 ? minWidth : (_e = this.defaultWindowSettings) === null || _e === void 0 ? void 0 : _e.minWidth) !== null && _f !== void 0 ? _f : '384px',
|
|
989
|
-
minHeight: (_h = minHeight !== null && minHeight !== void 0 ? minHeight : (_g = this.defaultWindowSettings) === null || _g === void 0 ? void 0 : _g.minHeight) !== null && _h !== void 0 ? _h : '192px',
|
|
990
|
-
positionStrategy: positionStrategy,
|
|
991
|
-
});
|
|
992
|
-
return this.overlay.create(overlayConfig);
|
|
993
|
-
};
|
|
994
|
-
return WindowService;
|
|
995
|
-
}());
|
|
996
|
-
WindowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowService, deps: [{ token: i0.Injector }, { token: i1$3.Overlay }, { token: i0.ComponentFactoryResolver }, { token: RXAP_WINDOW_DEFAULT_SETTINGS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
997
|
-
WindowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowService, providedIn: 'root' });
|
|
998
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowService, decorators: [{
|
|
999
|
-
type: i0.Injectable,
|
|
1000
|
-
args: [{ providedIn: 'root' }]
|
|
1001
|
-
}], ctorParameters: function () {
|
|
1002
|
-
return [{ type: i0__namespace.Injector, decorators: [{
|
|
1003
|
-
type: i0.Inject,
|
|
1004
|
-
args: [i0.Injector]
|
|
1005
|
-
}] }, { type: i1__namespace$3.Overlay, decorators: [{
|
|
1006
|
-
type: i0.Inject,
|
|
1007
|
-
args: [i1$3.Overlay]
|
|
1008
|
-
}] }, { type: i0__namespace.ComponentFactoryResolver, decorators: [{
|
|
1009
|
-
type: i0.Inject,
|
|
1010
|
-
args: [i0.ComponentFactoryResolver]
|
|
1011
|
-
}] }, { type: undefined, decorators: [{
|
|
1012
|
-
type: i0.Optional
|
|
1013
|
-
}, {
|
|
1014
|
-
type: i0.Inject,
|
|
1015
|
-
args: [RXAP_WINDOW_DEFAULT_SETTINGS]
|
|
1016
|
-
}] }];
|
|
1017
|
-
} });
|
|
1018
|
-
|
|
1019
|
-
var WindowTaskComponent = /** @class */ (function () {
|
|
1020
|
-
function WindowTaskComponent() {
|
|
1021
|
-
}
|
|
1022
|
-
WindowTaskComponent.prototype.close = function () {
|
|
1023
|
-
this.window.complete();
|
|
1024
|
-
};
|
|
1025
|
-
WindowTaskComponent.prototype.reopen = function () {
|
|
1026
|
-
this.window.reopen();
|
|
1027
|
-
};
|
|
1028
|
-
return WindowTaskComponent;
|
|
1029
|
-
}());
|
|
1030
|
-
WindowTaskComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1031
|
-
WindowTaskComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowTaskComponent, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0__namespace, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutAlign=\"start center\"\n fxLayoutGap=\".5rem\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"grow\">{{settings.title}}</h3>\n </ng-template>\n <button (click)=\"close()\" rxapStopPropagation mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:.5rem;cursor:pointer}.container.minimized{opacity:.5}"], components: [{ type: i1__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i7__namespace$1.StopPropagationDirective, selector: "[rxapStopPropagation]" }], pipes: { "async": i8__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1032
|
-
__decorate([
|
|
1033
|
-
utilities.Required,
|
|
1034
|
-
__metadata("design:type", WindowRef)
|
|
1035
|
-
], WindowTaskComponent.prototype, "window", void 0);
|
|
1036
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskComponent, decorators: [{
|
|
1037
|
-
type: i0.Component,
|
|
1038
|
-
args: [{
|
|
1039
|
-
selector: 'rxap-window-task',
|
|
1040
|
-
templateUrl: './window-task.component.html',
|
|
1041
|
-
styleUrls: ['./window-task.component.scss'],
|
|
1042
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1043
|
-
}]
|
|
1044
|
-
}], propDecorators: { window: [{
|
|
1045
|
-
type: i0.Input
|
|
1046
|
-
}] } });
|
|
1047
|
-
|
|
1048
|
-
var WindowTaskBarComponent = /** @class */ (function () {
|
|
1049
|
-
function WindowTaskBarComponent(windowService, cdr) {
|
|
1050
|
-
this.windowService = windowService;
|
|
1051
|
-
this.cdr = cdr;
|
|
1052
|
-
this.subscriptions = new rxjs.Subscription();
|
|
1053
|
-
}
|
|
1054
|
-
WindowTaskBarComponent.prototype.ngOnInit = function () {
|
|
1055
|
-
var _this = this;
|
|
1056
|
-
this.subscriptions.add(this.windowService.activeCount$.pipe(operators.tap(function () { return _this.cdr.markForCheck(); })).subscribe());
|
|
1057
|
-
};
|
|
1058
|
-
WindowTaskBarComponent.prototype.ngOnDestroy = function () {
|
|
1059
|
-
this.subscriptions.unsubscribe();
|
|
1060
|
-
};
|
|
1061
|
-
return WindowTaskBarComponent;
|
|
1062
|
-
}());
|
|
1063
|
-
WindowTaskBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1064
|
-
WindowTaskBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowTaskBarComponent, selector: "rxap-window-task-bar", ngImport: i0__namespace, template: "<div class=\"tasks\"\n fxFlex=\"nogrow\"\n fxLayout=\"row wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n fxFlex=\"nogrow\">\n </rxap-window-task>\n</div>\n", styles: [""], components: [{ type: WindowTaskComponent, selector: "rxap-window-task", inputs: ["window"] }], directives: [{ type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1065
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarComponent, decorators: [{
|
|
1066
|
-
type: i0.Component,
|
|
1067
|
-
args: [{
|
|
1068
|
-
selector: 'rxap-window-task-bar',
|
|
1069
|
-
templateUrl: './window-task-bar.component.html',
|
|
1070
|
-
styleUrls: ['./window-task-bar.component.scss'],
|
|
1071
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1072
|
-
}]
|
|
1073
|
-
}], ctorParameters: function () {
|
|
1074
|
-
return [{ type: WindowService, decorators: [{
|
|
1075
|
-
type: i0.Inject,
|
|
1076
|
-
args: [WindowService]
|
|
1077
|
-
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
1078
|
-
type: i0.Inject,
|
|
1079
|
-
args: [i0.ChangeDetectorRef]
|
|
1080
|
-
}] }];
|
|
1081
|
-
} });
|
|
1082
|
-
|
|
1083
|
-
var RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new i0.InjectionToken('rxap/window-system/task-bar-container');
|
|
1084
|
-
var WindowTaskBarContainerComponent = /** @class */ (function () {
|
|
1085
|
-
function WindowTaskBarContainerComponent(windowService, settings) {
|
|
1086
|
-
if (settings === void 0) { settings = null; }
|
|
1087
|
-
this.windowService = windowService;
|
|
1088
|
-
this.expand = true;
|
|
1089
|
-
if (settings) {
|
|
1090
|
-
if (settings.expand !== undefined) {
|
|
1091
|
-
this.expand = settings.expand;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
return WindowTaskBarContainerComponent;
|
|
1096
|
-
}());
|
|
1097
|
-
WindowTaskBarContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1098
|
-
WindowTaskBarContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: WindowTaskBarContainerComponent, selector: "rxap-window-task-bar-container", ngImport: i0__namespace, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"container\" fxLayout=\"column\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end end\">\n <button (click)=\"expand = !expand\"\n [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n class=\"pin\"\n color=\"primary\"\n mat-icon-button\n matBadgePosition=\"above before\"\n type=\"button\">\n <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n </button>\n </div>\n <mat-toolbar [fxShow]=\"expand\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.container .tasks{height:auto;padding:1.6rem}"], components: [{ type: i3__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: WindowTaskBarComponent, selector: "rxap-window-task-bar" }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i7__namespace$2.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }, { type: i2__namespace.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }] });
|
|
1099
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarContainerComponent, decorators: [{
|
|
1100
|
-
type: i0.Component,
|
|
1101
|
-
args: [{
|
|
1102
|
-
selector: 'rxap-window-task-bar-container',
|
|
1103
|
-
templateUrl: './window-task-bar-container.component.html',
|
|
1104
|
-
styleUrls: ['./window-task-bar-container.component.scss']
|
|
1105
|
-
}]
|
|
1106
|
-
}], ctorParameters: function () {
|
|
1107
|
-
return [{ type: WindowService, decorators: [{
|
|
1108
|
-
type: i0.Inject,
|
|
1109
|
-
args: [WindowService]
|
|
1110
|
-
}] }, { type: undefined, decorators: [{
|
|
1111
|
-
type: i0.Optional
|
|
1112
|
-
}, {
|
|
1113
|
-
type: i0.Inject,
|
|
1114
|
-
args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
|
|
1115
|
-
}] }];
|
|
1116
|
-
} });
|
|
1117
|
-
|
|
1118
|
-
var WindowTaskBarModule = /** @class */ (function () {
|
|
1119
|
-
function WindowTaskBarModule() {
|
|
1120
|
-
}
|
|
1121
|
-
return WindowTaskBarModule;
|
|
1122
|
-
}());
|
|
1123
|
-
WindowTaskBarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1124
|
-
WindowTaskBarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarModule, declarations: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent], imports: [i8.CommonModule,
|
|
1125
|
-
flexLayout.FlexLayoutModule,
|
|
1126
|
-
i1.MatIconModule,
|
|
1127
|
-
i3.MatToolbarModule,
|
|
1128
|
-
i7$2.MatBadgeModule,
|
|
1129
|
-
i3$1.MatButtonModule,
|
|
1130
|
-
i7$1.StopPropagationDirectiveModule,
|
|
1131
|
-
i7.IconDirectiveModule], exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent] });
|
|
1132
|
-
WindowTaskBarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarModule, imports: [[
|
|
1133
|
-
i8.CommonModule,
|
|
1134
|
-
flexLayout.FlexLayoutModule,
|
|
1135
|
-
i1.MatIconModule,
|
|
1136
|
-
i3.MatToolbarModule,
|
|
1137
|
-
i7$2.MatBadgeModule,
|
|
1138
|
-
i3$1.MatButtonModule,
|
|
1139
|
-
i7$1.StopPropagationDirectiveModule,
|
|
1140
|
-
i7.IconDirectiveModule
|
|
1141
|
-
]] });
|
|
1142
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTaskBarModule, decorators: [{
|
|
1143
|
-
type: i0.NgModule,
|
|
1144
|
-
args: [{
|
|
1145
|
-
declarations: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent],
|
|
1146
|
-
imports: [
|
|
1147
|
-
i8.CommonModule,
|
|
1148
|
-
flexLayout.FlexLayoutModule,
|
|
1149
|
-
i1.MatIconModule,
|
|
1150
|
-
i3.MatToolbarModule,
|
|
1151
|
-
i7$2.MatBadgeModule,
|
|
1152
|
-
i3$1.MatButtonModule,
|
|
1153
|
-
i7$1.StopPropagationDirectiveModule,
|
|
1154
|
-
i7.IconDirectiveModule
|
|
1155
|
-
],
|
|
1156
|
-
entryComponents: [WindowTaskBarComponent],
|
|
1157
|
-
exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent]
|
|
1158
|
-
}]
|
|
1159
|
-
}] });
|
|
1160
|
-
|
|
1161
|
-
var RxapWindowSystemModule = /** @class */ (function () {
|
|
1162
|
-
function RxapWindowSystemModule() {
|
|
1163
|
-
}
|
|
1164
|
-
return RxapWindowSystemModule;
|
|
1165
|
-
}());
|
|
1166
|
-
RxapWindowSystemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapWindowSystemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1167
|
-
RxapWindowSystemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapWindowSystemModule, declarations: [WindowContainerComponent,
|
|
1168
|
-
WindowToolBarComponent,
|
|
1169
|
-
WindowResizerComponent,
|
|
1170
|
-
DefaultWindowComponent,
|
|
1171
|
-
WindowContentComponent,
|
|
1172
|
-
WindowActionBarComponent], imports: [i3.MatToolbarModule,
|
|
1173
|
-
flexLayout.FlexLayoutModule,
|
|
1174
|
-
i8.CommonModule,
|
|
1175
|
-
i5.DragDropModule,
|
|
1176
|
-
i1.MatIconModule,
|
|
1177
|
-
i3$1.MatButtonModule,
|
|
1178
|
-
i1$3.OverlayModule,
|
|
1179
|
-
i1$2.ButtonComponentModule,
|
|
1180
|
-
i6.PortalModule,
|
|
1181
|
-
i3$2.MatProgressBarModule,
|
|
1182
|
-
i7.IconDirectiveModule], exports: [WindowContainerComponent,
|
|
1183
|
-
WindowToolBarComponent,
|
|
1184
|
-
WindowResizerComponent,
|
|
1185
|
-
DefaultWindowComponent,
|
|
1186
|
-
WindowContentComponent,
|
|
1187
|
-
WindowTaskBarModule] });
|
|
1188
|
-
RxapWindowSystemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapWindowSystemModule, imports: [[
|
|
1189
|
-
i3.MatToolbarModule,
|
|
1190
|
-
flexLayout.FlexLayoutModule,
|
|
1191
|
-
i8.CommonModule,
|
|
1192
|
-
i5.DragDropModule,
|
|
1193
|
-
i1.MatIconModule,
|
|
1194
|
-
i3$1.MatButtonModule,
|
|
1195
|
-
i1$3.OverlayModule,
|
|
1196
|
-
i1$2.ButtonComponentModule,
|
|
1197
|
-
i6.PortalModule,
|
|
1198
|
-
i3$2.MatProgressBarModule,
|
|
1199
|
-
i7.IconDirectiveModule
|
|
1200
|
-
], WindowTaskBarModule] });
|
|
1201
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapWindowSystemModule, decorators: [{
|
|
1202
|
-
type: i0.NgModule,
|
|
1203
|
-
args: [{
|
|
1204
|
-
imports: [
|
|
1205
|
-
i3.MatToolbarModule,
|
|
1206
|
-
flexLayout.FlexLayoutModule,
|
|
1207
|
-
i8.CommonModule,
|
|
1208
|
-
i5.DragDropModule,
|
|
1209
|
-
i1.MatIconModule,
|
|
1210
|
-
i3$1.MatButtonModule,
|
|
1211
|
-
i1$3.OverlayModule,
|
|
1212
|
-
i1$2.ButtonComponentModule,
|
|
1213
|
-
i6.PortalModule,
|
|
1214
|
-
i3$2.MatProgressBarModule,
|
|
1215
|
-
i7.IconDirectiveModule
|
|
1216
|
-
],
|
|
1217
|
-
declarations: [
|
|
1218
|
-
WindowContainerComponent,
|
|
1219
|
-
WindowToolBarComponent,
|
|
1220
|
-
WindowResizerComponent,
|
|
1221
|
-
DefaultWindowComponent,
|
|
1222
|
-
WindowContentComponent,
|
|
1223
|
-
WindowActionBarComponent,
|
|
1224
|
-
],
|
|
1225
|
-
entryComponents: [
|
|
1226
|
-
DefaultWindowComponent
|
|
1227
|
-
],
|
|
1228
|
-
exports: [
|
|
1229
|
-
WindowContainerComponent,
|
|
1230
|
-
WindowToolBarComponent,
|
|
1231
|
-
WindowResizerComponent,
|
|
1232
|
-
DefaultWindowComponent,
|
|
1233
|
-
WindowContentComponent,
|
|
1234
|
-
WindowTaskBarModule
|
|
1235
|
-
]
|
|
1236
|
-
}]
|
|
1237
|
-
}] });
|
|
1238
|
-
|
|
1239
|
-
var WindowFooterDirective = /** @class */ (function () {
|
|
1240
|
-
function WindowFooterDirective(windowRef, template, viewContainerRef) {
|
|
1241
|
-
this.windowRef = windowRef;
|
|
1242
|
-
this.template = template;
|
|
1243
|
-
this.viewContainerRef = viewContainerRef;
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
1247
|
-
*
|
|
1248
|
-
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
1249
|
-
* `NgForOf` structural directive renders its template with a specific context type.
|
|
1250
|
-
*/
|
|
1251
|
-
WindowFooterDirective.ngTemplateContextGuard = function (dir, ctx) {
|
|
1252
|
-
return true;
|
|
1253
|
-
};
|
|
1254
|
-
WindowFooterDirective.prototype.ngOnInit = function () {
|
|
1255
|
-
this.windowRef.setFooterPortal(new i6.TemplatePortal(this.template, this.viewContainerRef, {
|
|
1256
|
-
$implicit: this.windowRef,
|
|
1257
|
-
}));
|
|
1258
|
-
};
|
|
1259
|
-
return WindowFooterDirective;
|
|
1260
|
-
}());
|
|
1261
|
-
WindowFooterDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1262
|
-
WindowFooterDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: WindowFooterDirective, selector: "[rxapWindowFooter]", ngImport: i0__namespace });
|
|
1263
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowFooterDirective, decorators: [{
|
|
1264
|
-
type: i0.Directive,
|
|
1265
|
-
args: [{
|
|
1266
|
-
selector: '[rxapWindowFooter]',
|
|
1267
|
-
}]
|
|
1268
|
-
}], ctorParameters: function () {
|
|
1269
|
-
return [{ type: WindowRef, decorators: [{
|
|
1270
|
-
type: i0.Inject,
|
|
1271
|
-
args: [RXAP_WINDOW_REF]
|
|
1272
|
-
}] }, { type: i0__namespace.TemplateRef, decorators: [{
|
|
1273
|
-
type: i0.Inject,
|
|
1274
|
-
args: [i0.TemplateRef]
|
|
1275
|
-
}] }, { type: i0__namespace.ViewContainerRef, decorators: [{
|
|
1276
|
-
type: i0.Inject,
|
|
1277
|
-
args: [i0.ViewContainerRef]
|
|
1278
|
-
}] }];
|
|
1279
|
-
} });
|
|
1280
|
-
var WindowFooterDirectiveModule = /** @class */ (function () {
|
|
1281
|
-
function WindowFooterDirectiveModule() {
|
|
1282
|
-
}
|
|
1283
|
-
return WindowFooterDirectiveModule;
|
|
1284
|
-
}());
|
|
1285
|
-
WindowFooterDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowFooterDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1286
|
-
WindowFooterDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowFooterDirectiveModule, declarations: [WindowFooterDirective], exports: [WindowFooterDirective] });
|
|
1287
|
-
WindowFooterDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowFooterDirectiveModule });
|
|
1288
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowFooterDirectiveModule, decorators: [{
|
|
1289
|
-
type: i0.NgModule,
|
|
1290
|
-
args: [{
|
|
1291
|
-
declarations: [WindowFooterDirective],
|
|
1292
|
-
exports: [WindowFooterDirective]
|
|
1293
|
-
}]
|
|
1294
|
-
}] });
|
|
1295
|
-
|
|
1296
|
-
var WindowTitleDirective = /** @class */ (function () {
|
|
1297
|
-
function WindowTitleDirective(windowRef, template, viewContainerRef) {
|
|
1298
|
-
this.windowRef = windowRef;
|
|
1299
|
-
this.template = template;
|
|
1300
|
-
this.viewContainerRef = viewContainerRef;
|
|
1301
|
-
}
|
|
1302
|
-
/**
|
|
1303
|
-
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
1304
|
-
*
|
|
1305
|
-
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
1306
|
-
* `NgForOf` structural directive renders its template with a specific context type.
|
|
1307
|
-
*/
|
|
1308
|
-
WindowTitleDirective.ngTemplateContextGuard = function (dir, ctx) {
|
|
1309
|
-
return true;
|
|
1310
|
-
};
|
|
1311
|
-
WindowTitleDirective.prototype.ngOnInit = function () {
|
|
1312
|
-
this.windowRef.setTitlePortal(new i6.TemplatePortal(this.template, this.viewContainerRef, {
|
|
1313
|
-
$implicit: this.windowRef
|
|
1314
|
-
}));
|
|
1315
|
-
};
|
|
1316
|
-
return WindowTitleDirective;
|
|
1317
|
-
}());
|
|
1318
|
-
WindowTitleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTitleDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1319
|
-
WindowTitleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: WindowTitleDirective, selector: "[rxapWindowTitle]", ngImport: i0__namespace });
|
|
1320
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTitleDirective, decorators: [{
|
|
1321
|
-
type: i0.Directive,
|
|
1322
|
-
args: [{
|
|
1323
|
-
selector: '[rxapWindowTitle]'
|
|
1324
|
-
}]
|
|
1325
|
-
}], ctorParameters: function () {
|
|
1326
|
-
return [{ type: WindowRef, decorators: [{
|
|
1327
|
-
type: i0.Inject,
|
|
1328
|
-
args: [RXAP_WINDOW_REF]
|
|
1329
|
-
}] }, { type: i0__namespace.TemplateRef, decorators: [{
|
|
1330
|
-
type: i0.Inject,
|
|
1331
|
-
args: [i0.TemplateRef]
|
|
1332
|
-
}] }, { type: i0__namespace.ViewContainerRef, decorators: [{
|
|
1333
|
-
type: i0.Inject,
|
|
1334
|
-
args: [i0.ViewContainerRef]
|
|
1335
|
-
}] }];
|
|
1336
|
-
} });
|
|
1337
|
-
var WindowTitleDirectiveModule = /** @class */ (function () {
|
|
1338
|
-
function WindowTitleDirectiveModule() {
|
|
1339
|
-
}
|
|
1340
|
-
return WindowTitleDirectiveModule;
|
|
1341
|
-
}());
|
|
1342
|
-
WindowTitleDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTitleDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1343
|
-
WindowTitleDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTitleDirectiveModule, declarations: [WindowTitleDirective], exports: [WindowTitleDirective] });
|
|
1344
|
-
WindowTitleDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTitleDirectiveModule });
|
|
1345
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowTitleDirectiveModule, decorators: [{
|
|
1346
|
-
type: i0.NgModule,
|
|
1347
|
-
args: [{
|
|
1348
|
-
declarations: [WindowTitleDirective],
|
|
1349
|
-
exports: [WindowTitleDirective]
|
|
1350
|
-
}]
|
|
1351
|
-
}] });
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* Generated bundle index. Do not edit.
|
|
1355
|
-
*/
|
|
1356
|
-
|
|
1357
|
-
exports.DEFAULT_WINDOW_CONFIG = DEFAULT_WINDOW_CONFIG;
|
|
1358
|
-
exports.DefaultWindowComponent = DefaultWindowComponent;
|
|
1359
|
-
exports.RXAP_WINDOW_CONTAINER_CONTEXT = RXAP_WINDOW_CONTAINER_CONTEXT;
|
|
1360
|
-
exports.RXAP_WINDOW_CONTEXT = RXAP_WINDOW_CONTEXT;
|
|
1361
|
-
exports.RXAP_WINDOW_DATA = RXAP_WINDOW_DATA;
|
|
1362
|
-
exports.RXAP_WINDOW_DEFAULT_SETTINGS = RXAP_WINDOW_DEFAULT_SETTINGS;
|
|
1363
|
-
exports.RXAP_WINDOW_REF = RXAP_WINDOW_REF;
|
|
1364
|
-
exports.RXAP_WINDOW_SETTINGS = RXAP_WINDOW_SETTINGS;
|
|
1365
|
-
exports.RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS;
|
|
1366
|
-
exports.RxapWindowSystemModule = RxapWindowSystemModule;
|
|
1367
|
-
exports.WindowContainerComponent = WindowContainerComponent;
|
|
1368
|
-
exports.WindowContentComponent = WindowContentComponent;
|
|
1369
|
-
exports.WindowFooterDirective = WindowFooterDirective;
|
|
1370
|
-
exports.WindowFooterDirectiveModule = WindowFooterDirectiveModule;
|
|
1371
|
-
exports.WindowRef = WindowRef;
|
|
1372
|
-
exports.WindowResizerComponent = WindowResizerComponent;
|
|
1373
|
-
exports.WindowService = WindowService;
|
|
1374
|
-
exports.WindowTaskBarComponent = WindowTaskBarComponent;
|
|
1375
|
-
exports.WindowTaskBarContainerComponent = WindowTaskBarContainerComponent;
|
|
1376
|
-
exports.WindowTaskBarModule = WindowTaskBarModule;
|
|
1377
|
-
exports.WindowTitleDirective = WindowTitleDirective;
|
|
1378
|
-
exports.WindowTitleDirectiveModule = WindowTitleDirectiveModule;
|
|
1379
|
-
exports.WindowToolBarComponent = WindowToolBarComponent;
|
|
1380
|
-
|
|
1381
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1382
|
-
|
|
1383
|
-
})));
|
|
1384
|
-
//# sourceMappingURL=rxap-window-system.umd.js.map
|