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