ng-http-loader 10.1.0 → 12.0.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/README.md +28 -14
- package/{esm2015/lib/components/abstract.loader.directive.js → esm2020/lib/components/abstract.loader.directive.mjs} +4 -4
- package/esm2020/lib/components/ng-http-loader.component.mjs +114 -0
- package/esm2020/lib/components/sk-chasing-dots/sk-chasing-dots.component.mjs +20 -0
- package/esm2020/lib/components/sk-cube-grid/sk-cube-grid.component.mjs +20 -0
- package/esm2020/lib/components/sk-double-bounce/sk-double-bounce.component.mjs +20 -0
- package/esm2020/lib/components/sk-rotating-plane/sk-rotating-plane.component.mjs +20 -0
- package/esm2020/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.mjs +20 -0
- package/esm2020/lib/components/sk-three-bounce/sk-three-bounce.component.mjs +20 -0
- package/esm2020/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.mjs +20 -0
- package/esm2020/lib/components/sk-wave/sk-wave.component.mjs +20 -0
- package/esm2020/lib/ng-http-loader.module.mjs +52 -0
- package/{esm2015/lib/services/pending-requests-interceptor.service.js → esm2020/lib/services/pending-requests-interceptor.service.mjs} +4 -4
- package/{esm2015/lib/services/spinner-visibility.service.js → esm2020/lib/services/spinner-visibility.service.mjs} +4 -4
- package/{esm2015/lib/spinkits.js → esm2020/lib/spinkits.mjs} +0 -0
- package/{esm2015/ng-http-loader.js → esm2020/ng-http-loader.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/fesm2015/ng-http-loader.mjs +459 -0
- package/fesm2015/ng-http-loader.mjs.map +1 -0
- package/fesm2020/ng-http-loader.mjs +459 -0
- package/fesm2020/ng-http-loader.mjs.map +1 -0
- package/{ng-http-loader.d.ts → index.d.ts} +0 -0
- package/lib/components/abstract.loader.directive.d.ts +1 -1
- package/lib/components/ng-http-loader.component.d.ts +2 -2
- package/lib/components/sk-chasing-dots/sk-chasing-dots.component.d.ts +1 -1
- package/lib/components/sk-cube-grid/sk-cube-grid.component.d.ts +1 -1
- package/lib/components/sk-double-bounce/sk-double-bounce.component.d.ts +1 -1
- package/lib/components/sk-rotating-plane/sk-rotating-plane.component.d.ts +1 -1
- package/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.d.ts +1 -1
- package/lib/components/sk-three-bounce/sk-three-bounce.component.d.ts +1 -1
- package/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.d.ts +1 -1
- package/lib/components/sk-wave/sk-wave.component.d.ts +1 -1
- package/package.json +24 -8
- package/bundles/ng-http-loader.umd.js +0 -851
- package/bundles/ng-http-loader.umd.js.map +0 -1
- package/esm2015/lib/components/ng-http-loader.component.js +0 -118
- package/esm2015/lib/components/sk-chasing-dots/sk-chasing-dots.component.js +0 -24
- package/esm2015/lib/components/sk-cube-grid/sk-cube-grid.component.js +0 -24
- package/esm2015/lib/components/sk-double-bounce/sk-double-bounce.component.js +0 -24
- package/esm2015/lib/components/sk-rotating-plane/sk-rotating-plane.component.js +0 -24
- package/esm2015/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.js +0 -24
- package/esm2015/lib/components/sk-three-bounce/sk-three-bounce.component.js +0 -24
- package/esm2015/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.js +0 -24
- package/esm2015/lib/components/sk-wave/sk-wave.component.js +0 -24
- package/esm2015/lib/ng-http-loader.module.js +0 -54
- package/fesm2015/ng-http-loader.js +0 -497
- package/fesm2015/ng-http-loader.js.map +0 -1
|
@@ -1,851 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common/http'), require('@angular/common')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ng-http-loader', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/common/http', '@angular/common'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ng-http-loader"] = {}, global.ng.core, global.rxjs, global.rxjs.operators, global.ng.common.http, global.ng.common));
|
|
5
|
-
})(this, (function (exports, i0, rxjs, operators, http, i11) { '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 () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
27
|
-
|
|
28
|
-
/*! *****************************************************************************
|
|
29
|
-
Copyright (c) Microsoft Corporation.
|
|
30
|
-
|
|
31
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
32
|
-
purpose with or without fee is hereby granted.
|
|
33
|
-
|
|
34
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
35
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
36
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
37
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
38
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
39
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
40
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
41
|
-
***************************************************************************** */
|
|
42
|
-
/* global Reflect, Promise */
|
|
43
|
-
var extendStatics = function (d, b) {
|
|
44
|
-
extendStatics = Object.setPrototypeOf ||
|
|
45
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
46
|
-
function (d, b) { for (var p in b)
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
48
|
-
d[p] = b[p]; };
|
|
49
|
-
return extendStatics(d, b);
|
|
50
|
-
};
|
|
51
|
-
function __extends(d, b) {
|
|
52
|
-
if (typeof b !== "function" && b !== null)
|
|
53
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54
|
-
extendStatics(d, b);
|
|
55
|
-
function __() { this.constructor = d; }
|
|
56
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
57
|
-
}
|
|
58
|
-
var __assign = function () {
|
|
59
|
-
__assign = Object.assign || function __assign(t) {
|
|
60
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
61
|
-
s = arguments[i];
|
|
62
|
-
for (var p in s)
|
|
63
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
64
|
-
t[p] = s[p];
|
|
65
|
-
}
|
|
66
|
-
return t;
|
|
67
|
-
};
|
|
68
|
-
return __assign.apply(this, arguments);
|
|
69
|
-
};
|
|
70
|
-
function __rest(s, e) {
|
|
71
|
-
var t = {};
|
|
72
|
-
for (var p in s)
|
|
73
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
74
|
-
t[p] = s[p];
|
|
75
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
76
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
77
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
78
|
-
t[p[i]] = s[p[i]];
|
|
79
|
-
}
|
|
80
|
-
return t;
|
|
81
|
-
}
|
|
82
|
-
function __decorate(decorators, target, key, desc) {
|
|
83
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
84
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
85
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
86
|
-
else
|
|
87
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
88
|
-
if (d = decorators[i])
|
|
89
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
90
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
91
|
-
}
|
|
92
|
-
function __param(paramIndex, decorator) {
|
|
93
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
94
|
-
}
|
|
95
|
-
function __metadata(metadataKey, metadataValue) {
|
|
96
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
97
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
98
|
-
}
|
|
99
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
100
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
101
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
102
|
-
function fulfilled(value) { try {
|
|
103
|
-
step(generator.next(value));
|
|
104
|
-
}
|
|
105
|
-
catch (e) {
|
|
106
|
-
reject(e);
|
|
107
|
-
} }
|
|
108
|
-
function rejected(value) { try {
|
|
109
|
-
step(generator["throw"](value));
|
|
110
|
-
}
|
|
111
|
-
catch (e) {
|
|
112
|
-
reject(e);
|
|
113
|
-
} }
|
|
114
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
115
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function __generator(thisArg, body) {
|
|
119
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
120
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
121
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
122
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
123
|
-
function step(op) {
|
|
124
|
-
if (f)
|
|
125
|
-
throw new TypeError("Generator is already executing.");
|
|
126
|
-
while (_)
|
|
127
|
-
try {
|
|
128
|
-
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)
|
|
129
|
-
return t;
|
|
130
|
-
if (y = 0, t)
|
|
131
|
-
op = [op[0] & 2, t.value];
|
|
132
|
-
switch (op[0]) {
|
|
133
|
-
case 0:
|
|
134
|
-
case 1:
|
|
135
|
-
t = op;
|
|
136
|
-
break;
|
|
137
|
-
case 4:
|
|
138
|
-
_.label++;
|
|
139
|
-
return { value: op[1], done: false };
|
|
140
|
-
case 5:
|
|
141
|
-
_.label++;
|
|
142
|
-
y = op[1];
|
|
143
|
-
op = [0];
|
|
144
|
-
continue;
|
|
145
|
-
case 7:
|
|
146
|
-
op = _.ops.pop();
|
|
147
|
-
_.trys.pop();
|
|
148
|
-
continue;
|
|
149
|
-
default:
|
|
150
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
151
|
-
_ = 0;
|
|
152
|
-
continue;
|
|
153
|
-
}
|
|
154
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
155
|
-
_.label = op[1];
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
159
|
-
_.label = t[1];
|
|
160
|
-
t = op;
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
if (t && _.label < t[2]) {
|
|
164
|
-
_.label = t[2];
|
|
165
|
-
_.ops.push(op);
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
if (t[2])
|
|
169
|
-
_.ops.pop();
|
|
170
|
-
_.trys.pop();
|
|
171
|
-
continue;
|
|
172
|
-
}
|
|
173
|
-
op = body.call(thisArg, _);
|
|
174
|
-
}
|
|
175
|
-
catch (e) {
|
|
176
|
-
op = [6, e];
|
|
177
|
-
y = 0;
|
|
178
|
-
}
|
|
179
|
-
finally {
|
|
180
|
-
f = t = 0;
|
|
181
|
-
}
|
|
182
|
-
if (op[0] & 5)
|
|
183
|
-
throw op[1];
|
|
184
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
188
|
-
if (k2 === undefined)
|
|
189
|
-
k2 = k;
|
|
190
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
191
|
-
}) : (function (o, m, k, k2) {
|
|
192
|
-
if (k2 === undefined)
|
|
193
|
-
k2 = k;
|
|
194
|
-
o[k2] = m[k];
|
|
195
|
-
});
|
|
196
|
-
function __exportStar(m, o) {
|
|
197
|
-
for (var p in m)
|
|
198
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
199
|
-
__createBinding(o, m, p);
|
|
200
|
-
}
|
|
201
|
-
function __values(o) {
|
|
202
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
203
|
-
if (m)
|
|
204
|
-
return m.call(o);
|
|
205
|
-
if (o && typeof o.length === "number")
|
|
206
|
-
return {
|
|
207
|
-
next: function () {
|
|
208
|
-
if (o && i >= o.length)
|
|
209
|
-
o = void 0;
|
|
210
|
-
return { value: o && o[i++], done: !o };
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
214
|
-
}
|
|
215
|
-
function __read(o, n) {
|
|
216
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
217
|
-
if (!m)
|
|
218
|
-
return o;
|
|
219
|
-
var i = m.call(o), r, ar = [], e;
|
|
220
|
-
try {
|
|
221
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
222
|
-
ar.push(r.value);
|
|
223
|
-
}
|
|
224
|
-
catch (error) {
|
|
225
|
-
e = { error: error };
|
|
226
|
-
}
|
|
227
|
-
finally {
|
|
228
|
-
try {
|
|
229
|
-
if (r && !r.done && (m = i["return"]))
|
|
230
|
-
m.call(i);
|
|
231
|
-
}
|
|
232
|
-
finally {
|
|
233
|
-
if (e)
|
|
234
|
-
throw e.error;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
return ar;
|
|
238
|
-
}
|
|
239
|
-
/** @deprecated */
|
|
240
|
-
function __spread() {
|
|
241
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
242
|
-
ar = ar.concat(__read(arguments[i]));
|
|
243
|
-
return ar;
|
|
244
|
-
}
|
|
245
|
-
/** @deprecated */
|
|
246
|
-
function __spreadArrays() {
|
|
247
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
248
|
-
s += arguments[i].length;
|
|
249
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
250
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
251
|
-
r[k] = a[j];
|
|
252
|
-
return r;
|
|
253
|
-
}
|
|
254
|
-
function __spreadArray(to, from, pack) {
|
|
255
|
-
if (pack || arguments.length === 2)
|
|
256
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
257
|
-
if (ar || !(i in from)) {
|
|
258
|
-
if (!ar)
|
|
259
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
260
|
-
ar[i] = from[i];
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
264
|
-
}
|
|
265
|
-
function __await(v) {
|
|
266
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
267
|
-
}
|
|
268
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
269
|
-
if (!Symbol.asyncIterator)
|
|
270
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
271
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
272
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
273
|
-
function verb(n) { if (g[n])
|
|
274
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
275
|
-
function resume(n, v) { try {
|
|
276
|
-
step(g[n](v));
|
|
277
|
-
}
|
|
278
|
-
catch (e) {
|
|
279
|
-
settle(q[0][3], e);
|
|
280
|
-
} }
|
|
281
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
282
|
-
function fulfill(value) { resume("next", value); }
|
|
283
|
-
function reject(value) { resume("throw", value); }
|
|
284
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
285
|
-
resume(q[0][0], q[0][1]); }
|
|
286
|
-
}
|
|
287
|
-
function __asyncDelegator(o) {
|
|
288
|
-
var i, p;
|
|
289
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
290
|
-
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; }
|
|
291
|
-
}
|
|
292
|
-
function __asyncValues(o) {
|
|
293
|
-
if (!Symbol.asyncIterator)
|
|
294
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
295
|
-
var m = o[Symbol.asyncIterator], i;
|
|
296
|
-
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);
|
|
297
|
-
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); }); }; }
|
|
298
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
299
|
-
}
|
|
300
|
-
function __makeTemplateObject(cooked, raw) {
|
|
301
|
-
if (Object.defineProperty) {
|
|
302
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
cooked.raw = raw;
|
|
306
|
-
}
|
|
307
|
-
return cooked;
|
|
308
|
-
}
|
|
309
|
-
;
|
|
310
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
311
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
312
|
-
}) : function (o, v) {
|
|
313
|
-
o["default"] = v;
|
|
314
|
-
};
|
|
315
|
-
function __importStar(mod) {
|
|
316
|
-
if (mod && mod.__esModule)
|
|
317
|
-
return mod;
|
|
318
|
-
var result = {};
|
|
319
|
-
if (mod != null)
|
|
320
|
-
for (var k in mod)
|
|
321
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
322
|
-
__createBinding(result, mod, k);
|
|
323
|
-
__setModuleDefault(result, mod);
|
|
324
|
-
return result;
|
|
325
|
-
}
|
|
326
|
-
function __importDefault(mod) {
|
|
327
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
328
|
-
}
|
|
329
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
330
|
-
if (kind === "a" && !f)
|
|
331
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
332
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
333
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
334
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
335
|
-
}
|
|
336
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
337
|
-
if (kind === "m")
|
|
338
|
-
throw new TypeError("Private method is not writable");
|
|
339
|
-
if (kind === "a" && !f)
|
|
340
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
341
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
342
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
343
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/*
|
|
347
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
348
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
349
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
350
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
351
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
352
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
353
|
-
*/
|
|
354
|
-
var AbstractLoaderDirective = /** @class */ (function () {
|
|
355
|
-
function AbstractLoaderDirective() {
|
|
356
|
-
}
|
|
357
|
-
return AbstractLoaderDirective;
|
|
358
|
-
}());
|
|
359
|
-
AbstractLoaderDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AbstractLoaderDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
360
|
-
AbstractLoaderDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: AbstractLoaderDirective, inputs: { backgroundColor: "backgroundColor" }, ngImport: i0__namespace });
|
|
361
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: AbstractLoaderDirective, decorators: [{
|
|
362
|
-
type: i0.Directive
|
|
363
|
-
}], propDecorators: { backgroundColor: [{
|
|
364
|
-
type: i0.Input
|
|
365
|
-
}] } });
|
|
366
|
-
|
|
367
|
-
var SkChasingDotsComponent = /** @class */ (function (_super) {
|
|
368
|
-
__extends(SkChasingDotsComponent, _super);
|
|
369
|
-
function SkChasingDotsComponent() {
|
|
370
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
371
|
-
}
|
|
372
|
-
return SkChasingDotsComponent;
|
|
373
|
-
}(AbstractLoaderDirective));
|
|
374
|
-
SkChasingDotsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkChasingDotsComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
375
|
-
SkChasingDotsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkChasingDotsComponent, selector: "sk-chasing-dots", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-chasing-dots\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-dot1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-dot2\" [style.background-color]='backgroundColor'></div>\n</div>\n", styles: [".sk-chasing-dots{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots .sk-child{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots .sk-dot2{top:auto;bottom:0;animation-delay:-1s}@keyframes sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}\n"] });
|
|
376
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkChasingDotsComponent, decorators: [{
|
|
377
|
-
type: i0.Component,
|
|
378
|
-
args: [{
|
|
379
|
-
selector: 'sk-chasing-dots',
|
|
380
|
-
templateUrl: './sk-chasing-dots.component.html',
|
|
381
|
-
styleUrls: ['./sk-chasing-dots.component.scss']
|
|
382
|
-
}]
|
|
383
|
-
}] });
|
|
384
|
-
|
|
385
|
-
var SkCubeGridComponent = /** @class */ (function (_super) {
|
|
386
|
-
__extends(SkCubeGridComponent, _super);
|
|
387
|
-
function SkCubeGridComponent() {
|
|
388
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
389
|
-
}
|
|
390
|
-
return SkCubeGridComponent;
|
|
391
|
-
}(AbstractLoaderDirective));
|
|
392
|
-
SkCubeGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkCubeGridComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
393
|
-
SkCubeGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkCubeGridComponent, selector: "sk-cube-grid", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-cube-grid\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-cube sk-cube1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube3\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube4\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube5\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube6\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube7\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube8\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube9\" [style.background-color]='backgroundColor'></div>\n</div>\n", styles: [".sk-cube-grid{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid .sk-cube{width:33.33%;height:33.33%;float:left;animation:sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid .sk-cube1{animation-delay:.2s}.sk-cube-grid .sk-cube2{animation-delay:.3s}.sk-cube-grid .sk-cube3{animation-delay:.4s}.sk-cube-grid .sk-cube4{animation-delay:.1s}.sk-cube-grid .sk-cube5{animation-delay:.2s}.sk-cube-grid .sk-cube6{animation-delay:.3s}.sk-cube-grid .sk-cube7{animation-delay:0s}.sk-cube-grid .sk-cube8{animation-delay:.1s}.sk-cube-grid .sk-cube9{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scale(1)}35%{transform:scale(0)}}\n"] });
|
|
394
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkCubeGridComponent, decorators: [{
|
|
395
|
-
type: i0.Component,
|
|
396
|
-
args: [{
|
|
397
|
-
selector: 'sk-cube-grid',
|
|
398
|
-
templateUrl: './sk-cube-grid.component.html',
|
|
399
|
-
styleUrls: ['./sk-cube-grid.component.scss']
|
|
400
|
-
}]
|
|
401
|
-
}] });
|
|
402
|
-
|
|
403
|
-
var SkDoubleBounceComponent = /** @class */ (function (_super) {
|
|
404
|
-
__extends(SkDoubleBounceComponent, _super);
|
|
405
|
-
function SkDoubleBounceComponent() {
|
|
406
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
407
|
-
}
|
|
408
|
-
return SkDoubleBounceComponent;
|
|
409
|
-
}(AbstractLoaderDirective));
|
|
410
|
-
SkDoubleBounceComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkDoubleBounceComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
411
|
-
SkDoubleBounceComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkDoubleBounceComponent, selector: "sk-double-bounce", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-double-bounce\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-double-bounce1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-double-bounce2\" [style.background-color]='backgroundColor'></div>\n</div>\n", styles: [".sk-double-bounce{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce .sk-child{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce .sk-double-bounce2{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}\n"] });
|
|
412
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkDoubleBounceComponent, decorators: [{
|
|
413
|
-
type: i0.Component,
|
|
414
|
-
args: [{
|
|
415
|
-
selector: 'sk-double-bounce',
|
|
416
|
-
templateUrl: './sk-double-bounce.component.html',
|
|
417
|
-
styleUrls: ['./sk-double-bounce.component.scss']
|
|
418
|
-
}]
|
|
419
|
-
}] });
|
|
420
|
-
|
|
421
|
-
var SkRotatingPlaneComponent = /** @class */ (function (_super) {
|
|
422
|
-
__extends(SkRotatingPlaneComponent, _super);
|
|
423
|
-
function SkRotatingPlaneComponent() {
|
|
424
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
425
|
-
}
|
|
426
|
-
return SkRotatingPlaneComponent;
|
|
427
|
-
}(AbstractLoaderDirective));
|
|
428
|
-
SkRotatingPlaneComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkRotatingPlaneComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
429
|
-
SkRotatingPlaneComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkRotatingPlaneComponent, selector: "sk-rotating-plane", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-rotating-plane colored-parent\" [style.background-color]='backgroundColor'></div>\n", styles: [".sk-rotating-plane{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:sk-rotatePlane 1.2s infinite ease-in-out}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}\n"] });
|
|
430
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkRotatingPlaneComponent, decorators: [{
|
|
431
|
-
type: i0.Component,
|
|
432
|
-
args: [{
|
|
433
|
-
selector: 'sk-rotating-plane',
|
|
434
|
-
templateUrl: './sk-rotating-plane.component.html',
|
|
435
|
-
styleUrls: ['./sk-rotating-plane.component.scss']
|
|
436
|
-
}]
|
|
437
|
-
}] });
|
|
438
|
-
|
|
439
|
-
var SkSpinnerPulseComponent = /** @class */ (function (_super) {
|
|
440
|
-
__extends(SkSpinnerPulseComponent, _super);
|
|
441
|
-
function SkSpinnerPulseComponent() {
|
|
442
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
443
|
-
}
|
|
444
|
-
return SkSpinnerPulseComponent;
|
|
445
|
-
}(AbstractLoaderDirective));
|
|
446
|
-
SkSpinnerPulseComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkSpinnerPulseComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
447
|
-
SkSpinnerPulseComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkSpinnerPulseComponent, selector: "sk-spinner-pulse", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-spinner sk-spinner-pulse colored-parent\" [style.background-color]='backgroundColor'></div>\n", styles: [".sk-spinner-pulse{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:sk-pulseScaleOut 1s infinite ease-in-out}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}\n"] });
|
|
448
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkSpinnerPulseComponent, decorators: [{
|
|
449
|
-
type: i0.Component,
|
|
450
|
-
args: [{
|
|
451
|
-
selector: 'sk-spinner-pulse',
|
|
452
|
-
templateUrl: './sk-spinner-pulse.component.html',
|
|
453
|
-
styleUrls: ['./sk-spinner-pulse.component.scss']
|
|
454
|
-
}]
|
|
455
|
-
}] });
|
|
456
|
-
|
|
457
|
-
var SkThreeBounceComponent = /** @class */ (function (_super) {
|
|
458
|
-
__extends(SkThreeBounceComponent, _super);
|
|
459
|
-
function SkThreeBounceComponent() {
|
|
460
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
461
|
-
}
|
|
462
|
-
return SkThreeBounceComponent;
|
|
463
|
-
}(AbstractLoaderDirective));
|
|
464
|
-
SkThreeBounceComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkThreeBounceComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
465
|
-
SkThreeBounceComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkThreeBounceComponent, selector: "sk-three-bounce", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-three-bounce\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-bounce2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-bounce3\" [style.background-color]='backgroundColor'></div>\n</div>\n", styles: [".sk-three-bounce{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce .sk-child{width:20px;height:20px;border-radius:100%;display:inline-block;animation:sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce .sk-bounce1{animation-delay:-.32s}.sk-three-bounce .sk-bounce2{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}\n"] });
|
|
466
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkThreeBounceComponent, decorators: [{
|
|
467
|
-
type: i0.Component,
|
|
468
|
-
args: [{
|
|
469
|
-
selector: 'sk-three-bounce',
|
|
470
|
-
templateUrl: './sk-three-bounce.component.html',
|
|
471
|
-
styleUrls: ['./sk-three-bounce.component.scss']
|
|
472
|
-
}]
|
|
473
|
-
}] });
|
|
474
|
-
|
|
475
|
-
var SkWanderingCubesComponent = /** @class */ (function (_super) {
|
|
476
|
-
__extends(SkWanderingCubesComponent, _super);
|
|
477
|
-
function SkWanderingCubesComponent() {
|
|
478
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
479
|
-
}
|
|
480
|
-
return SkWanderingCubesComponent;
|
|
481
|
-
}(AbstractLoaderDirective));
|
|
482
|
-
SkWanderingCubesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkWanderingCubesComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
483
|
-
SkWanderingCubesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkWanderingCubesComponent, selector: "sk-wandering-cubes", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-wandering-cubes\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-cube sk-cube1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube2\" [style.background-color]='backgroundColor'></div>\n</div>\n", styles: [".sk-wandering-cubes{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes .sk-cube{width:10px;height:10px;position:absolute;top:0;left:0;animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes .sk-cube2{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}\n"] });
|
|
484
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkWanderingCubesComponent, decorators: [{
|
|
485
|
-
type: i0.Component,
|
|
486
|
-
args: [{
|
|
487
|
-
selector: 'sk-wandering-cubes',
|
|
488
|
-
templateUrl: './sk-wandering-cubes.component.html',
|
|
489
|
-
styleUrls: ['./sk-wandering-cubes.component.scss']
|
|
490
|
-
}]
|
|
491
|
-
}] });
|
|
492
|
-
|
|
493
|
-
var SkWaveComponent = /** @class */ (function (_super) {
|
|
494
|
-
__extends(SkWaveComponent, _super);
|
|
495
|
-
function SkWaveComponent() {
|
|
496
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
497
|
-
}
|
|
498
|
-
return SkWaveComponent;
|
|
499
|
-
}(AbstractLoaderDirective));
|
|
500
|
-
SkWaveComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkWaveComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
501
|
-
SkWaveComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: SkWaveComponent, selector: "sk-wave", usesInheritance: true, ngImport: i0__namespace, template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-wave\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-rect sk-rect1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect3\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect4\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect5\" [style.background-color]='backgroundColor'></div>\n</div>\n", styles: [".sk-wave{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave .sk-rect{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave .sk-rect1{animation-delay:-1.2s}.sk-wave .sk-rect2{animation-delay:-1.1s}.sk-wave .sk-rect3{animation-delay:-1s}.sk-wave .sk-rect4{animation-delay:-.9s}.sk-wave .sk-rect5{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}\n"] });
|
|
502
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SkWaveComponent, decorators: [{
|
|
503
|
-
type: i0.Component,
|
|
504
|
-
args: [{
|
|
505
|
-
selector: 'sk-wave',
|
|
506
|
-
templateUrl: './sk-wave.component.html',
|
|
507
|
-
styleUrls: ['./sk-wave.component.scss']
|
|
508
|
-
}]
|
|
509
|
-
}] });
|
|
510
|
-
|
|
511
|
-
/*
|
|
512
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
513
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
514
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
515
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
516
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
517
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
518
|
-
*/
|
|
519
|
-
var Spinkit = {
|
|
520
|
-
skChasingDots: 'sk-chasing-dots',
|
|
521
|
-
skCubeGrid: 'sk-cube-grid',
|
|
522
|
-
skDoubleBounce: 'sk-double-bounce',
|
|
523
|
-
skRotatingPlane: 'sk-rotationg-plane',
|
|
524
|
-
skSpinnerPulse: 'sk-spinner-pulse',
|
|
525
|
-
skThreeBounce: 'sk-three-bounce',
|
|
526
|
-
skWanderingCubes: 'sk-wandering-cubes',
|
|
527
|
-
skWave: 'sk-wave'
|
|
528
|
-
};
|
|
529
|
-
var SPINKIT_COMPONENTS = [
|
|
530
|
-
SkCubeGridComponent,
|
|
531
|
-
SkChasingDotsComponent,
|
|
532
|
-
SkDoubleBounceComponent,
|
|
533
|
-
SkRotatingPlaneComponent,
|
|
534
|
-
SkSpinnerPulseComponent,
|
|
535
|
-
SkThreeBounceComponent,
|
|
536
|
-
SkWanderingCubesComponent,
|
|
537
|
-
SkWaveComponent,
|
|
538
|
-
];
|
|
539
|
-
|
|
540
|
-
/*
|
|
541
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
542
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
543
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
544
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
545
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
546
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
547
|
-
*/
|
|
548
|
-
var PendingRequestsInterceptor = /** @class */ (function () {
|
|
549
|
-
function PendingRequestsInterceptor() {
|
|
550
|
-
this._pendingRequests = 0;
|
|
551
|
-
this._pendingRequestsStatus$ = new rxjs.ReplaySubject(1);
|
|
552
|
-
this._filteredUrlPatterns = [];
|
|
553
|
-
this._filteredMethods = [];
|
|
554
|
-
this._filteredHeaders = [];
|
|
555
|
-
this._forceByPass = false;
|
|
556
|
-
}
|
|
557
|
-
Object.defineProperty(PendingRequestsInterceptor.prototype, "pendingRequestsStatus$", {
|
|
558
|
-
get: function () {
|
|
559
|
-
return this._pendingRequestsStatus$.asObservable();
|
|
560
|
-
},
|
|
561
|
-
enumerable: false,
|
|
562
|
-
configurable: true
|
|
563
|
-
});
|
|
564
|
-
Object.defineProperty(PendingRequestsInterceptor.prototype, "pendingRequests", {
|
|
565
|
-
get: function () {
|
|
566
|
-
return this._pendingRequests;
|
|
567
|
-
},
|
|
568
|
-
enumerable: false,
|
|
569
|
-
configurable: true
|
|
570
|
-
});
|
|
571
|
-
Object.defineProperty(PendingRequestsInterceptor.prototype, "filteredUrlPatterns", {
|
|
572
|
-
get: function () {
|
|
573
|
-
return this._filteredUrlPatterns;
|
|
574
|
-
},
|
|
575
|
-
enumerable: false,
|
|
576
|
-
configurable: true
|
|
577
|
-
});
|
|
578
|
-
Object.defineProperty(PendingRequestsInterceptor.prototype, "filteredMethods", {
|
|
579
|
-
set: function (httpMethods) {
|
|
580
|
-
this._filteredMethods = httpMethods;
|
|
581
|
-
},
|
|
582
|
-
enumerable: false,
|
|
583
|
-
configurable: true
|
|
584
|
-
});
|
|
585
|
-
Object.defineProperty(PendingRequestsInterceptor.prototype, "filteredHeaders", {
|
|
586
|
-
set: function (value) {
|
|
587
|
-
this._filteredHeaders = value;
|
|
588
|
-
},
|
|
589
|
-
enumerable: false,
|
|
590
|
-
configurable: true
|
|
591
|
-
});
|
|
592
|
-
Object.defineProperty(PendingRequestsInterceptor.prototype, "forceByPass", {
|
|
593
|
-
set: function (value) {
|
|
594
|
-
this._forceByPass = value;
|
|
595
|
-
},
|
|
596
|
-
enumerable: false,
|
|
597
|
-
configurable: true
|
|
598
|
-
});
|
|
599
|
-
PendingRequestsInterceptor.prototype.shouldBypassUrl = function (url) {
|
|
600
|
-
return this._filteredUrlPatterns.some(function (e) {
|
|
601
|
-
return e.test(url);
|
|
602
|
-
});
|
|
603
|
-
};
|
|
604
|
-
PendingRequestsInterceptor.prototype.shouldBypassMethod = function (req) {
|
|
605
|
-
return this._filteredMethods.some(function (e) {
|
|
606
|
-
return e.toUpperCase() === req.method.toUpperCase();
|
|
607
|
-
});
|
|
608
|
-
};
|
|
609
|
-
PendingRequestsInterceptor.prototype.shouldBypassHeader = function (req) {
|
|
610
|
-
return this._filteredHeaders.some(function (e) {
|
|
611
|
-
return req.headers.has(e);
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
PendingRequestsInterceptor.prototype.shouldBypass = function (req) {
|
|
615
|
-
return this._forceByPass
|
|
616
|
-
|| this.shouldBypassUrl(req.urlWithParams)
|
|
617
|
-
|| this.shouldBypassMethod(req)
|
|
618
|
-
|| this.shouldBypassHeader(req);
|
|
619
|
-
};
|
|
620
|
-
PendingRequestsInterceptor.prototype.intercept = function (req, next) {
|
|
621
|
-
var _this = this;
|
|
622
|
-
var shouldBypass = this.shouldBypass(req);
|
|
623
|
-
if (!shouldBypass) {
|
|
624
|
-
this._pendingRequests++;
|
|
625
|
-
if (1 === this._pendingRequests) {
|
|
626
|
-
this._pendingRequestsStatus$.next(true);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
return next.handle(req).pipe(operators.finalize(function () {
|
|
630
|
-
if (!shouldBypass) {
|
|
631
|
-
_this._pendingRequests--;
|
|
632
|
-
if (0 === _this._pendingRequests) {
|
|
633
|
-
_this._pendingRequestsStatus$.next(false);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}));
|
|
637
|
-
};
|
|
638
|
-
return PendingRequestsInterceptor;
|
|
639
|
-
}());
|
|
640
|
-
PendingRequestsInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: PendingRequestsInterceptor, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
641
|
-
PendingRequestsInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: PendingRequestsInterceptor, providedIn: 'root' });
|
|
642
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: PendingRequestsInterceptor, decorators: [{
|
|
643
|
-
type: i0.Injectable,
|
|
644
|
-
args: [{
|
|
645
|
-
providedIn: 'root'
|
|
646
|
-
}]
|
|
647
|
-
}] });
|
|
648
|
-
var PendingRequestsInterceptorProvider = [{
|
|
649
|
-
provide: http.HTTP_INTERCEPTORS,
|
|
650
|
-
useExisting: PendingRequestsInterceptor,
|
|
651
|
-
multi: true
|
|
652
|
-
}];
|
|
653
|
-
|
|
654
|
-
/*
|
|
655
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
656
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
657
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
658
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
659
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
660
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
661
|
-
*/
|
|
662
|
-
var SpinnerVisibilityService = /** @class */ (function () {
|
|
663
|
-
function SpinnerVisibilityService(pendingRequestsInterceptor) {
|
|
664
|
-
this.pendingRequestsInterceptor = pendingRequestsInterceptor;
|
|
665
|
-
this._visibility$ = new rxjs.ReplaySubject(1);
|
|
666
|
-
}
|
|
667
|
-
Object.defineProperty(SpinnerVisibilityService.prototype, "visibility$", {
|
|
668
|
-
get: function () {
|
|
669
|
-
return this._visibility$.asObservable();
|
|
670
|
-
},
|
|
671
|
-
enumerable: false,
|
|
672
|
-
configurable: true
|
|
673
|
-
});
|
|
674
|
-
SpinnerVisibilityService.prototype.show = function () {
|
|
675
|
-
this.pendingRequestsInterceptor.forceByPass = true;
|
|
676
|
-
this._visibility$.next(true);
|
|
677
|
-
};
|
|
678
|
-
SpinnerVisibilityService.prototype.hide = function () {
|
|
679
|
-
this._visibility$.next(false);
|
|
680
|
-
this.pendingRequestsInterceptor.forceByPass = false;
|
|
681
|
-
};
|
|
682
|
-
return SpinnerVisibilityService;
|
|
683
|
-
}());
|
|
684
|
-
SpinnerVisibilityService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SpinnerVisibilityService, deps: [{ token: PendingRequestsInterceptor }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
685
|
-
SpinnerVisibilityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SpinnerVisibilityService, providedIn: 'root' });
|
|
686
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: SpinnerVisibilityService, decorators: [{
|
|
687
|
-
type: i0.Injectable,
|
|
688
|
-
args: [{
|
|
689
|
-
providedIn: 'root'
|
|
690
|
-
}]
|
|
691
|
-
}], ctorParameters: function () { return [{ type: PendingRequestsInterceptor }]; } });
|
|
692
|
-
|
|
693
|
-
var NgHttpLoaderComponent = /** @class */ (function () {
|
|
694
|
-
function NgHttpLoaderComponent(pendingRequestsInterceptor, spinnerVisibility) {
|
|
695
|
-
this.pendingRequestsInterceptor = pendingRequestsInterceptor;
|
|
696
|
-
this.spinnerVisibility = spinnerVisibility;
|
|
697
|
-
this.spinkit = Spinkit;
|
|
698
|
-
this.visibleUntil = Date.now();
|
|
699
|
-
this.backdrop = true;
|
|
700
|
-
this.debounceDelay = 0;
|
|
701
|
-
this.entryComponent = null;
|
|
702
|
-
this.extraDuration = 0;
|
|
703
|
-
this.filteredHeaders = [];
|
|
704
|
-
this.filteredMethods = [];
|
|
705
|
-
this.filteredUrlPatterns = [];
|
|
706
|
-
this.minDuration = 0;
|
|
707
|
-
this.opacity = '.7';
|
|
708
|
-
this.backdropBackgroundColor = '#f1f1f1';
|
|
709
|
-
this.spinner = Spinkit.skWave;
|
|
710
|
-
}
|
|
711
|
-
NgHttpLoaderComponent.prototype.ngOnInit = function () {
|
|
712
|
-
this.initIsvisibleObservable();
|
|
713
|
-
this.nullifySpinnerIfEntryComponentIsDefined();
|
|
714
|
-
this.initFilters();
|
|
715
|
-
};
|
|
716
|
-
NgHttpLoaderComponent.prototype.initIsvisibleObservable = function () {
|
|
717
|
-
var _this = this;
|
|
718
|
-
var _a = __read(rxjs.partition(this.pendingRequestsInterceptor.pendingRequestsStatus$, function (h) { return h; }), 2), showSpinner$ = _a[0], hideSpinner$ = _a[1];
|
|
719
|
-
this.isVisible$ = rxjs.merge(this.pendingRequestsInterceptor.pendingRequestsStatus$
|
|
720
|
-
.pipe(operators.switchMap(function () { return showSpinner$.pipe(operators.debounce(function () { return rxjs.timer(_this.debounceDelay); })); })), showSpinner$
|
|
721
|
-
.pipe(operators.switchMap(function () { return hideSpinner$.pipe(operators.debounce(function () { return _this.getVisibilityTimer$(); })); })), this.spinnerVisibility.visibility$).pipe(operators.distinctUntilChanged(), operators.tap(function (h) { return _this.updateExpirationDelay(h); }));
|
|
722
|
-
};
|
|
723
|
-
NgHttpLoaderComponent.prototype.nullifySpinnerIfEntryComponentIsDefined = function () {
|
|
724
|
-
if (this.entryComponent) {
|
|
725
|
-
this.spinner = null;
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
NgHttpLoaderComponent.prototype.initFilters = function () {
|
|
729
|
-
this.initFilteredUrlPatterns();
|
|
730
|
-
this.initFilteredMethods();
|
|
731
|
-
this.initFilteredHeaders();
|
|
732
|
-
};
|
|
733
|
-
NgHttpLoaderComponent.prototype.initFilteredUrlPatterns = function () {
|
|
734
|
-
var _this = this;
|
|
735
|
-
if (!!this.filteredUrlPatterns.length) {
|
|
736
|
-
this.filteredUrlPatterns.forEach(function (e) { return _this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(e)); });
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
NgHttpLoaderComponent.prototype.initFilteredMethods = function () {
|
|
740
|
-
this.pendingRequestsInterceptor.filteredMethods = this.filteredMethods;
|
|
741
|
-
};
|
|
742
|
-
NgHttpLoaderComponent.prototype.initFilteredHeaders = function () {
|
|
743
|
-
this.pendingRequestsInterceptor.filteredHeaders = this.filteredHeaders;
|
|
744
|
-
};
|
|
745
|
-
NgHttpLoaderComponent.prototype.updateExpirationDelay = function (showSpinner) {
|
|
746
|
-
if (showSpinner) {
|
|
747
|
-
this.visibleUntil = Date.now() + this.minDuration;
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
NgHttpLoaderComponent.prototype.getVisibilityTimer$ = function () {
|
|
751
|
-
return rxjs.timer(Math.max(this.extraDuration, this.visibleUntil - Date.now()));
|
|
752
|
-
};
|
|
753
|
-
return NgHttpLoaderComponent;
|
|
754
|
-
}());
|
|
755
|
-
NgHttpLoaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NgHttpLoaderComponent, deps: [{ token: PendingRequestsInterceptor }, { token: SpinnerVisibilityService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
756
|
-
NgHttpLoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: NgHttpLoaderComponent, selector: "ng-http-loader", inputs: { backdrop: "backdrop", backgroundColor: "backgroundColor", debounceDelay: "debounceDelay", entryComponent: "entryComponent", extraDuration: "extraDuration", filteredHeaders: "filteredHeaders", filteredMethods: "filteredMethods", filteredUrlPatterns: "filteredUrlPatterns", minDuration: "minDuration", opacity: "opacity", backdropBackgroundColor: "backdropBackgroundColor", spinner: "spinner" }, ngImport: i0__namespace, template: "<div id=\"spinner\"\n *ngIf=\"isVisible$ | async\"\n [class.backdrop]=\"backdrop\"\n [style.opacity]=\"opacity\"\n [ngStyle]=\"{'background-color': backdrop ? backdropBackgroundColor : 'transparent'}\">\n\n <ng-container *ngComponentOutlet=\"entryComponent\"></ng-container>\n\n <sk-cube-grid\n *ngIf=\"spinner === spinkit.skCubeGrid\"\n [backgroundColor]=\"backgroundColor\">\n </sk-cube-grid>\n\n <sk-chasing-dots\n *ngIf=\"spinner === spinkit.skChasingDots\"\n [backgroundColor]=\"backgroundColor\">\n </sk-chasing-dots>\n\n <sk-double-bounce\n *ngIf=\"spinner === spinkit.skDoubleBounce\"\n [backgroundColor]=\"backgroundColor\">\n </sk-double-bounce>\n\n <sk-rotating-plane\n *ngIf=\"spinner === spinkit.skRotatingPlane\"\n [backgroundColor]=\"backgroundColor\">\n </sk-rotating-plane>\n\n <sk-spinner-pulse\n *ngIf=\"spinner === spinkit.skSpinnerPulse\"\n [backgroundColor]=\"backgroundColor\">\n </sk-spinner-pulse>\n\n <sk-three-bounce\n *ngIf=\"spinner === spinkit.skThreeBounce\"\n [backgroundColor]=\"backgroundColor\">\n </sk-three-bounce>\n\n <sk-wandering-cubes\n *ngIf=\"spinner === spinkit.skWanderingCubes\"\n [backgroundColor]=\"backgroundColor\">\n </sk-wandering-cubes>\n\n <sk-wave\n *ngIf=\"spinner === spinkit.skWave\"\n [backgroundColor]=\"backgroundColor\">\n </sk-wave>\n\n</div>\n\n", styles: ["#spinner{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none}::ng-deep .colored-parent,::ng-deep .colored>div{background-color:#333}\n"], components: [{ type: SkCubeGridComponent, selector: "sk-cube-grid" }, { type: SkChasingDotsComponent, selector: "sk-chasing-dots" }, { type: SkDoubleBounceComponent, selector: "sk-double-bounce" }, { type: SkRotatingPlaneComponent, selector: "sk-rotating-plane" }, { type: SkSpinnerPulseComponent, selector: "sk-spinner-pulse" }, { type: SkThreeBounceComponent, selector: "sk-three-bounce" }, { type: SkWanderingCubesComponent, selector: "sk-wandering-cubes" }, { type: SkWaveComponent, selector: "sk-wave" }], directives: [{ type: i11__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i11__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }], pipes: { "async": i11__namespace.AsyncPipe } });
|
|
757
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NgHttpLoaderComponent, decorators: [{
|
|
758
|
-
type: i0.Component,
|
|
759
|
-
args: [{
|
|
760
|
-
selector: 'ng-http-loader',
|
|
761
|
-
templateUrl: './ng-http-loader.component.html',
|
|
762
|
-
styleUrls: ['./ng-http-loader.component.scss']
|
|
763
|
-
}]
|
|
764
|
-
}], ctorParameters: function () { return [{ type: PendingRequestsInterceptor }, { type: SpinnerVisibilityService }]; }, propDecorators: { backdrop: [{
|
|
765
|
-
type: i0.Input
|
|
766
|
-
}], backgroundColor: [{
|
|
767
|
-
type: i0.Input
|
|
768
|
-
}], debounceDelay: [{
|
|
769
|
-
type: i0.Input
|
|
770
|
-
}], entryComponent: [{
|
|
771
|
-
type: i0.Input
|
|
772
|
-
}], extraDuration: [{
|
|
773
|
-
type: i0.Input
|
|
774
|
-
}], filteredHeaders: [{
|
|
775
|
-
type: i0.Input
|
|
776
|
-
}], filteredMethods: [{
|
|
777
|
-
type: i0.Input
|
|
778
|
-
}], filteredUrlPatterns: [{
|
|
779
|
-
type: i0.Input
|
|
780
|
-
}], minDuration: [{
|
|
781
|
-
type: i0.Input
|
|
782
|
-
}], opacity: [{
|
|
783
|
-
type: i0.Input
|
|
784
|
-
}], backdropBackgroundColor: [{
|
|
785
|
-
type: i0.Input
|
|
786
|
-
}], spinner: [{
|
|
787
|
-
type: i0.Input
|
|
788
|
-
}] } });
|
|
789
|
-
|
|
790
|
-
var NgHttpLoaderModule = /** @class */ (function () {
|
|
791
|
-
function NgHttpLoaderModule() {
|
|
792
|
-
}
|
|
793
|
-
NgHttpLoaderModule.forRoot = function () {
|
|
794
|
-
return {
|
|
795
|
-
ngModule: NgHttpLoaderModule,
|
|
796
|
-
providers: [
|
|
797
|
-
PendingRequestsInterceptorProvider,
|
|
798
|
-
]
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
return NgHttpLoaderModule;
|
|
802
|
-
}());
|
|
803
|
-
NgHttpLoaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NgHttpLoaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
804
|
-
NgHttpLoaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NgHttpLoaderModule, declarations: [NgHttpLoaderComponent, SkCubeGridComponent, SkChasingDotsComponent, SkDoubleBounceComponent, SkRotatingPlaneComponent, SkSpinnerPulseComponent, SkThreeBounceComponent, SkWanderingCubesComponent, SkWaveComponent], imports: [i11.CommonModule], exports: [NgHttpLoaderComponent, SkCubeGridComponent, SkChasingDotsComponent, SkDoubleBounceComponent, SkRotatingPlaneComponent, SkSpinnerPulseComponent, SkThreeBounceComponent, SkWanderingCubesComponent, SkWaveComponent] });
|
|
805
|
-
NgHttpLoaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NgHttpLoaderModule, imports: [[
|
|
806
|
-
i11.CommonModule,
|
|
807
|
-
]] });
|
|
808
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NgHttpLoaderModule, decorators: [{
|
|
809
|
-
type: i0.NgModule,
|
|
810
|
-
args: [{
|
|
811
|
-
declarations: __spreadArray([
|
|
812
|
-
NgHttpLoaderComponent
|
|
813
|
-
], __read(SPINKIT_COMPONENTS)),
|
|
814
|
-
imports: [
|
|
815
|
-
i11.CommonModule,
|
|
816
|
-
],
|
|
817
|
-
exports: __spreadArray([
|
|
818
|
-
NgHttpLoaderComponent
|
|
819
|
-
], __read(SPINKIT_COMPONENTS))
|
|
820
|
-
}]
|
|
821
|
-
}] });
|
|
822
|
-
|
|
823
|
-
/*
|
|
824
|
-
* Public API Surface of ng-http-loader
|
|
825
|
-
*/
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
* Generated bundle index. Do not edit.
|
|
829
|
-
*/
|
|
830
|
-
|
|
831
|
-
exports.AbstractLoaderDirective = AbstractLoaderDirective;
|
|
832
|
-
exports.NgHttpLoaderComponent = NgHttpLoaderComponent;
|
|
833
|
-
exports.NgHttpLoaderModule = NgHttpLoaderModule;
|
|
834
|
-
exports.PendingRequestsInterceptor = PendingRequestsInterceptor;
|
|
835
|
-
exports.PendingRequestsInterceptorProvider = PendingRequestsInterceptorProvider;
|
|
836
|
-
exports.SPINKIT_COMPONENTS = SPINKIT_COMPONENTS;
|
|
837
|
-
exports.SkChasingDotsComponent = SkChasingDotsComponent;
|
|
838
|
-
exports.SkCubeGridComponent = SkCubeGridComponent;
|
|
839
|
-
exports.SkDoubleBounceComponent = SkDoubleBounceComponent;
|
|
840
|
-
exports.SkRotatingPlaneComponent = SkRotatingPlaneComponent;
|
|
841
|
-
exports.SkSpinnerPulseComponent = SkSpinnerPulseComponent;
|
|
842
|
-
exports.SkThreeBounceComponent = SkThreeBounceComponent;
|
|
843
|
-
exports.SkWanderingCubesComponent = SkWanderingCubesComponent;
|
|
844
|
-
exports.SkWaveComponent = SkWaveComponent;
|
|
845
|
-
exports.Spinkit = Spinkit;
|
|
846
|
-
exports.SpinnerVisibilityService = SpinnerVisibilityService;
|
|
847
|
-
|
|
848
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
849
|
-
|
|
850
|
-
}));
|
|
851
|
-
//# sourceMappingURL=ng-http-loader.umd.js.map
|