@firestitch/common 8.0.13 → 12.2.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/app/directives/autofocus.directive.d.ts +3 -0
- package/app/directives/prevent-default.directive.d.ts +3 -0
- package/app/directives/stop-propagation.directive.d.ts +3 -0
- package/app/fs-common.module.d.ts +14 -0
- package/app/pipes/bytes.pipe.d.ts +3 -0
- package/app/pipes/currency.pipe.d.ts +3 -0
- package/app/pipes/number.pipe.d.ts +3 -0
- package/app/pipes/ordinal-number.pipe.d.ts +3 -0
- package/app/pipes/truncate.pipe.d.ts +3 -0
- package/app/pipes/util.pipe.d.ts +9 -0
- package/app/services/array.service.d.ts +3 -0
- package/app/services/math.service.d.ts +3 -0
- package/app/services/util.service.d.ts +3 -0
- package/app/services/vaildate.service.d.ts +3 -0
- package/bundles/firestitch-common.umd.js +826 -2452
- package/bundles/firestitch-common.umd.js.map +1 -1
- package/esm2015/app/directives/autofocus.directive.js +12 -33
- package/esm2015/app/directives/prevent-default.directive.js +13 -18
- package/esm2015/app/directives/stop-propagation.directive.js +13 -18
- package/esm2015/app/fs-common.module.js +65 -44
- package/esm2015/app/pipes/bytes.pipe.js +10 -15
- package/esm2015/app/pipes/currency.pipe.js +13 -28
- package/esm2015/app/pipes/number.pipe.js +10 -16
- package/esm2015/app/pipes/ordinal-number.pipe.js +10 -15
- package/esm2015/app/pipes/truncate.pipe.js +10 -20
- package/esm2015/app/pipes/util.pipe.js +34 -45
- package/esm2015/app/services/array.service.js +63 -190
- package/esm2015/app/services/math.service.js +9 -17
- package/esm2015/app/services/util.service.js +65 -244
- package/esm2015/app/services/vaildate.service.js +12 -32
- package/esm2015/firestitch-common.js +2 -16
- package/esm2015/libs/array/compare/compare.js +1 -12
- package/esm2015/libs/array/compare/index.js +2 -7
- package/esm2015/libs/array/filter/filter.js +7 -33
- package/esm2015/libs/array/filter/index.js +2 -7
- package/esm2015/libs/array/find/find.js +1 -12
- package/esm2015/libs/array/find/index.js +2 -7
- package/esm2015/libs/array/inArray/inArray.js +1 -11
- package/esm2015/libs/array/inArray/index.js +2 -7
- package/esm2015/libs/array/index/index.js +3 -19
- package/esm2015/libs/array/index.js +14 -19
- package/esm2015/libs/array/indexOf/index.js +2 -7
- package/esm2015/libs/array/indexOf/indexOf.js +3 -18
- package/esm2015/libs/array/keyExists/index.js +2 -7
- package/esm2015/libs/array/keyExists/keyExists.js +1 -11
- package/esm2015/libs/array/ksort/index.js +2 -7
- package/esm2015/libs/array/ksort/ksort.js +3 -17
- package/esm2015/libs/array/list/index.js +2 -7
- package/esm2015/libs/array/list/list.js +3 -20
- package/esm2015/libs/array/nameValue/index.js +2 -7
- package/esm2015/libs/array/nameValue/nameValue.js +9 -40
- package/esm2015/libs/array/remove/index.js +2 -7
- package/esm2015/libs/array/remove/remove.js +1 -12
- package/esm2015/libs/array/rsort/index.js +2 -7
- package/esm2015/libs/array/rsort/rsort.js +1 -11
- package/esm2015/libs/array/sort/index.js +2 -7
- package/esm2015/libs/array/sort/sort.js +3 -20
- package/esm2015/libs/format/acronym/acronym.js +1 -13
- package/esm2015/libs/format/acronym/index.js +2 -7
- package/esm2015/libs/format/bytes/bytes.js +1 -12
- package/esm2015/libs/format/bytes/index.js +2 -7
- package/esm2015/libs/format/currency/currency.js +2 -16
- package/esm2015/libs/format/currency/index.js +2 -7
- package/esm2015/libs/format/index.js +6 -11
- package/esm2015/libs/format/number/index.js +2 -7
- package/esm2015/libs/format/number/number.js +1 -11
- package/esm2015/libs/format/truncate/index.js +2 -7
- package/esm2015/libs/format/truncate/truncate.js +1 -14
- package/esm2015/libs/index.js +5 -10
- package/esm2015/libs/rxjs/delayedRetry.js +5 -43
- package/esm2015/libs/util/boolean/boolean.js +2 -12
- package/esm2015/libs/util/boolean/index.js +2 -7
- package/esm2015/libs/util/debounce/debounce.js +6 -29
- package/esm2015/libs/util/debounce/index.js +2 -7
- package/esm2015/libs/util/get-normalized-path/get-normalized-path.js +1 -11
- package/esm2015/libs/util/get-normalized-path/index.js +1 -6
- package/esm2015/libs/util/guid/guid.js +3 -20
- package/esm2015/libs/util/guid/index.js +2 -7
- package/esm2015/libs/util/index.js +19 -23
- package/esm2015/libs/util/isClass/index.js +2 -7
- package/esm2015/libs/util/isClass/isClass.js +1 -11
- package/esm2015/libs/util/isEmpty/index.js +2 -7
- package/esm2015/libs/util/isEmpty/isEmpty.js +4 -15
- package/esm2015/libs/util/isNumeric/index.js +2 -7
- package/esm2015/libs/util/isNumeric/isNumeric.js +2 -13
- package/esm2015/libs/util/keys/index.js +2 -7
- package/esm2015/libs/util/keys/keys.js +1 -43
- package/esm2015/libs/util/length/index.js +2 -7
- package/esm2015/libs/util/length/length.js +5 -15
- package/esm2015/libs/util/ordinal-number/ordinal-number.js +1 -13
- package/esm2015/libs/util/queue/index.js +2 -7
- package/esm2015/libs/util/queue/operation.js +1 -18
- package/esm2015/libs/util/queue/queue.enum.js +6 -12
- package/esm2015/libs/util/queue/queue.js +14 -168
- package/esm2015/libs/util/remove-query-params/index.js +1 -6
- package/esm2015/libs/util/remove-query-params/remove-query-params.js +1 -10
- package/esm2015/libs/util/resolve/index.js +2 -7
- package/esm2015/libs/util/resolve/resolve.js +6 -29
- package/esm2015/libs/util/round/index.js +2 -0
- package/esm2015/libs/util/round/round.js +5 -0
- package/esm2015/libs/util/stringify/index.js +2 -7
- package/esm2015/libs/util/stringify/stringify.js +1 -10
- package/esm2015/libs/util/throttle/index.js +2 -7
- package/esm2015/libs/util/throttle/throttle.js +6 -23
- package/esm2015/libs/util/uuid/index.js +2 -7
- package/esm2015/libs/util/uuid/uuid.js +1 -9
- package/esm2015/libs/util/value/index.js +2 -7
- package/esm2015/libs/util/value/value.js +1 -12
- package/esm2015/libs/validate/email/email.js +1 -10
- package/esm2015/libs/validate/email/index.js +2 -7
- package/esm2015/libs/validate/index.js +4 -9
- package/esm2015/libs/validate/phone/index.js +2 -7
- package/esm2015/libs/validate/phone/phone.js +1 -11
- package/esm2015/libs/validate/url/index.js +2 -7
- package/esm2015/libs/validate/url/url.js +1 -12
- package/esm2015/public_api.js +11 -7
- package/fesm2015/firestitch-common.js +430 -1816
- package/fesm2015/firestitch-common.js.map +1 -1
- package/firestitch-common.d.ts +1 -9
- package/libs/util/index.d.ts +4 -3
- package/libs/util/length/length.d.ts +1 -1
- package/libs/util/queue/queue.d.ts +9 -9
- package/libs/util/round/index.d.ts +1 -0
- package/libs/util/round/round.d.ts +1 -0
- package/package.json +7 -11
- package/public_api.d.ts +9 -0
- package/bundles/firestitch-common.umd.min.js +0 -16
- package/bundles/firestitch-common.umd.min.js.map +0 -1
- package/esm5/app/directives/autofocus.directive.js +0 -45
- package/esm5/app/directives/prevent-default.directive.js +0 -32
- package/esm5/app/directives/stop-propagation.directive.js +0 -32
- package/esm5/app/fs-common.module.js +0 -79
- package/esm5/app/pipes/bytes.pipe.js +0 -30
- package/esm5/app/pipes/currency.pipe.js +0 -43
- package/esm5/app/pipes/number.pipe.js +0 -32
- package/esm5/app/pipes/ordinal-number.pipe.js +0 -30
- package/esm5/app/pipes/truncate.pipe.js +0 -38
- package/esm5/app/pipes/util.pipe.js +0 -100
- package/esm5/app/services/array.service.js +0 -491
- package/esm5/app/services/math.service.js +0 -42
- package/esm5/app/services/util.service.js +0 -608
- package/esm5/app/services/vaildate.service.js +0 -63
- package/esm5/firestitch-common.js +0 -19
- package/esm5/libs/array/compare/compare.js +0 -19
- package/esm5/libs/array/compare/index.js +0 -7
- package/esm5/libs/array/filter/filter.js +0 -53
- package/esm5/libs/array/filter/index.js +0 -7
- package/esm5/libs/array/find/find.js +0 -17
- package/esm5/libs/array/find/index.js +0 -7
- package/esm5/libs/array/inArray/inArray.js +0 -22
- package/esm5/libs/array/inArray/index.js +0 -7
- package/esm5/libs/array/index/index.js +0 -25
- package/esm5/libs/array/index.js +0 -19
- package/esm5/libs/array/indexOf/index.js +0 -7
- package/esm5/libs/array/indexOf/indexOf.js +0 -31
- package/esm5/libs/array/keyExists/index.js +0 -7
- package/esm5/libs/array/keyExists/keyExists.js +0 -14
- package/esm5/libs/array/ksort/index.js +0 -7
- package/esm5/libs/array/ksort/ksort.js +0 -22
- package/esm5/libs/array/list/index.js +0 -7
- package/esm5/libs/array/list/list.js +0 -31
- package/esm5/libs/array/nameValue/index.js +0 -7
- package/esm5/libs/array/nameValue/nameValue.js +0 -52
- package/esm5/libs/array/remove/index.js +0 -7
- package/esm5/libs/array/remove/remove.js +0 -20
- package/esm5/libs/array/rsort/index.js +0 -7
- package/esm5/libs/array/rsort/rsort.js +0 -15
- package/esm5/libs/array/sort/index.js +0 -7
- package/esm5/libs/array/sort/sort.js +0 -45
- package/esm5/libs/format/acronym/acronym.js +0 -35
- package/esm5/libs/format/acronym/index.js +0 -7
- package/esm5/libs/format/bytes/bytes.js +0 -23
- package/esm5/libs/format/bytes/index.js +0 -7
- package/esm5/libs/format/currency/currency.js +0 -23
- package/esm5/libs/format/currency/index.js +0 -7
- package/esm5/libs/format/index.js +0 -11
- package/esm5/libs/format/number/index.js +0 -7
- package/esm5/libs/format/number/number.js +0 -14
- package/esm5/libs/format/truncate/index.js +0 -7
- package/esm5/libs/format/truncate/truncate.js +0 -28
- package/esm5/libs/index.js +0 -11
- package/esm5/libs/rxjs/delayedRetry.js +0 -65
- package/esm5/libs/util/boolean/boolean.js +0 -14
- package/esm5/libs/util/boolean/index.js +0 -7
- package/esm5/libs/util/debounce/debounce.js +0 -40
- package/esm5/libs/util/debounce/index.js +0 -7
- package/esm5/libs/util/get-normalized-path/get-normalized-path.js +0 -16
- package/esm5/libs/util/get-normalized-path/index.js +0 -7
- package/esm5/libs/util/guid/guid.js +0 -37
- package/esm5/libs/util/guid/index.js +0 -7
- package/esm5/libs/util/index.js +0 -23
- package/esm5/libs/util/isClass/index.js +0 -7
- package/esm5/libs/util/isClass/isClass.js +0 -28
- package/esm5/libs/util/isEmpty/index.js +0 -7
- package/esm5/libs/util/isEmpty/isEmpty.js +0 -23
- package/esm5/libs/util/isNumeric/index.js +0 -7
- package/esm5/libs/util/isNumeric/isNumeric.js +0 -16
- package/esm5/libs/util/keys/index.js +0 -7
- package/esm5/libs/util/keys/keys.js +0 -80
- package/esm5/libs/util/length/index.js +0 -7
- package/esm5/libs/util/length/length.js +0 -20
- package/esm5/libs/util/ordinal-number/ordinal-number.js +0 -22
- package/esm5/libs/util/queue/index.js +0 -8
- package/esm5/libs/util/queue/operation.js +0 -30
- package/esm5/libs/util/queue/queue.enum.js +0 -12
- package/esm5/libs/util/queue/queue.js +0 -367
- package/esm5/libs/util/remove-query-params/index.js +0 -7
- package/esm5/libs/util/remove-query-params/remove-query-params.js +0 -13
- package/esm5/libs/util/resolve/index.js +0 -7
- package/esm5/libs/util/resolve/resolve.js +0 -34
- package/esm5/libs/util/stringify/index.js +0 -7
- package/esm5/libs/util/stringify/stringify.js +0 -13
- package/esm5/libs/util/throttle/index.js +0 -7
- package/esm5/libs/util/throttle/throttle.js +0 -30
- package/esm5/libs/util/uuid/index.js +0 -7
- package/esm5/libs/util/uuid/uuid.js +0 -13
- package/esm5/libs/util/value/index.js +0 -7
- package/esm5/libs/util/value/value.js +0 -20
- package/esm5/libs/validate/email/email.js +0 -13
- package/esm5/libs/validate/email/index.js +0 -7
- package/esm5/libs/validate/index.js +0 -9
- package/esm5/libs/validate/phone/index.js +0 -7
- package/esm5/libs/validate/phone/phone.js +0 -15
- package/esm5/libs/validate/url/index.js +0 -7
- package/esm5/libs/validate/url/url.js +0 -23
- package/esm5/public_api.js +0 -17
- package/fesm5/firestitch-common.js +0 -3285
- package/fesm5/firestitch-common.js.map +0 -1
- package/firestitch-common.metadata.json +0 -1
|
@@ -1,276 +1,57 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@firestitch/common', ['exports', '@angular/core', '@angular/common', '
|
|
4
|
-
(global = global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.common = {}), global.ng.core, global.ng.common, global.
|
|
5
|
-
}(this, (function (exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var extendStatics = function(d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
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
|
-
|
|
36
|
-
var __assign = function() {
|
|
37
|
-
__assign = Object.assign || function __assign(t) {
|
|
38
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
39
|
-
s = arguments[i];
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
return __assign.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
53
|
-
t[p[i]] = s[p[i]];
|
|
54
|
-
return t;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function __decorate(decorators, target, key, desc) {
|
|
58
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
59
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
60
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
61
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function __param(paramIndex, decorator) {
|
|
65
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function __metadata(metadataKey, metadataValue) {
|
|
69
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
73
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
74
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
75
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
76
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
77
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function __generator(thisArg, body) {
|
|
82
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
83
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
84
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
85
|
-
function step(op) {
|
|
86
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
87
|
-
while (_) try {
|
|
88
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
89
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
90
|
-
switch (op[0]) {
|
|
91
|
-
case 0: case 1: t = op; break;
|
|
92
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
93
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
94
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
95
|
-
default:
|
|
96
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
97
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
98
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
99
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
100
|
-
if (t[2]) _.ops.pop();
|
|
101
|
-
_.trys.pop(); continue;
|
|
102
|
-
}
|
|
103
|
-
op = body.call(thisArg, _);
|
|
104
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
105
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function __exportStar(m, exports) {
|
|
110
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function __values(o) {
|
|
114
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
115
|
-
if (m) return m.call(o);
|
|
116
|
-
return {
|
|
117
|
-
next: function () {
|
|
118
|
-
if (o && i >= o.length) o = void 0;
|
|
119
|
-
return { value: o && o[i++], done: !o };
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function __read(o, n) {
|
|
125
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
126
|
-
if (!m) return o;
|
|
127
|
-
var i = m.call(o), r, ar = [], e;
|
|
128
|
-
try {
|
|
129
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
130
|
-
}
|
|
131
|
-
catch (error) { e = { error: error }; }
|
|
132
|
-
finally {
|
|
133
|
-
try {
|
|
134
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
135
|
-
}
|
|
136
|
-
finally { if (e) throw e.error; }
|
|
137
|
-
}
|
|
138
|
-
return ar;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function __spread() {
|
|
142
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
143
|
-
ar = ar.concat(__read(arguments[i]));
|
|
144
|
-
return ar;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function __await(v) {
|
|
148
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
152
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
153
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
154
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
155
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
156
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
157
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
158
|
-
function fulfill(value) { resume("next", value); }
|
|
159
|
-
function reject(value) { resume("throw", value); }
|
|
160
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function __asyncDelegator(o) {
|
|
164
|
-
var i, p;
|
|
165
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
166
|
-
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; }
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
function __asyncValues(o) {
|
|
170
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
171
|
-
var m = o[Symbol.asyncIterator], i;
|
|
172
|
-
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);
|
|
173
|
-
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); }); }; }
|
|
174
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function __makeTemplateObject(cooked, raw) {
|
|
178
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
179
|
-
return cooked;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
function __importStar(mod) {
|
|
183
|
-
if (mod && mod.__esModule) return mod;
|
|
184
|
-
var result = {};
|
|
185
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
186
|
-
result.default = mod;
|
|
187
|
-
return result;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function __importDefault(mod) {
|
|
191
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@firestitch/common', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.common = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators));
|
|
5
|
+
})(this, (function (exports, i0, common, rxjs, operators) { '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);
|
|
192
23
|
}
|
|
193
24
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
* Generated from: app/services/array.service.ts
|
|
197
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
198
|
-
*/
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
|
|
199
27
|
var FsArray = /** @class */ (function () {
|
|
200
28
|
function FsArray() {
|
|
201
29
|
}
|
|
202
30
|
/**
|
|
203
31
|
* @deprecated use import { nameValue } from @firestitch/common/array; instead
|
|
204
32
|
*/
|
|
205
|
-
|
|
206
|
-
* @deprecated use import { nameValue } from \@firestitch/common/array; instead
|
|
207
|
-
* @param {?} array
|
|
208
|
-
* @param {?} name
|
|
209
|
-
* @param {?} value
|
|
210
|
-
* @return {?}
|
|
211
|
-
*/
|
|
212
|
-
FsArray.prototype.nameValue = /**
|
|
213
|
-
* @deprecated use import { nameValue } from \@firestitch/common/array; instead
|
|
214
|
-
* @param {?} array
|
|
215
|
-
* @param {?} name
|
|
216
|
-
* @param {?} value
|
|
217
|
-
* @return {?}
|
|
218
|
-
*/
|
|
219
|
-
function (array, name, value) {
|
|
33
|
+
FsArray.prototype.nameValue = function (array, name, value) {
|
|
220
34
|
console.warn('@deprecated use import { nameValue } from @firestitch/common/array; instead');
|
|
221
|
-
/** @type {?} */
|
|
222
35
|
var list = [];
|
|
223
36
|
if (name || value) {
|
|
224
|
-
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
* @return {?}
|
|
228
|
-
*/
|
|
229
|
-
function (item) { return item[name]; });
|
|
230
|
-
/** @type {?} */
|
|
231
|
-
var valueFn_1 = typeof value === 'function' ? value : (/**
|
|
232
|
-
* @param {?} item
|
|
233
|
-
* @return {?}
|
|
234
|
-
*/
|
|
235
|
-
function (item) { return item[value]; });
|
|
236
|
-
array.forEach((/**
|
|
237
|
-
* @param {?} item
|
|
238
|
-
* @return {?}
|
|
239
|
-
*/
|
|
240
|
-
function (item) {
|
|
37
|
+
var nameFn_1 = typeof name === 'function' ? name : function (item) { return item[name]; };
|
|
38
|
+
var valueFn_1 = typeof value === 'function' ? value : function (item) { return item[value]; };
|
|
39
|
+
array.forEach(function (item) {
|
|
241
40
|
list.push({ name: nameFn_1(item), value: valueFn_1(item) });
|
|
242
|
-
})
|
|
41
|
+
});
|
|
243
42
|
}
|
|
244
43
|
else {
|
|
245
|
-
array.forEach((
|
|
246
|
-
* @param {?} name
|
|
247
|
-
* @param {?} value
|
|
248
|
-
* @return {?}
|
|
249
|
-
*/
|
|
250
|
-
function (name, value) {
|
|
44
|
+
array.forEach(function (name, value) {
|
|
251
45
|
list.push({ name: name, value: value });
|
|
252
|
-
})
|
|
46
|
+
});
|
|
253
47
|
}
|
|
254
48
|
return list;
|
|
255
49
|
};
|
|
256
50
|
/**
|
|
257
51
|
* @deprecated use import { remove } from @firestitch/common/array; instead
|
|
258
52
|
*/
|
|
259
|
-
|
|
260
|
-
* @deprecated use import { remove } from \@firestitch/common/array; instead
|
|
261
|
-
* @param {?} array
|
|
262
|
-
* @param {?} query
|
|
263
|
-
* @return {?}
|
|
264
|
-
*/
|
|
265
|
-
FsArray.prototype.remove = /**
|
|
266
|
-
* @deprecated use import { remove } from \@firestitch/common/array; instead
|
|
267
|
-
* @param {?} array
|
|
268
|
-
* @param {?} query
|
|
269
|
-
* @return {?}
|
|
270
|
-
*/
|
|
271
|
-
function (array, query) {
|
|
53
|
+
FsArray.prototype.remove = function (array, query) {
|
|
272
54
|
console.warn('@deprecated use import { remove } from @firestitch/common/array; instead');
|
|
273
|
-
/** @type {?} */
|
|
274
55
|
var idx = this.indexOf(array, query);
|
|
275
56
|
if (idx >= 0) {
|
|
276
57
|
return array.splice(idx, 1);
|
|
@@ -280,31 +61,14 @@
|
|
|
280
61
|
/**
|
|
281
62
|
* @deprecated use import { indexOf } from @firestitch/common/array; instead
|
|
282
63
|
*/
|
|
283
|
-
|
|
284
|
-
* @deprecated use import { indexOf } from \@firestitch/common/array; instead
|
|
285
|
-
* @param {?} array
|
|
286
|
-
* @param {?} query
|
|
287
|
-
* @return {?}
|
|
288
|
-
*/
|
|
289
|
-
FsArray.prototype.indexOf = /**
|
|
290
|
-
* @deprecated use import { indexOf } from \@firestitch/common/array; instead
|
|
291
|
-
* @param {?} array
|
|
292
|
-
* @param {?} query
|
|
293
|
-
* @return {?}
|
|
294
|
-
*/
|
|
295
|
-
function (array, query) {
|
|
64
|
+
FsArray.prototype.indexOf = function (array, query) {
|
|
296
65
|
var _this = this;
|
|
297
66
|
console.warn('@deprecated use import { indexOf } from @firestitch/common/array; instead');
|
|
298
67
|
if (typeof query !== 'function') {
|
|
299
|
-
/** @type {?} */
|
|
300
68
|
var queryObj_1 = query;
|
|
301
|
-
query = (
|
|
302
|
-
* @param {?} item
|
|
303
|
-
* @return {?}
|
|
304
|
-
*/
|
|
305
|
-
function (item) {
|
|
69
|
+
query = function (item) {
|
|
306
70
|
return _this.compare(queryObj_1, item);
|
|
307
|
-
}
|
|
71
|
+
};
|
|
308
72
|
}
|
|
309
73
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
310
74
|
if (query(array[i])) {
|
|
@@ -316,21 +80,8 @@
|
|
|
316
80
|
/**
|
|
317
81
|
* @deprecated use import { compare } from @firestitch/common/array; instead
|
|
318
82
|
*/
|
|
319
|
-
|
|
320
|
-
* @deprecated use import { compare } from \@firestitch/common/array; instead
|
|
321
|
-
* @param {?} query
|
|
322
|
-
* @param {?} item
|
|
323
|
-
* @return {?}
|
|
324
|
-
*/
|
|
325
|
-
FsArray.prototype.compare = /**
|
|
326
|
-
* @deprecated use import { compare } from \@firestitch/common/array; instead
|
|
327
|
-
* @param {?} query
|
|
328
|
-
* @param {?} item
|
|
329
|
-
* @return {?}
|
|
330
|
-
*/
|
|
331
|
-
function (query, item) {
|
|
83
|
+
FsArray.prototype.compare = function (query, item) {
|
|
332
84
|
console.warn('@deprecated use import { compare } from @firestitch/common/array; instead');
|
|
333
|
-
/** @type {?} */
|
|
334
85
|
var value = true;
|
|
335
86
|
for (var key in query) {
|
|
336
87
|
value = value && item[key] == query[key];
|
|
@@ -340,117 +91,51 @@
|
|
|
340
91
|
/**
|
|
341
92
|
* @deprecated use import { filter } from @firestitch/common/array; instead
|
|
342
93
|
*/
|
|
343
|
-
|
|
344
|
-
* @deprecated use import { filter } from \@firestitch/common/array; instead
|
|
345
|
-
* @param {?} array
|
|
346
|
-
* @param {?} query
|
|
347
|
-
* @return {?}
|
|
348
|
-
*/
|
|
349
|
-
FsArray.prototype.filter = /**
|
|
350
|
-
* @deprecated use import { filter } from \@firestitch/common/array; instead
|
|
351
|
-
* @param {?} array
|
|
352
|
-
* @param {?} query
|
|
353
|
-
* @return {?}
|
|
354
|
-
*/
|
|
355
|
-
function (array, query) {
|
|
94
|
+
FsArray.prototype.filter = function (array, query) {
|
|
356
95
|
var _this = this;
|
|
357
96
|
console.warn('@deprecated use import { filter } from @firestitch/common/array; instead');
|
|
358
97
|
if (typeof query !== 'function') {
|
|
359
|
-
/** @type {?} */
|
|
360
98
|
var queryObj_2 = query;
|
|
361
|
-
query = (
|
|
362
|
-
* @param {?} item
|
|
363
|
-
* @return {?}
|
|
364
|
-
*/
|
|
365
|
-
function (item) {
|
|
99
|
+
query = function (item) {
|
|
366
100
|
return _this.compare(queryObj_2, item);
|
|
367
|
-
}
|
|
101
|
+
};
|
|
368
102
|
}
|
|
369
|
-
/** @type {?} */
|
|
370
103
|
var isarray = Array.isArray(array);
|
|
371
|
-
/** @type {?} */
|
|
372
104
|
var list = isarray ? [] : {};
|
|
373
105
|
if (isarray)
|
|
374
|
-
array.forEach((
|
|
375
|
-
* @param {?} item
|
|
376
|
-
* @param {?} idx
|
|
377
|
-
* @return {?}
|
|
378
|
-
*/
|
|
379
|
-
function (item, idx) {
|
|
106
|
+
array.forEach(function (item, idx) {
|
|
380
107
|
if (query(item)) {
|
|
381
108
|
list.push(item);
|
|
382
109
|
}
|
|
383
|
-
})
|
|
110
|
+
});
|
|
384
111
|
else
|
|
385
|
-
Object.keys(array).forEach((
|
|
386
|
-
* @param {?} key
|
|
387
|
-
* @return {?}
|
|
388
|
-
*/
|
|
389
|
-
function (key) {
|
|
112
|
+
Object.keys(array).forEach(function (key) {
|
|
390
113
|
if (query(array[key])) {
|
|
391
114
|
list[key] = array[key];
|
|
392
115
|
}
|
|
393
|
-
})
|
|
116
|
+
});
|
|
394
117
|
return list;
|
|
395
118
|
};
|
|
396
119
|
/**
|
|
397
120
|
* @deprecated use import { index } from @firestitch/common/array; instead
|
|
398
121
|
*/
|
|
399
|
-
|
|
400
|
-
* @deprecated use import { index } from \@firestitch/common/array; instead
|
|
401
|
-
* @param {?} array
|
|
402
|
-
* @param {?} property
|
|
403
|
-
* @return {?}
|
|
404
|
-
*/
|
|
405
|
-
FsArray.prototype.index = /**
|
|
406
|
-
* @deprecated use import { index } from \@firestitch/common/array; instead
|
|
407
|
-
* @param {?} array
|
|
408
|
-
* @param {?} property
|
|
409
|
-
* @return {?}
|
|
410
|
-
*/
|
|
411
|
-
function (array, property) {
|
|
122
|
+
FsArray.prototype.index = function (array, property) {
|
|
412
123
|
console.warn('@deprecated use import { index } from @firestitch/common/array; instead');
|
|
413
|
-
/** @type {?} */
|
|
414
124
|
var list = {};
|
|
415
|
-
array.forEach((
|
|
416
|
-
* @param {?} item
|
|
417
|
-
* @param {?} idx
|
|
418
|
-
* @return {?}
|
|
419
|
-
*/
|
|
420
|
-
function (item, idx) {
|
|
125
|
+
array.forEach(function (item, idx) {
|
|
421
126
|
list[item[property]] = item;
|
|
422
|
-
})
|
|
127
|
+
});
|
|
423
128
|
return list;
|
|
424
129
|
};
|
|
425
130
|
/**
|
|
426
131
|
* @deprecated use import { sort } from @firestitch/common/array; instead
|
|
427
132
|
*/
|
|
428
|
-
|
|
429
|
-
* @deprecated use import { sort } from \@firestitch/common/array; instead
|
|
430
|
-
* @param {?} array
|
|
431
|
-
* @param {?} query
|
|
432
|
-
* @param {?=} reverse
|
|
433
|
-
* @return {?}
|
|
434
|
-
*/
|
|
435
|
-
FsArray.prototype.sort = /**
|
|
436
|
-
* @deprecated use import { sort } from \@firestitch/common/array; instead
|
|
437
|
-
* @param {?} array
|
|
438
|
-
* @param {?} query
|
|
439
|
-
* @param {?=} reverse
|
|
440
|
-
* @return {?}
|
|
441
|
-
*/
|
|
442
|
-
function (array, query, reverse) {
|
|
133
|
+
FsArray.prototype.sort = function (array, query, reverse) {
|
|
443
134
|
if (reverse === void 0) { reverse = false; }
|
|
444
135
|
console.warn('@deprecated use import { sort } from @firestitch/common/array; instead');
|
|
445
136
|
if (typeof query !== 'function') {
|
|
446
|
-
/** @type {?} */
|
|
447
137
|
var queryStr_1 = query;
|
|
448
|
-
query = (
|
|
449
|
-
* @param {?} a
|
|
450
|
-
* @param {?} b
|
|
451
|
-
* @return {?}
|
|
452
|
-
*/
|
|
453
|
-
function (a, b) {
|
|
138
|
+
query = function (a, b) {
|
|
454
139
|
if (reverse) {
|
|
455
140
|
if (a[queryStr_1] < b[queryStr_1]) {
|
|
456
141
|
return 1;
|
|
@@ -468,7 +153,7 @@
|
|
|
468
153
|
}
|
|
469
154
|
}
|
|
470
155
|
return 0;
|
|
471
|
-
}
|
|
156
|
+
};
|
|
472
157
|
}
|
|
473
158
|
array.sort(query);
|
|
474
159
|
return array;
|
|
@@ -476,131 +161,57 @@
|
|
|
476
161
|
/**
|
|
477
162
|
* @deprecated use import { rsort } from @firestitch/common/array; instead
|
|
478
163
|
*/
|
|
479
|
-
|
|
480
|
-
* @deprecated use import { rsort } from \@firestitch/common/array; instead
|
|
481
|
-
* @param {?} array
|
|
482
|
-
* @param {?} query
|
|
483
|
-
* @return {?}
|
|
484
|
-
*/
|
|
485
|
-
FsArray.prototype.rsort = /**
|
|
486
|
-
* @deprecated use import { rsort } from \@firestitch/common/array; instead
|
|
487
|
-
* @param {?} array
|
|
488
|
-
* @param {?} query
|
|
489
|
-
* @return {?}
|
|
490
|
-
*/
|
|
491
|
-
function (array, query) {
|
|
164
|
+
FsArray.prototype.rsort = function (array, query) {
|
|
492
165
|
console.warn('@deprecated use import { rsort } from @firestitch/common/array; instead');
|
|
493
166
|
return this.sort(array, query, true);
|
|
494
167
|
};
|
|
495
168
|
/**
|
|
496
169
|
* @deprecated use import { list } from @firestitch/common/array; instead
|
|
497
170
|
*/
|
|
498
|
-
|
|
499
|
-
* @deprecated use import { list } from \@firestitch/common/array; instead
|
|
500
|
-
* @param {?} array
|
|
501
|
-
* @param {?} property
|
|
502
|
-
* @param {?=} index
|
|
503
|
-
* @return {?}
|
|
504
|
-
*/
|
|
505
|
-
FsArray.prototype.list = /**
|
|
506
|
-
* @deprecated use import { list } from \@firestitch/common/array; instead
|
|
507
|
-
* @param {?} array
|
|
508
|
-
* @param {?} property
|
|
509
|
-
* @param {?=} index
|
|
510
|
-
* @return {?}
|
|
511
|
-
*/
|
|
512
|
-
function (array, property, index) {
|
|
171
|
+
FsArray.prototype.list = function (array, property, index) {
|
|
513
172
|
if (index === void 0) { index = null; }
|
|
514
173
|
console.warn('@deprecated use import { list } from @firestitch/common/array; instead');
|
|
515
|
-
/** @type {?} */
|
|
516
174
|
var list = index ? {} : [];
|
|
517
|
-
array.forEach((
|
|
518
|
-
* @param {?} item
|
|
519
|
-
* @param {?} idx
|
|
520
|
-
* @return {?}
|
|
521
|
-
*/
|
|
522
|
-
function (item, idx) {
|
|
175
|
+
array.forEach(function (item, idx) {
|
|
523
176
|
if (index) {
|
|
524
177
|
list[item[index]] = item[property];
|
|
525
178
|
}
|
|
526
179
|
else {
|
|
527
180
|
list.push(item[property]);
|
|
528
181
|
}
|
|
529
|
-
})
|
|
182
|
+
});
|
|
530
183
|
return list;
|
|
531
184
|
};
|
|
532
185
|
/**
|
|
533
186
|
* @deprecated use import { applyDepth } from @firestitch/common/array; instead
|
|
534
187
|
*/
|
|
535
|
-
|
|
536
|
-
* @deprecated use import { applyDepth } from \@firestitch/common/array; instead
|
|
537
|
-
* @param {?} objects
|
|
538
|
-
* @param {?} parent_property
|
|
539
|
-
* @param {?=} id_property
|
|
540
|
-
* @param {?=} depth_property
|
|
541
|
-
* @return {?}
|
|
542
|
-
*/
|
|
543
|
-
FsArray.prototype.applyDepth = /**
|
|
544
|
-
* @deprecated use import { applyDepth } from \@firestitch/common/array; instead
|
|
545
|
-
* @param {?} objects
|
|
546
|
-
* @param {?} parent_property
|
|
547
|
-
* @param {?=} id_property
|
|
548
|
-
* @param {?=} depth_property
|
|
549
|
-
* @return {?}
|
|
550
|
-
*/
|
|
551
|
-
function (objects, parent_property, id_property, depth_property) {
|
|
188
|
+
FsArray.prototype.applyDepth = function (objects, parent_property, id_property, depth_property) {
|
|
552
189
|
if (id_property === void 0) { id_property = 'id'; }
|
|
553
190
|
if (depth_property === void 0) { depth_property = 'depth'; }
|
|
554
191
|
console.warn('@deprecated use import { applyDepth } from @firestitch/common/array; instead');
|
|
555
|
-
/** @type {?} */
|
|
556
192
|
var keyed = {};
|
|
557
|
-
objects.forEach((
|
|
558
|
-
* @param {?} object
|
|
559
|
-
* @return {?}
|
|
560
|
-
*/
|
|
561
|
-
function (object) {
|
|
193
|
+
objects.forEach(function (object) {
|
|
562
194
|
if (!object[parent_property]) {
|
|
563
195
|
object[depth_property] = 0;
|
|
564
196
|
}
|
|
565
197
|
keyed[object[id_property]] = object;
|
|
566
|
-
})
|
|
567
|
-
Object.keys(keyed).forEach((
|
|
568
|
-
|
|
569
|
-
* @return {?}
|
|
570
|
-
*/
|
|
571
|
-
function (key) {
|
|
572
|
-
Object.keys(keyed).forEach((/**
|
|
573
|
-
* @param {?} key
|
|
574
|
-
* @return {?}
|
|
575
|
-
*/
|
|
576
|
-
function (key) {
|
|
577
|
-
/** @type {?} */
|
|
198
|
+
});
|
|
199
|
+
Object.keys(keyed).forEach(function (key) {
|
|
200
|
+
Object.keys(keyed).forEach(function (key) {
|
|
578
201
|
var object = keyed[key];
|
|
579
202
|
if (!keyed[key][depth_property]) {
|
|
580
203
|
if (keyed[key][parent_property]) {
|
|
581
204
|
keyed[key][depth_property] = keyed[keyed[key][parent_property]][depth_property] + 1;
|
|
582
205
|
}
|
|
583
206
|
}
|
|
584
|
-
})
|
|
585
|
-
})
|
|
207
|
+
});
|
|
208
|
+
});
|
|
586
209
|
return keyed;
|
|
587
210
|
};
|
|
588
211
|
/**
|
|
589
212
|
* @deprecated use import { inArray } from @firestitch/common/array; instead
|
|
590
213
|
*/
|
|
591
|
-
|
|
592
|
-
* @deprecated use import { inArray } from \@firestitch/common/array; instead
|
|
593
|
-
* @param {?} values
|
|
594
|
-
* @param {?} array
|
|
595
|
-
* @return {?}
|
|
596
|
-
*/
|
|
597
|
-
FsArray.prototype.inArray = /**
|
|
598
|
-
* @deprecated use import { inArray } from \@firestitch/common/array; instead
|
|
599
|
-
* @param {?} values
|
|
600
|
-
* @param {?} array
|
|
601
|
-
* @return {?}
|
|
602
|
-
*/
|
|
603
|
-
function (values, array) {
|
|
214
|
+
FsArray.prototype.inArray = function (values, array) {
|
|
604
215
|
console.warn('@deprecated use import { inArray } from @firestitch/common/array; instead');
|
|
605
216
|
if (!Array.isArray(values)) {
|
|
606
217
|
values = [values];
|
|
@@ -615,190 +226,59 @@
|
|
|
615
226
|
/**
|
|
616
227
|
* @deprecated use import { keyExists } from @firestitch/common/array; instead
|
|
617
228
|
*/
|
|
618
|
-
|
|
619
|
-
* @deprecated use import { keyExists } from \@firestitch/common/array; instead
|
|
620
|
-
* @param {?} array
|
|
621
|
-
* @param {?} key
|
|
622
|
-
* @return {?}
|
|
623
|
-
*/
|
|
624
|
-
FsArray.prototype.keyExists = /**
|
|
625
|
-
* @deprecated use import { keyExists } from \@firestitch/common/array; instead
|
|
626
|
-
* @param {?} array
|
|
627
|
-
* @param {?} key
|
|
628
|
-
* @return {?}
|
|
629
|
-
*/
|
|
630
|
-
function (array, key) {
|
|
229
|
+
FsArray.prototype.keyExists = function (array, key) {
|
|
631
230
|
console.warn('@deprecated use import { keyExists } from @firestitch/common/array; instead');
|
|
632
231
|
return array.hasOwnProperty(key);
|
|
633
232
|
};
|
|
634
233
|
/**
|
|
635
234
|
* @deprecated use import { length } from @firestitch/common/array; instead
|
|
636
235
|
*/
|
|
637
|
-
|
|
638
|
-
* @deprecated use import { length } from \@firestitch/common/array; instead
|
|
639
|
-
* @param {?} array
|
|
640
|
-
* @return {?}
|
|
641
|
-
*/
|
|
642
|
-
FsArray.prototype.length = /**
|
|
643
|
-
* @deprecated use import { length } from \@firestitch/common/array; instead
|
|
644
|
-
* @param {?} array
|
|
645
|
-
* @return {?}
|
|
646
|
-
*/
|
|
647
|
-
function (array) {
|
|
236
|
+
FsArray.prototype.length = function (array) {
|
|
648
237
|
console.warn('@deprecated use import { length } from @firestitch/common/array; instead');
|
|
649
238
|
return array.length;
|
|
650
239
|
};
|
|
651
240
|
/**
|
|
652
241
|
* @deprecated use import { ksort } from @firestitch/common/array; instead
|
|
653
242
|
*/
|
|
654
|
-
|
|
655
|
-
* @deprecated use import { ksort } from \@firestitch/common/array; instead
|
|
656
|
-
* @param {?} unordered
|
|
657
|
-
* @return {?}
|
|
658
|
-
*/
|
|
659
|
-
FsArray.prototype.ksort = /**
|
|
660
|
-
* @deprecated use import { ksort } from \@firestitch/common/array; instead
|
|
661
|
-
* @param {?} unordered
|
|
662
|
-
* @return {?}
|
|
663
|
-
*/
|
|
664
|
-
function (unordered) {
|
|
243
|
+
FsArray.prototype.ksort = function (unordered) {
|
|
665
244
|
console.warn('@deprecated use import { ksort } from @firestitch/common/array; instead');
|
|
666
|
-
Object.keys(unordered).sort().forEach((
|
|
667
|
-
* @param {?} key
|
|
668
|
-
* @return {?}
|
|
669
|
-
*/
|
|
670
|
-
function (key) {
|
|
671
|
-
/** @type {?} */
|
|
245
|
+
Object.keys(unordered).sort().forEach(function (key) {
|
|
672
246
|
var value = unordered[key];
|
|
673
247
|
delete unordered[key];
|
|
674
248
|
unordered[key] = value;
|
|
675
|
-
})
|
|
249
|
+
});
|
|
676
250
|
};
|
|
677
|
-
FsArray.decorators = [
|
|
678
|
-
{ type: core.Injectable }
|
|
679
|
-
];
|
|
680
251
|
return FsArray;
|
|
681
|
-
}());
|
|
252
|
+
}());
|
|
253
|
+
FsArray.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsArray, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
254
|
+
FsArray.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsArray });
|
|
255
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsArray, decorators: [{
|
|
256
|
+
type: i0.Injectable
|
|
257
|
+
}] });
|
|
682
258
|
|
|
683
|
-
/**
|
|
684
|
-
* @fileoverview added by tsickle
|
|
685
|
-
* Generated from: app/services/math.service.ts
|
|
686
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
687
|
-
*/
|
|
688
259
|
var FsMath = /** @class */ (function () {
|
|
689
260
|
function FsMath() {
|
|
690
261
|
}
|
|
691
262
|
/**
|
|
692
263
|
* @deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}
|
|
693
264
|
*/
|
|
694
|
-
|
|
695
|
-
* @deprecated use _.round() instead {\@link https://lodash.com/docs/4.17.5#round}
|
|
696
|
-
* @param {?} number
|
|
697
|
-
* @param {?} precision
|
|
698
|
-
* @return {?}
|
|
699
|
-
*/
|
|
700
|
-
FsMath.prototype.round = /**
|
|
701
|
-
* @deprecated use _.round() instead {\@link https://lodash.com/docs/4.17.5#round}
|
|
702
|
-
* @param {?} number
|
|
703
|
-
* @param {?} precision
|
|
704
|
-
* @return {?}
|
|
705
|
-
*/
|
|
706
|
-
function (number, precision) {
|
|
265
|
+
FsMath.prototype.round = function (number, precision) {
|
|
707
266
|
console.warn('@deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}');
|
|
708
267
|
precision = precision || 0;
|
|
709
|
-
/** @type {?} */
|
|
710
268
|
var factor = Math.pow(10, precision);
|
|
711
|
-
/** @type {?} */
|
|
712
269
|
var tempNumber = number * factor;
|
|
713
|
-
/** @type {?} */
|
|
714
270
|
var roundedTempNumber = Math.round(tempNumber);
|
|
715
271
|
return roundedTempNumber / factor;
|
|
716
272
|
};
|
|
717
|
-
FsMath.decorators = [
|
|
718
|
-
{ type: core.Injectable }
|
|
719
|
-
];
|
|
720
273
|
return FsMath;
|
|
721
|
-
}());
|
|
274
|
+
}());
|
|
275
|
+
FsMath.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMath, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
276
|
+
FsMath.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMath });
|
|
277
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMath, decorators: [{
|
|
278
|
+
type: i0.Injectable
|
|
279
|
+
}] });
|
|
722
280
|
|
|
723
|
-
|
|
724
|
-
* @fileoverview added by tsickle
|
|
725
|
-
* Generated from: app/services/util.service.ts
|
|
726
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
727
|
-
*/
|
|
728
|
-
/** @type {?} */
|
|
729
|
-
var KEY_CANCEL = 3;
|
|
730
|
-
/** @type {?} */
|
|
731
|
-
var KEY_HELP = 6;
|
|
732
|
-
/** @type {?} */
|
|
733
|
-
var KEY_BACKSPACE = 8;
|
|
734
|
-
/** @type {?} */
|
|
735
|
-
var KEY_TAB = 9;
|
|
736
|
-
/** @type {?} */
|
|
737
|
-
var KEY_CLEAR = 12;
|
|
738
|
-
/** @type {?} */
|
|
739
|
-
var KEY_RETURN = 13;
|
|
740
|
-
/** @type {?} */
|
|
741
|
-
var KEY_ENTER = 14;
|
|
742
|
-
/** @type {?} */
|
|
743
|
-
var KEY_SHIFT = 16;
|
|
744
|
-
/** @type {?} */
|
|
745
|
-
var KEY_CONTROL = 17;
|
|
746
|
-
/** @type {?} */
|
|
747
|
-
var KEY_ALT = 18;
|
|
748
|
-
/** @type {?} */
|
|
749
|
-
var KEY_PAUSE = 19;
|
|
750
|
-
/** @type {?} */
|
|
751
|
-
var KEY_CAPS_LOCK = 20;
|
|
752
|
-
/** @type {?} */
|
|
753
|
-
var KEY_ESCAPE = 27;
|
|
754
|
-
/** @type {?} */
|
|
755
|
-
var KEY_SPACE = 32;
|
|
756
|
-
/** @type {?} */
|
|
757
|
-
var KEY_PAGE_UP = 33;
|
|
758
|
-
/** @type {?} */
|
|
759
|
-
var KEY_PAGE_DOWN = 34;
|
|
760
|
-
/** @type {?} */
|
|
761
|
-
var KEY_END = 35;
|
|
762
|
-
/** @type {?} */
|
|
763
|
-
var KEY_HOME = 36;
|
|
764
|
-
/** @type {?} */
|
|
765
|
-
var KEY_LEFT = 37;
|
|
766
|
-
/** @type {?} */
|
|
767
|
-
var KEY_UP = 38;
|
|
768
|
-
/** @type {?} */
|
|
769
|
-
var KEY_RIGHT = 39;
|
|
770
|
-
/** @type {?} */
|
|
771
|
-
var KEY_DOWN = 40;
|
|
772
|
-
/** @type {?} */
|
|
773
|
-
var KEY_PRINTSCREEN = 44;
|
|
774
|
-
/** @type {?} */
|
|
775
|
-
var KEY_INSERT = 45;
|
|
776
|
-
/** @type {?} */
|
|
777
|
-
var KEY_DELETE = 46;
|
|
778
|
-
/** @type {?} */
|
|
779
|
-
var KEY_0 = 48;
|
|
780
|
-
/** @type {?} */
|
|
781
|
-
var KEY_1 = 49;
|
|
782
|
-
/** @type {?} */
|
|
783
|
-
var KEY_2 = 50;
|
|
784
|
-
/** @type {?} */
|
|
785
|
-
var KEY_3 = 51;
|
|
786
|
-
/** @type {?} */
|
|
787
|
-
var KEY_4 = 52;
|
|
788
|
-
/** @type {?} */
|
|
789
|
-
var KEY_5 = 53;
|
|
790
|
-
/** @type {?} */
|
|
791
|
-
var KEY_6 = 54;
|
|
792
|
-
/** @type {?} */
|
|
793
|
-
var KEY_7 = 55;
|
|
794
|
-
/** @type {?} */
|
|
795
|
-
var KEY_8 = 56;
|
|
796
|
-
/** @type {?} */
|
|
797
|
-
var KEY_9 = 57;
|
|
798
|
-
/** @type {?} */
|
|
799
|
-
var KEY_SEMICOLON = 59;
|
|
800
|
-
/** @type {?} */
|
|
801
|
-
var KEY_EQUALS = 61;
|
|
281
|
+
var KEY_CANCEL$1 = 3, KEY_HELP$1 = 6, KEY_BACKSPACE$1 = 8, KEY_TAB$1 = 9, KEY_CLEAR$1 = 12, KEY_RETURN$1 = 13, KEY_ENTER$1 = 14, KEY_SHIFT$1 = 16, KEY_CONTROL$1 = 17, KEY_ALT$1 = 18, KEY_PAUSE$1 = 19, KEY_CAPS_LOCK$1 = 20, KEY_ESCAPE$1 = 27, KEY_SPACE$1 = 32, KEY_PAGE_UP$1 = 33, KEY_PAGE_DOWN$1 = 34, KEY_END$1 = 35, KEY_HOME$1 = 36, KEY_LEFT$1 = 37, KEY_UP$1 = 38, KEY_RIGHT$1 = 39, KEY_DOWN$1 = 40, KEY_PRINTSCREEN$1 = 44, KEY_INSERT$1 = 45, KEY_DELETE$1 = 46, KEY_0$1 = 48, KEY_1$1 = 49, KEY_2$1 = 50, KEY_3$1 = 51, KEY_4$1 = 52, KEY_5$1 = 53, KEY_6$1 = 54, KEY_7$1 = 55, KEY_8$1 = 56, KEY_9$1 = 57, KEY_SEMICOLON$1 = 59, KEY_EQUALS$1 = 61;
|
|
802
282
|
/*
|
|
803
283
|
Basically, just copy-pasted functionality from fs-boilerplate v1.x, with some small changes (like we dont have angular.bind anymore, had to go with a workaround)
|
|
804
284
|
There might be a better way to organise constatns but I need to know use-cases
|
|
@@ -810,99 +290,39 @@
|
|
|
810
290
|
/**
|
|
811
291
|
* @deprecated use @firestitch/common/util/guid instead
|
|
812
292
|
*/
|
|
813
|
-
|
|
814
|
-
* @deprecated use \@firestitch/common/util/guid instead
|
|
815
|
-
* @param {?=} pattern
|
|
816
|
-
* @return {?}
|
|
817
|
-
*/
|
|
818
|
-
FsUtil.prototype.guid = /**
|
|
819
|
-
* @deprecated use \@firestitch/common/util/guid instead
|
|
820
|
-
* @param {?=} pattern
|
|
821
|
-
* @return {?}
|
|
822
|
-
*/
|
|
823
|
-
function (pattern) {
|
|
293
|
+
FsUtil.prototype.guid = function (pattern) {
|
|
824
294
|
console.warn('@deprecated use @firestitch/common/util/guid instead');
|
|
825
295
|
pattern = pattern || 'xxxxxx';
|
|
826
|
-
return pattern.replace(/[xy]/g, (
|
|
827
|
-
|
|
828
|
-
* @return {?}
|
|
829
|
-
*/
|
|
830
|
-
function (c) {
|
|
831
|
-
/** @type {?} */
|
|
832
|
-
var r = Math.random() * 16 | 0;
|
|
833
|
-
/** @type {?} */
|
|
834
|
-
var v = c == 'x' ? r : (r & 0x3 | 0x8);
|
|
296
|
+
return pattern.replace(/[xy]/g, function (c) {
|
|
297
|
+
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
|
835
298
|
return v.toString(16);
|
|
836
|
-
})
|
|
299
|
+
});
|
|
837
300
|
};
|
|
838
301
|
/**
|
|
839
302
|
* @deprecated use import { uuid } from @firestitch/common/util; instead
|
|
840
303
|
*/
|
|
841
|
-
|
|
842
|
-
* @deprecated use import { uuid } from \@firestitch/common/util; instead
|
|
843
|
-
* @return {?}
|
|
844
|
-
*/
|
|
845
|
-
FsUtil.prototype.uuid = /**
|
|
846
|
-
* @deprecated use import { uuid } from \@firestitch/common/util; instead
|
|
847
|
-
* @return {?}
|
|
848
|
-
*/
|
|
849
|
-
function () {
|
|
304
|
+
FsUtil.prototype.uuid = function () {
|
|
850
305
|
console.warn('@deprecated use @firestitch/common/util/uuid instead');
|
|
851
306
|
return this.guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
|
|
852
307
|
};
|
|
853
308
|
/**
|
|
854
309
|
* @deprecated use import { resolve } from @firestitch/common/util; instead
|
|
855
310
|
*/
|
|
856
|
-
|
|
857
|
-
* @deprecated use import { resolve } from \@firestitch/common/util; instead
|
|
858
|
-
* @param {?} promise
|
|
859
|
-
* @param {?=} defaults
|
|
860
|
-
* @return {?}
|
|
861
|
-
*/
|
|
862
|
-
FsUtil.prototype.resolve = /**
|
|
863
|
-
* @deprecated use import { resolve } from \@firestitch/common/util; instead
|
|
864
|
-
* @param {?} promise
|
|
865
|
-
* @param {?=} defaults
|
|
866
|
-
* @return {?}
|
|
867
|
-
*/
|
|
868
|
-
function (promise, defaults) {
|
|
311
|
+
FsUtil.prototype.resolve = function (promise, defaults) {
|
|
869
312
|
if (defaults === void 0) { defaults = []; }
|
|
870
313
|
console.warn('@deprecated use @firestitch/common/util/resolve instead');
|
|
871
|
-
/** @type {?} */
|
|
872
314
|
var result = defaults;
|
|
873
|
-
return new Promise((
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
*/
|
|
877
|
-
function (resolve) {
|
|
878
|
-
promise.then((/**
|
|
879
|
-
* @param {?} data
|
|
880
|
-
* @return {?}
|
|
881
|
-
*/
|
|
882
|
-
function (data) {
|
|
883
|
-
Object.keys(data).forEach((/**
|
|
884
|
-
* @param {?} key
|
|
885
|
-
* @return {?}
|
|
886
|
-
*/
|
|
887
|
-
function (key) { return result[key] = data[key]; }));
|
|
315
|
+
return new Promise(function (resolve) {
|
|
316
|
+
promise.then(function (data) {
|
|
317
|
+
Object.keys(data).forEach(function (key) { return result[key] = data[key]; });
|
|
888
318
|
resolve(result);
|
|
889
|
-
})
|
|
890
|
-
})
|
|
319
|
+
});
|
|
320
|
+
});
|
|
891
321
|
};
|
|
892
322
|
/**
|
|
893
323
|
* @deprecated use _.toInteger() instead
|
|
894
324
|
*/
|
|
895
|
-
|
|
896
|
-
* @deprecated use _.toInteger() instead
|
|
897
|
-
* @param {?} value
|
|
898
|
-
* @return {?}
|
|
899
|
-
*/
|
|
900
|
-
FsUtil.prototype.int = /**
|
|
901
|
-
* @deprecated use _.toInteger() instead
|
|
902
|
-
* @param {?} value
|
|
903
|
-
* @return {?}
|
|
904
|
-
*/
|
|
905
|
-
function (value) {
|
|
325
|
+
FsUtil.prototype.int = function (value) {
|
|
906
326
|
console.warn('@deprecated use _.toInteger() instead');
|
|
907
327
|
value = parseInt(value);
|
|
908
328
|
if (isNaN(value)) {
|
|
@@ -913,17 +333,7 @@
|
|
|
913
333
|
/**
|
|
914
334
|
* @deprecated use _.toFinite() instead
|
|
915
335
|
*/
|
|
916
|
-
|
|
917
|
-
* @deprecated use _.toFinite() instead
|
|
918
|
-
* @param {?} value
|
|
919
|
-
* @return {?}
|
|
920
|
-
*/
|
|
921
|
-
FsUtil.prototype.float = /**
|
|
922
|
-
* @deprecated use _.toFinite() instead
|
|
923
|
-
* @param {?} value
|
|
924
|
-
* @return {?}
|
|
925
|
-
*/
|
|
926
|
-
function (value) {
|
|
336
|
+
FsUtil.prototype.float = function (value) {
|
|
927
337
|
console.warn('@deprecated use _.toFinite() instead');
|
|
928
338
|
value = parseFloat(value);
|
|
929
339
|
if (isNaN(value)) {
|
|
@@ -934,17 +344,7 @@
|
|
|
934
344
|
/**
|
|
935
345
|
* @deprecated use _.toString() instead
|
|
936
346
|
*/
|
|
937
|
-
|
|
938
|
-
* @deprecated use _.toString() instead
|
|
939
|
-
* @param {?} string
|
|
940
|
-
* @return {?}
|
|
941
|
-
*/
|
|
942
|
-
FsUtil.prototype.string = /**
|
|
943
|
-
* @deprecated use _.toString() instead
|
|
944
|
-
* @param {?} string
|
|
945
|
-
* @return {?}
|
|
946
|
-
*/
|
|
947
|
-
function (string) {
|
|
347
|
+
FsUtil.prototype.string = function (string) {
|
|
948
348
|
console.warn('@deprecated use _.toString() instead');
|
|
949
349
|
if (string === null || string === undefined) {
|
|
950
350
|
string = '';
|
|
@@ -954,19 +354,7 @@
|
|
|
954
354
|
/**
|
|
955
355
|
* @deprecated use import { isEmpty } from @firestitch/common/util; instead
|
|
956
356
|
*/
|
|
957
|
-
|
|
958
|
-
* @deprecated use import { isEmpty } from \@firestitch/common/util; instead
|
|
959
|
-
* @param {?} value
|
|
960
|
-
* @param {?=} options
|
|
961
|
-
* @return {?}
|
|
962
|
-
*/
|
|
963
|
-
FsUtil.prototype.isEmpty = /**
|
|
964
|
-
* @deprecated use import { isEmpty } from \@firestitch/common/util; instead
|
|
965
|
-
* @param {?} value
|
|
966
|
-
* @param {?=} options
|
|
967
|
-
* @return {?}
|
|
968
|
-
*/
|
|
969
|
-
function (value, options) {
|
|
357
|
+
FsUtil.prototype.isEmpty = function (value, options) {
|
|
970
358
|
console.warn('@deprecated use import { isEmpty } from @firestitch/common/util; instead');
|
|
971
359
|
options = options || {};
|
|
972
360
|
return value === undefined ||
|
|
@@ -981,21 +369,8 @@
|
|
|
981
369
|
/**
|
|
982
370
|
* @deprecated use _.isInteger() instead
|
|
983
371
|
*/
|
|
984
|
-
|
|
985
|
-
* @deprecated use _.isInteger() instead
|
|
986
|
-
* @param {?} value
|
|
987
|
-
* @param {?=} type
|
|
988
|
-
* @return {?}
|
|
989
|
-
*/
|
|
990
|
-
FsUtil.prototype.isInt = /**
|
|
991
|
-
* @deprecated use _.isInteger() instead
|
|
992
|
-
* @param {?} value
|
|
993
|
-
* @param {?=} type
|
|
994
|
-
* @return {?}
|
|
995
|
-
*/
|
|
996
|
-
function (value, type) {
|
|
372
|
+
FsUtil.prototype.isInt = function (value, type) {
|
|
997
373
|
console.warn('@deprecated use _.isInteger() instead');
|
|
998
|
-
/** @type {?} */
|
|
999
374
|
var int = !!this.string(value).match(/^\d+$/);
|
|
1000
375
|
if (!int) {
|
|
1001
376
|
return false;
|
|
@@ -1008,118 +383,48 @@
|
|
|
1008
383
|
/**
|
|
1009
384
|
* @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
|
|
1010
385
|
*/
|
|
1011
|
-
|
|
1012
|
-
* @deprecated use _.each() instead {\@link https://lodash.com/docs/4.17.5#forEach}
|
|
1013
|
-
* @param {?} object
|
|
1014
|
-
* @param {?} func
|
|
1015
|
-
* @return {?}
|
|
1016
|
-
*/
|
|
1017
|
-
FsUtil.prototype.each = /**
|
|
1018
|
-
* @deprecated use _.each() instead {\@link https://lodash.com/docs/4.17.5#forEach}
|
|
1019
|
-
* @param {?} object
|
|
1020
|
-
* @param {?} func
|
|
1021
|
-
* @return {?}
|
|
1022
|
-
*/
|
|
1023
|
-
function (object, func) {
|
|
386
|
+
FsUtil.prototype.each = function (object, func) {
|
|
1024
387
|
console.warn('@deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}');
|
|
1025
388
|
if (!this.isArray(object) && !this.isObject(object)) {
|
|
1026
389
|
return;
|
|
1027
390
|
}
|
|
1028
|
-
Object.keys(object).forEach((
|
|
1029
|
-
* @param {?} key
|
|
1030
|
-
* @return {?}
|
|
1031
|
-
*/
|
|
1032
|
-
function (key) {
|
|
391
|
+
Object.keys(object).forEach(function (key) {
|
|
1033
392
|
func(object[key], key);
|
|
1034
|
-
})
|
|
393
|
+
});
|
|
1035
394
|
};
|
|
1036
395
|
/**
|
|
1037
396
|
* @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
|
|
1038
397
|
* or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
|
|
1039
398
|
*/
|
|
1040
|
-
|
|
1041
|
-
* @deprecated use _.isArrayLikeObject() {\@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
|
|
1042
|
-
* or _.isObject() {\@link https://lodash.com/docs/4.17.5#isObject} instead
|
|
1043
|
-
* @param {?} value
|
|
1044
|
-
* @return {?}
|
|
1045
|
-
*/
|
|
1046
|
-
FsUtil.prototype.isObject = /**
|
|
1047
|
-
* @deprecated use _.isArrayLikeObject() {\@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
|
|
1048
|
-
* or _.isObject() {\@link https://lodash.com/docs/4.17.5#isObject} instead
|
|
1049
|
-
* @param {?} value
|
|
1050
|
-
* @return {?}
|
|
1051
|
-
*/
|
|
1052
|
-
function (value) {
|
|
399
|
+
FsUtil.prototype.isObject = function (value) {
|
|
1053
400
|
console.warn('@deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject} or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead');
|
|
1054
401
|
return value !== null && typeof value === 'object' && !this.isArray(value);
|
|
1055
402
|
};
|
|
1056
403
|
/**
|
|
1057
404
|
* @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
|
|
1058
405
|
*/
|
|
1059
|
-
|
|
1060
|
-
* @deprecated use _.isString() instead {\@link https://lodash.com/docs/4.17.5#isString}
|
|
1061
|
-
* @param {?} value
|
|
1062
|
-
* @return {?}
|
|
1063
|
-
*/
|
|
1064
|
-
FsUtil.prototype.isString = /**
|
|
1065
|
-
* @deprecated use _.isString() instead {\@link https://lodash.com/docs/4.17.5#isString}
|
|
1066
|
-
* @param {?} value
|
|
1067
|
-
* @return {?}
|
|
1068
|
-
*/
|
|
1069
|
-
function (value) {
|
|
406
|
+
FsUtil.prototype.isString = function (value) {
|
|
1070
407
|
console.warn('@deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}');
|
|
1071
408
|
return typeof value === 'string' || value instanceof String;
|
|
1072
409
|
};
|
|
1073
410
|
/**
|
|
1074
411
|
* @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
|
|
1075
412
|
*/
|
|
1076
|
-
|
|
1077
|
-
* @deprecated use _.isArray() instead {\@link https://lodash.com/docs/4.17.5#isArray}
|
|
1078
|
-
* @param {?} value
|
|
1079
|
-
* @return {?}
|
|
1080
|
-
*/
|
|
1081
|
-
FsUtil.prototype.isArray = /**
|
|
1082
|
-
* @deprecated use _.isArray() instead {\@link https://lodash.com/docs/4.17.5#isArray}
|
|
1083
|
-
* @param {?} value
|
|
1084
|
-
* @return {?}
|
|
1085
|
-
*/
|
|
1086
|
-
function (value) {
|
|
413
|
+
FsUtil.prototype.isArray = function (value) {
|
|
1087
414
|
console.warn('@deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}');
|
|
1088
415
|
return value instanceof Array;
|
|
1089
416
|
};
|
|
1090
417
|
/**
|
|
1091
418
|
* @deprecated use import { isNumeric } from @firestitch/common/util; instead
|
|
1092
419
|
*/
|
|
1093
|
-
|
|
1094
|
-
* @deprecated use import { isNumeric } from \@firestitch/common/util; instead
|
|
1095
|
-
* @param {?} value
|
|
1096
|
-
* @return {?}
|
|
1097
|
-
*/
|
|
1098
|
-
FsUtil.prototype.isNumeric = /**
|
|
1099
|
-
* @deprecated use import { isNumeric } from \@firestitch/common/util; instead
|
|
1100
|
-
* @param {?} value
|
|
1101
|
-
* @return {?}
|
|
1102
|
-
*/
|
|
1103
|
-
function (value) {
|
|
420
|
+
FsUtil.prototype.isNumeric = function (value) {
|
|
1104
421
|
console.warn('@deprecated use import { isNumeric } from @firestitch/common/util; instead');
|
|
1105
422
|
return this.string(value).length && !!this.string(value).match(/^-?\d*\.?\d*$/);
|
|
1106
423
|
};
|
|
1107
424
|
/**
|
|
1108
425
|
* @deprecated use import { isClass } from @firestitch/common/util; instead
|
|
1109
426
|
*/
|
|
1110
|
-
|
|
1111
|
-
* @deprecated use import { isClass } from \@firestitch/common/util; instead
|
|
1112
|
-
* @param {?} value
|
|
1113
|
-
* @param {?} cls
|
|
1114
|
-
* @return {?}
|
|
1115
|
-
*/
|
|
1116
|
-
FsUtil.prototype.isClass = /**
|
|
1117
|
-
* @deprecated use import { isClass } from \@firestitch/common/util; instead
|
|
1118
|
-
* @param {?} value
|
|
1119
|
-
* @param {?} cls
|
|
1120
|
-
* @return {?}
|
|
1121
|
-
*/
|
|
1122
|
-
function (value, cls) {
|
|
427
|
+
FsUtil.prototype.isClass = function (value, cls) {
|
|
1123
428
|
console.warn('@deprecated use import { isClass } from @firestitch/common/util; instead');
|
|
1124
429
|
if (this.isObject(value)) {
|
|
1125
430
|
if (this.isString(cls)) {
|
|
@@ -1140,38 +445,14 @@
|
|
|
1140
445
|
/**
|
|
1141
446
|
* @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
|
|
1142
447
|
*/
|
|
1143
|
-
|
|
1144
|
-
* @deprecated use _.isBoolean() instead {\@link https://lodash.com/docs/4.17.5#isBoolean}
|
|
1145
|
-
* @param {?} value
|
|
1146
|
-
* @return {?}
|
|
1147
|
-
*/
|
|
1148
|
-
FsUtil.prototype.isBoolean = /**
|
|
1149
|
-
* @deprecated use _.isBoolean() instead {\@link https://lodash.com/docs/4.17.5#isBoolean}
|
|
1150
|
-
* @param {?} value
|
|
1151
|
-
* @return {?}
|
|
1152
|
-
*/
|
|
1153
|
-
function (value) {
|
|
448
|
+
FsUtil.prototype.isBoolean = function (value) {
|
|
1154
449
|
console.warn('@deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}');
|
|
1155
450
|
return value === true || value === false;
|
|
1156
451
|
};
|
|
1157
452
|
/**
|
|
1158
453
|
* @deprecated use import { value } from @firestitch/common/util; instead
|
|
1159
454
|
*/
|
|
1160
|
-
|
|
1161
|
-
* @deprecated use import { value } from \@firestitch/common/util; instead
|
|
1162
|
-
* @param {?} object
|
|
1163
|
-
* @param {?} key
|
|
1164
|
-
* @param {?} def
|
|
1165
|
-
* @return {?}
|
|
1166
|
-
*/
|
|
1167
|
-
FsUtil.prototype.value = /**
|
|
1168
|
-
* @deprecated use import { value } from \@firestitch/common/util; instead
|
|
1169
|
-
* @param {?} object
|
|
1170
|
-
* @param {?} key
|
|
1171
|
-
* @param {?} def
|
|
1172
|
-
* @return {?}
|
|
1173
|
-
*/
|
|
1174
|
-
function (object, key, def) {
|
|
455
|
+
FsUtil.prototype.value = function (object, key, def) {
|
|
1175
456
|
console.warn('@deprecated use import { value } from @firestitch/common/util; instead');
|
|
1176
457
|
if (this.isObject(object) || this.isArray(object)) {
|
|
1177
458
|
if (object.hasOwnProperty(key)) {
|
|
@@ -1180,96 +461,43 @@
|
|
|
1180
461
|
}
|
|
1181
462
|
return def;
|
|
1182
463
|
};
|
|
1183
|
-
|
|
1184
|
-
* @param {?} func
|
|
1185
|
-
* @param {?} wait
|
|
1186
|
-
* @return {?}
|
|
1187
|
-
*/
|
|
1188
|
-
FsUtil.prototype.throttle = /**
|
|
1189
|
-
* @param {?} func
|
|
1190
|
-
* @param {?} wait
|
|
1191
|
-
* @return {?}
|
|
1192
|
-
*/
|
|
1193
|
-
function (func, wait) {
|
|
464
|
+
FsUtil.prototype.throttle = function (func, wait) {
|
|
1194
465
|
console.warn('@deprecated use import { throttle } from @firestitch/common/util; instead');
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
return (/**
|
|
1198
|
-
* @return {?}
|
|
1199
|
-
*/
|
|
1200
|
-
function () {
|
|
466
|
+
var waiting = false; // Initially, we're not waiting
|
|
467
|
+
return function () {
|
|
1201
468
|
if (!waiting) { // If we're not waiting
|
|
1202
469
|
func.apply(null, arguments); // Execute users function
|
|
1203
470
|
waiting = true; // Prevent future invocations
|
|
1204
|
-
setTimeout((
|
|
1205
|
-
* @return {?}
|
|
1206
|
-
*/
|
|
1207
|
-
function () {
|
|
471
|
+
setTimeout(function () {
|
|
1208
472
|
waiting = false; // And allow future invocations
|
|
1209
|
-
}
|
|
473
|
+
}, wait);
|
|
1210
474
|
}
|
|
1211
|
-
}
|
|
475
|
+
};
|
|
1212
476
|
};
|
|
1213
477
|
/**
|
|
1214
478
|
* @deprecated use import { debounce } from @firestitch/common/util; instead
|
|
1215
479
|
*/
|
|
1216
|
-
|
|
1217
|
-
* @deprecated use import { debounce } from \@firestitch/common/util; instead
|
|
1218
|
-
* @param {?} func
|
|
1219
|
-
* @param {?} wait
|
|
1220
|
-
* @param {?} immediate
|
|
1221
|
-
* @return {?}
|
|
1222
|
-
*/
|
|
1223
|
-
FsUtil.prototype.debounce = /**
|
|
1224
|
-
* @deprecated use import { debounce } from \@firestitch/common/util; instead
|
|
1225
|
-
* @param {?} func
|
|
1226
|
-
* @param {?} wait
|
|
1227
|
-
* @param {?} immediate
|
|
1228
|
-
* @return {?}
|
|
1229
|
-
*/
|
|
1230
|
-
function (func, wait, immediate) {
|
|
480
|
+
FsUtil.prototype.debounce = function (func, wait, immediate) {
|
|
1231
481
|
console.warn('@deprecated use import { debounce } from @firestitch/common/util; instead');
|
|
1232
|
-
/** @type {?} */
|
|
1233
482
|
var timeout;
|
|
1234
|
-
return (
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
function () {
|
|
1238
|
-
/** @type {?} */
|
|
1239
|
-
var context = this;
|
|
1240
|
-
/** @type {?} */
|
|
1241
|
-
var args = arguments;
|
|
1242
|
-
/** @type {?} */
|
|
1243
|
-
var later = (/**
|
|
1244
|
-
* @return {?}
|
|
1245
|
-
*/
|
|
1246
|
-
function () {
|
|
483
|
+
return function () {
|
|
484
|
+
var context = this, args = arguments;
|
|
485
|
+
var later = function () {
|
|
1247
486
|
timeout = null;
|
|
1248
487
|
if (!immediate)
|
|
1249
488
|
func.apply(context, args);
|
|
1250
|
-
}
|
|
1251
|
-
/** @type {?} */
|
|
489
|
+
};
|
|
1252
490
|
var callNow = immediate && !timeout;
|
|
1253
491
|
clearTimeout(timeout);
|
|
1254
492
|
timeout = setTimeout(later, wait);
|
|
1255
493
|
if (callNow)
|
|
1256
494
|
func.apply(context, args);
|
|
1257
|
-
}
|
|
495
|
+
};
|
|
1258
496
|
};
|
|
1259
497
|
/**
|
|
1260
498
|
* @deprecated use import { length } from @firestitch/common/util; instead
|
|
1261
499
|
*/
|
|
1262
|
-
|
|
1263
|
-
* @deprecated use import { length } from \@firestitch/common/util; instead
|
|
1264
|
-
* @param {?} object
|
|
1265
|
-
* @return {?}
|
|
1266
|
-
*/
|
|
1267
|
-
FsUtil.prototype.length = /**
|
|
1268
|
-
* @deprecated use import { length } from \@firestitch/common/util; instead
|
|
1269
|
-
* @param {?} object
|
|
1270
|
-
* @return {?}
|
|
1271
|
-
*/
|
|
1272
|
-
function (object) {
|
|
500
|
+
FsUtil.prototype.length = function (object) {
|
|
1273
501
|
console.warn('@deprecated use import { length } from @firestitch/common/util; instead');
|
|
1274
502
|
if (this.isObject(object)) {
|
|
1275
503
|
return Object.keys(object).length;
|
|
@@ -1282,55 +510,25 @@
|
|
|
1282
510
|
/**
|
|
1283
511
|
* @deprecated use import { boolean } from @firestitch/common/util; instead
|
|
1284
512
|
*/
|
|
1285
|
-
|
|
1286
|
-
* @deprecated use import { boolean } from \@firestitch/common/util; instead
|
|
1287
|
-
* @param {?} value
|
|
1288
|
-
* @return {?}
|
|
1289
|
-
*/
|
|
1290
|
-
FsUtil.prototype.boolean = /**
|
|
1291
|
-
* @deprecated use import { boolean } from \@firestitch/common/util; instead
|
|
1292
|
-
* @param {?} value
|
|
1293
|
-
* @return {?}
|
|
1294
|
-
*/
|
|
1295
|
-
function (value) {
|
|
513
|
+
FsUtil.prototype.boolean = function (value) {
|
|
1296
514
|
console.warn('@deprecated use import { boolean } from @firestitch/common/util; instead');
|
|
1297
515
|
return this.string(value).toLowerCase() !== 'false' && !!value;
|
|
1298
516
|
};
|
|
1299
517
|
/**
|
|
1300
518
|
* @deprecated use import { stringify } from @firestitch/common/util; instead
|
|
1301
519
|
*/
|
|
1302
|
-
|
|
1303
|
-
* @deprecated use import { stringify } from \@firestitch/common/util; instead
|
|
1304
|
-
* @param {?} value
|
|
1305
|
-
* @return {?}
|
|
1306
|
-
*/
|
|
1307
|
-
FsUtil.prototype.stringify = /**
|
|
1308
|
-
* @deprecated use import { stringify } from \@firestitch/common/util; instead
|
|
1309
|
-
* @param {?} value
|
|
1310
|
-
* @return {?}
|
|
1311
|
-
*/
|
|
1312
|
-
function (value) {
|
|
520
|
+
FsUtil.prototype.stringify = function (value) {
|
|
1313
521
|
console.warn('@deprecated use import { stringify } from @firestitch/common/util; instead');
|
|
1314
522
|
return JSON.stringify(value);
|
|
1315
523
|
};
|
|
1316
|
-
FsUtil.decorators = [
|
|
1317
|
-
{ type: core.Injectable }
|
|
1318
|
-
];
|
|
1319
524
|
return FsUtil;
|
|
1320
525
|
}());
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
FsUtil.prototype.intervals;
|
|
1327
|
-
}
|
|
526
|
+
FsUtil.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtil, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
527
|
+
FsUtil.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtil });
|
|
528
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtil, decorators: [{
|
|
529
|
+
type: i0.Injectable
|
|
530
|
+
}] });
|
|
1328
531
|
|
|
1329
|
-
/**
|
|
1330
|
-
* @fileoverview added by tsickle
|
|
1331
|
-
* Generated from: app/services/vaildate.service.ts
|
|
1332
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1333
|
-
*/
|
|
1334
532
|
var FsValidate = /** @class */ (function () {
|
|
1335
533
|
function FsValidate(fsUtil) {
|
|
1336
534
|
this.fsUtil = fsUtil;
|
|
@@ -1338,81 +536,31 @@
|
|
|
1338
536
|
/**
|
|
1339
537
|
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
1340
538
|
*/
|
|
1341
|
-
|
|
1342
|
-
* @deprecated use import { email } from \@firestitch/common/validate; instead
|
|
1343
|
-
* @param {?} value
|
|
1344
|
-
* @return {?}
|
|
1345
|
-
*/
|
|
1346
|
-
FsValidate.prototype.phone = /**
|
|
1347
|
-
* @deprecated use import { email } from \@firestitch/common/validate; instead
|
|
1348
|
-
* @param {?} value
|
|
1349
|
-
* @return {?}
|
|
1350
|
-
*/
|
|
1351
|
-
function (value) {
|
|
1352
|
-
/** @type {?} */
|
|
539
|
+
FsValidate.prototype.phone = function (value) {
|
|
1353
540
|
var valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/.test(value);
|
|
1354
541
|
return valid || !String(value).length;
|
|
1355
542
|
};
|
|
1356
543
|
/**
|
|
1357
544
|
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
1358
545
|
*/
|
|
1359
|
-
|
|
1360
|
-
* @deprecated use import { email } from \@firestitch/common/validate; instead
|
|
1361
|
-
* @param {?} value
|
|
1362
|
-
* @return {?}
|
|
1363
|
-
*/
|
|
1364
|
-
FsValidate.prototype.email = /**
|
|
1365
|
-
* @deprecated use import { email } from \@firestitch/common/validate; instead
|
|
1366
|
-
* @param {?} value
|
|
1367
|
-
* @return {?}
|
|
1368
|
-
*/
|
|
1369
|
-
function (value) {
|
|
546
|
+
FsValidate.prototype.email = function (value) {
|
|
1370
547
|
return !!this.fsUtil.string(value).match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
1371
548
|
};
|
|
1372
|
-
FsValidate.decorators = [
|
|
1373
|
-
{ type: core.Injectable }
|
|
1374
|
-
];
|
|
1375
|
-
/** @nocollapse */
|
|
1376
|
-
FsValidate.ctorParameters = function () { return [
|
|
1377
|
-
{ type: FsUtil }
|
|
1378
|
-
]; };
|
|
1379
549
|
return FsValidate;
|
|
1380
550
|
}());
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
FsValidate.prototype.fsUtil;
|
|
1387
|
-
}
|
|
551
|
+
FsValidate.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsValidate, deps: [{ token: FsUtil }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
552
|
+
FsValidate.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsValidate });
|
|
553
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsValidate, decorators: [{
|
|
554
|
+
type: i0.Injectable
|
|
555
|
+
}], ctorParameters: function () { return [{ type: FsUtil }]; } });
|
|
1388
556
|
|
|
1389
|
-
/**
|
|
1390
|
-
* @fileoverview added by tsickle
|
|
1391
|
-
* Generated from: libs/util/stringify/stringify.ts
|
|
1392
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1393
|
-
*/
|
|
1394
|
-
/**
|
|
1395
|
-
* @param {?} value
|
|
1396
|
-
* @return {?}
|
|
1397
|
-
*/
|
|
1398
557
|
function stringify(value) {
|
|
1399
558
|
return JSON.stringify(value);
|
|
1400
559
|
}
|
|
1401
560
|
|
|
1402
|
-
/**
|
|
1403
|
-
* @fileoverview added by tsickle
|
|
1404
|
-
* Generated from: libs/util/guid/guid.ts
|
|
1405
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1406
|
-
*/
|
|
1407
|
-
/**
|
|
1408
|
-
* @param {?=} pattern
|
|
1409
|
-
* @param {?=} options
|
|
1410
|
-
* @return {?}
|
|
1411
|
-
*/
|
|
1412
561
|
function guid(pattern, options) {
|
|
1413
562
|
if (options === void 0) { options = { case: 'lower', numbers: true }; }
|
|
1414
563
|
pattern = pattern || 'xxxxxx';
|
|
1415
|
-
/** @type {?} */
|
|
1416
564
|
var s = '';
|
|
1417
565
|
if (options.numbers !== false) {
|
|
1418
566
|
s = '0123456789';
|
|
@@ -1423,249 +571,142 @@
|
|
|
1423
571
|
if (options.case === 'upper' || options.case === 'mixed') {
|
|
1424
572
|
s = s.concat('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
|
|
1425
573
|
}
|
|
1426
|
-
/** @type {?} */
|
|
1427
574
|
var chars = s.match(/(.{1,1})/g);
|
|
1428
|
-
return pattern.replace(/[x]/g, (
|
|
1429
|
-
* @param {?} c
|
|
1430
|
-
* @return {?}
|
|
1431
|
-
*/
|
|
1432
|
-
function (c) {
|
|
1433
|
-
/** @type {?} */
|
|
575
|
+
return pattern.replace(/[x]/g, function (c) {
|
|
1434
576
|
var i = (Math.random() * chars.length) | 0;
|
|
1435
577
|
return chars[i];
|
|
1436
|
-
})
|
|
578
|
+
});
|
|
1437
579
|
}
|
|
1438
580
|
|
|
1439
|
-
/**
|
|
1440
|
-
* @fileoverview added by tsickle
|
|
1441
|
-
* Generated from: libs/util/isEmpty/isEmpty.ts
|
|
1442
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1443
|
-
*/
|
|
1444
|
-
/**
|
|
1445
|
-
* @param {?} value
|
|
1446
|
-
* @param {?=} options
|
|
1447
|
-
* @return {?}
|
|
1448
|
-
*/
|
|
1449
581
|
function isEmpty(value, options) {
|
|
1450
582
|
options = options || {};
|
|
1451
583
|
return value === undefined ||
|
|
1452
584
|
value === null ||
|
|
1453
585
|
value === false ||
|
|
1454
586
|
value === '' ||
|
|
1455
|
-
|
|
1456
|
-
(
|
|
1457
|
-
|
|
587
|
+
String(value).length === 0 ||
|
|
588
|
+
(Array.isArray(value) && value.length === 0) ||
|
|
589
|
+
(value instanceof Object && Object.keys(value).length === 0) ||
|
|
1458
590
|
(!options.zero && (value === 0 || value === '0'));
|
|
1459
591
|
}
|
|
1460
592
|
|
|
1461
|
-
/**
|
|
1462
|
-
* @fileoverview added by tsickle
|
|
1463
|
-
* Generated from: app/pipes/util.pipe.ts
|
|
1464
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1465
|
-
*/
|
|
1466
593
|
var FsUtilStringifyPipe = /** @class */ (function () {
|
|
1467
594
|
function FsUtilStringifyPipe() {
|
|
1468
595
|
}
|
|
1469
|
-
|
|
1470
|
-
* @param {?} value
|
|
1471
|
-
* @return {?}
|
|
1472
|
-
*/
|
|
1473
|
-
FsUtilStringifyPipe.prototype.transform = /**
|
|
1474
|
-
* @param {?} value
|
|
1475
|
-
* @return {?}
|
|
1476
|
-
*/
|
|
1477
|
-
function (value) {
|
|
596
|
+
FsUtilStringifyPipe.prototype.transform = function (value) {
|
|
1478
597
|
return stringify(value);
|
|
1479
598
|
};
|
|
1480
|
-
FsUtilStringifyPipe.decorators = [
|
|
1481
|
-
{ type: core.Pipe, args: [{
|
|
1482
|
-
name: 'fsUtilStringify'
|
|
1483
|
-
},] }
|
|
1484
|
-
];
|
|
1485
|
-
/** @nocollapse */
|
|
1486
|
-
FsUtilStringifyPipe.ctorParameters = function () { return []; };
|
|
1487
599
|
return FsUtilStringifyPipe;
|
|
1488
600
|
}());
|
|
601
|
+
FsUtilStringifyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilStringifyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
602
|
+
FsUtilStringifyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilStringifyPipe, name: "fsUtilStringify" });
|
|
603
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilStringifyPipe, decorators: [{
|
|
604
|
+
type: i0.Pipe,
|
|
605
|
+
args: [{
|
|
606
|
+
name: 'fsUtilStringify'
|
|
607
|
+
}]
|
|
608
|
+
}], ctorParameters: function () { return []; } });
|
|
1489
609
|
var FsUtilGuidPipe = /** @class */ (function () {
|
|
1490
610
|
function FsUtilGuidPipe() {
|
|
1491
611
|
}
|
|
1492
|
-
|
|
1493
|
-
* @return {?}
|
|
1494
|
-
*/
|
|
1495
|
-
FsUtilGuidPipe.prototype.transform = /**
|
|
1496
|
-
* @return {?}
|
|
1497
|
-
*/
|
|
1498
|
-
function () {
|
|
612
|
+
FsUtilGuidPipe.prototype.transform = function () {
|
|
1499
613
|
return guid();
|
|
1500
614
|
};
|
|
1501
|
-
FsUtilGuidPipe.decorators = [
|
|
1502
|
-
{ type: core.Pipe, args: [{
|
|
1503
|
-
name: 'fsUtilGuid'
|
|
1504
|
-
},] }
|
|
1505
|
-
];
|
|
1506
|
-
/** @nocollapse */
|
|
1507
|
-
FsUtilGuidPipe.ctorParameters = function () { return []; };
|
|
1508
615
|
return FsUtilGuidPipe;
|
|
1509
616
|
}());
|
|
617
|
+
FsUtilGuidPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilGuidPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
618
|
+
FsUtilGuidPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilGuidPipe, name: "fsUtilGuid" });
|
|
619
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilGuidPipe, decorators: [{
|
|
620
|
+
type: i0.Pipe,
|
|
621
|
+
args: [{
|
|
622
|
+
name: 'fsUtilGuid'
|
|
623
|
+
}]
|
|
624
|
+
}], ctorParameters: function () { return []; } });
|
|
1510
625
|
var FsUtilIsEmptyPipe = /** @class */ (function () {
|
|
1511
626
|
function FsUtilIsEmptyPipe() {
|
|
1512
627
|
}
|
|
1513
|
-
|
|
1514
|
-
* @param {?} value
|
|
1515
|
-
* @return {?}
|
|
1516
|
-
*/
|
|
1517
|
-
FsUtilIsEmptyPipe.prototype.transform = /**
|
|
1518
|
-
* @param {?} value
|
|
1519
|
-
* @return {?}
|
|
1520
|
-
*/
|
|
1521
|
-
function (value) {
|
|
628
|
+
FsUtilIsEmptyPipe.prototype.transform = function (value) {
|
|
1522
629
|
return isEmpty(value);
|
|
1523
630
|
};
|
|
1524
|
-
FsUtilIsEmptyPipe.decorators = [
|
|
1525
|
-
{ type: core.Pipe, args: [{
|
|
1526
|
-
name: 'fsUtilIsEmpty'
|
|
1527
|
-
},] }
|
|
1528
|
-
];
|
|
1529
631
|
return FsUtilIsEmptyPipe;
|
|
1530
632
|
}());
|
|
633
|
+
FsUtilIsEmptyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsEmptyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
634
|
+
FsUtilIsEmptyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsEmptyPipe, name: "fsUtilIsEmpty" });
|
|
635
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsEmptyPipe, decorators: [{
|
|
636
|
+
type: i0.Pipe,
|
|
637
|
+
args: [{
|
|
638
|
+
name: 'fsUtilIsEmpty'
|
|
639
|
+
}]
|
|
640
|
+
}] });
|
|
1531
641
|
var FsUtilIsNotEmptyPipe = /** @class */ (function () {
|
|
1532
642
|
function FsUtilIsNotEmptyPipe() {
|
|
1533
643
|
}
|
|
1534
|
-
|
|
1535
|
-
* @param {?} value
|
|
1536
|
-
* @return {?}
|
|
1537
|
-
*/
|
|
1538
|
-
FsUtilIsNotEmptyPipe.prototype.transform = /**
|
|
1539
|
-
* @param {?} value
|
|
1540
|
-
* @return {?}
|
|
1541
|
-
*/
|
|
1542
|
-
function (value) {
|
|
644
|
+
FsUtilIsNotEmptyPipe.prototype.transform = function (value) {
|
|
1543
645
|
return !isEmpty(value);
|
|
1544
646
|
};
|
|
1545
|
-
FsUtilIsNotEmptyPipe.decorators = [
|
|
1546
|
-
{ type: core.Pipe, args: [{
|
|
1547
|
-
name: 'fsUtilIsNotEmpty'
|
|
1548
|
-
},] }
|
|
1549
|
-
];
|
|
1550
647
|
return FsUtilIsNotEmptyPipe;
|
|
1551
|
-
}());
|
|
648
|
+
}());
|
|
649
|
+
FsUtilIsNotEmptyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsNotEmptyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
650
|
+
FsUtilIsNotEmptyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsNotEmptyPipe, name: "fsUtilIsNotEmpty" });
|
|
651
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsNotEmptyPipe, decorators: [{
|
|
652
|
+
type: i0.Pipe,
|
|
653
|
+
args: [{
|
|
654
|
+
name: 'fsUtilIsNotEmpty'
|
|
655
|
+
}]
|
|
656
|
+
}] });
|
|
1552
657
|
|
|
1553
|
-
/**
|
|
1554
|
-
* @fileoverview added by tsickle
|
|
1555
|
-
* Generated from: libs/format/number/number.ts
|
|
1556
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1557
|
-
*/
|
|
1558
|
-
/**
|
|
1559
|
-
* @param {?} value
|
|
1560
|
-
* @param {?=} decimals
|
|
1561
|
-
* @return {?}
|
|
1562
|
-
*/
|
|
1563
658
|
function number(value, decimals) {
|
|
1564
659
|
return Number(value || 0).toLocaleString(undefined, { maximumFractionDigits: decimals });
|
|
1565
660
|
}
|
|
1566
661
|
|
|
1567
|
-
/**
|
|
1568
|
-
* @fileoverview added by tsickle
|
|
1569
|
-
* Generated from: app/pipes/number.pipe.ts
|
|
1570
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1571
|
-
*/
|
|
1572
662
|
var FsFormatNumberPipe = /** @class */ (function () {
|
|
1573
663
|
function FsFormatNumberPipe() {
|
|
1574
664
|
}
|
|
1575
|
-
|
|
1576
|
-
* @param {?} value
|
|
1577
|
-
* @param {?=} decimals
|
|
1578
|
-
* @return {?}
|
|
1579
|
-
*/
|
|
1580
|
-
FsFormatNumberPipe.prototype.transform = /**
|
|
1581
|
-
* @param {?} value
|
|
1582
|
-
* @param {?=} decimals
|
|
1583
|
-
* @return {?}
|
|
1584
|
-
*/
|
|
1585
|
-
function (value, decimals) {
|
|
665
|
+
FsFormatNumberPipe.prototype.transform = function (value, decimals) {
|
|
1586
666
|
return number(value, decimals);
|
|
1587
667
|
};
|
|
1588
|
-
FsFormatNumberPipe.decorators = [
|
|
1589
|
-
{ type: core.Pipe, args: [{
|
|
1590
|
-
name: 'fsFormatNumber'
|
|
1591
|
-
},] }
|
|
1592
|
-
];
|
|
1593
668
|
return FsFormatNumberPipe;
|
|
1594
|
-
}());
|
|
669
|
+
}());
|
|
670
|
+
FsFormatNumberPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatNumberPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
671
|
+
FsFormatNumberPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatNumberPipe, name: "fsFormatNumber" });
|
|
672
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatNumberPipe, decorators: [{
|
|
673
|
+
type: i0.Pipe,
|
|
674
|
+
args: [{
|
|
675
|
+
name: 'fsFormatNumber'
|
|
676
|
+
}]
|
|
677
|
+
}] });
|
|
1595
678
|
|
|
1596
|
-
/**
|
|
1597
|
-
* @fileoverview added by tsickle
|
|
1598
|
-
* Generated from: libs/format/currency/currency.ts
|
|
1599
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1600
|
-
*/
|
|
1601
|
-
/**
|
|
1602
|
-
* @param {?} amount
|
|
1603
|
-
* @param {?=} precision
|
|
1604
|
-
* @param {?=} currencyCode
|
|
1605
|
-
* @param {?=} locale
|
|
1606
|
-
* @return {?}
|
|
1607
|
-
*/
|
|
1608
679
|
function currency(amount, precision, currencyCode, locale) {
|
|
1609
680
|
if (precision === void 0) { precision = [2, 10]; }
|
|
1610
681
|
if (currencyCode === void 0) { currencyCode = 'USD'; }
|
|
1611
682
|
if (locale === void 0) { locale = 'en-US'; }
|
|
1612
|
-
|
|
1613
|
-
var digitsInfo = lodashEs.isArray(precision) ? precision : [precision, precision];
|
|
683
|
+
var digitsInfo = Array.isArray(precision) ? precision : [precision, precision];
|
|
1614
684
|
return new common.CurrencyPipe(locale).transform(amount, currencyCode, 'symbol', "1." + digitsInfo[0] + "-" + digitsInfo[1]);
|
|
1615
685
|
}
|
|
1616
686
|
|
|
1617
|
-
/**
|
|
1618
|
-
* @fileoverview added by tsickle
|
|
1619
|
-
* Generated from: app/pipes/currency.pipe.ts
|
|
1620
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1621
|
-
*/
|
|
1622
687
|
var FsFormatCurrencyPipe = /** @class */ (function () {
|
|
1623
688
|
function FsFormatCurrencyPipe(locale) {
|
|
1624
689
|
this.locale = locale;
|
|
1625
690
|
}
|
|
1626
|
-
|
|
1627
|
-
* @param {?} amount
|
|
1628
|
-
* @param {?=} precision
|
|
1629
|
-
* @param {?=} currencyCode
|
|
1630
|
-
* @return {?}
|
|
1631
|
-
*/
|
|
1632
|
-
FsFormatCurrencyPipe.prototype.transform = /**
|
|
1633
|
-
* @param {?} amount
|
|
1634
|
-
* @param {?=} precision
|
|
1635
|
-
* @param {?=} currencyCode
|
|
1636
|
-
* @return {?}
|
|
1637
|
-
*/
|
|
1638
|
-
function (amount, precision, currencyCode) {
|
|
691
|
+
FsFormatCurrencyPipe.prototype.transform = function (amount, precision, currencyCode) {
|
|
1639
692
|
return currency(amount, precision, currencyCode);
|
|
1640
693
|
};
|
|
1641
|
-
FsFormatCurrencyPipe.decorators = [
|
|
1642
|
-
{ type: core.Pipe, args: [{
|
|
1643
|
-
name: 'fsFormatCurrency'
|
|
1644
|
-
},] }
|
|
1645
|
-
];
|
|
1646
|
-
/** @nocollapse */
|
|
1647
|
-
FsFormatCurrencyPipe.ctorParameters = function () { return [
|
|
1648
|
-
{ type: String, decorators: [{ type: core.Inject, args: [core.LOCALE_ID,] }] }
|
|
1649
|
-
]; };
|
|
1650
694
|
return FsFormatCurrencyPipe;
|
|
1651
695
|
}());
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
696
|
+
FsFormatCurrencyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatCurrencyPipe, deps: [{ token: i0.LOCALE_ID }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
697
|
+
FsFormatCurrencyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatCurrencyPipe, name: "fsFormatCurrency" });
|
|
698
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatCurrencyPipe, decorators: [{
|
|
699
|
+
type: i0.Pipe,
|
|
700
|
+
args: [{
|
|
701
|
+
name: 'fsFormatCurrency'
|
|
702
|
+
}]
|
|
703
|
+
}], ctorParameters: function () {
|
|
704
|
+
return [{ type: undefined, decorators: [{
|
|
705
|
+
type: i0.Inject,
|
|
706
|
+
args: [i0.LOCALE_ID]
|
|
707
|
+
}] }];
|
|
708
|
+
} });
|
|
1656
709
|
|
|
1657
|
-
/**
|
|
1658
|
-
* @fileoverview added by tsickle
|
|
1659
|
-
* Generated from: libs/format/truncate/truncate.ts
|
|
1660
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1661
|
-
*/
|
|
1662
|
-
/**
|
|
1663
|
-
* @param {?} value
|
|
1664
|
-
* @param {?=} limit
|
|
1665
|
-
* @param {?=} completeWords
|
|
1666
|
-
* @param {?=} ellipsis
|
|
1667
|
-
* @return {?}
|
|
1668
|
-
*/
|
|
1669
710
|
function truncate(value, limit, completeWords, ellipsis) {
|
|
1670
711
|
if (limit === void 0) { limit = 100; }
|
|
1671
712
|
if (completeWords === void 0) { completeWords = false; }
|
|
@@ -1674,7 +715,6 @@
|
|
|
1674
715
|
if (completeWords) {
|
|
1675
716
|
limit = value.substr(0, limit).lastIndexOf(' ');
|
|
1676
717
|
}
|
|
1677
|
-
/** @type {?} */
|
|
1678
718
|
var result = "" + value.substr(0, limit);
|
|
1679
719
|
if (result !== value) {
|
|
1680
720
|
result += ellipsis;
|
|
@@ -1682,57 +722,28 @@
|
|
|
1682
722
|
return result;
|
|
1683
723
|
}
|
|
1684
724
|
|
|
1685
|
-
/**
|
|
1686
|
-
* @fileoverview added by tsickle
|
|
1687
|
-
* Generated from: app/pipes/truncate.pipe.ts
|
|
1688
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1689
|
-
*/
|
|
1690
725
|
var FsFormatTruncatePipe = /** @class */ (function () {
|
|
1691
726
|
function FsFormatTruncatePipe() {
|
|
1692
727
|
}
|
|
1693
|
-
|
|
1694
|
-
* @param {?} value
|
|
1695
|
-
* @param {?=} limit
|
|
1696
|
-
* @param {?=} completeWords
|
|
1697
|
-
* @param {?=} ellipsis
|
|
1698
|
-
* @return {?}
|
|
1699
|
-
*/
|
|
1700
|
-
FsFormatTruncatePipe.prototype.transform = /**
|
|
1701
|
-
* @param {?} value
|
|
1702
|
-
* @param {?=} limit
|
|
1703
|
-
* @param {?=} completeWords
|
|
1704
|
-
* @param {?=} ellipsis
|
|
1705
|
-
* @return {?}
|
|
1706
|
-
*/
|
|
1707
|
-
function (value, limit, completeWords, ellipsis) {
|
|
728
|
+
FsFormatTruncatePipe.prototype.transform = function (value, limit, completeWords, ellipsis) {
|
|
1708
729
|
return truncate(value, limit, completeWords, ellipsis);
|
|
1709
730
|
};
|
|
1710
|
-
FsFormatTruncatePipe.decorators = [
|
|
1711
|
-
{ type: core.Pipe, args: [{
|
|
1712
|
-
name: 'fsFormatTruncate'
|
|
1713
|
-
},] }
|
|
1714
|
-
];
|
|
1715
|
-
/** @nocollapse */
|
|
1716
|
-
FsFormatTruncatePipe.ctorParameters = function () { return []; };
|
|
1717
731
|
return FsFormatTruncatePipe;
|
|
1718
|
-
}());
|
|
732
|
+
}());
|
|
733
|
+
FsFormatTruncatePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatTruncatePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
734
|
+
FsFormatTruncatePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatTruncatePipe, name: "fsFormatTruncate" });
|
|
735
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatTruncatePipe, decorators: [{
|
|
736
|
+
type: i0.Pipe,
|
|
737
|
+
args: [{
|
|
738
|
+
name: 'fsFormatTruncate'
|
|
739
|
+
}]
|
|
740
|
+
}], ctorParameters: function () { return []; } });
|
|
1719
741
|
|
|
1720
|
-
/**
|
|
1721
|
-
* @fileoverview added by tsickle
|
|
1722
|
-
* Generated from: libs/format/bytes/bytes.ts
|
|
1723
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1724
|
-
*/
|
|
1725
|
-
/**
|
|
1726
|
-
* @param {?} bytes
|
|
1727
|
-
* @return {?}
|
|
1728
|
-
*/
|
|
1729
742
|
function bytes(bytes) {
|
|
1730
743
|
if (!bytes) {
|
|
1731
744
|
return '0.00 B';
|
|
1732
745
|
}
|
|
1733
|
-
/** @type {?} */
|
|
1734
746
|
var e = Math.floor(Math.log(bytes) / Math.log(1024));
|
|
1735
|
-
/** @type {?} */
|
|
1736
747
|
var decimals = (bytes / 1024) > 1000 ? 2 : 0;
|
|
1737
748
|
console.log(bytes, (bytes / 1024), decimals);
|
|
1738
749
|
return ("" + (bytes / Math.pow(1024, e)).toFixed(decimals)).replace(/\.00/, '')
|
|
@@ -1740,199 +751,432 @@
|
|
|
1740
751
|
+ (e ? ' KMGTP'.charAt(e) : '') + 'B';
|
|
1741
752
|
}
|
|
1742
753
|
|
|
1743
|
-
/**
|
|
1744
|
-
* @fileoverview added by tsickle
|
|
1745
|
-
* Generated from: app/pipes/bytes.pipe.ts
|
|
1746
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1747
|
-
*/
|
|
1748
754
|
var FsFormatBytesPipe = /** @class */ (function () {
|
|
1749
755
|
function FsFormatBytesPipe() {
|
|
1750
756
|
}
|
|
1751
|
-
|
|
1752
|
-
* @param {?} value
|
|
1753
|
-
* @return {?}
|
|
1754
|
-
*/
|
|
1755
|
-
FsFormatBytesPipe.prototype.transform = /**
|
|
1756
|
-
* @param {?} value
|
|
1757
|
-
* @return {?}
|
|
1758
|
-
*/
|
|
1759
|
-
function (value) {
|
|
757
|
+
FsFormatBytesPipe.prototype.transform = function (value) {
|
|
1760
758
|
return bytes(value);
|
|
1761
759
|
};
|
|
1762
|
-
FsFormatBytesPipe.decorators = [
|
|
1763
|
-
{ type: core.Pipe, args: [{
|
|
1764
|
-
name: 'fsFormatBytes',
|
|
1765
|
-
},] }
|
|
1766
|
-
];
|
|
1767
760
|
return FsFormatBytesPipe;
|
|
1768
|
-
}());
|
|
761
|
+
}());
|
|
762
|
+
FsFormatBytesPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatBytesPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
763
|
+
FsFormatBytesPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatBytesPipe, name: "fsFormatBytes" });
|
|
764
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatBytesPipe, decorators: [{
|
|
765
|
+
type: i0.Pipe,
|
|
766
|
+
args: [{
|
|
767
|
+
name: 'fsFormatBytes',
|
|
768
|
+
}]
|
|
769
|
+
}] });
|
|
1769
770
|
|
|
1770
|
-
/**
|
|
1771
|
-
* @fileoverview added by tsickle
|
|
1772
|
-
* Generated from: app/directives/stop-propagation.directive.ts
|
|
1773
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1774
|
-
*/
|
|
1775
771
|
var FsStopPropagationDirective = /** @class */ (function () {
|
|
1776
772
|
function FsStopPropagationDirective() {
|
|
1777
773
|
}
|
|
1778
|
-
|
|
1779
|
-
* @param {?} event
|
|
1780
|
-
* @return {?}
|
|
1781
|
-
*/
|
|
1782
|
-
FsStopPropagationDirective.prototype.preventClick = /**
|
|
1783
|
-
* @param {?} event
|
|
1784
|
-
* @return {?}
|
|
1785
|
-
*/
|
|
1786
|
-
function (event) {
|
|
774
|
+
FsStopPropagationDirective.prototype.preventClick = function (event) {
|
|
1787
775
|
event.stopPropagation();
|
|
1788
776
|
};
|
|
1789
|
-
FsStopPropagationDirective.decorators = [
|
|
1790
|
-
{ type: core.Directive, args: [{
|
|
1791
|
-
selector: '[fsStopPropagation]',
|
|
1792
|
-
},] }
|
|
1793
|
-
];
|
|
1794
|
-
FsStopPropagationDirective.propDecorators = {
|
|
1795
|
-
preventClick: [{ type: core.HostListener, args: ['click', ['$event'],] }]
|
|
1796
|
-
};
|
|
1797
777
|
return FsStopPropagationDirective;
|
|
1798
|
-
}());
|
|
778
|
+
}());
|
|
779
|
+
FsStopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStopPropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
780
|
+
FsStopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsStopPropagationDirective, selector: "[fsStopPropagation]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0__namespace });
|
|
781
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStopPropagationDirective, decorators: [{
|
|
782
|
+
type: i0.Directive,
|
|
783
|
+
args: [{
|
|
784
|
+
selector: '[fsStopPropagation]',
|
|
785
|
+
}]
|
|
786
|
+
}], propDecorators: { preventClick: [{
|
|
787
|
+
type: i0.HostListener,
|
|
788
|
+
args: ['click', ['$event']]
|
|
789
|
+
}] } });
|
|
1799
790
|
|
|
1800
|
-
/**
|
|
1801
|
-
* @fileoverview added by tsickle
|
|
1802
|
-
* Generated from: app/directives/prevent-default.directive.ts
|
|
1803
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1804
|
-
*/
|
|
1805
791
|
var FsPreventDefaultDirective = /** @class */ (function () {
|
|
1806
792
|
function FsPreventDefaultDirective() {
|
|
1807
793
|
}
|
|
1808
|
-
|
|
1809
|
-
* @param {?} event
|
|
1810
|
-
* @return {?}
|
|
1811
|
-
*/
|
|
1812
|
-
FsPreventDefaultDirective.prototype.preventClick = /**
|
|
1813
|
-
* @param {?} event
|
|
1814
|
-
* @return {?}
|
|
1815
|
-
*/
|
|
1816
|
-
function (event) {
|
|
794
|
+
FsPreventDefaultDirective.prototype.preventClick = function (event) {
|
|
1817
795
|
event.preventDefault();
|
|
1818
796
|
};
|
|
1819
|
-
FsPreventDefaultDirective.decorators = [
|
|
1820
|
-
{ type: core.Directive, args: [{
|
|
1821
|
-
selector: '[fsPreventDefault]',
|
|
1822
|
-
},] }
|
|
1823
|
-
];
|
|
1824
|
-
FsPreventDefaultDirective.propDecorators = {
|
|
1825
|
-
preventClick: [{ type: core.HostListener, args: ['click', ['$event'],] }]
|
|
1826
|
-
};
|
|
1827
797
|
return FsPreventDefaultDirective;
|
|
1828
|
-
}());
|
|
798
|
+
}());
|
|
799
|
+
FsPreventDefaultDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPreventDefaultDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
800
|
+
FsPreventDefaultDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsPreventDefaultDirective, selector: "[fsPreventDefault]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0__namespace });
|
|
801
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPreventDefaultDirective, decorators: [{
|
|
802
|
+
type: i0.Directive,
|
|
803
|
+
args: [{
|
|
804
|
+
selector: '[fsPreventDefault]',
|
|
805
|
+
}]
|
|
806
|
+
}], propDecorators: { preventClick: [{
|
|
807
|
+
type: i0.HostListener,
|
|
808
|
+
args: ['click', ['$event']]
|
|
809
|
+
}] } });
|
|
1829
810
|
|
|
1830
|
-
/**
|
|
1831
|
-
* @fileoverview added by tsickle
|
|
1832
|
-
* Generated from: app/directives/autofocus.directive.ts
|
|
1833
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1834
|
-
*/
|
|
1835
811
|
var FsAutofocusDirective = /** @class */ (function () {
|
|
1836
812
|
function FsAutofocusDirective(_el) {
|
|
1837
813
|
this._el = _el;
|
|
1838
814
|
}
|
|
1839
|
-
|
|
1840
|
-
* @return {?}
|
|
1841
|
-
*/
|
|
1842
|
-
FsAutofocusDirective.prototype.ngAfterViewInit = /**
|
|
1843
|
-
* @return {?}
|
|
1844
|
-
*/
|
|
1845
|
-
function () {
|
|
815
|
+
FsAutofocusDirective.prototype.ngAfterViewInit = function () {
|
|
1846
816
|
var _this = this;
|
|
1847
|
-
setTimeout((
|
|
1848
|
-
* @return {?}
|
|
1849
|
-
*/
|
|
1850
|
-
function () {
|
|
817
|
+
setTimeout(function () {
|
|
1851
818
|
_this._el.nativeElement.focus();
|
|
1852
|
-
})
|
|
819
|
+
});
|
|
1853
820
|
};
|
|
1854
|
-
FsAutofocusDirective.decorators = [
|
|
1855
|
-
{ type: core.Directive, args: [{
|
|
1856
|
-
selector: '[autofocus]',
|
|
1857
|
-
},] }
|
|
1858
|
-
];
|
|
1859
|
-
/** @nocollapse */
|
|
1860
|
-
FsAutofocusDirective.ctorParameters = function () { return [
|
|
1861
|
-
{ type: core.ElementRef }
|
|
1862
|
-
]; };
|
|
1863
821
|
return FsAutofocusDirective;
|
|
1864
822
|
}());
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
823
|
+
FsAutofocusDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAutofocusDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
824
|
+
FsAutofocusDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsAutofocusDirective, selector: "[autofocus]", ngImport: i0__namespace });
|
|
825
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAutofocusDirective, decorators: [{
|
|
826
|
+
type: i0.Directive,
|
|
827
|
+
args: [{
|
|
828
|
+
selector: '[autofocus]',
|
|
829
|
+
}]
|
|
830
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; } });
|
|
831
|
+
|
|
832
|
+
/*! *****************************************************************************
|
|
833
|
+
Copyright (c) Microsoft Corporation.
|
|
834
|
+
|
|
835
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
836
|
+
purpose with or without fee is hereby granted.
|
|
837
|
+
|
|
838
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
839
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
840
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
841
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
842
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
843
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
844
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
845
|
+
***************************************************************************** */
|
|
846
|
+
/* global Reflect, Promise */
|
|
847
|
+
var extendStatics = function (d, b) {
|
|
848
|
+
extendStatics = Object.setPrototypeOf ||
|
|
849
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
850
|
+
function (d, b) { for (var p in b)
|
|
851
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
852
|
+
d[p] = b[p]; };
|
|
853
|
+
return extendStatics(d, b);
|
|
854
|
+
};
|
|
855
|
+
function __extends(d, b) {
|
|
856
|
+
if (typeof b !== "function" && b !== null)
|
|
857
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
858
|
+
extendStatics(d, b);
|
|
859
|
+
function __() { this.constructor = d; }
|
|
860
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
861
|
+
}
|
|
862
|
+
var __assign = function () {
|
|
863
|
+
__assign = Object.assign || function __assign(t) {
|
|
864
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
865
|
+
s = arguments[i];
|
|
866
|
+
for (var p in s)
|
|
867
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
868
|
+
t[p] = s[p];
|
|
869
|
+
}
|
|
870
|
+
return t;
|
|
871
|
+
};
|
|
872
|
+
return __assign.apply(this, arguments);
|
|
873
|
+
};
|
|
874
|
+
function __rest(s, e) {
|
|
875
|
+
var t = {};
|
|
876
|
+
for (var p in s)
|
|
877
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
878
|
+
t[p] = s[p];
|
|
879
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
880
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
881
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
882
|
+
t[p[i]] = s[p[i]];
|
|
883
|
+
}
|
|
884
|
+
return t;
|
|
885
|
+
}
|
|
886
|
+
function __decorate(decorators, target, key, desc) {
|
|
887
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
888
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
889
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
890
|
+
else
|
|
891
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
892
|
+
if (d = decorators[i])
|
|
893
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
894
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
895
|
+
}
|
|
896
|
+
function __param(paramIndex, decorator) {
|
|
897
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
898
|
+
}
|
|
899
|
+
function __metadata(metadataKey, metadataValue) {
|
|
900
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
901
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
902
|
+
}
|
|
903
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
904
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
905
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
906
|
+
function fulfilled(value) { try {
|
|
907
|
+
step(generator.next(value));
|
|
908
|
+
}
|
|
909
|
+
catch (e) {
|
|
910
|
+
reject(e);
|
|
911
|
+
} }
|
|
912
|
+
function rejected(value) { try {
|
|
913
|
+
step(generator["throw"](value));
|
|
914
|
+
}
|
|
915
|
+
catch (e) {
|
|
916
|
+
reject(e);
|
|
917
|
+
} }
|
|
918
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
919
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
function __generator(thisArg, body) {
|
|
923
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
924
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
925
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
926
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
927
|
+
function step(op) {
|
|
928
|
+
if (f)
|
|
929
|
+
throw new TypeError("Generator is already executing.");
|
|
930
|
+
while (_)
|
|
931
|
+
try {
|
|
932
|
+
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)
|
|
933
|
+
return t;
|
|
934
|
+
if (y = 0, t)
|
|
935
|
+
op = [op[0] & 2, t.value];
|
|
936
|
+
switch (op[0]) {
|
|
937
|
+
case 0:
|
|
938
|
+
case 1:
|
|
939
|
+
t = op;
|
|
940
|
+
break;
|
|
941
|
+
case 4:
|
|
942
|
+
_.label++;
|
|
943
|
+
return { value: op[1], done: false };
|
|
944
|
+
case 5:
|
|
945
|
+
_.label++;
|
|
946
|
+
y = op[1];
|
|
947
|
+
op = [0];
|
|
948
|
+
continue;
|
|
949
|
+
case 7:
|
|
950
|
+
op = _.ops.pop();
|
|
951
|
+
_.trys.pop();
|
|
952
|
+
continue;
|
|
953
|
+
default:
|
|
954
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
955
|
+
_ = 0;
|
|
956
|
+
continue;
|
|
957
|
+
}
|
|
958
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
959
|
+
_.label = op[1];
|
|
960
|
+
break;
|
|
961
|
+
}
|
|
962
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
963
|
+
_.label = t[1];
|
|
964
|
+
t = op;
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
if (t && _.label < t[2]) {
|
|
968
|
+
_.label = t[2];
|
|
969
|
+
_.ops.push(op);
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
if (t[2])
|
|
973
|
+
_.ops.pop();
|
|
974
|
+
_.trys.pop();
|
|
975
|
+
continue;
|
|
976
|
+
}
|
|
977
|
+
op = body.call(thisArg, _);
|
|
978
|
+
}
|
|
979
|
+
catch (e) {
|
|
980
|
+
op = [6, e];
|
|
981
|
+
y = 0;
|
|
982
|
+
}
|
|
983
|
+
finally {
|
|
984
|
+
f = t = 0;
|
|
985
|
+
}
|
|
986
|
+
if (op[0] & 5)
|
|
987
|
+
throw op[1];
|
|
988
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
992
|
+
if (k2 === undefined)
|
|
993
|
+
k2 = k;
|
|
994
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
995
|
+
}) : (function (o, m, k, k2) {
|
|
996
|
+
if (k2 === undefined)
|
|
997
|
+
k2 = k;
|
|
998
|
+
o[k2] = m[k];
|
|
999
|
+
});
|
|
1000
|
+
function __exportStar(m, o) {
|
|
1001
|
+
for (var p in m)
|
|
1002
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
1003
|
+
__createBinding(o, m, p);
|
|
1004
|
+
}
|
|
1005
|
+
function __values(o) {
|
|
1006
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1007
|
+
if (m)
|
|
1008
|
+
return m.call(o);
|
|
1009
|
+
if (o && typeof o.length === "number")
|
|
1010
|
+
return {
|
|
1011
|
+
next: function () {
|
|
1012
|
+
if (o && i >= o.length)
|
|
1013
|
+
o = void 0;
|
|
1014
|
+
return { value: o && o[i++], done: !o };
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1018
|
+
}
|
|
1019
|
+
function __read(o, n) {
|
|
1020
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1021
|
+
if (!m)
|
|
1022
|
+
return o;
|
|
1023
|
+
var i = m.call(o), r, ar = [], e;
|
|
1024
|
+
try {
|
|
1025
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
1026
|
+
ar.push(r.value);
|
|
1027
|
+
}
|
|
1028
|
+
catch (error) {
|
|
1029
|
+
e = { error: error };
|
|
1030
|
+
}
|
|
1031
|
+
finally {
|
|
1032
|
+
try {
|
|
1033
|
+
if (r && !r.done && (m = i["return"]))
|
|
1034
|
+
m.call(i);
|
|
1035
|
+
}
|
|
1036
|
+
finally {
|
|
1037
|
+
if (e)
|
|
1038
|
+
throw e.error;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
return ar;
|
|
1042
|
+
}
|
|
1043
|
+
/** @deprecated */
|
|
1044
|
+
function __spread() {
|
|
1045
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1046
|
+
ar = ar.concat(__read(arguments[i]));
|
|
1047
|
+
return ar;
|
|
1048
|
+
}
|
|
1049
|
+
/** @deprecated */
|
|
1050
|
+
function __spreadArrays() {
|
|
1051
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1052
|
+
s += arguments[i].length;
|
|
1053
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1054
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1055
|
+
r[k] = a[j];
|
|
1056
|
+
return r;
|
|
1057
|
+
}
|
|
1058
|
+
function __spreadArray(to, from, pack) {
|
|
1059
|
+
if (pack || arguments.length === 2)
|
|
1060
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1061
|
+
if (ar || !(i in from)) {
|
|
1062
|
+
if (!ar)
|
|
1063
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
1064
|
+
ar[i] = from[i];
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1068
|
+
}
|
|
1069
|
+
function __await(v) {
|
|
1070
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
1071
|
+
}
|
|
1072
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1073
|
+
if (!Symbol.asyncIterator)
|
|
1074
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1075
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
1076
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
1077
|
+
function verb(n) { if (g[n])
|
|
1078
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
1079
|
+
function resume(n, v) { try {
|
|
1080
|
+
step(g[n](v));
|
|
1081
|
+
}
|
|
1082
|
+
catch (e) {
|
|
1083
|
+
settle(q[0][3], e);
|
|
1084
|
+
} }
|
|
1085
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
1086
|
+
function fulfill(value) { resume("next", value); }
|
|
1087
|
+
function reject(value) { resume("throw", value); }
|
|
1088
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
1089
|
+
resume(q[0][0], q[0][1]); }
|
|
1090
|
+
}
|
|
1091
|
+
function __asyncDelegator(o) {
|
|
1092
|
+
var i, p;
|
|
1093
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
1094
|
+
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; }
|
|
1095
|
+
}
|
|
1096
|
+
function __asyncValues(o) {
|
|
1097
|
+
if (!Symbol.asyncIterator)
|
|
1098
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1099
|
+
var m = o[Symbol.asyncIterator], i;
|
|
1100
|
+
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);
|
|
1101
|
+
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); }); }; }
|
|
1102
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
1103
|
+
}
|
|
1104
|
+
function __makeTemplateObject(cooked, raw) {
|
|
1105
|
+
if (Object.defineProperty) {
|
|
1106
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1107
|
+
}
|
|
1108
|
+
else {
|
|
1109
|
+
cooked.raw = raw;
|
|
1110
|
+
}
|
|
1111
|
+
return cooked;
|
|
1112
|
+
}
|
|
1113
|
+
;
|
|
1114
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
1115
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1116
|
+
}) : function (o, v) {
|
|
1117
|
+
o["default"] = v;
|
|
1118
|
+
};
|
|
1119
|
+
function __importStar(mod) {
|
|
1120
|
+
if (mod && mod.__esModule)
|
|
1121
|
+
return mod;
|
|
1122
|
+
var result = {};
|
|
1123
|
+
if (mod != null)
|
|
1124
|
+
for (var k in mod)
|
|
1125
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
1126
|
+
__createBinding(result, mod, k);
|
|
1127
|
+
__setModuleDefault(result, mod);
|
|
1128
|
+
return result;
|
|
1129
|
+
}
|
|
1130
|
+
function __importDefault(mod) {
|
|
1131
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
1132
|
+
}
|
|
1133
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
1134
|
+
if (kind === "a" && !f)
|
|
1135
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
1136
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1137
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1138
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1139
|
+
}
|
|
1140
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1141
|
+
if (kind === "m")
|
|
1142
|
+
throw new TypeError("Private method is not writable");
|
|
1143
|
+
if (kind === "a" && !f)
|
|
1144
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
1145
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1146
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1147
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
1871
1148
|
}
|
|
1872
1149
|
|
|
1873
|
-
/**
|
|
1874
|
-
* @fileoverview added by tsickle
|
|
1875
|
-
* Generated from: libs/util/ordinal-number/ordinal-number.ts
|
|
1876
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1877
|
-
*/
|
|
1878
|
-
/**
|
|
1879
|
-
* @param {?} value
|
|
1880
|
-
* @return {?}
|
|
1881
|
-
*/
|
|
1882
1150
|
function ordinalNumber(value) {
|
|
1883
1151
|
value = String(value);
|
|
1884
|
-
/** @type {?} */
|
|
1885
1152
|
var index = value.match(templateObject_1 || (templateObject_1 = __makeTemplateObject(["1?.$"], ["1?.$"])));
|
|
1886
|
-
/** @type {?} */
|
|
1887
1153
|
var endings = [, 'st', 'nd', 'rd'];
|
|
1888
|
-
/** @type {?} */
|
|
1889
1154
|
var ending = endings[index] || 'th';
|
|
1890
1155
|
return value + ending;
|
|
1891
1156
|
}
|
|
1892
1157
|
var templateObject_1;
|
|
1893
1158
|
|
|
1894
|
-
/**
|
|
1895
|
-
* @fileoverview added by tsickle
|
|
1896
|
-
* Generated from: app/pipes/ordinal-number.pipe.ts
|
|
1897
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1898
|
-
*/
|
|
1899
1159
|
var FsFormatOrdinalNumberPipe = /** @class */ (function () {
|
|
1900
1160
|
function FsFormatOrdinalNumberPipe() {
|
|
1901
1161
|
}
|
|
1902
|
-
|
|
1903
|
-
* @param {?} value
|
|
1904
|
-
* @return {?}
|
|
1905
|
-
*/
|
|
1906
|
-
FsFormatOrdinalNumberPipe.prototype.transform = /**
|
|
1907
|
-
* @param {?} value
|
|
1908
|
-
* @return {?}
|
|
1909
|
-
*/
|
|
1910
|
-
function (value) {
|
|
1162
|
+
FsFormatOrdinalNumberPipe.prototype.transform = function (value) {
|
|
1911
1163
|
return ordinalNumber(value);
|
|
1912
1164
|
};
|
|
1913
|
-
FsFormatOrdinalNumberPipe.decorators = [
|
|
1914
|
-
{ type: core.Pipe, args: [{
|
|
1915
|
-
name: 'fsFormatOrdinalNumber',
|
|
1916
|
-
},] }
|
|
1917
|
-
];
|
|
1918
1165
|
return FsFormatOrdinalNumberPipe;
|
|
1919
|
-
}());
|
|
1166
|
+
}());
|
|
1167
|
+
FsFormatOrdinalNumberPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatOrdinalNumberPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1168
|
+
FsFormatOrdinalNumberPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatOrdinalNumberPipe, name: "fsFormatOrdinalNumber" });
|
|
1169
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatOrdinalNumberPipe, decorators: [{
|
|
1170
|
+
type: i0.Pipe,
|
|
1171
|
+
args: [{
|
|
1172
|
+
name: 'fsFormatOrdinalNumber',
|
|
1173
|
+
}]
|
|
1174
|
+
}] });
|
|
1920
1175
|
|
|
1921
|
-
/**
|
|
1922
|
-
* @fileoverview added by tsickle
|
|
1923
|
-
* Generated from: app/fs-common.module.ts
|
|
1924
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1925
|
-
*/
|
|
1926
1176
|
var FsCommonModule = /** @class */ (function () {
|
|
1927
1177
|
function FsCommonModule() {
|
|
1928
1178
|
}
|
|
1929
|
-
|
|
1930
|
-
* @return {?}
|
|
1931
|
-
*/
|
|
1932
|
-
FsCommonModule.forRoot = /**
|
|
1933
|
-
* @return {?}
|
|
1934
|
-
*/
|
|
1935
|
-
function () {
|
|
1179
|
+
FsCommonModule.forRoot = function () {
|
|
1936
1180
|
return {
|
|
1937
1181
|
ngModule: FsCommonModule,
|
|
1938
1182
|
providers: [
|
|
@@ -1943,8 +1187,38 @@
|
|
|
1943
1187
|
]
|
|
1944
1188
|
};
|
|
1945
1189
|
};
|
|
1946
|
-
FsCommonModule
|
|
1947
|
-
|
|
1190
|
+
return FsCommonModule;
|
|
1191
|
+
}());
|
|
1192
|
+
FsCommonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1193
|
+
FsCommonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, declarations: [FsStopPropagationDirective,
|
|
1194
|
+
FsPreventDefaultDirective,
|
|
1195
|
+
FsAutofocusDirective,
|
|
1196
|
+
FsUtilGuidPipe,
|
|
1197
|
+
FsUtilIsEmptyPipe,
|
|
1198
|
+
FsUtilIsNotEmptyPipe,
|
|
1199
|
+
FsUtilStringifyPipe,
|
|
1200
|
+
FsFormatNumberPipe,
|
|
1201
|
+
FsFormatCurrencyPipe,
|
|
1202
|
+
FsFormatTruncatePipe,
|
|
1203
|
+
FsFormatBytesPipe,
|
|
1204
|
+
FsFormatOrdinalNumberPipe], imports: [common.CommonModule], exports: [FsStopPropagationDirective,
|
|
1205
|
+
FsPreventDefaultDirective,
|
|
1206
|
+
FsAutofocusDirective,
|
|
1207
|
+
FsUtilGuidPipe,
|
|
1208
|
+
FsUtilStringifyPipe,
|
|
1209
|
+
FsFormatNumberPipe,
|
|
1210
|
+
FsFormatCurrencyPipe,
|
|
1211
|
+
FsFormatTruncatePipe,
|
|
1212
|
+
FsUtilIsEmptyPipe,
|
|
1213
|
+
FsUtilIsNotEmptyPipe,
|
|
1214
|
+
FsFormatBytesPipe,
|
|
1215
|
+
FsFormatOrdinalNumberPipe] });
|
|
1216
|
+
FsCommonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, imports: [[
|
|
1217
|
+
common.CommonModule,
|
|
1218
|
+
]] });
|
|
1219
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, decorators: [{
|
|
1220
|
+
type: i0.NgModule,
|
|
1221
|
+
args: [{
|
|
1948
1222
|
imports: [
|
|
1949
1223
|
common.CommonModule,
|
|
1950
1224
|
],
|
|
@@ -1976,98 +1250,31 @@
|
|
|
1976
1250
|
FsFormatBytesPipe,
|
|
1977
1251
|
FsFormatOrdinalNumberPipe,
|
|
1978
1252
|
],
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
return FsCommonModule;
|
|
1982
|
-
}());
|
|
1253
|
+
}]
|
|
1254
|
+
}] });
|
|
1983
1255
|
|
|
1984
|
-
/**
|
|
1985
|
-
* @fileoverview added by tsickle
|
|
1986
|
-
* Generated from: libs/validate/email/email.ts
|
|
1987
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1988
|
-
*/
|
|
1989
|
-
/**
|
|
1990
|
-
* @param {?} value
|
|
1991
|
-
* @return {?}
|
|
1992
|
-
*/
|
|
1993
1256
|
function email(value) {
|
|
1994
1257
|
return !!String(value).match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
1995
1258
|
}
|
|
1996
1259
|
|
|
1997
|
-
/**
|
|
1998
|
-
* @fileoverview added by tsickle
|
|
1999
|
-
* Generated from: libs/validate/email/index.ts
|
|
2000
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2001
|
-
*/
|
|
2002
|
-
|
|
2003
|
-
/**
|
|
2004
|
-
* @fileoverview added by tsickle
|
|
2005
|
-
* Generated from: libs/validate/phone/phone.ts
|
|
2006
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2007
|
-
*/
|
|
2008
|
-
/**
|
|
2009
|
-
* @param {?} value
|
|
2010
|
-
* @return {?}
|
|
2011
|
-
*/
|
|
2012
1260
|
function phone(value) {
|
|
2013
|
-
/** @type {?} */
|
|
2014
1261
|
var valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}/.test(value);
|
|
2015
1262
|
return valid || !String(value).length;
|
|
2016
1263
|
}
|
|
2017
1264
|
|
|
2018
|
-
/**
|
|
2019
|
-
* @fileoverview added by tsickle
|
|
2020
|
-
* Generated from: libs/validate/phone/index.ts
|
|
2021
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2022
|
-
*/
|
|
2023
|
-
|
|
2024
|
-
/**
|
|
2025
|
-
* @fileoverview added by tsickle
|
|
2026
|
-
* Generated from: libs/validate/url/url.ts
|
|
2027
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2028
|
-
*/
|
|
2029
1265
|
/**
|
|
2030
1266
|
* Check validity of the url.
|
|
2031
1267
|
* Protocol (http/https) isn't required.
|
|
2032
1268
|
* @param value
|
|
2033
1269
|
* @returns {boolean}
|
|
2034
1270
|
*/
|
|
2035
|
-
/**
|
|
2036
|
-
* @param {?} value
|
|
2037
|
-
* @return {?}
|
|
2038
|
-
*/
|
|
2039
1271
|
function url(value) {
|
|
2040
|
-
/** @type {?} */
|
|
2041
1272
|
var expression = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+,;=.]+$/gm;
|
|
2042
|
-
/** @type {?} */
|
|
2043
1273
|
var regexp = new RegExp(expression);
|
|
2044
1274
|
return !!String(value).match(regexp);
|
|
2045
1275
|
}
|
|
2046
1276
|
|
|
2047
|
-
/**
|
|
2048
|
-
* @fileoverview added by tsickle
|
|
2049
|
-
* Generated from: libs/validate/url/index.ts
|
|
2050
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2051
|
-
*/
|
|
2052
|
-
|
|
2053
|
-
/**
|
|
2054
|
-
* @fileoverview added by tsickle
|
|
2055
|
-
* Generated from: libs/validate/index.ts
|
|
2056
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2057
|
-
*/
|
|
2058
|
-
|
|
2059
|
-
/**
|
|
2060
|
-
* @fileoverview added by tsickle
|
|
2061
|
-
* Generated from: libs/array/compare/compare.ts
|
|
2062
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2063
|
-
*/
|
|
2064
|
-
/**
|
|
2065
|
-
* @param {?} query
|
|
2066
|
-
* @param {?} item
|
|
2067
|
-
* @return {?}
|
|
2068
|
-
*/
|
|
2069
1277
|
function compare(query, item) {
|
|
2070
|
-
/** @type {?} */
|
|
2071
1278
|
var value = true;
|
|
2072
1279
|
for (var key in query) {
|
|
2073
1280
|
value = value && item[key] == query[key];
|
|
@@ -2075,80 +1282,32 @@
|
|
|
2075
1282
|
return value;
|
|
2076
1283
|
}
|
|
2077
1284
|
|
|
2078
|
-
/**
|
|
2079
|
-
* @fileoverview added by tsickle
|
|
2080
|
-
* Generated from: libs/array/compare/index.ts
|
|
2081
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2082
|
-
*/
|
|
2083
|
-
|
|
2084
|
-
/**
|
|
2085
|
-
* @fileoverview added by tsickle
|
|
2086
|
-
* Generated from: libs/array/filter/filter.ts
|
|
2087
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2088
|
-
*/
|
|
2089
|
-
/**
|
|
2090
|
-
* @param {?} array
|
|
2091
|
-
* @param {?} query
|
|
2092
|
-
* @return {?}
|
|
2093
|
-
*/
|
|
2094
1285
|
function filter(array, query) {
|
|
2095
1286
|
if (typeof query !== 'function') {
|
|
2096
|
-
/** @type {?} */
|
|
2097
1287
|
var queryObj_1 = query;
|
|
2098
|
-
query = (
|
|
2099
|
-
* @param {?} item
|
|
2100
|
-
* @return {?}
|
|
2101
|
-
*/
|
|
2102
|
-
function (item) {
|
|
1288
|
+
query = function (item) {
|
|
2103
1289
|
return compare(queryObj_1, item);
|
|
2104
|
-
}
|
|
1290
|
+
};
|
|
2105
1291
|
}
|
|
2106
|
-
/** @type {?} */
|
|
2107
1292
|
var isarray = Array.isArray(array);
|
|
2108
|
-
/** @type {?} */
|
|
2109
1293
|
var list = isarray ? [] : {};
|
|
2110
1294
|
if (isarray) {
|
|
2111
|
-
array.forEach((
|
|
2112
|
-
* @param {?} item
|
|
2113
|
-
* @param {?} idx
|
|
2114
|
-
* @return {?}
|
|
2115
|
-
*/
|
|
2116
|
-
function (item, idx) {
|
|
1295
|
+
array.forEach(function (item, idx) {
|
|
2117
1296
|
if (query(item)) {
|
|
2118
1297
|
list.push(item);
|
|
2119
1298
|
}
|
|
2120
|
-
})
|
|
1299
|
+
});
|
|
2121
1300
|
}
|
|
2122
1301
|
else {
|
|
2123
|
-
Object.keys(array).forEach((
|
|
2124
|
-
* @param {?} key
|
|
2125
|
-
* @return {?}
|
|
2126
|
-
*/
|
|
2127
|
-
function (key) {
|
|
1302
|
+
Object.keys(array).forEach(function (key) {
|
|
2128
1303
|
if (query(array[key])) {
|
|
2129
1304
|
list[key] = array[key];
|
|
2130
1305
|
}
|
|
2131
|
-
})
|
|
1306
|
+
});
|
|
2132
1307
|
}
|
|
2133
1308
|
return list;
|
|
2134
1309
|
}
|
|
2135
1310
|
|
|
2136
|
-
/**
|
|
2137
|
-
* @fileoverview added by tsickle
|
|
2138
|
-
* Generated from: libs/array/filter/index.ts
|
|
2139
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2140
|
-
*/
|
|
2141
|
-
|
|
2142
|
-
/**
|
|
2143
|
-
* @fileoverview added by tsickle
|
|
2144
|
-
* Generated from: libs/array/inArray/inArray.ts
|
|
2145
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2146
|
-
*/
|
|
2147
|
-
/**
|
|
2148
|
-
* @param {?} values
|
|
2149
|
-
* @param {?} array
|
|
2150
|
-
* @return {?}
|
|
2151
|
-
*/
|
|
2152
1311
|
function inArray(values, array) {
|
|
2153
1312
|
if (!Array.isArray(values)) {
|
|
2154
1313
|
values = [values];
|
|
@@ -2161,58 +1320,21 @@
|
|
|
2161
1320
|
return false;
|
|
2162
1321
|
}
|
|
2163
1322
|
|
|
2164
|
-
/**
|
|
2165
|
-
* @fileoverview added by tsickle
|
|
2166
|
-
* Generated from: libs/array/inArray/index.ts
|
|
2167
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2168
|
-
*/
|
|
2169
|
-
|
|
2170
|
-
/**
|
|
2171
|
-
* @fileoverview added by tsickle
|
|
2172
|
-
* Generated from: libs/array/index/index.ts
|
|
2173
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2174
|
-
*/
|
|
2175
|
-
/**
|
|
2176
|
-
* @param {?} array
|
|
2177
|
-
* @param {?} name
|
|
2178
|
-
* @param {?=} value
|
|
2179
|
-
* @return {?}
|
|
2180
|
-
*/
|
|
2181
1323
|
function index(array, name, value) {
|
|
2182
1324
|
if (value === void 0) { value = null; }
|
|
2183
|
-
/** @type {?} */
|
|
2184
1325
|
var list = {};
|
|
2185
|
-
array.forEach((
|
|
2186
|
-
* @param {?} item
|
|
2187
|
-
* @return {?}
|
|
2188
|
-
*/
|
|
2189
|
-
function (item) {
|
|
1326
|
+
array.forEach(function (item) {
|
|
2190
1327
|
list[item[name]] = value ? item[value] : item;
|
|
2191
|
-
})
|
|
1328
|
+
});
|
|
2192
1329
|
return list;
|
|
2193
1330
|
}
|
|
2194
1331
|
|
|
2195
|
-
/**
|
|
2196
|
-
* @fileoverview added by tsickle
|
|
2197
|
-
* Generated from: libs/array/indexOf/indexOf.ts
|
|
2198
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2199
|
-
*/
|
|
2200
|
-
/**
|
|
2201
|
-
* @param {?} array
|
|
2202
|
-
* @param {?} query
|
|
2203
|
-
* @return {?}
|
|
2204
|
-
*/
|
|
2205
1332
|
function indexOf(array, query) {
|
|
2206
1333
|
if (typeof query !== 'function') {
|
|
2207
|
-
/** @type {?} */
|
|
2208
1334
|
var queryObj_1 = query;
|
|
2209
|
-
query = (
|
|
2210
|
-
* @param {?} item
|
|
2211
|
-
* @return {?}
|
|
2212
|
-
*/
|
|
2213
|
-
function (item) {
|
|
1335
|
+
query = function (item) {
|
|
2214
1336
|
return compare(queryObj_1, item);
|
|
2215
|
-
}
|
|
1337
|
+
};
|
|
2216
1338
|
}
|
|
2217
1339
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
2218
1340
|
if (query(array[i])) {
|
|
@@ -2222,167 +1344,54 @@
|
|
|
2222
1344
|
return -1;
|
|
2223
1345
|
}
|
|
2224
1346
|
|
|
2225
|
-
/**
|
|
2226
|
-
* @fileoverview added by tsickle
|
|
2227
|
-
* Generated from: libs/array/indexOf/index.ts
|
|
2228
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2229
|
-
*/
|
|
2230
|
-
|
|
2231
|
-
/**
|
|
2232
|
-
* @fileoverview added by tsickle
|
|
2233
|
-
* Generated from: libs/array/keyExists/keyExists.ts
|
|
2234
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2235
|
-
*/
|
|
2236
|
-
/**
|
|
2237
|
-
* @param {?} array
|
|
2238
|
-
* @param {?} key
|
|
2239
|
-
* @return {?}
|
|
2240
|
-
*/
|
|
2241
1347
|
function keyExists(array, key) {
|
|
2242
1348
|
return array.hasOwnProperty(key);
|
|
2243
1349
|
}
|
|
2244
1350
|
|
|
2245
|
-
/**
|
|
2246
|
-
* @fileoverview added by tsickle
|
|
2247
|
-
* Generated from: libs/array/keyExists/index.ts
|
|
2248
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2249
|
-
*/
|
|
2250
|
-
|
|
2251
|
-
/**
|
|
2252
|
-
* @fileoverview added by tsickle
|
|
2253
|
-
* Generated from: libs/array/ksort/ksort.ts
|
|
2254
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2255
|
-
*/
|
|
2256
|
-
/**
|
|
2257
|
-
* @param {?} unordered
|
|
2258
|
-
* @return {?}
|
|
2259
|
-
*/
|
|
2260
1351
|
function ksort(unordered) {
|
|
2261
|
-
Object.keys(unordered).sort().forEach((
|
|
2262
|
-
* @param {?} key
|
|
2263
|
-
* @return {?}
|
|
2264
|
-
*/
|
|
2265
|
-
function (key) {
|
|
2266
|
-
/** @type {?} */
|
|
1352
|
+
Object.keys(unordered).sort().forEach(function (key) {
|
|
2267
1353
|
var value = unordered[key];
|
|
2268
1354
|
delete unordered[key];
|
|
2269
1355
|
unordered[key] = value;
|
|
2270
|
-
})
|
|
1356
|
+
});
|
|
2271
1357
|
}
|
|
2272
1358
|
|
|
2273
|
-
/**
|
|
2274
|
-
* @fileoverview added by tsickle
|
|
2275
|
-
* Generated from: libs/array/ksort/index.ts
|
|
2276
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2277
|
-
*/
|
|
2278
|
-
|
|
2279
|
-
/**
|
|
2280
|
-
* @fileoverview added by tsickle
|
|
2281
|
-
* Generated from: libs/array/list/list.ts
|
|
2282
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2283
|
-
*/
|
|
2284
|
-
/**
|
|
2285
|
-
* @param {?} array
|
|
2286
|
-
* @param {?} property
|
|
2287
|
-
* @param {?=} index
|
|
2288
|
-
* @return {?}
|
|
2289
|
-
*/
|
|
2290
1359
|
function list(array, property, index) {
|
|
2291
1360
|
if (index === void 0) { index = null; }
|
|
2292
|
-
/** @type {?} */
|
|
2293
1361
|
var resultList = index ? {} : [];
|
|
2294
|
-
array.forEach((
|
|
2295
|
-
* @param {?} item
|
|
2296
|
-
* @param {?} idx
|
|
2297
|
-
* @return {?}
|
|
2298
|
-
*/
|
|
2299
|
-
function (item, idx) {
|
|
1362
|
+
array.forEach(function (item, idx) {
|
|
2300
1363
|
if (index) {
|
|
2301
1364
|
resultList[item[index]] = item[property];
|
|
2302
1365
|
}
|
|
2303
1366
|
else {
|
|
2304
1367
|
resultList.push(item[property]);
|
|
2305
1368
|
}
|
|
2306
|
-
})
|
|
1369
|
+
});
|
|
2307
1370
|
return resultList;
|
|
2308
1371
|
}
|
|
2309
1372
|
|
|
2310
|
-
/**
|
|
2311
|
-
* @fileoverview added by tsickle
|
|
2312
|
-
* Generated from: libs/array/list/index.ts
|
|
2313
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2314
|
-
*/
|
|
2315
|
-
|
|
2316
|
-
/**
|
|
2317
|
-
* @fileoverview added by tsickle
|
|
2318
|
-
* Generated from: libs/array/nameValue/nameValue.ts
|
|
2319
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2320
|
-
*/
|
|
2321
|
-
/**
|
|
2322
|
-
* @param {?} array
|
|
2323
|
-
* @param {?} name
|
|
2324
|
-
* @param {?} value
|
|
2325
|
-
* @return {?}
|
|
2326
|
-
*/
|
|
2327
1373
|
function nameValue(array, name, value) {
|
|
2328
|
-
/** @type {?} */
|
|
2329
1374
|
var list = [];
|
|
2330
1375
|
if (name || value) {
|
|
2331
|
-
|
|
2332
|
-
var nameFn_1 = typeof name === 'function' ? name : (/**
|
|
2333
|
-
* @param {?} item
|
|
2334
|
-
* @return {?}
|
|
2335
|
-
*/
|
|
2336
|
-
function (item) {
|
|
1376
|
+
var nameFn_1 = typeof name === 'function' ? name : function (item) {
|
|
2337
1377
|
return item[name];
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
var valueFn_1 = typeof value === 'function' ? value : (/**
|
|
2341
|
-
* @param {?} item
|
|
2342
|
-
* @return {?}
|
|
2343
|
-
*/
|
|
2344
|
-
function (item) {
|
|
1378
|
+
};
|
|
1379
|
+
var valueFn_1 = typeof value === 'function' ? value : function (item) {
|
|
2345
1380
|
return item[value];
|
|
2346
|
-
}
|
|
2347
|
-
array.forEach((
|
|
2348
|
-
* @param {?} item
|
|
2349
|
-
* @return {?}
|
|
2350
|
-
*/
|
|
2351
|
-
function (item) {
|
|
1381
|
+
};
|
|
1382
|
+
array.forEach(function (item) {
|
|
2352
1383
|
list.push({ name: nameFn_1(item), value: valueFn_1(item) });
|
|
2353
|
-
})
|
|
1384
|
+
});
|
|
2354
1385
|
}
|
|
2355
1386
|
else {
|
|
2356
|
-
array.forEach((
|
|
2357
|
-
* @param {?} n
|
|
2358
|
-
* @param {?} v
|
|
2359
|
-
* @return {?}
|
|
2360
|
-
*/
|
|
2361
|
-
function (n, v) {
|
|
1387
|
+
array.forEach(function (n, v) {
|
|
2362
1388
|
list.push({ name: n, value: v });
|
|
2363
|
-
})
|
|
1389
|
+
});
|
|
2364
1390
|
}
|
|
2365
1391
|
return list;
|
|
2366
1392
|
}
|
|
2367
1393
|
|
|
2368
|
-
/**
|
|
2369
|
-
* @fileoverview added by tsickle
|
|
2370
|
-
* Generated from: libs/array/nameValue/index.ts
|
|
2371
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2372
|
-
*/
|
|
2373
|
-
|
|
2374
|
-
/**
|
|
2375
|
-
* @fileoverview added by tsickle
|
|
2376
|
-
* Generated from: libs/array/remove/remove.ts
|
|
2377
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2378
|
-
*/
|
|
2379
|
-
/**
|
|
2380
|
-
* @param {?} array
|
|
2381
|
-
* @param {?} query
|
|
2382
|
-
* @return {?}
|
|
2383
|
-
*/
|
|
2384
1394
|
function remove(array, query) {
|
|
2385
|
-
/** @type {?} */
|
|
2386
1395
|
var idx = indexOf(array, query);
|
|
2387
1396
|
if (idx >= 0) {
|
|
2388
1397
|
return array.splice(idx, 1);
|
|
@@ -2390,34 +1399,11 @@
|
|
|
2390
1399
|
return idx;
|
|
2391
1400
|
}
|
|
2392
1401
|
|
|
2393
|
-
/**
|
|
2394
|
-
* @fileoverview added by tsickle
|
|
2395
|
-
* Generated from: libs/array/remove/index.ts
|
|
2396
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2397
|
-
*/
|
|
2398
|
-
|
|
2399
|
-
/**
|
|
2400
|
-
* @fileoverview added by tsickle
|
|
2401
|
-
* Generated from: libs/array/sort/sort.ts
|
|
2402
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2403
|
-
*/
|
|
2404
|
-
/**
|
|
2405
|
-
* @param {?} array
|
|
2406
|
-
* @param {?} query
|
|
2407
|
-
* @param {?=} reverse
|
|
2408
|
-
* @return {?}
|
|
2409
|
-
*/
|
|
2410
1402
|
function sort(array, query, reverse) {
|
|
2411
1403
|
if (reverse === void 0) { reverse = false; }
|
|
2412
1404
|
if (typeof query !== 'function') {
|
|
2413
|
-
/** @type {?} */
|
|
2414
1405
|
var queryStr_1 = query;
|
|
2415
|
-
query = (
|
|
2416
|
-
* @param {?} a
|
|
2417
|
-
* @param {?} b
|
|
2418
|
-
* @return {?}
|
|
2419
|
-
*/
|
|
2420
|
-
function (a, b) {
|
|
1406
|
+
query = function (a, b) {
|
|
2421
1407
|
if (reverse) {
|
|
2422
1408
|
if (a[queryStr_1] < b[queryStr_1]) {
|
|
2423
1409
|
return 1;
|
|
@@ -2435,323 +1421,105 @@
|
|
|
2435
1421
|
}
|
|
2436
1422
|
}
|
|
2437
1423
|
return 0;
|
|
2438
|
-
}
|
|
1424
|
+
};
|
|
2439
1425
|
}
|
|
2440
1426
|
array.sort(query);
|
|
2441
1427
|
return array;
|
|
2442
1428
|
}
|
|
2443
1429
|
|
|
2444
|
-
/**
|
|
2445
|
-
* @fileoverview added by tsickle
|
|
2446
|
-
* Generated from: libs/array/sort/index.ts
|
|
2447
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2448
|
-
*/
|
|
2449
|
-
|
|
2450
|
-
/**
|
|
2451
|
-
* @fileoverview added by tsickle
|
|
2452
|
-
* Generated from: libs/array/rsort/rsort.ts
|
|
2453
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2454
|
-
*/
|
|
2455
|
-
/**
|
|
2456
|
-
* @param {?} array
|
|
2457
|
-
* @param {?} query
|
|
2458
|
-
* @return {?}
|
|
2459
|
-
*/
|
|
2460
1430
|
function rsort(array, query) {
|
|
2461
1431
|
return sort(array, query, true);
|
|
2462
1432
|
}
|
|
2463
1433
|
|
|
2464
|
-
/**
|
|
2465
|
-
* @fileoverview added by tsickle
|
|
2466
|
-
* Generated from: libs/array/rsort/index.ts
|
|
2467
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2468
|
-
*/
|
|
2469
|
-
|
|
2470
|
-
/**
|
|
2471
|
-
* @fileoverview added by tsickle
|
|
2472
|
-
* Generated from: libs/array/find/find.ts
|
|
2473
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2474
|
-
*/
|
|
2475
|
-
/**
|
|
2476
|
-
* @param {?} array
|
|
2477
|
-
* @param {?} query
|
|
2478
|
-
* @return {?}
|
|
2479
|
-
*/
|
|
2480
1434
|
function find(array, query) {
|
|
2481
|
-
/** @type {?} */
|
|
2482
1435
|
var data = filter(array, query);
|
|
2483
1436
|
return data.length ? data[0] : null;
|
|
2484
1437
|
}
|
|
2485
1438
|
|
|
2486
|
-
/**
|
|
2487
|
-
* @fileoverview added by tsickle
|
|
2488
|
-
* Generated from: libs/array/find/index.ts
|
|
2489
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2490
|
-
*/
|
|
2491
|
-
|
|
2492
|
-
/**
|
|
2493
|
-
* @fileoverview added by tsickle
|
|
2494
|
-
* Generated from: libs/array/index.ts
|
|
2495
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2496
|
-
*/
|
|
2497
|
-
|
|
2498
|
-
/**
|
|
2499
|
-
* @fileoverview added by tsickle
|
|
2500
|
-
* Generated from: libs/util/boolean/boolean.ts
|
|
2501
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2502
|
-
*/
|
|
2503
|
-
/**
|
|
2504
|
-
* @param {?} value
|
|
2505
|
-
* @return {?}
|
|
2506
|
-
*/
|
|
2507
1439
|
function boolean(value) {
|
|
2508
|
-
return
|
|
1440
|
+
return String(value).toLowerCase() !== 'false' && !!value;
|
|
2509
1441
|
}
|
|
2510
1442
|
|
|
2511
|
-
/**
|
|
2512
|
-
* @fileoverview added by tsickle
|
|
2513
|
-
* Generated from: libs/util/boolean/index.ts
|
|
2514
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2515
|
-
*/
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* @fileoverview added by tsickle
|
|
2519
|
-
* Generated from: libs/util/debounce/debounce.ts
|
|
2520
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2521
|
-
*/
|
|
2522
|
-
/**
|
|
2523
|
-
* @param {?} func
|
|
2524
|
-
* @param {?} wait
|
|
2525
|
-
* @param {?} immediate
|
|
2526
|
-
* @return {?}
|
|
2527
|
-
*/
|
|
2528
1443
|
function debounce(func, wait, immediate) {
|
|
2529
|
-
/** @type {?} */
|
|
2530
1444
|
var timeout;
|
|
2531
|
-
return (
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
function () {
|
|
2535
|
-
/** @type {?} */
|
|
2536
|
-
var context = this;
|
|
2537
|
-
/** @type {?} */
|
|
2538
|
-
var args = arguments;
|
|
2539
|
-
/** @type {?} */
|
|
2540
|
-
var later = (/**
|
|
2541
|
-
* @return {?}
|
|
2542
|
-
*/
|
|
2543
|
-
function () {
|
|
1445
|
+
return function () {
|
|
1446
|
+
var context = this, args = arguments;
|
|
1447
|
+
var later = function () {
|
|
2544
1448
|
timeout = null;
|
|
2545
1449
|
if (!immediate)
|
|
2546
1450
|
func.apply(context, args);
|
|
2547
|
-
}
|
|
2548
|
-
/** @type {?} */
|
|
1451
|
+
};
|
|
2549
1452
|
var callNow = immediate && !timeout;
|
|
2550
1453
|
clearTimeout(timeout);
|
|
2551
1454
|
timeout = setTimeout(later, wait);
|
|
2552
1455
|
if (callNow)
|
|
2553
1456
|
func.apply(context, args);
|
|
2554
|
-
}
|
|
1457
|
+
};
|
|
2555
1458
|
}
|
|
2556
1459
|
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
var
|
|
2576
|
-
|
|
2577
|
-
var
|
|
2578
|
-
|
|
2579
|
-
var
|
|
2580
|
-
|
|
2581
|
-
var
|
|
2582
|
-
|
|
2583
|
-
var
|
|
2584
|
-
|
|
2585
|
-
var
|
|
2586
|
-
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2589
|
-
var
|
|
2590
|
-
|
|
2591
|
-
var
|
|
2592
|
-
|
|
2593
|
-
var
|
|
2594
|
-
/** @type {?} */
|
|
2595
|
-
var KEY_PAUSE$1 = 19;
|
|
2596
|
-
/** @type {?} */
|
|
2597
|
-
var KEY_CAPS_LOCK$1 = 20;
|
|
2598
|
-
/** @type {?} */
|
|
2599
|
-
var KEY_ESCAPE$1 = 27;
|
|
2600
|
-
/** @type {?} */
|
|
2601
|
-
var KEY_SPACE$1 = 32;
|
|
2602
|
-
/** @type {?} */
|
|
2603
|
-
var KEY_PAGE_UP$1 = 33;
|
|
2604
|
-
/** @type {?} */
|
|
2605
|
-
var KEY_PAGE_DOWN$1 = 34;
|
|
2606
|
-
/** @type {?} */
|
|
2607
|
-
var KEY_END$1 = 35;
|
|
2608
|
-
/** @type {?} */
|
|
2609
|
-
var KEY_HOME$1 = 36;
|
|
2610
|
-
/** @type {?} */
|
|
2611
|
-
var KEY_LEFT$1 = 37;
|
|
2612
|
-
/** @type {?} */
|
|
2613
|
-
var KEY_UP$1 = 38;
|
|
2614
|
-
/** @type {?} */
|
|
2615
|
-
var KEY_RIGHT$1 = 39;
|
|
2616
|
-
/** @type {?} */
|
|
2617
|
-
var KEY_DOWN$1 = 40;
|
|
2618
|
-
/** @type {?} */
|
|
2619
|
-
var KEY_PRINTSCREEN$1 = 44;
|
|
2620
|
-
/** @type {?} */
|
|
2621
|
-
var KEY_INSERT$1 = 45;
|
|
2622
|
-
/** @type {?} */
|
|
2623
|
-
var KEY_DELETE$1 = 46;
|
|
2624
|
-
/** @type {?} */
|
|
2625
|
-
var KEY_0$1 = 48;
|
|
2626
|
-
/** @type {?} */
|
|
2627
|
-
var KEY_1$1 = 49;
|
|
2628
|
-
/** @type {?} */
|
|
2629
|
-
var KEY_2$1 = 50;
|
|
2630
|
-
/** @type {?} */
|
|
2631
|
-
var KEY_3$1 = 51;
|
|
2632
|
-
/** @type {?} */
|
|
2633
|
-
var KEY_4$1 = 52;
|
|
2634
|
-
/** @type {?} */
|
|
2635
|
-
var KEY_5$1 = 53;
|
|
2636
|
-
/** @type {?} */
|
|
2637
|
-
var KEY_6$1 = 54;
|
|
2638
|
-
/** @type {?} */
|
|
2639
|
-
var KEY_7$1 = 55;
|
|
2640
|
-
/** @type {?} */
|
|
2641
|
-
var KEY_8$1 = 56;
|
|
2642
|
-
/** @type {?} */
|
|
2643
|
-
var KEY_9$1 = 57;
|
|
2644
|
-
/** @type {?} */
|
|
2645
|
-
var KEY_SEMICOLON$1 = 59;
|
|
2646
|
-
/** @type {?} */
|
|
2647
|
-
var KEY_EQUALS$1 = 61;
|
|
2648
|
-
|
|
2649
|
-
/**
|
|
2650
|
-
* @fileoverview added by tsickle
|
|
2651
|
-
* Generated from: libs/util/keys/index.ts
|
|
2652
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2653
|
-
*/
|
|
1460
|
+
var KEY_CANCEL = 3;
|
|
1461
|
+
var KEY_HELP = 6;
|
|
1462
|
+
var KEY_BACKSPACE = 8;
|
|
1463
|
+
var KEY_TAB = 9;
|
|
1464
|
+
var KEY_CLEAR = 12;
|
|
1465
|
+
var KEY_RETURN = 13;
|
|
1466
|
+
var KEY_ENTER = 14;
|
|
1467
|
+
var KEY_SHIFT = 16;
|
|
1468
|
+
var KEY_CONTROL = 17;
|
|
1469
|
+
var KEY_ALT = 18;
|
|
1470
|
+
var KEY_PAUSE = 19;
|
|
1471
|
+
var KEY_CAPS_LOCK = 20;
|
|
1472
|
+
var KEY_ESCAPE = 27;
|
|
1473
|
+
var KEY_SPACE = 32;
|
|
1474
|
+
var KEY_PAGE_UP = 33;
|
|
1475
|
+
var KEY_PAGE_DOWN = 34;
|
|
1476
|
+
var KEY_END = 35;
|
|
1477
|
+
var KEY_HOME = 36;
|
|
1478
|
+
var KEY_LEFT = 37;
|
|
1479
|
+
var KEY_UP = 38;
|
|
1480
|
+
var KEY_RIGHT = 39;
|
|
1481
|
+
var KEY_DOWN = 40;
|
|
1482
|
+
var KEY_PRINTSCREEN = 44;
|
|
1483
|
+
var KEY_INSERT = 45;
|
|
1484
|
+
var KEY_DELETE = 46;
|
|
1485
|
+
var KEY_0 = 48;
|
|
1486
|
+
var KEY_1 = 49;
|
|
1487
|
+
var KEY_2 = 50;
|
|
1488
|
+
var KEY_3 = 51;
|
|
1489
|
+
var KEY_4 = 52;
|
|
1490
|
+
var KEY_5 = 53;
|
|
1491
|
+
var KEY_6 = 54;
|
|
1492
|
+
var KEY_7 = 55;
|
|
1493
|
+
var KEY_8 = 56;
|
|
1494
|
+
var KEY_9 = 57;
|
|
1495
|
+
var KEY_SEMICOLON = 59;
|
|
1496
|
+
var KEY_EQUALS = 61;
|
|
2654
1497
|
|
|
2655
|
-
/**
|
|
2656
|
-
* @fileoverview added by tsickle
|
|
2657
|
-
* Generated from: libs/util/length/length.ts
|
|
2658
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2659
|
-
*/
|
|
2660
|
-
/**
|
|
2661
|
-
* @param {?} object
|
|
2662
|
-
* @return {?}
|
|
2663
|
-
*/
|
|
2664
1498
|
function length(object) {
|
|
2665
|
-
if (
|
|
2666
|
-
return Object.keys(object).length;
|
|
2667
|
-
}
|
|
2668
|
-
if (lodashEs.isArray(object)) {
|
|
1499
|
+
if (Array.isArray(object)) {
|
|
2669
1500
|
return object.length;
|
|
2670
1501
|
}
|
|
1502
|
+
if (object instanceof Object) {
|
|
1503
|
+
return Object.keys(object).length;
|
|
1504
|
+
}
|
|
2671
1505
|
return 0;
|
|
2672
1506
|
}
|
|
2673
1507
|
|
|
2674
|
-
/**
|
|
2675
|
-
* @fileoverview added by tsickle
|
|
2676
|
-
* Generated from: libs/util/length/index.ts
|
|
2677
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2678
|
-
*/
|
|
2679
|
-
|
|
2680
|
-
/**
|
|
2681
|
-
* @fileoverview added by tsickle
|
|
2682
|
-
* Generated from: libs/util/resolve/resolve.ts
|
|
2683
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2684
|
-
*/
|
|
2685
|
-
/**
|
|
2686
|
-
* @param {?} promise
|
|
2687
|
-
* @param {?=} defaults
|
|
2688
|
-
* @return {?}
|
|
2689
|
-
*/
|
|
2690
1508
|
function resolve(promise, defaults) {
|
|
2691
1509
|
if (defaults === void 0) { defaults = []; }
|
|
2692
|
-
/** @type {?} */
|
|
2693
1510
|
var result = defaults;
|
|
2694
|
-
return new Promise((
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
*/
|
|
2698
|
-
function (resolve) {
|
|
2699
|
-
promise.then((/**
|
|
2700
|
-
* @param {?} data
|
|
2701
|
-
* @return {?}
|
|
2702
|
-
*/
|
|
2703
|
-
function (data) {
|
|
2704
|
-
Object.keys(data).forEach((/**
|
|
2705
|
-
* @param {?} key
|
|
2706
|
-
* @return {?}
|
|
2707
|
-
*/
|
|
2708
|
-
function (key) { return result[key] = data[key]; }));
|
|
1511
|
+
return new Promise(function (resolve) {
|
|
1512
|
+
promise.then(function (data) {
|
|
1513
|
+
Object.keys(data).forEach(function (key) { return result[key] = data[key]; });
|
|
2709
1514
|
resolve(result);
|
|
2710
|
-
})
|
|
2711
|
-
})
|
|
1515
|
+
});
|
|
1516
|
+
});
|
|
2712
1517
|
}
|
|
2713
1518
|
|
|
2714
|
-
/**
|
|
2715
|
-
* @fileoverview added by tsickle
|
|
2716
|
-
* Generated from: libs/util/resolve/index.ts
|
|
2717
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2718
|
-
*/
|
|
2719
|
-
|
|
2720
|
-
/**
|
|
2721
|
-
* @fileoverview added by tsickle
|
|
2722
|
-
* Generated from: libs/util/stringify/index.ts
|
|
2723
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2724
|
-
*/
|
|
2725
|
-
|
|
2726
|
-
/**
|
|
2727
|
-
* @fileoverview added by tsickle
|
|
2728
|
-
* Generated from: libs/util/uuid/uuid.ts
|
|
2729
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2730
|
-
*/
|
|
2731
|
-
/**
|
|
2732
|
-
* @return {?}
|
|
2733
|
-
*/
|
|
2734
1519
|
function uuid() {
|
|
2735
1520
|
return guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
|
|
2736
1521
|
}
|
|
2737
1522
|
|
|
2738
|
-
/**
|
|
2739
|
-
* @fileoverview added by tsickle
|
|
2740
|
-
* Generated from: libs/util/uuid/index.ts
|
|
2741
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2742
|
-
*/
|
|
2743
|
-
|
|
2744
|
-
/**
|
|
2745
|
-
* @fileoverview added by tsickle
|
|
2746
|
-
* Generated from: libs/util/value/value.ts
|
|
2747
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2748
|
-
*/
|
|
2749
|
-
/**
|
|
2750
|
-
* @param {?} object
|
|
2751
|
-
* @param {?} key
|
|
2752
|
-
* @param {?} def
|
|
2753
|
-
* @return {?}
|
|
2754
|
-
*/
|
|
2755
1523
|
function value(object, key, def) {
|
|
2756
1524
|
if (typeof object === 'object' || Array.isArray(object)) {
|
|
2757
1525
|
if (object.hasOwnProperty(key)) {
|
|
@@ -2761,22 +1529,6 @@
|
|
|
2761
1529
|
return def;
|
|
2762
1530
|
}
|
|
2763
1531
|
|
|
2764
|
-
/**
|
|
2765
|
-
* @fileoverview added by tsickle
|
|
2766
|
-
* Generated from: libs/util/value/index.ts
|
|
2767
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2768
|
-
*/
|
|
2769
|
-
|
|
2770
|
-
/**
|
|
2771
|
-
* @fileoverview added by tsickle
|
|
2772
|
-
* Generated from: libs/util/isClass/isClass.ts
|
|
2773
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2774
|
-
*/
|
|
2775
|
-
/**
|
|
2776
|
-
* @param {?} value
|
|
2777
|
-
* @param {?} cls
|
|
2778
|
-
* @return {?}
|
|
2779
|
-
*/
|
|
2780
1532
|
function isClass(value, cls) {
|
|
2781
1533
|
if (typeof value === 'object') {
|
|
2782
1534
|
if (typeof cls === 'string') {
|
|
@@ -2795,80 +1547,24 @@
|
|
|
2795
1547
|
return false;
|
|
2796
1548
|
}
|
|
2797
1549
|
|
|
2798
|
-
/**
|
|
2799
|
-
* @fileoverview added by tsickle
|
|
2800
|
-
* Generated from: libs/util/isClass/index.ts
|
|
2801
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2802
|
-
*/
|
|
2803
|
-
|
|
2804
|
-
/**
|
|
2805
|
-
* @fileoverview added by tsickle
|
|
2806
|
-
* Generated from: libs/util/isNumeric/isNumeric.ts
|
|
2807
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2808
|
-
*/
|
|
2809
|
-
/**
|
|
2810
|
-
* @param {?} value
|
|
2811
|
-
* @return {?}
|
|
2812
|
-
*/
|
|
2813
1550
|
function isNumeric(value) {
|
|
2814
|
-
|
|
2815
|
-
var str = lodashEs.toString(value);
|
|
1551
|
+
var str = String(value);
|
|
2816
1552
|
return str.length && !!str.match(/^-?\d*\.?\d*$/);
|
|
2817
1553
|
}
|
|
2818
1554
|
|
|
2819
|
-
/**
|
|
2820
|
-
* @fileoverview added by tsickle
|
|
2821
|
-
* Generated from: libs/util/isNumeric/index.ts
|
|
2822
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2823
|
-
*/
|
|
2824
|
-
|
|
2825
|
-
/**
|
|
2826
|
-
* @fileoverview added by tsickle
|
|
2827
|
-
* Generated from: libs/util/isEmpty/index.ts
|
|
2828
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2829
|
-
*/
|
|
2830
|
-
|
|
2831
|
-
/**
|
|
2832
|
-
* @fileoverview added by tsickle
|
|
2833
|
-
* Generated from: libs/util/throttle/throttle.ts
|
|
2834
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2835
|
-
*/
|
|
2836
|
-
/**
|
|
2837
|
-
* @param {?} func
|
|
2838
|
-
* @param {?} wait
|
|
2839
|
-
* @return {?}
|
|
2840
|
-
*/
|
|
2841
1555
|
function throttle(func, wait) {
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
return (/**
|
|
2845
|
-
* @return {?}
|
|
2846
|
-
*/
|
|
2847
|
-
function () {
|
|
1556
|
+
var waiting = false; // Initially, we're not waiting
|
|
1557
|
+
return function () {
|
|
2848
1558
|
if (!waiting) { // If we're not waiting
|
|
2849
1559
|
func.apply(null, arguments); // Execute users function
|
|
2850
1560
|
waiting = true; // Prevent future invocations
|
|
2851
|
-
setTimeout((
|
|
2852
|
-
* @return {?}
|
|
2853
|
-
*/
|
|
2854
|
-
function () {
|
|
1561
|
+
setTimeout(function () {
|
|
2855
1562
|
waiting = false; // And allow future invocations
|
|
2856
|
-
}
|
|
1563
|
+
}, wait);
|
|
2857
1564
|
}
|
|
2858
|
-
}
|
|
1565
|
+
};
|
|
2859
1566
|
}
|
|
2860
1567
|
|
|
2861
|
-
/**
|
|
2862
|
-
* @fileoverview added by tsickle
|
|
2863
|
-
* Generated from: libs/util/throttle/index.ts
|
|
2864
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2865
|
-
*/
|
|
2866
|
-
|
|
2867
|
-
/**
|
|
2868
|
-
* @fileoverview added by tsickle
|
|
2869
|
-
* Generated from: libs/util/queue/operation.ts
|
|
2870
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2871
|
-
*/
|
|
2872
1568
|
var Operation = /** @class */ (function () {
|
|
2873
1569
|
function Operation(target, name) {
|
|
2874
1570
|
this.ready$ = new rxjs.Subject();
|
|
@@ -2881,32 +1577,14 @@
|
|
|
2881
1577
|
}
|
|
2882
1578
|
}
|
|
2883
1579
|
return Operation;
|
|
2884
|
-
}());
|
|
2885
|
-
if (false) {
|
|
2886
|
-
/** @type {?} */
|
|
2887
|
-
Operation.prototype.name;
|
|
2888
|
-
/** @type {?} */
|
|
2889
|
-
Operation.prototype.target;
|
|
2890
|
-
/** @type {?} */
|
|
2891
|
-
Operation.prototype.ready$;
|
|
2892
|
-
}
|
|
1580
|
+
}());
|
|
2893
1581
|
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
/** @enum {string} */
|
|
2900
|
-
var QueueState = {
|
|
2901
|
-
Idle: "idle",
|
|
2902
|
-
Processing: "processing",
|
|
2903
|
-
};
|
|
1582
|
+
exports.QueueState = void 0;
|
|
1583
|
+
(function (QueueState) {
|
|
1584
|
+
QueueState["Idle"] = "idle";
|
|
1585
|
+
QueueState["Processing"] = "processing";
|
|
1586
|
+
})(exports.QueueState || (exports.QueueState = {}));
|
|
2904
1587
|
|
|
2905
|
-
/**
|
|
2906
|
-
* @fileoverview added by tsickle
|
|
2907
|
-
* Generated from: libs/util/queue/queue.ts
|
|
2908
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2909
|
-
*/
|
|
2910
1588
|
var Queue = /** @class */ (function () {
|
|
2911
1589
|
function Queue(_limit) {
|
|
2912
1590
|
if (_limit === void 0) { _limit = Infinity; }
|
|
@@ -2917,210 +1595,109 @@
|
|
|
2917
1595
|
this._total = 0;
|
|
2918
1596
|
this._completed = 0;
|
|
2919
1597
|
this._errors = 0;
|
|
2920
|
-
this._state = QueueState.Idle;
|
|
1598
|
+
this._state = exports.QueueState.Idle;
|
|
2921
1599
|
this._destroy$ = new rxjs.Subject();
|
|
2922
1600
|
}
|
|
2923
1601
|
Object.defineProperty(Queue.prototype, "total", {
|
|
2924
|
-
get:
|
|
2925
|
-
* @return {?}
|
|
2926
|
-
*/
|
|
2927
|
-
function () {
|
|
1602
|
+
get: function () {
|
|
2928
1603
|
return this._total;
|
|
2929
1604
|
},
|
|
2930
|
-
enumerable:
|
|
1605
|
+
enumerable: false,
|
|
2931
1606
|
configurable: true
|
|
2932
1607
|
});
|
|
2933
1608
|
Object.defineProperty(Queue.prototype, "completed", {
|
|
2934
|
-
get:
|
|
2935
|
-
* @return {?}
|
|
2936
|
-
*/
|
|
2937
|
-
function () {
|
|
1609
|
+
get: function () {
|
|
2938
1610
|
return this._completed;
|
|
2939
1611
|
},
|
|
2940
|
-
enumerable:
|
|
1612
|
+
enumerable: false,
|
|
2941
1613
|
configurable: true
|
|
2942
1614
|
});
|
|
2943
1615
|
Object.defineProperty(Queue.prototype, "pending", {
|
|
2944
|
-
get:
|
|
2945
|
-
* @return {?}
|
|
2946
|
-
*/
|
|
2947
|
-
function () {
|
|
1616
|
+
get: function () {
|
|
2948
1617
|
return this._queue.length;
|
|
2949
1618
|
},
|
|
2950
|
-
enumerable:
|
|
1619
|
+
enumerable: false,
|
|
2951
1620
|
configurable: true
|
|
2952
1621
|
});
|
|
2953
1622
|
Object.defineProperty(Queue.prototype, "inProgress", {
|
|
2954
|
-
get:
|
|
2955
|
-
* @return {?}
|
|
2956
|
-
*/
|
|
2957
|
-
function () {
|
|
1623
|
+
get: function () {
|
|
2958
1624
|
return this._inProgress.length;
|
|
2959
1625
|
},
|
|
2960
|
-
enumerable:
|
|
1626
|
+
enumerable: false,
|
|
2961
1627
|
configurable: true
|
|
2962
1628
|
});
|
|
2963
1629
|
Object.defineProperty(Queue.prototype, "errors", {
|
|
2964
|
-
get:
|
|
2965
|
-
* @return {?}
|
|
2966
|
-
*/
|
|
2967
|
-
function () {
|
|
1630
|
+
get: function () {
|
|
2968
1631
|
return this._errors;
|
|
2969
1632
|
},
|
|
2970
|
-
enumerable:
|
|
1633
|
+
enumerable: false,
|
|
2971
1634
|
configurable: true
|
|
2972
1635
|
});
|
|
2973
1636
|
Object.defineProperty(Queue.prototype, "state", {
|
|
2974
|
-
get:
|
|
2975
|
-
* @return {?}
|
|
2976
|
-
*/
|
|
2977
|
-
function () {
|
|
1637
|
+
get: function () {
|
|
2978
1638
|
return this._state;
|
|
2979
1639
|
},
|
|
2980
|
-
enumerable:
|
|
1640
|
+
enumerable: false,
|
|
2981
1641
|
configurable: true
|
|
2982
1642
|
});
|
|
2983
1643
|
Object.defineProperty(Queue.prototype, "empty", {
|
|
2984
|
-
get:
|
|
2985
|
-
* @return {?}
|
|
2986
|
-
*/
|
|
2987
|
-
function () {
|
|
1644
|
+
get: function () {
|
|
2988
1645
|
return !this._queue.length && !this._inProgress.length;
|
|
2989
1646
|
},
|
|
2990
|
-
enumerable:
|
|
1647
|
+
enumerable: false,
|
|
2991
1648
|
configurable: true
|
|
2992
1649
|
});
|
|
2993
1650
|
Object.defineProperty(Queue.prototype, "pendingOperations", {
|
|
2994
|
-
get:
|
|
2995
|
-
* @return {?}
|
|
2996
|
-
*/
|
|
2997
|
-
function () {
|
|
1651
|
+
get: function () {
|
|
2998
1652
|
return this._queue
|
|
2999
|
-
.map((
|
|
3000
|
-
* @param {?} operation
|
|
3001
|
-
* @return {?}
|
|
3002
|
-
*/
|
|
3003
|
-
function (operation) { return operation.name; }));
|
|
1653
|
+
.map(function (operation) { return operation.name; });
|
|
3004
1654
|
},
|
|
3005
|
-
enumerable:
|
|
1655
|
+
enumerable: false,
|
|
3006
1656
|
configurable: true
|
|
3007
1657
|
});
|
|
3008
1658
|
Object.defineProperty(Queue.prototype, "inProgressOperations", {
|
|
3009
|
-
get:
|
|
3010
|
-
* @return {?}
|
|
3011
|
-
*/
|
|
3012
|
-
function () {
|
|
1659
|
+
get: function () {
|
|
3013
1660
|
return this._inProgress
|
|
3014
|
-
.map((
|
|
3015
|
-
* @param {?} operation
|
|
3016
|
-
* @return {?}
|
|
3017
|
-
*/
|
|
3018
|
-
function (operation) { return operation.name; }));
|
|
1661
|
+
.map(function (operation) { return operation.name; });
|
|
3019
1662
|
},
|
|
3020
|
-
enumerable:
|
|
1663
|
+
enumerable: false,
|
|
3021
1664
|
configurable: true
|
|
3022
1665
|
});
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
*/
|
|
3026
|
-
Queue.prototype.isProcessing = /**
|
|
3027
|
-
* @return {?}
|
|
3028
|
-
*/
|
|
3029
|
-
function () {
|
|
3030
|
-
return this._state === QueueState.Processing;
|
|
1666
|
+
Queue.prototype.isProcessing = function () {
|
|
1667
|
+
return this._state === exports.QueueState.Processing;
|
|
3031
1668
|
};
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
*/
|
|
3035
|
-
Queue.prototype.isIdle = /**
|
|
3036
|
-
* @return {?}
|
|
3037
|
-
*/
|
|
3038
|
-
function () {
|
|
3039
|
-
return this._state === QueueState.Idle;
|
|
1669
|
+
Queue.prototype.isIdle = function () {
|
|
1670
|
+
return this._state === exports.QueueState.Idle;
|
|
3040
1671
|
};
|
|
3041
|
-
|
|
3042
|
-
* @param {?} value
|
|
3043
|
-
* @return {?}
|
|
3044
|
-
*/
|
|
3045
|
-
Queue.prototype.setLimit = /**
|
|
3046
|
-
* @param {?} value
|
|
3047
|
-
* @return {?}
|
|
3048
|
-
*/
|
|
3049
|
-
function (value) {
|
|
1672
|
+
Queue.prototype.setLimit = function (value) {
|
|
3050
1673
|
this._limit = value;
|
|
3051
1674
|
};
|
|
3052
|
-
|
|
3053
|
-
* @param {?} fun
|
|
3054
|
-
* @param {?=} err
|
|
3055
|
-
* @param {?=} complete
|
|
3056
|
-
* @return {?}
|
|
3057
|
-
*/
|
|
3058
|
-
Queue.prototype.subscribe = /**
|
|
3059
|
-
* @param {?} fun
|
|
3060
|
-
* @param {?=} err
|
|
3061
|
-
* @param {?=} complete
|
|
3062
|
-
* @return {?}
|
|
3063
|
-
*/
|
|
3064
|
-
function (fun, err, complete) {
|
|
1675
|
+
Queue.prototype.subscribe = function (fun, err, complete) {
|
|
3065
1676
|
this._done
|
|
3066
1677
|
.pipe(operators.takeUntil(this._destroy$))
|
|
3067
1678
|
.subscribe(fun, err, complete);
|
|
3068
1679
|
};
|
|
3069
|
-
|
|
3070
|
-
* @param {?} fun
|
|
3071
|
-
* @param {?=} err
|
|
3072
|
-
* @param {?=} complete
|
|
3073
|
-
* @return {?}
|
|
3074
|
-
*/
|
|
3075
|
-
Queue.prototype.complete = /**
|
|
3076
|
-
* @param {?} fun
|
|
3077
|
-
* @param {?=} err
|
|
3078
|
-
* @param {?=} complete
|
|
3079
|
-
* @return {?}
|
|
3080
|
-
*/
|
|
3081
|
-
function (fun, err, complete) {
|
|
1680
|
+
Queue.prototype.complete = function (fun, err, complete) {
|
|
3082
1681
|
var _this = this;
|
|
3083
|
-
rxjs.Observable.create((
|
|
3084
|
-
* @param {?} observer
|
|
3085
|
-
* @return {?}
|
|
3086
|
-
*/
|
|
3087
|
-
function (observer) {
|
|
1682
|
+
rxjs.Observable.create(function (observer) {
|
|
3088
1683
|
if (!_this.isProcessing()) {
|
|
3089
1684
|
observer.next();
|
|
3090
1685
|
observer.complete();
|
|
3091
1686
|
return;
|
|
3092
1687
|
}
|
|
3093
|
-
_this.subscribe((
|
|
3094
|
-
* @return {?}
|
|
3095
|
-
*/
|
|
3096
|
-
function () {
|
|
1688
|
+
_this.subscribe(function () {
|
|
3097
1689
|
observer.next();
|
|
3098
1690
|
observer.complete();
|
|
3099
|
-
}
|
|
3100
|
-
* @param {?} error
|
|
3101
|
-
* @return {?}
|
|
3102
|
-
*/
|
|
3103
|
-
function (error) {
|
|
1691
|
+
}, function (error) {
|
|
3104
1692
|
observer.error(error);
|
|
3105
1693
|
_this.clear();
|
|
3106
|
-
})
|
|
3107
|
-
})
|
|
1694
|
+
});
|
|
1695
|
+
}).subscribe(fun, err, complete);
|
|
3108
1696
|
};
|
|
3109
|
-
|
|
3110
|
-
* @param {?} target
|
|
3111
|
-
* @param {?=} name
|
|
3112
|
-
* @return {?}
|
|
3113
|
-
*/
|
|
3114
|
-
Queue.prototype.push = /**
|
|
3115
|
-
* @param {?} target
|
|
3116
|
-
* @param {?=} name
|
|
3117
|
-
* @return {?}
|
|
3118
|
-
*/
|
|
3119
|
-
function (target, name) {
|
|
3120
|
-
/** @type {?} */
|
|
1697
|
+
Queue.prototype.push = function (target, name) {
|
|
3121
1698
|
var operation = new Operation(target, name);
|
|
3122
1699
|
this._total++;
|
|
3123
|
-
this._state = QueueState.Processing;
|
|
1700
|
+
this._state = exports.QueueState.Processing;
|
|
3124
1701
|
if (this._inProgress.length < this._limit) {
|
|
3125
1702
|
this._processOperation(operation);
|
|
3126
1703
|
}
|
|
@@ -3129,216 +1706,78 @@
|
|
|
3129
1706
|
}
|
|
3130
1707
|
return operation.ready$;
|
|
3131
1708
|
};
|
|
3132
|
-
|
|
3133
|
-
* @return {?}
|
|
3134
|
-
*/
|
|
3135
|
-
Queue.prototype.clear = /**
|
|
3136
|
-
* @return {?}
|
|
3137
|
-
*/
|
|
3138
|
-
function () {
|
|
1709
|
+
Queue.prototype.clear = function () {
|
|
3139
1710
|
this._queue = [];
|
|
3140
1711
|
this._total = 0;
|
|
3141
1712
|
this._errors = 0;
|
|
3142
1713
|
this._completed = 0;
|
|
3143
|
-
this._state = QueueState.Idle;
|
|
1714
|
+
this._state = exports.QueueState.Idle;
|
|
3144
1715
|
this._done = new rxjs.Subject();
|
|
3145
1716
|
};
|
|
3146
|
-
|
|
3147
|
-
* @return {?}
|
|
3148
|
-
*/
|
|
3149
|
-
Queue.prototype.destroy = /**
|
|
3150
|
-
* @return {?}
|
|
3151
|
-
*/
|
|
3152
|
-
function () {
|
|
1717
|
+
Queue.prototype.destroy = function () {
|
|
3153
1718
|
this.clear();
|
|
3154
1719
|
this._done.complete();
|
|
3155
1720
|
};
|
|
3156
|
-
|
|
3157
|
-
* @private
|
|
3158
|
-
* @param {?} operation
|
|
3159
|
-
* @return {?}
|
|
3160
|
-
*/
|
|
3161
|
-
Queue.prototype._processOperation = /**
|
|
3162
|
-
* @private
|
|
3163
|
-
* @param {?} operation
|
|
3164
|
-
* @return {?}
|
|
3165
|
-
*/
|
|
3166
|
-
function (operation) {
|
|
1721
|
+
Queue.prototype._processOperation = function (operation) {
|
|
3167
1722
|
var _this = this;
|
|
3168
1723
|
this._inProgress.push(operation);
|
|
3169
1724
|
operation.target
|
|
3170
1725
|
.pipe(operators.delay(200), // Hack to prevent extra quick proccess execution
|
|
3171
1726
|
operators.takeUntil(this._destroy$)).subscribe({
|
|
3172
|
-
next: (
|
|
3173
|
-
* @param {?} data
|
|
3174
|
-
* @return {?}
|
|
3175
|
-
*/
|
|
3176
|
-
function (data) {
|
|
1727
|
+
next: function (data) {
|
|
3177
1728
|
operation.ready$.next(data);
|
|
3178
|
-
}
|
|
3179
|
-
error: (
|
|
3180
|
-
* @param {?} error
|
|
3181
|
-
* @return {?}
|
|
3182
|
-
*/
|
|
3183
|
-
function (error) {
|
|
3184
|
-
/** @type {?} */
|
|
1729
|
+
},
|
|
1730
|
+
error: function (error) {
|
|
3185
1731
|
var opIndex = _this._inProgress.indexOf(operation);
|
|
3186
1732
|
_this._inProgress.splice(opIndex, 1);
|
|
3187
1733
|
_this._errors++;
|
|
3188
1734
|
operation.ready$.error(error);
|
|
3189
1735
|
if (_this.empty) {
|
|
3190
|
-
_this._state = QueueState.Idle;
|
|
1736
|
+
_this._state = exports.QueueState.Idle;
|
|
3191
1737
|
_this._done.error(error);
|
|
3192
1738
|
}
|
|
3193
|
-
}
|
|
3194
|
-
complete: (
|
|
3195
|
-
* @return {?}
|
|
3196
|
-
*/
|
|
3197
|
-
function () {
|
|
3198
|
-
/** @type {?} */
|
|
1739
|
+
},
|
|
1740
|
+
complete: function () {
|
|
3199
1741
|
var opIndex = _this._inProgress.indexOf(operation);
|
|
3200
1742
|
_this._inProgress.splice(opIndex, 1);
|
|
3201
1743
|
_this._completed++;
|
|
3202
1744
|
operation.ready$.complete();
|
|
3203
1745
|
if (_this.empty) {
|
|
3204
|
-
_this._state = QueueState.Idle;
|
|
1746
|
+
_this._state = exports.QueueState.Idle;
|
|
3205
1747
|
_this._done.next();
|
|
3206
1748
|
}
|
|
3207
1749
|
else {
|
|
3208
1750
|
if (_this._queue.length) {
|
|
3209
|
-
/** @type {?} */
|
|
3210
1751
|
var queueItem = _this._queue.shift();
|
|
3211
1752
|
_this._processOperation(queueItem);
|
|
3212
1753
|
}
|
|
3213
1754
|
}
|
|
3214
|
-
}
|
|
1755
|
+
}
|
|
3215
1756
|
});
|
|
3216
1757
|
};
|
|
3217
1758
|
return Queue;
|
|
3218
|
-
}());
|
|
3219
|
-
if (false) {
|
|
3220
|
-
/**
|
|
3221
|
-
* @type {?}
|
|
3222
|
-
* @private
|
|
3223
|
-
*/
|
|
3224
|
-
Queue.prototype._done;
|
|
3225
|
-
/**
|
|
3226
|
-
* @type {?}
|
|
3227
|
-
* @private
|
|
3228
|
-
*/
|
|
3229
|
-
Queue.prototype._queue;
|
|
3230
|
-
/**
|
|
3231
|
-
* @type {?}
|
|
3232
|
-
* @private
|
|
3233
|
-
*/
|
|
3234
|
-
Queue.prototype._inProgress;
|
|
3235
|
-
/**
|
|
3236
|
-
* @type {?}
|
|
3237
|
-
* @private
|
|
3238
|
-
*/
|
|
3239
|
-
Queue.prototype._total;
|
|
3240
|
-
/**
|
|
3241
|
-
* @type {?}
|
|
3242
|
-
* @private
|
|
3243
|
-
*/
|
|
3244
|
-
Queue.prototype._completed;
|
|
3245
|
-
/**
|
|
3246
|
-
* @type {?}
|
|
3247
|
-
* @private
|
|
3248
|
-
*/
|
|
3249
|
-
Queue.prototype._errors;
|
|
3250
|
-
/**
|
|
3251
|
-
* @type {?}
|
|
3252
|
-
* @private
|
|
3253
|
-
*/
|
|
3254
|
-
Queue.prototype._state;
|
|
3255
|
-
/**
|
|
3256
|
-
* @type {?}
|
|
3257
|
-
* @private
|
|
3258
|
-
*/
|
|
3259
|
-
Queue.prototype._destroy$;
|
|
3260
|
-
/**
|
|
3261
|
-
* @type {?}
|
|
3262
|
-
* @private
|
|
3263
|
-
*/
|
|
3264
|
-
Queue.prototype._limit;
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
-
/**
|
|
3268
|
-
* @fileoverview added by tsickle
|
|
3269
|
-
* Generated from: libs/util/queue/index.ts
|
|
3270
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3271
|
-
*/
|
|
1759
|
+
}());
|
|
3272
1760
|
|
|
3273
|
-
/**
|
|
3274
|
-
* @fileoverview added by tsickle
|
|
3275
|
-
* Generated from: libs/util/remove-query-params/remove-query-params.ts
|
|
3276
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3277
|
-
*/
|
|
3278
|
-
/**
|
|
3279
|
-
* @param {?} path
|
|
3280
|
-
* @return {?}
|
|
3281
|
-
*/
|
|
3282
1761
|
function removeQueryParams(path) {
|
|
3283
1762
|
return path.split('?')[0];
|
|
3284
1763
|
}
|
|
3285
1764
|
|
|
3286
|
-
/**
|
|
3287
|
-
* @fileoverview added by tsickle
|
|
3288
|
-
* Generated from: libs/util/remove-query-params/index.ts
|
|
3289
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3290
|
-
*/
|
|
3291
|
-
|
|
3292
|
-
/**
|
|
3293
|
-
* @fileoverview added by tsickle
|
|
3294
|
-
* Generated from: libs/util/get-normalized-path/get-normalized-path.ts
|
|
3295
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3296
|
-
*/
|
|
3297
|
-
/**
|
|
3298
|
-
* @param {?} locationSrv
|
|
3299
|
-
* @return {?}
|
|
3300
|
-
*/
|
|
3301
1765
|
function getNormalizedPath(locationSrv) {
|
|
3302
|
-
/** @type {?} */
|
|
3303
1766
|
var path = locationSrv.prepareExternalUrl(locationSrv.path());
|
|
3304
1767
|
return removeQueryParams(path);
|
|
3305
1768
|
}
|
|
3306
1769
|
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
/**
|
|
3314
|
-
* @fileoverview added by tsickle
|
|
3315
|
-
* Generated from: libs/util/index.ts
|
|
3316
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3317
|
-
*/
|
|
3318
|
-
|
|
3319
|
-
/**
|
|
3320
|
-
* @fileoverview added by tsickle
|
|
3321
|
-
* Generated from: libs/format/number/index.ts
|
|
3322
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3323
|
-
*/
|
|
1770
|
+
function round(num, decimalPlaces) {
|
|
1771
|
+
if (decimalPlaces === void 0) { decimalPlaces = 0; }
|
|
1772
|
+
var p = Math.pow(10, decimalPlaces);
|
|
1773
|
+
return Math.round(num * p) / p;
|
|
1774
|
+
}
|
|
3324
1775
|
|
|
3325
|
-
/**
|
|
3326
|
-
* @fileoverview added by tsickle
|
|
3327
|
-
* Generated from: libs/format/acronym/acronym.ts
|
|
3328
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3329
|
-
*/
|
|
3330
|
-
/**
|
|
3331
|
-
* @param {?} str
|
|
3332
|
-
* @param {?=} length
|
|
3333
|
-
* @return {?}
|
|
3334
|
-
*/
|
|
3335
1776
|
function acronym(str, length) {
|
|
3336
1777
|
if (length === void 0) { length = 2; }
|
|
3337
|
-
/** @type {?} */
|
|
3338
1778
|
var splittedString = str
|
|
3339
1779
|
.replace(/[^a-zA-Z0-9]+/g, ' ')
|
|
3340
1780
|
.split(' ');
|
|
3341
|
-
/** @type {?} */
|
|
3342
1781
|
var result = '';
|
|
3343
1782
|
for (var i = 0; i < length; i++) {
|
|
3344
1783
|
if (!splittedString[i]) {
|
|
@@ -3357,142 +1796,88 @@
|
|
|
3357
1796
|
return result;
|
|
3358
1797
|
}
|
|
3359
1798
|
|
|
3360
|
-
/**
|
|
3361
|
-
* @fileoverview added by tsickle
|
|
3362
|
-
* Generated from: libs/format/acronym/index.ts
|
|
3363
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3364
|
-
*/
|
|
3365
|
-
|
|
3366
|
-
/**
|
|
3367
|
-
* @fileoverview added by tsickle
|
|
3368
|
-
* Generated from: libs/format/currency/index.ts
|
|
3369
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3370
|
-
*/
|
|
3371
|
-
|
|
3372
|
-
/**
|
|
3373
|
-
* @fileoverview added by tsickle
|
|
3374
|
-
* Generated from: libs/format/truncate/index.ts
|
|
3375
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3376
|
-
*/
|
|
3377
|
-
|
|
3378
|
-
/**
|
|
3379
|
-
* @fileoverview added by tsickle
|
|
3380
|
-
* Generated from: libs/format/bytes/index.ts
|
|
3381
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3382
|
-
*/
|
|
3383
|
-
|
|
3384
|
-
/**
|
|
3385
|
-
* @fileoverview added by tsickle
|
|
3386
|
-
* Generated from: libs/format/index.ts
|
|
3387
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3388
|
-
*/
|
|
3389
|
-
|
|
3390
|
-
/**
|
|
3391
|
-
* @fileoverview added by tsickle
|
|
3392
|
-
* Generated from: libs/rxjs/delayedRetry.ts
|
|
3393
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3394
|
-
*/
|
|
3395
|
-
/**
|
|
3396
|
-
* @param {?} delayMs
|
|
3397
|
-
* @param {?=} maxRetry
|
|
3398
|
-
* @param {?=} message
|
|
3399
|
-
* @return {?}
|
|
3400
|
-
*/
|
|
3401
1799
|
function delayedRetry(delayMs, maxRetry, message) {
|
|
3402
1800
|
if (maxRetry === void 0) { maxRetry = 5; }
|
|
3403
|
-
/** @type {?} */
|
|
3404
1801
|
var retries = 0;
|
|
3405
|
-
return (
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
* @param {?} errors
|
|
3412
|
-
* @return {?}
|
|
3413
|
-
*/
|
|
3414
|
-
function (errors) {
|
|
3415
|
-
return errors.pipe(operators.tap((/**
|
|
3416
|
-
* @return {?}
|
|
3417
|
-
*/
|
|
3418
|
-
function () {
|
|
3419
|
-
retries++;
|
|
3420
|
-
if (retries <= maxRetry) {
|
|
3421
|
-
console.info("Failed to load Resource. Retry in " + delayMs / 1000 + " sec. " + retries + "/" + maxRetry + " times...");
|
|
3422
|
-
}
|
|
3423
|
-
})), operators.concatMap((/**
|
|
3424
|
-
* @param {?} error
|
|
3425
|
-
* @return {?}
|
|
3426
|
-
*/
|
|
3427
|
-
function (error) {
|
|
3428
|
-
return rxjs.iif((/**
|
|
3429
|
-
* @return {?}
|
|
3430
|
-
*/
|
|
3431
|
-
function () { return retries > maxRetry; }), rxjs.throwError(getErrorMessage(maxRetry, message)), rxjs.timer(delayMs));
|
|
3432
|
-
})));
|
|
3433
|
-
})));
|
|
3434
|
-
});
|
|
1802
|
+
return function (src) { return src.pipe(operators.retryWhen(function (errors) { return errors.pipe(operators.tap(function () {
|
|
1803
|
+
retries++;
|
|
1804
|
+
if (retries <= maxRetry) {
|
|
1805
|
+
console.info("Failed to load Resource. Retry in " + delayMs / 1000 + " sec. " + retries + "/" + maxRetry + " times...");
|
|
1806
|
+
}
|
|
1807
|
+
}), operators.concatMap(function (error) { return rxjs.iif(function () { return retries > maxRetry; }, rxjs.throwError(getErrorMessage(maxRetry, message)), rxjs.timer(delayMs)); })); })); };
|
|
3435
1808
|
}
|
|
3436
|
-
|
|
3437
|
-
var getErrorMessage = (/**
|
|
3438
|
-
* @param {?} maxRetry
|
|
3439
|
-
* @param {?} defaultMessage
|
|
3440
|
-
* @return {?}
|
|
3441
|
-
*/
|
|
3442
|
-
function (maxRetry, defaultMessage) {
|
|
1809
|
+
var getErrorMessage = function (maxRetry, defaultMessage) {
|
|
3443
1810
|
if (!defaultMessage) {
|
|
3444
1811
|
return "Failed to load Resource for " + maxRetry + " times. Giving up.";
|
|
3445
1812
|
}
|
|
3446
1813
|
else {
|
|
3447
1814
|
return defaultMessage;
|
|
3448
1815
|
}
|
|
3449
|
-
}
|
|
3450
|
-
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
/*
|
|
1819
|
+
* Public API Surface of fs-menu
|
|
1820
|
+
*/
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* Generated bundle index. Do not edit.
|
|
1824
|
+
*/
|
|
3451
1825
|
|
|
3452
1826
|
exports.FsArray = FsArray;
|
|
1827
|
+
exports.FsAutofocusDirective = FsAutofocusDirective;
|
|
3453
1828
|
exports.FsCommonModule = FsCommonModule;
|
|
1829
|
+
exports.FsFormatBytesPipe = FsFormatBytesPipe;
|
|
1830
|
+
exports.FsFormatCurrencyPipe = FsFormatCurrencyPipe;
|
|
1831
|
+
exports.FsFormatNumberPipe = FsFormatNumberPipe;
|
|
1832
|
+
exports.FsFormatOrdinalNumberPipe = FsFormatOrdinalNumberPipe;
|
|
1833
|
+
exports.FsFormatTruncatePipe = FsFormatTruncatePipe;
|
|
3454
1834
|
exports.FsMath = FsMath;
|
|
1835
|
+
exports.FsPreventDefaultDirective = FsPreventDefaultDirective;
|
|
1836
|
+
exports.FsStopPropagationDirective = FsStopPropagationDirective;
|
|
3455
1837
|
exports.FsUtil = FsUtil;
|
|
1838
|
+
exports.FsUtilGuidPipe = FsUtilGuidPipe;
|
|
1839
|
+
exports.FsUtilIsEmptyPipe = FsUtilIsEmptyPipe;
|
|
1840
|
+
exports.FsUtilIsNotEmptyPipe = FsUtilIsNotEmptyPipe;
|
|
1841
|
+
exports.FsUtilStringifyPipe = FsUtilStringifyPipe;
|
|
3456
1842
|
exports.FsValidate = FsValidate;
|
|
3457
|
-
exports.KEY_0 = KEY_0
|
|
3458
|
-
exports.KEY_1 = KEY_1
|
|
3459
|
-
exports.KEY_2 = KEY_2
|
|
3460
|
-
exports.KEY_3 = KEY_3
|
|
3461
|
-
exports.KEY_4 = KEY_4
|
|
3462
|
-
exports.KEY_5 = KEY_5
|
|
3463
|
-
exports.KEY_6 = KEY_6
|
|
3464
|
-
exports.KEY_7 = KEY_7
|
|
3465
|
-
exports.KEY_8 = KEY_8
|
|
3466
|
-
exports.KEY_9 = KEY_9
|
|
3467
|
-
exports.KEY_ALT = KEY_ALT
|
|
3468
|
-
exports.KEY_BACKSPACE = KEY_BACKSPACE
|
|
3469
|
-
exports.KEY_CANCEL = KEY_CANCEL
|
|
3470
|
-
exports.KEY_CAPS_LOCK = KEY_CAPS_LOCK
|
|
3471
|
-
exports.KEY_CLEAR = KEY_CLEAR
|
|
3472
|
-
exports.KEY_CONTROL = KEY_CONTROL
|
|
3473
|
-
exports.KEY_DELETE = KEY_DELETE
|
|
3474
|
-
exports.KEY_DOWN = KEY_DOWN
|
|
3475
|
-
exports.KEY_END = KEY_END
|
|
3476
|
-
exports.KEY_ENTER = KEY_ENTER
|
|
3477
|
-
exports.KEY_EQUALS = KEY_EQUALS
|
|
3478
|
-
exports.KEY_ESCAPE = KEY_ESCAPE
|
|
3479
|
-
exports.KEY_HELP = KEY_HELP
|
|
3480
|
-
exports.KEY_HOME = KEY_HOME
|
|
3481
|
-
exports.KEY_INSERT = KEY_INSERT
|
|
3482
|
-
exports.KEY_LEFT = KEY_LEFT
|
|
3483
|
-
exports.KEY_PAGE_DOWN = KEY_PAGE_DOWN
|
|
3484
|
-
exports.KEY_PAGE_UP = KEY_PAGE_UP
|
|
3485
|
-
exports.KEY_PAUSE = KEY_PAUSE
|
|
3486
|
-
exports.KEY_PRINTSCREEN = KEY_PRINTSCREEN
|
|
3487
|
-
exports.KEY_RETURN = KEY_RETURN
|
|
3488
|
-
exports.KEY_RIGHT = KEY_RIGHT
|
|
3489
|
-
exports.KEY_SEMICOLON = KEY_SEMICOLON
|
|
3490
|
-
exports.KEY_SHIFT = KEY_SHIFT
|
|
3491
|
-
exports.KEY_SPACE = KEY_SPACE
|
|
3492
|
-
exports.KEY_TAB = KEY_TAB
|
|
3493
|
-
exports.KEY_UP = KEY_UP
|
|
1843
|
+
exports.KEY_0 = KEY_0;
|
|
1844
|
+
exports.KEY_1 = KEY_1;
|
|
1845
|
+
exports.KEY_2 = KEY_2;
|
|
1846
|
+
exports.KEY_3 = KEY_3;
|
|
1847
|
+
exports.KEY_4 = KEY_4;
|
|
1848
|
+
exports.KEY_5 = KEY_5;
|
|
1849
|
+
exports.KEY_6 = KEY_6;
|
|
1850
|
+
exports.KEY_7 = KEY_7;
|
|
1851
|
+
exports.KEY_8 = KEY_8;
|
|
1852
|
+
exports.KEY_9 = KEY_9;
|
|
1853
|
+
exports.KEY_ALT = KEY_ALT;
|
|
1854
|
+
exports.KEY_BACKSPACE = KEY_BACKSPACE;
|
|
1855
|
+
exports.KEY_CANCEL = KEY_CANCEL;
|
|
1856
|
+
exports.KEY_CAPS_LOCK = KEY_CAPS_LOCK;
|
|
1857
|
+
exports.KEY_CLEAR = KEY_CLEAR;
|
|
1858
|
+
exports.KEY_CONTROL = KEY_CONTROL;
|
|
1859
|
+
exports.KEY_DELETE = KEY_DELETE;
|
|
1860
|
+
exports.KEY_DOWN = KEY_DOWN;
|
|
1861
|
+
exports.KEY_END = KEY_END;
|
|
1862
|
+
exports.KEY_ENTER = KEY_ENTER;
|
|
1863
|
+
exports.KEY_EQUALS = KEY_EQUALS;
|
|
1864
|
+
exports.KEY_ESCAPE = KEY_ESCAPE;
|
|
1865
|
+
exports.KEY_HELP = KEY_HELP;
|
|
1866
|
+
exports.KEY_HOME = KEY_HOME;
|
|
1867
|
+
exports.KEY_INSERT = KEY_INSERT;
|
|
1868
|
+
exports.KEY_LEFT = KEY_LEFT;
|
|
1869
|
+
exports.KEY_PAGE_DOWN = KEY_PAGE_DOWN;
|
|
1870
|
+
exports.KEY_PAGE_UP = KEY_PAGE_UP;
|
|
1871
|
+
exports.KEY_PAUSE = KEY_PAUSE;
|
|
1872
|
+
exports.KEY_PRINTSCREEN = KEY_PRINTSCREEN;
|
|
1873
|
+
exports.KEY_RETURN = KEY_RETURN;
|
|
1874
|
+
exports.KEY_RIGHT = KEY_RIGHT;
|
|
1875
|
+
exports.KEY_SEMICOLON = KEY_SEMICOLON;
|
|
1876
|
+
exports.KEY_SHIFT = KEY_SHIFT;
|
|
1877
|
+
exports.KEY_SPACE = KEY_SPACE;
|
|
1878
|
+
exports.KEY_TAB = KEY_TAB;
|
|
1879
|
+
exports.KEY_UP = KEY_UP;
|
|
3494
1880
|
exports.Queue = Queue;
|
|
3495
|
-
exports.QueueState = QueueState;
|
|
3496
1881
|
exports.acronym = acronym;
|
|
3497
1882
|
exports.boolean = boolean;
|
|
3498
1883
|
exports.bytes = bytes;
|
|
@@ -3522,6 +1907,7 @@
|
|
|
3522
1907
|
exports.remove = remove;
|
|
3523
1908
|
exports.removeQueryParams = removeQueryParams;
|
|
3524
1909
|
exports.resolve = resolve;
|
|
1910
|
+
exports.round = round;
|
|
3525
1911
|
exports.rsort = rsort;
|
|
3526
1912
|
exports.sort = sort;
|
|
3527
1913
|
exports.stringify = stringify;
|
|
@@ -3530,20 +1916,8 @@
|
|
|
3530
1916
|
exports.url = url;
|
|
3531
1917
|
exports.uuid = uuid;
|
|
3532
1918
|
exports.value = value;
|
|
3533
|
-
exports.ɵa = FsStopPropagationDirective;
|
|
3534
|
-
exports.ɵb = FsPreventDefaultDirective;
|
|
3535
|
-
exports.ɵc = FsAutofocusDirective;
|
|
3536
|
-
exports.ɵd = FsUtilStringifyPipe;
|
|
3537
|
-
exports.ɵe = FsUtilGuidPipe;
|
|
3538
|
-
exports.ɵf = FsUtilIsEmptyPipe;
|
|
3539
|
-
exports.ɵg = FsUtilIsNotEmptyPipe;
|
|
3540
|
-
exports.ɵh = FsFormatNumberPipe;
|
|
3541
|
-
exports.ɵi = FsFormatCurrencyPipe;
|
|
3542
|
-
exports.ɵj = FsFormatTruncatePipe;
|
|
3543
|
-
exports.ɵk = FsFormatBytesPipe;
|
|
3544
|
-
exports.ɵl = FsFormatOrdinalNumberPipe;
|
|
3545
1919
|
|
|
3546
1920
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3547
1921
|
|
|
3548
|
-
}))
|
|
1922
|
+
}));
|
|
3549
1923
|
//# sourceMappingURL=firestitch-common.umd.js.map
|