@rxap/services 12.0.8 → 13.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/index.mjs +11 -0
- package/esm2020/lib/avatar-image.service.mjs +17 -0
- package/esm2020/lib/footer.service.mjs +174 -0
- package/esm2020/lib/header.service.mjs +42 -0
- package/esm2020/lib/image-loader.service.mjs +35 -0
- package/esm2020/lib/loading-indicator.service.mjs +34 -0
- package/esm2020/lib/local-storage.service.mjs +28 -0
- package/esm2020/lib/reset.service.mjs +27 -0
- package/esm2020/lib/theme.service.mjs +73 -0
- package/esm2020/lib/version.service.mjs +23 -0
- package/esm2020/lib/window-container-sidenav.service.mjs +34 -0
- package/esm2020/rxap-services.mjs +5 -0
- package/esm2020/testing/lib/local-storage.service.helper.spec.mjs +38 -0
- package/esm2020/testing/public_api.mjs +2 -0
- package/esm2020/testing/rxap-services-testing.mjs +5 -0
- package/fesm2015/{rxap-services-testing.js → rxap-services-testing.mjs} +4 -4
- package/fesm2015/rxap-services-testing.mjs.map +1 -0
- package/fesm2015/rxap-services.mjs +472 -0
- package/fesm2015/rxap-services.mjs.map +1 -0
- package/{esm2015/testing/lib/local-storage.service.helper.spec.js → fesm2020/rxap-services-testing.mjs} +16 -10
- package/fesm2020/rxap-services-testing.mjs.map +1 -0
- package/{fesm2015/rxap-services.js → fesm2020/rxap-services.mjs} +34 -34
- package/fesm2020/rxap-services.mjs.map +1 -0
- package/package.json +36 -14
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/testing/package.json +5 -5
- package/bundles/rxap-services-testing.umd.js +0 -76
- package/bundles/rxap-services-testing.umd.js.map +0 -1
- package/bundles/rxap-services.umd.js +0 -880
- package/bundles/rxap-services.umd.js.map +0 -1
- package/esm2015/index.js +0 -11
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/avatar-image.service.js +0 -17
- package/esm2015/lib/avatar-image.service.js.map +0 -1
- package/esm2015/lib/footer.service.js +0 -174
- package/esm2015/lib/footer.service.js.map +0 -1
- package/esm2015/lib/header.service.js +0 -42
- package/esm2015/lib/header.service.js.map +0 -1
- package/esm2015/lib/image-loader.service.js +0 -35
- package/esm2015/lib/image-loader.service.js.map +0 -1
- package/esm2015/lib/loading-indicator.service.js +0 -34
- package/esm2015/lib/loading-indicator.service.js.map +0 -1
- package/esm2015/lib/local-storage.service.js +0 -28
- package/esm2015/lib/local-storage.service.js.map +0 -1
- package/esm2015/lib/reset.service.js +0 -27
- package/esm2015/lib/reset.service.js.map +0 -1
- package/esm2015/lib/theme.service.js +0 -73
- package/esm2015/lib/theme.service.js.map +0 -1
- package/esm2015/lib/version.service.js +0 -23
- package/esm2015/lib/version.service.js.map +0 -1
- package/esm2015/lib/window-container-sidenav.service.js +0 -34
- package/esm2015/lib/window-container-sidenav.service.js.map +0 -1
- package/esm2015/rxap-services.js +0 -5
- package/esm2015/rxap-services.js.map +0 -1
- package/esm2015/testing/lib/local-storage.service.helper.spec.js.map +0 -1
- package/esm2015/testing/public_api.js +0 -2
- package/esm2015/testing/public_api.js.map +0 -1
- package/esm2015/testing/rxap-services-testing.js +0 -5
- package/esm2015/testing/rxap-services-testing.js.map +0 -1
- package/fesm2015/rxap-services-testing.js.map +0 -1
- package/fesm2015/rxap-services.js.map +0 -1
|
@@ -1,880 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/cdk/portal'), require('rxjs/operators'), require('@angular/router'), require('@angular/common/http'), require('@rxap/utilities/rxjs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@rxap/services', ['exports', '@angular/core', 'rxjs', '@angular/cdk/portal', 'rxjs/operators', '@angular/router', '@angular/common/http', '@rxap/utilities/rxjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.services = {}), global.ng.core, global.rxjs, global.ng.cdk.portal, global.rxjs.operators, global.ng.router, global.ng.common.http, global.rxjs$1));
|
|
5
|
-
}(this, (function (exports, i0, rxjs, portal, operators, i1, http, rxjs$1) { '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 i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
|
|
30
|
-
/*! *****************************************************************************
|
|
31
|
-
Copyright (c) Microsoft Corporation.
|
|
32
|
-
|
|
33
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
-
purpose with or without fee is hereby granted.
|
|
35
|
-
|
|
36
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
-
***************************************************************************** */
|
|
44
|
-
/* global Reflect, Promise */
|
|
45
|
-
var extendStatics = function (d, b) {
|
|
46
|
-
extendStatics = Object.setPrototypeOf ||
|
|
47
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48
|
-
function (d, b) { for (var p in b)
|
|
49
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
50
|
-
d[p] = b[p]; };
|
|
51
|
-
return extendStatics(d, b);
|
|
52
|
-
};
|
|
53
|
-
function __extends(d, b) {
|
|
54
|
-
if (typeof b !== "function" && b !== null)
|
|
55
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
-
extendStatics(d, b);
|
|
57
|
-
function __() { this.constructor = d; }
|
|
58
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
-
}
|
|
60
|
-
var __assign = function () {
|
|
61
|
-
__assign = Object.assign || function __assign(t) {
|
|
62
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
-
s = arguments[i];
|
|
64
|
-
for (var p in s)
|
|
65
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
66
|
-
t[p] = s[p];
|
|
67
|
-
}
|
|
68
|
-
return t;
|
|
69
|
-
};
|
|
70
|
-
return __assign.apply(this, arguments);
|
|
71
|
-
};
|
|
72
|
-
function __rest(s, e) {
|
|
73
|
-
var t = {};
|
|
74
|
-
for (var p in s)
|
|
75
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
76
|
-
t[p] = s[p];
|
|
77
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
78
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
79
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
80
|
-
t[p[i]] = s[p[i]];
|
|
81
|
-
}
|
|
82
|
-
return t;
|
|
83
|
-
}
|
|
84
|
-
function __decorate(decorators, target, key, desc) {
|
|
85
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
87
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
88
|
-
else
|
|
89
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
90
|
-
if (d = decorators[i])
|
|
91
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
92
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
-
}
|
|
94
|
-
function __param(paramIndex, decorator) {
|
|
95
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
96
|
-
}
|
|
97
|
-
function __metadata(metadataKey, metadataValue) {
|
|
98
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
99
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
100
|
-
}
|
|
101
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
102
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
103
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
104
|
-
function fulfilled(value) { try {
|
|
105
|
-
step(generator.next(value));
|
|
106
|
-
}
|
|
107
|
-
catch (e) {
|
|
108
|
-
reject(e);
|
|
109
|
-
} }
|
|
110
|
-
function rejected(value) { try {
|
|
111
|
-
step(generator["throw"](value));
|
|
112
|
-
}
|
|
113
|
-
catch (e) {
|
|
114
|
-
reject(e);
|
|
115
|
-
} }
|
|
116
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
117
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function __generator(thisArg, body) {
|
|
121
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
122
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
123
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
124
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
125
|
-
function step(op) {
|
|
126
|
-
if (f)
|
|
127
|
-
throw new TypeError("Generator is already executing.");
|
|
128
|
-
while (_)
|
|
129
|
-
try {
|
|
130
|
-
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)
|
|
131
|
-
return t;
|
|
132
|
-
if (y = 0, t)
|
|
133
|
-
op = [op[0] & 2, t.value];
|
|
134
|
-
switch (op[0]) {
|
|
135
|
-
case 0:
|
|
136
|
-
case 1:
|
|
137
|
-
t = op;
|
|
138
|
-
break;
|
|
139
|
-
case 4:
|
|
140
|
-
_.label++;
|
|
141
|
-
return { value: op[1], done: false };
|
|
142
|
-
case 5:
|
|
143
|
-
_.label++;
|
|
144
|
-
y = op[1];
|
|
145
|
-
op = [0];
|
|
146
|
-
continue;
|
|
147
|
-
case 7:
|
|
148
|
-
op = _.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
default:
|
|
152
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
153
|
-
_ = 0;
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
157
|
-
_.label = op[1];
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
161
|
-
_.label = t[1];
|
|
162
|
-
t = op;
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
if (t && _.label < t[2]) {
|
|
166
|
-
_.label = t[2];
|
|
167
|
-
_.ops.push(op);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (t[2])
|
|
171
|
-
_.ops.pop();
|
|
172
|
-
_.trys.pop();
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
op = body.call(thisArg, _);
|
|
176
|
-
}
|
|
177
|
-
catch (e) {
|
|
178
|
-
op = [6, e];
|
|
179
|
-
y = 0;
|
|
180
|
-
}
|
|
181
|
-
finally {
|
|
182
|
-
f = t = 0;
|
|
183
|
-
}
|
|
184
|
-
if (op[0] & 5)
|
|
185
|
-
throw op[1];
|
|
186
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
190
|
-
if (k2 === undefined)
|
|
191
|
-
k2 = k;
|
|
192
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
193
|
-
}) : (function (o, m, k, k2) {
|
|
194
|
-
if (k2 === undefined)
|
|
195
|
-
k2 = k;
|
|
196
|
-
o[k2] = m[k];
|
|
197
|
-
});
|
|
198
|
-
function __exportStar(m, o) {
|
|
199
|
-
for (var p in m)
|
|
200
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
201
|
-
__createBinding(o, m, p);
|
|
202
|
-
}
|
|
203
|
-
function __values(o) {
|
|
204
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
205
|
-
if (m)
|
|
206
|
-
return m.call(o);
|
|
207
|
-
if (o && typeof o.length === "number")
|
|
208
|
-
return {
|
|
209
|
-
next: function () {
|
|
210
|
-
if (o && i >= o.length)
|
|
211
|
-
o = void 0;
|
|
212
|
-
return { value: o && o[i++], done: !o };
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
216
|
-
}
|
|
217
|
-
function __read(o, n) {
|
|
218
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
219
|
-
if (!m)
|
|
220
|
-
return o;
|
|
221
|
-
var i = m.call(o), r, ar = [], e;
|
|
222
|
-
try {
|
|
223
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
224
|
-
ar.push(r.value);
|
|
225
|
-
}
|
|
226
|
-
catch (error) {
|
|
227
|
-
e = { error: error };
|
|
228
|
-
}
|
|
229
|
-
finally {
|
|
230
|
-
try {
|
|
231
|
-
if (r && !r.done && (m = i["return"]))
|
|
232
|
-
m.call(i);
|
|
233
|
-
}
|
|
234
|
-
finally {
|
|
235
|
-
if (e)
|
|
236
|
-
throw e.error;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return ar;
|
|
240
|
-
}
|
|
241
|
-
/** @deprecated */
|
|
242
|
-
function __spread() {
|
|
243
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
244
|
-
ar = ar.concat(__read(arguments[i]));
|
|
245
|
-
return ar;
|
|
246
|
-
}
|
|
247
|
-
/** @deprecated */
|
|
248
|
-
function __spreadArrays() {
|
|
249
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
250
|
-
s += arguments[i].length;
|
|
251
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
252
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
253
|
-
r[k] = a[j];
|
|
254
|
-
return r;
|
|
255
|
-
}
|
|
256
|
-
function __spreadArray(to, from) {
|
|
257
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
258
|
-
to[j] = from[i];
|
|
259
|
-
return to;
|
|
260
|
-
}
|
|
261
|
-
function __await(v) {
|
|
262
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
263
|
-
}
|
|
264
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
265
|
-
if (!Symbol.asyncIterator)
|
|
266
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
267
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
268
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n) { if (g[n])
|
|
270
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
271
|
-
function resume(n, v) { try {
|
|
272
|
-
step(g[n](v));
|
|
273
|
-
}
|
|
274
|
-
catch (e) {
|
|
275
|
-
settle(q[0][3], e);
|
|
276
|
-
} }
|
|
277
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
278
|
-
function fulfill(value) { resume("next", value); }
|
|
279
|
-
function reject(value) { resume("throw", value); }
|
|
280
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
281
|
-
resume(q[0][0], q[0][1]); }
|
|
282
|
-
}
|
|
283
|
-
function __asyncDelegator(o) {
|
|
284
|
-
var i, p;
|
|
285
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
286
|
-
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; }
|
|
287
|
-
}
|
|
288
|
-
function __asyncValues(o) {
|
|
289
|
-
if (!Symbol.asyncIterator)
|
|
290
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
291
|
-
var m = o[Symbol.asyncIterator], i;
|
|
292
|
-
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);
|
|
293
|
-
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); }); }; }
|
|
294
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
295
|
-
}
|
|
296
|
-
function __makeTemplateObject(cooked, raw) {
|
|
297
|
-
if (Object.defineProperty) {
|
|
298
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
cooked.raw = raw;
|
|
302
|
-
}
|
|
303
|
-
return cooked;
|
|
304
|
-
}
|
|
305
|
-
;
|
|
306
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
307
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
308
|
-
}) : function (o, v) {
|
|
309
|
-
o["default"] = v;
|
|
310
|
-
};
|
|
311
|
-
function __importStar(mod) {
|
|
312
|
-
if (mod && mod.__esModule)
|
|
313
|
-
return mod;
|
|
314
|
-
var result = {};
|
|
315
|
-
if (mod != null)
|
|
316
|
-
for (var k in mod)
|
|
317
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
318
|
-
__createBinding(result, mod, k);
|
|
319
|
-
__setModuleDefault(result, mod);
|
|
320
|
-
return result;
|
|
321
|
-
}
|
|
322
|
-
function __importDefault(mod) {
|
|
323
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
324
|
-
}
|
|
325
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
326
|
-
if (kind === "a" && !f)
|
|
327
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
328
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
329
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
330
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
331
|
-
}
|
|
332
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
333
|
-
if (kind === "m")
|
|
334
|
-
throw new TypeError("Private method is not writable");
|
|
335
|
-
if (kind === "a" && !f)
|
|
336
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
337
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
var RXAP_FOOTER_COMPONENT = new i0.InjectionToken('rxap/services/footer-component');
|
|
343
|
-
function IsFooterTemplate(obj) {
|
|
344
|
-
return obj.hasOwnProperty('template');
|
|
345
|
-
}
|
|
346
|
-
function IsFooterComponent(obj) {
|
|
347
|
-
return obj.hasOwnProperty('component');
|
|
348
|
-
}
|
|
349
|
-
var FooterService = /** @class */ (function () {
|
|
350
|
-
function FooterService(footerComponents) {
|
|
351
|
-
var _this = this;
|
|
352
|
-
if (footerComponents === void 0) { footerComponents = null; }
|
|
353
|
-
/**
|
|
354
|
-
* @deprecated removed
|
|
355
|
-
*/
|
|
356
|
-
this.update$ = new rxjs.Subject();
|
|
357
|
-
this.components = [];
|
|
358
|
-
this.templates = [];
|
|
359
|
-
this.componentPortalMap = new WeakMap();
|
|
360
|
-
this.templatePortalMap = new WeakMap();
|
|
361
|
-
this.portals$ = new rxjs.BehaviorSubject([]);
|
|
362
|
-
this.portalCount$ = this.portals$.pipe(operators.map(function (portals) { return portals.length; }));
|
|
363
|
-
if (footerComponents) {
|
|
364
|
-
if (i0.isDevMode()) {
|
|
365
|
-
console.warn('The RXAP_FOOTER_COMPONENT InjectionToken is deprecated and will be removed in the feature!');
|
|
366
|
-
}
|
|
367
|
-
if (Array.isArray(footerComponents)) {
|
|
368
|
-
footerComponents.forEach(function (comp, index) { return _this.addComponent(comp, { order: index }, true); });
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
this.addComponent(footerComponents, { order: 0 }, true);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
Object.defineProperty(FooterService.prototype, "countComponent", {
|
|
376
|
-
/**
|
|
377
|
-
* @deprecated removed
|
|
378
|
-
*/
|
|
379
|
-
get: function () {
|
|
380
|
-
return this.components.length;
|
|
381
|
-
},
|
|
382
|
-
enumerable: false,
|
|
383
|
-
configurable: true
|
|
384
|
-
});
|
|
385
|
-
Object.defineProperty(FooterService.prototype, "countComponents", {
|
|
386
|
-
/**
|
|
387
|
-
* @deprecated removed
|
|
388
|
-
*/
|
|
389
|
-
get: function () {
|
|
390
|
-
return this.components.length;
|
|
391
|
-
},
|
|
392
|
-
enumerable: false,
|
|
393
|
-
configurable: true
|
|
394
|
-
});
|
|
395
|
-
Object.defineProperty(FooterService.prototype, "hasComponents", {
|
|
396
|
-
/**
|
|
397
|
-
* @deprecated removed
|
|
398
|
-
*/
|
|
399
|
-
get: function () {
|
|
400
|
-
return this.countComponents !== 0;
|
|
401
|
-
},
|
|
402
|
-
enumerable: false,
|
|
403
|
-
configurable: true
|
|
404
|
-
});
|
|
405
|
-
Object.defineProperty(FooterService.prototype, "hasComponentsOrTemplates", {
|
|
406
|
-
/**
|
|
407
|
-
* @deprecated removed
|
|
408
|
-
*/
|
|
409
|
-
get: function () {
|
|
410
|
-
return this.hasComponents || this.hasTemplates;
|
|
411
|
-
},
|
|
412
|
-
enumerable: false,
|
|
413
|
-
configurable: true
|
|
414
|
-
});
|
|
415
|
-
Object.defineProperty(FooterService.prototype, "countTemplates", {
|
|
416
|
-
/**
|
|
417
|
-
* @deprecated removed
|
|
418
|
-
*/
|
|
419
|
-
get: function () {
|
|
420
|
-
return this.templates.length;
|
|
421
|
-
},
|
|
422
|
-
enumerable: false,
|
|
423
|
-
configurable: true
|
|
424
|
-
});
|
|
425
|
-
Object.defineProperty(FooterService.prototype, "hasTemplates", {
|
|
426
|
-
/**
|
|
427
|
-
* @deprecated removed
|
|
428
|
-
*/
|
|
429
|
-
get: function () {
|
|
430
|
-
return this.countTemplates !== 0;
|
|
431
|
-
},
|
|
432
|
-
enumerable: false,
|
|
433
|
-
configurable: true
|
|
434
|
-
});
|
|
435
|
-
FooterService.prototype.pushPortal = function (portal) {
|
|
436
|
-
if (!this.portals$.value.includes(portal)) {
|
|
437
|
-
this.portals$.next(__spreadArray(__spreadArray([], __read(this.portals$.value)), [portal]));
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
if (i0.isDevMode()) {
|
|
441
|
-
console.warn('Can not add the same portal multiple times');
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
FooterService.prototype.removePortal = function (portal) {
|
|
446
|
-
var index = this.portals$.value.indexOf(portal);
|
|
447
|
-
if (index !== -1) {
|
|
448
|
-
var portals = __spreadArray([], __read(this.portals$.value));
|
|
449
|
-
portals.splice(index, 1);
|
|
450
|
-
this.portals$.next(portals);
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
/**
|
|
454
|
-
* @deprecated removed
|
|
455
|
-
*/
|
|
456
|
-
FooterService.prototype.addComponent = function (component, options, silent) {
|
|
457
|
-
if (options === void 0) { options = { order: 0 }; }
|
|
458
|
-
if (silent === void 0) { silent = false; }
|
|
459
|
-
this.components.push(Object.assign(Object.assign({}, options), { component: component }));
|
|
460
|
-
if (!silent) {
|
|
461
|
-
this.update$.next();
|
|
462
|
-
}
|
|
463
|
-
var portal$1 = new portal.ComponentPortal(component, null, options.injector);
|
|
464
|
-
this.pushPortal(portal$1);
|
|
465
|
-
this.componentPortalMap.set(component, portal$1);
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
* @deprecated removed
|
|
469
|
-
*/
|
|
470
|
-
FooterService.prototype.removeComponent = function (component) {
|
|
471
|
-
this.components = this.components.filter(function (coi) { return coi.component !== component; });
|
|
472
|
-
this.update$.next();
|
|
473
|
-
var portal = this.componentPortalMap.get(component);
|
|
474
|
-
if (portal) {
|
|
475
|
-
this.componentPortalMap.delete(component);
|
|
476
|
-
this.removePortal(portal);
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
/**
|
|
480
|
-
* @deprecated removed
|
|
481
|
-
*/
|
|
482
|
-
FooterService.prototype.addTemplate = function (template, viewContainerRef, options, silent) {
|
|
483
|
-
if (options === void 0) { options = { order: 0 }; }
|
|
484
|
-
if (silent === void 0) { silent = false; }
|
|
485
|
-
this.templates.push(Object.assign(Object.assign({}, options), { template: template }));
|
|
486
|
-
if (!silent) {
|
|
487
|
-
this.update$.next();
|
|
488
|
-
}
|
|
489
|
-
var portal$1 = new portal.TemplatePortal(template, viewContainerRef);
|
|
490
|
-
this.pushPortal(portal$1);
|
|
491
|
-
this.templatePortalMap.set(template, portal$1);
|
|
492
|
-
};
|
|
493
|
-
/**
|
|
494
|
-
* @deprecated removed
|
|
495
|
-
*/
|
|
496
|
-
FooterService.prototype.removeTemplate = function (template) {
|
|
497
|
-
this.templates = this.templates.filter(function (temp) { return temp.template !== template; });
|
|
498
|
-
this.update$.next();
|
|
499
|
-
var portal = this.templatePortalMap.get(template);
|
|
500
|
-
if (portal) {
|
|
501
|
-
this.removePortal(portal);
|
|
502
|
-
this.templatePortalMap.delete(template);
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
/**
|
|
506
|
-
* @deprecated removed
|
|
507
|
-
*/
|
|
508
|
-
FooterService.prototype.getComponents = function () {
|
|
509
|
-
return this
|
|
510
|
-
.components
|
|
511
|
-
.sort(function (a, b) { return (a.order || 0) - (b.order || 0); });
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* @deprecated removed
|
|
515
|
-
*/
|
|
516
|
-
FooterService.prototype.getTemplates = function () {
|
|
517
|
-
return this
|
|
518
|
-
.templates
|
|
519
|
-
.sort(function (a, b) { return (a.order || 0) - (b.order || 0); });
|
|
520
|
-
};
|
|
521
|
-
/**
|
|
522
|
-
* @deprecated removed
|
|
523
|
-
*/
|
|
524
|
-
FooterService.prototype.getComponentsAndTemplates = function () {
|
|
525
|
-
return __spreadArray(__spreadArray([], __read(this.templates)), __read(this.components)).sort(function (a, b) { return (a.order || 0) - (b.order || 0); });
|
|
526
|
-
};
|
|
527
|
-
return FooterService;
|
|
528
|
-
}());
|
|
529
|
-
FooterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FooterService, deps: [{ token: RXAP_FOOTER_COMPONENT, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
530
|
-
FooterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FooterService, providedIn: 'root' });
|
|
531
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FooterService, decorators: [{
|
|
532
|
-
type: i0.Injectable,
|
|
533
|
-
args: [{ providedIn: 'root' }]
|
|
534
|
-
}], ctorParameters: function () {
|
|
535
|
-
return [{ type: undefined, decorators: [{
|
|
536
|
-
type: i0.Optional
|
|
537
|
-
}, {
|
|
538
|
-
type: i0.Inject,
|
|
539
|
-
args: [RXAP_FOOTER_COMPONENT]
|
|
540
|
-
}] }];
|
|
541
|
-
} });
|
|
542
|
-
|
|
543
|
-
var ResetService = /** @class */ (function () {
|
|
544
|
-
function ResetService() {
|
|
545
|
-
this.view$ = new rxjs.Subject();
|
|
546
|
-
this.dataSource$ = new rxjs.Subject();
|
|
547
|
-
}
|
|
548
|
-
ResetService.prototype.resetView = function () {
|
|
549
|
-
this.view$.next();
|
|
550
|
-
};
|
|
551
|
-
ResetService.prototype.resetDataSource = function () {
|
|
552
|
-
// TODO : iterate over the list of active DataSources
|
|
553
|
-
this.dataSource$.next();
|
|
554
|
-
};
|
|
555
|
-
ResetService.prototype.resetAll = function () {
|
|
556
|
-
this.resetDataSource();
|
|
557
|
-
this.resetView();
|
|
558
|
-
};
|
|
559
|
-
return ResetService;
|
|
560
|
-
}());
|
|
561
|
-
ResetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ResetService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
562
|
-
ResetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ResetService, providedIn: 'root' });
|
|
563
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ResetService, decorators: [{
|
|
564
|
-
type: i0.Injectable,
|
|
565
|
-
args: [{ providedIn: 'root' }]
|
|
566
|
-
}] });
|
|
567
|
-
|
|
568
|
-
var ThemeService = /** @class */ (function () {
|
|
569
|
-
function ThemeService() {
|
|
570
|
-
this.baseFontSize = Number(localStorage.getItem('rxap-base-font-size') || 62.5);
|
|
571
|
-
// this.darkMode$ must be first bc the this.darkMode getter is used in this.toggleDarkTheme method
|
|
572
|
-
this.darkMode$ = new rxjs.BehaviorSubject(localStorage.getItem('rxap-light-theme') === null);
|
|
573
|
-
this.setBaseFontSize(this.baseFontSize);
|
|
574
|
-
this.toggleDarkTheme(this.darkMode);
|
|
575
|
-
}
|
|
576
|
-
Object.defineProperty(ThemeService.prototype, "darkMode", {
|
|
577
|
-
get: function () {
|
|
578
|
-
return this.darkMode$.value;
|
|
579
|
-
},
|
|
580
|
-
enumerable: false,
|
|
581
|
-
configurable: true
|
|
582
|
-
});
|
|
583
|
-
ThemeService.prototype.toggleDarkTheme = function (checked) {
|
|
584
|
-
if (checked === void 0) { checked = !this.darkMode; }
|
|
585
|
-
if (checked) {
|
|
586
|
-
document.body.classList.add('dark-theme');
|
|
587
|
-
localStorage.removeItem('rxap-light-theme');
|
|
588
|
-
this.darkMode$.next(true);
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
document.body.classList.remove('dark-theme');
|
|
592
|
-
localStorage.setItem('rxap-light-theme', 'true');
|
|
593
|
-
this.darkMode$.next(false);
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
|
-
ThemeService.prototype.setBaseFontSize = function (value) {
|
|
597
|
-
localStorage.setItem('rxap-base-font-size', value.toFixed(3));
|
|
598
|
-
document.documentElement.style.fontSize = value + "%";
|
|
599
|
-
this.baseFontSize = value;
|
|
600
|
-
switch (value) {
|
|
601
|
-
case 40:
|
|
602
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
603
|
-
document.body.classList.add('size-xxs');
|
|
604
|
-
break;
|
|
605
|
-
case 45:
|
|
606
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
607
|
-
document.body.classList.add('size-xs');
|
|
608
|
-
break;
|
|
609
|
-
case 55:
|
|
610
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
611
|
-
document.body.classList.add('size-s');
|
|
612
|
-
break;
|
|
613
|
-
case 62.5:
|
|
614
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
615
|
-
document.body.classList.add('size-m');
|
|
616
|
-
break;
|
|
617
|
-
case 70:
|
|
618
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
619
|
-
document.body.classList.add('size-l');
|
|
620
|
-
break;
|
|
621
|
-
case 80:
|
|
622
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
623
|
-
document.body.classList.add('size-xl');
|
|
624
|
-
break;
|
|
625
|
-
case 90:
|
|
626
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
627
|
-
document.body.classList.add('size-xxl');
|
|
628
|
-
break;
|
|
629
|
-
case 100:
|
|
630
|
-
document.body.classList.remove('size-xxs', 'size-xs', 'size-s', 'size-m', 'size-l', 'size-xl', 'size-xxl', 'size-xxxl');
|
|
631
|
-
document.body.classList.add('size-xxxl');
|
|
632
|
-
break;
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
return ThemeService;
|
|
636
|
-
}());
|
|
637
|
-
ThemeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ThemeService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
638
|
-
ThemeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ThemeService, providedIn: 'root' });
|
|
639
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ThemeService, decorators: [{
|
|
640
|
-
type: i0.Injectable,
|
|
641
|
-
args: [{ providedIn: 'root' }]
|
|
642
|
-
}], ctorParameters: function () { return []; } });
|
|
643
|
-
|
|
644
|
-
var HeaderService = /** @class */ (function () {
|
|
645
|
-
function HeaderService(router) {
|
|
646
|
-
this.router = router;
|
|
647
|
-
this.update$ = new rxjs.Subject();
|
|
648
|
-
this.components = [];
|
|
649
|
-
this.navigating$ = this.router.events.pipe(operators.filter(function (event) { return event instanceof i1.NavigationStart ||
|
|
650
|
-
event instanceof i1.NavigationEnd ||
|
|
651
|
-
event instanceof i1.NavigationCancel; }), operators.map(function (event) { return event instanceof i1.NavigationStart; }));
|
|
652
|
-
}
|
|
653
|
-
Object.defineProperty(HeaderService.prototype, "countComponent", {
|
|
654
|
-
get: function () {
|
|
655
|
-
return this.components.length + 1;
|
|
656
|
-
},
|
|
657
|
-
enumerable: false,
|
|
658
|
-
configurable: true
|
|
659
|
-
});
|
|
660
|
-
HeaderService.prototype.addComponent = function (component, order) {
|
|
661
|
-
if (order === void 0) { order = 0; }
|
|
662
|
-
this.components.push({ component: component, order: order });
|
|
663
|
-
this.update$.next();
|
|
664
|
-
};
|
|
665
|
-
/**
|
|
666
|
-
* Returns all added components ordered based on the order property
|
|
667
|
-
*/
|
|
668
|
-
HeaderService.prototype.getComponents = function () {
|
|
669
|
-
return this
|
|
670
|
-
.components
|
|
671
|
-
.sort(function (a, b) { return a.order - b.order; })
|
|
672
|
-
.map(function (item) { return item.component; });
|
|
673
|
-
};
|
|
674
|
-
return HeaderService;
|
|
675
|
-
}());
|
|
676
|
-
HeaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HeaderService, deps: [{ token: i1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
677
|
-
HeaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HeaderService, providedIn: 'root' });
|
|
678
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HeaderService, decorators: [{
|
|
679
|
-
type: i0.Injectable,
|
|
680
|
-
args: [{ providedIn: 'root' }]
|
|
681
|
-
}], ctorParameters: function () {
|
|
682
|
-
return [{ type: i1__namespace.Router, decorators: [{
|
|
683
|
-
type: i0.Inject,
|
|
684
|
-
args: [i1.Router]
|
|
685
|
-
}] }];
|
|
686
|
-
} });
|
|
687
|
-
|
|
688
|
-
var VersionService = /** @class */ (function () {
|
|
689
|
-
function VersionService() {
|
|
690
|
-
this.update$ = new rxjs.Subject();
|
|
691
|
-
this.modules = new Map();
|
|
692
|
-
}
|
|
693
|
-
VersionService.prototype.setModule = function (moduleId, version) {
|
|
694
|
-
this.modules.set(moduleId, version);
|
|
695
|
-
this.update$.next();
|
|
696
|
-
};
|
|
697
|
-
VersionService.prototype.get = function () {
|
|
698
|
-
return Array.from(this.modules.entries()).reduce(function (map, _a) {
|
|
699
|
-
var _b;
|
|
700
|
-
var _c = __read(_a, 2), moduleId = _c[0], version = _c[1];
|
|
701
|
-
return (Object.assign(Object.assign({}, map), (_b = {}, _b[moduleId] = version, _b)));
|
|
702
|
-
}, {});
|
|
703
|
-
};
|
|
704
|
-
return VersionService;
|
|
705
|
-
}());
|
|
706
|
-
VersionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: VersionService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
707
|
-
VersionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: VersionService, providedIn: 'root' });
|
|
708
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: VersionService, decorators: [{
|
|
709
|
-
type: i0.Injectable,
|
|
710
|
-
args: [{ providedIn: 'root' }]
|
|
711
|
-
}] });
|
|
712
|
-
|
|
713
|
-
var LocalStorageService = /** @class */ (function () {
|
|
714
|
-
function LocalStorageService() {
|
|
715
|
-
}
|
|
716
|
-
LocalStorageService.prototype.has = function (key) {
|
|
717
|
-
return localStorage.getItem(key) !== null;
|
|
718
|
-
};
|
|
719
|
-
LocalStorageService.prototype.set = function (key, value) {
|
|
720
|
-
if (typeof value !== 'string') {
|
|
721
|
-
localStorage.setItem(key, JSON.stringify(value));
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
localStorage.setItem(key, value);
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
LocalStorageService.prototype.get = function (key) {
|
|
728
|
-
return localStorage.getItem(key);
|
|
729
|
-
};
|
|
730
|
-
LocalStorageService.prototype.remove = function (key) {
|
|
731
|
-
localStorage.removeItem(key);
|
|
732
|
-
};
|
|
733
|
-
return LocalStorageService;
|
|
734
|
-
}());
|
|
735
|
-
LocalStorageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LocalStorageService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
736
|
-
LocalStorageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LocalStorageService, providedIn: 'root' });
|
|
737
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LocalStorageService, decorators: [{
|
|
738
|
-
type: i0.Injectable,
|
|
739
|
-
args: [{ providedIn: 'root' }]
|
|
740
|
-
}] });
|
|
741
|
-
|
|
742
|
-
var WindowContainerSidenavService = /** @class */ (function () {
|
|
743
|
-
function WindowContainerSidenavService() {
|
|
744
|
-
this.components = new Map();
|
|
745
|
-
this.add$ = new rxjs.Subject();
|
|
746
|
-
this.remove$ = new rxjs.Subject();
|
|
747
|
-
}
|
|
748
|
-
WindowContainerSidenavService.prototype.add = function (component) {
|
|
749
|
-
if (this.components.has(component.id)) {
|
|
750
|
-
this.remove$.next(component);
|
|
751
|
-
}
|
|
752
|
-
this.components.set(component.id, component);
|
|
753
|
-
this.add$.next(component);
|
|
754
|
-
};
|
|
755
|
-
WindowContainerSidenavService.prototype.remove = function (componentOrId) {
|
|
756
|
-
var id = typeof componentOrId === 'string' ? componentOrId : componentOrId.id;
|
|
757
|
-
if (this.components.has(id)) {
|
|
758
|
-
this.remove$.next(this.components.get(id));
|
|
759
|
-
this.components.delete(id);
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
WindowContainerSidenavService.prototype.getAll = function () {
|
|
763
|
-
return Array.from(this.components.values());
|
|
764
|
-
};
|
|
765
|
-
return WindowContainerSidenavService;
|
|
766
|
-
}());
|
|
767
|
-
WindowContainerSidenavService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContainerSidenavService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
768
|
-
WindowContainerSidenavService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContainerSidenavService, providedIn: 'root' });
|
|
769
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: WindowContainerSidenavService, decorators: [{
|
|
770
|
-
type: i0.Injectable,
|
|
771
|
-
args: [{ providedIn: 'root' }]
|
|
772
|
-
}] });
|
|
773
|
-
|
|
774
|
-
var ImageLoaderService = /** @class */ (function () {
|
|
775
|
-
function ImageLoaderService() {
|
|
776
|
-
this.loading = new Map();
|
|
777
|
-
this.loaded = new Map();
|
|
778
|
-
}
|
|
779
|
-
ImageLoaderService.prototype.load = function (imageSrc) {
|
|
780
|
-
var _this = this;
|
|
781
|
-
if (this.loaded.has(imageSrc)) {
|
|
782
|
-
return Promise.resolve();
|
|
783
|
-
}
|
|
784
|
-
if (this.loading.has(imageSrc)) {
|
|
785
|
-
return this.loading.get(imageSrc);
|
|
786
|
-
}
|
|
787
|
-
var loading = new Promise(function (resolve, reject) {
|
|
788
|
-
var image = new Image();
|
|
789
|
-
image.src = imageSrc;
|
|
790
|
-
image.onerror = reject;
|
|
791
|
-
image.onload = function () { return resolve(); };
|
|
792
|
-
}).then(function () {
|
|
793
|
-
_this.loaded.set(imageSrc, true);
|
|
794
|
-
}).finally(function () {
|
|
795
|
-
_this.loading.delete(imageSrc);
|
|
796
|
-
});
|
|
797
|
-
this.loading.set(imageSrc, loading);
|
|
798
|
-
return loading;
|
|
799
|
-
};
|
|
800
|
-
return ImageLoaderService;
|
|
801
|
-
}());
|
|
802
|
-
ImageLoaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageLoaderService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
803
|
-
ImageLoaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageLoaderService, providedIn: 'root' });
|
|
804
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageLoaderService, decorators: [{
|
|
805
|
-
type: i0.Injectable,
|
|
806
|
-
args: [{ providedIn: 'root' }]
|
|
807
|
-
}] });
|
|
808
|
-
|
|
809
|
-
var AvatarImageService = /** @class */ (function () {
|
|
810
|
-
function AvatarImageService() {
|
|
811
|
-
}
|
|
812
|
-
AvatarImageService.prototype.get = function (_a) {
|
|
813
|
-
var name = _a.name;
|
|
814
|
-
return new http.HttpRequest('GET', 'https://eu.ui-avatars.com/api', {
|
|
815
|
-
params: new http.HttpParams({ fromObject: { name: name } })
|
|
816
|
-
}).urlWithParams;
|
|
817
|
-
};
|
|
818
|
-
return AvatarImageService;
|
|
819
|
-
}());
|
|
820
|
-
AvatarImageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarImageService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
821
|
-
AvatarImageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarImageService, providedIn: 'root' });
|
|
822
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarImageService, decorators: [{
|
|
823
|
-
type: i0.Injectable,
|
|
824
|
-
args: [{ providedIn: 'root' }]
|
|
825
|
-
}] });
|
|
826
|
-
|
|
827
|
-
var LoadingIndicatorService = /** @class */ (function () {
|
|
828
|
-
function LoadingIndicatorService() {
|
|
829
|
-
this.loading$ = new rxjs$1.ToggleSubject(true);
|
|
830
|
-
this._attachedLoadingSubscription = new rxjs.Subscription();
|
|
831
|
-
this.isLoading$ = this.loading$.asObservable();
|
|
832
|
-
}
|
|
833
|
-
LoadingIndicatorService.prototype.attachLoading = function (loading$) {
|
|
834
|
-
this._attachedLoadingSubscription.add(loading$.pipe(operators.map(Boolean), operators.delay(0)).subscribe(this.loading$.next));
|
|
835
|
-
};
|
|
836
|
-
LoadingIndicatorService.prototype.ngOnDestroy = function () {
|
|
837
|
-
this._attachedLoadingSubscription.unsubscribe();
|
|
838
|
-
};
|
|
839
|
-
LoadingIndicatorService.prototype.disable = function () {
|
|
840
|
-
var _this = this;
|
|
841
|
-
setTimeout(function () {
|
|
842
|
-
_this.loading$.disable();
|
|
843
|
-
});
|
|
844
|
-
};
|
|
845
|
-
LoadingIndicatorService.prototype.enable = function () {
|
|
846
|
-
var _this = this;
|
|
847
|
-
setTimeout(function () {
|
|
848
|
-
_this.loading$.enable();
|
|
849
|
-
});
|
|
850
|
-
};
|
|
851
|
-
return LoadingIndicatorService;
|
|
852
|
-
}());
|
|
853
|
-
LoadingIndicatorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LoadingIndicatorService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
854
|
-
LoadingIndicatorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LoadingIndicatorService });
|
|
855
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LoadingIndicatorService, decorators: [{
|
|
856
|
-
type: i0.Injectable
|
|
857
|
-
}], ctorParameters: function () { return []; } });
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* Generated bundle index. Do not edit.
|
|
861
|
-
*/
|
|
862
|
-
|
|
863
|
-
exports.AvatarImageService = AvatarImageService;
|
|
864
|
-
exports.FooterService = FooterService;
|
|
865
|
-
exports.HeaderService = HeaderService;
|
|
866
|
-
exports.ImageLoaderService = ImageLoaderService;
|
|
867
|
-
exports.IsFooterComponent = IsFooterComponent;
|
|
868
|
-
exports.IsFooterTemplate = IsFooterTemplate;
|
|
869
|
-
exports.LoadingIndicatorService = LoadingIndicatorService;
|
|
870
|
-
exports.LocalStorageService = LocalStorageService;
|
|
871
|
-
exports.RXAP_FOOTER_COMPONENT = RXAP_FOOTER_COMPONENT;
|
|
872
|
-
exports.ResetService = ResetService;
|
|
873
|
-
exports.ThemeService = ThemeService;
|
|
874
|
-
exports.VersionService = VersionService;
|
|
875
|
-
exports.WindowContainerSidenavService = WindowContainerSidenavService;
|
|
876
|
-
|
|
877
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
878
|
-
|
|
879
|
-
})));
|
|
880
|
-
//# sourceMappingURL=rxap-services.umd.js.map
|