@firestitch/common 8.0.12 → 12.1.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 +838 -2453
- 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 +5 -21
- 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 +1 -14
- 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/rxjs/keyboard-shortcut.js +18 -0
- package/esm2015/libs/util/boolean/boolean.js +1 -10
- 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 +15 -20
- 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 +1 -11
- package/esm2015/libs/util/isNumeric/index.js +2 -7
- package/esm2015/libs/util/isNumeric/isNumeric.js +1 -11
- 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 +1 -10
- 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/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 +12 -7
- package/fesm2015/firestitch-common.js +435 -1809
- package/fesm2015/firestitch-common.js.map +1 -1
- package/firestitch-common.d.ts +1 -9
- package/libs/array/index/index.d.ts +1 -1
- package/libs/rxjs/keyboard-shortcut.d.ts +2 -0
- package/libs/util/queue/queue.d.ts +9 -9
- package/package.json +7 -11
- package/public_api.d.ts +10 -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 -24
- 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 -3284
- 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
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('lodash-es'), require('rxjs'), require('rxjs/operators')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@firestitch/common', ['exports', '@angular/core', '@angular/common', 'lodash-es', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.common = {}), global.ng.core, global.ng.common, global.lodashEs, global.rxjs, global.rxjs.operators));
|
|
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 };
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.common = {}), global.ng.core, global.ng.common, global.lodashEs, global.rxjs, global.rxjs.operators));
|
|
5
|
+
})(this, (function (exports, i0, common, lodashEs, 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,29 +571,13 @@
|
|
|
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 ||
|
|
@@ -1458,214 +590,123 @@
|
|
|
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
|
-
/** @type {?} */
|
|
1613
683
|
var digitsInfo = lodashEs.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,202 +751,435 @@
|
|
|
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
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
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 __());
|
|
1891
861
|
}
|
|
1892
|
-
var
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
}
|
|
1902
|
-
/**
|
|
1903
|
-
* @param {?} value
|
|
1904
|
-
* @return {?}
|
|
1905
|
-
*/
|
|
1906
|
-
FsFormatOrdinalNumberPipe.prototype.transform = /**
|
|
1907
|
-
* @param {?} value
|
|
1908
|
-
* @return {?}
|
|
1909
|
-
*/
|
|
1910
|
-
function (value) {
|
|
1911
|
-
return ordinalNumber(value);
|
|
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;
|
|
1912
871
|
};
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
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 };
|
|
1928
989
|
}
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
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")
|
|
1936
1010
|
return {
|
|
1937
|
-
|
|
1938
|
-
|
|
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;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
function ordinalNumber(value) {
|
|
1151
|
+
value = String(value);
|
|
1152
|
+
var index = value.match(templateObject_1 || (templateObject_1 = __makeTemplateObject(["1?.$"], ["1?.$"])));
|
|
1153
|
+
var endings = [, 'st', 'nd', 'rd'];
|
|
1154
|
+
var ending = endings[index] || 'th';
|
|
1155
|
+
return value + ending;
|
|
1156
|
+
}
|
|
1157
|
+
var templateObject_1;
|
|
1158
|
+
|
|
1159
|
+
var FsFormatOrdinalNumberPipe = /** @class */ (function () {
|
|
1160
|
+
function FsFormatOrdinalNumberPipe() {
|
|
1161
|
+
}
|
|
1162
|
+
FsFormatOrdinalNumberPipe.prototype.transform = function (value) {
|
|
1163
|
+
return ordinalNumber(value);
|
|
1164
|
+
};
|
|
1165
|
+
return FsFormatOrdinalNumberPipe;
|
|
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
|
+
}] });
|
|
1175
|
+
|
|
1176
|
+
var FsCommonModule = /** @class */ (function () {
|
|
1177
|
+
function FsCommonModule() {
|
|
1178
|
+
}
|
|
1179
|
+
FsCommonModule.forRoot = function () {
|
|
1180
|
+
return {
|
|
1181
|
+
ngModule: FsCommonModule,
|
|
1182
|
+
providers: [
|
|
1939
1183
|
FsArray,
|
|
1940
1184
|
FsMath,
|
|
1941
1185
|
FsUtil,
|
|
@@ -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,57 +1320,21 @@
|
|
|
2161
1320
|
return false;
|
|
2162
1321
|
}
|
|
2163
1322
|
|
|
2164
|
-
|
|
2165
|
-
|
|
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 {?} property
|
|
2178
|
-
* @return {?}
|
|
2179
|
-
*/
|
|
2180
|
-
function index(array, property) {
|
|
2181
|
-
/** @type {?} */
|
|
1323
|
+
function index(array, name, value) {
|
|
1324
|
+
if (value === void 0) { value = null; }
|
|
2182
1325
|
var list = {};
|
|
2183
|
-
array.forEach((
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
* @return {?}
|
|
2187
|
-
*/
|
|
2188
|
-
function (item, idx) {
|
|
2189
|
-
list[item[property]] = item;
|
|
2190
|
-
}));
|
|
1326
|
+
array.forEach(function (item) {
|
|
1327
|
+
list[item[name]] = value ? item[value] : item;
|
|
1328
|
+
});
|
|
2191
1329
|
return list;
|
|
2192
1330
|
}
|
|
2193
1331
|
|
|
2194
|
-
/**
|
|
2195
|
-
* @fileoverview added by tsickle
|
|
2196
|
-
* Generated from: libs/array/indexOf/indexOf.ts
|
|
2197
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2198
|
-
*/
|
|
2199
|
-
/**
|
|
2200
|
-
* @param {?} array
|
|
2201
|
-
* @param {?} query
|
|
2202
|
-
* @return {?}
|
|
2203
|
-
*/
|
|
2204
1332
|
function indexOf(array, query) {
|
|
2205
1333
|
if (typeof query !== 'function') {
|
|
2206
|
-
/** @type {?} */
|
|
2207
1334
|
var queryObj_1 = query;
|
|
2208
|
-
query = (
|
|
2209
|
-
* @param {?} item
|
|
2210
|
-
* @return {?}
|
|
2211
|
-
*/
|
|
2212
|
-
function (item) {
|
|
1335
|
+
query = function (item) {
|
|
2213
1336
|
return compare(queryObj_1, item);
|
|
2214
|
-
}
|
|
1337
|
+
};
|
|
2215
1338
|
}
|
|
2216
1339
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
2217
1340
|
if (query(array[i])) {
|
|
@@ -2221,167 +1344,54 @@
|
|
|
2221
1344
|
return -1;
|
|
2222
1345
|
}
|
|
2223
1346
|
|
|
2224
|
-
/**
|
|
2225
|
-
* @fileoverview added by tsickle
|
|
2226
|
-
* Generated from: libs/array/indexOf/index.ts
|
|
2227
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2228
|
-
*/
|
|
2229
|
-
|
|
2230
|
-
/**
|
|
2231
|
-
* @fileoverview added by tsickle
|
|
2232
|
-
* Generated from: libs/array/keyExists/keyExists.ts
|
|
2233
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2234
|
-
*/
|
|
2235
|
-
/**
|
|
2236
|
-
* @param {?} array
|
|
2237
|
-
* @param {?} key
|
|
2238
|
-
* @return {?}
|
|
2239
|
-
*/
|
|
2240
1347
|
function keyExists(array, key) {
|
|
2241
1348
|
return array.hasOwnProperty(key);
|
|
2242
1349
|
}
|
|
2243
1350
|
|
|
2244
|
-
/**
|
|
2245
|
-
* @fileoverview added by tsickle
|
|
2246
|
-
* Generated from: libs/array/keyExists/index.ts
|
|
2247
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2248
|
-
*/
|
|
2249
|
-
|
|
2250
|
-
/**
|
|
2251
|
-
* @fileoverview added by tsickle
|
|
2252
|
-
* Generated from: libs/array/ksort/ksort.ts
|
|
2253
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2254
|
-
*/
|
|
2255
|
-
/**
|
|
2256
|
-
* @param {?} unordered
|
|
2257
|
-
* @return {?}
|
|
2258
|
-
*/
|
|
2259
1351
|
function ksort(unordered) {
|
|
2260
|
-
Object.keys(unordered).sort().forEach((
|
|
2261
|
-
* @param {?} key
|
|
2262
|
-
* @return {?}
|
|
2263
|
-
*/
|
|
2264
|
-
function (key) {
|
|
2265
|
-
/** @type {?} */
|
|
1352
|
+
Object.keys(unordered).sort().forEach(function (key) {
|
|
2266
1353
|
var value = unordered[key];
|
|
2267
1354
|
delete unordered[key];
|
|
2268
1355
|
unordered[key] = value;
|
|
2269
|
-
})
|
|
1356
|
+
});
|
|
2270
1357
|
}
|
|
2271
1358
|
|
|
2272
|
-
/**
|
|
2273
|
-
* @fileoverview added by tsickle
|
|
2274
|
-
* Generated from: libs/array/ksort/index.ts
|
|
2275
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2276
|
-
*/
|
|
2277
|
-
|
|
2278
|
-
/**
|
|
2279
|
-
* @fileoverview added by tsickle
|
|
2280
|
-
* Generated from: libs/array/list/list.ts
|
|
2281
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2282
|
-
*/
|
|
2283
|
-
/**
|
|
2284
|
-
* @param {?} array
|
|
2285
|
-
* @param {?} property
|
|
2286
|
-
* @param {?=} index
|
|
2287
|
-
* @return {?}
|
|
2288
|
-
*/
|
|
2289
1359
|
function list(array, property, index) {
|
|
2290
1360
|
if (index === void 0) { index = null; }
|
|
2291
|
-
/** @type {?} */
|
|
2292
1361
|
var resultList = index ? {} : [];
|
|
2293
|
-
array.forEach((
|
|
2294
|
-
* @param {?} item
|
|
2295
|
-
* @param {?} idx
|
|
2296
|
-
* @return {?}
|
|
2297
|
-
*/
|
|
2298
|
-
function (item, idx) {
|
|
1362
|
+
array.forEach(function (item, idx) {
|
|
2299
1363
|
if (index) {
|
|
2300
1364
|
resultList[item[index]] = item[property];
|
|
2301
1365
|
}
|
|
2302
1366
|
else {
|
|
2303
1367
|
resultList.push(item[property]);
|
|
2304
1368
|
}
|
|
2305
|
-
})
|
|
1369
|
+
});
|
|
2306
1370
|
return resultList;
|
|
2307
1371
|
}
|
|
2308
1372
|
|
|
2309
|
-
/**
|
|
2310
|
-
* @fileoverview added by tsickle
|
|
2311
|
-
* Generated from: libs/array/list/index.ts
|
|
2312
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2313
|
-
*/
|
|
2314
|
-
|
|
2315
|
-
/**
|
|
2316
|
-
* @fileoverview added by tsickle
|
|
2317
|
-
* Generated from: libs/array/nameValue/nameValue.ts
|
|
2318
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2319
|
-
*/
|
|
2320
|
-
/**
|
|
2321
|
-
* @param {?} array
|
|
2322
|
-
* @param {?} name
|
|
2323
|
-
* @param {?} value
|
|
2324
|
-
* @return {?}
|
|
2325
|
-
*/
|
|
2326
1373
|
function nameValue(array, name, value) {
|
|
2327
|
-
/** @type {?} */
|
|
2328
1374
|
var list = [];
|
|
2329
1375
|
if (name || value) {
|
|
2330
|
-
|
|
2331
|
-
var nameFn_1 = typeof name === 'function' ? name : (/**
|
|
2332
|
-
* @param {?} item
|
|
2333
|
-
* @return {?}
|
|
2334
|
-
*/
|
|
2335
|
-
function (item) {
|
|
1376
|
+
var nameFn_1 = typeof name === 'function' ? name : function (item) {
|
|
2336
1377
|
return item[name];
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
var valueFn_1 = typeof value === 'function' ? value : (/**
|
|
2340
|
-
* @param {?} item
|
|
2341
|
-
* @return {?}
|
|
2342
|
-
*/
|
|
2343
|
-
function (item) {
|
|
1378
|
+
};
|
|
1379
|
+
var valueFn_1 = typeof value === 'function' ? value : function (item) {
|
|
2344
1380
|
return item[value];
|
|
2345
|
-
}
|
|
2346
|
-
array.forEach((
|
|
2347
|
-
* @param {?} item
|
|
2348
|
-
* @return {?}
|
|
2349
|
-
*/
|
|
2350
|
-
function (item) {
|
|
1381
|
+
};
|
|
1382
|
+
array.forEach(function (item) {
|
|
2351
1383
|
list.push({ name: nameFn_1(item), value: valueFn_1(item) });
|
|
2352
|
-
})
|
|
1384
|
+
});
|
|
2353
1385
|
}
|
|
2354
1386
|
else {
|
|
2355
|
-
array.forEach((
|
|
2356
|
-
* @param {?} n
|
|
2357
|
-
* @param {?} v
|
|
2358
|
-
* @return {?}
|
|
2359
|
-
*/
|
|
2360
|
-
function (n, v) {
|
|
1387
|
+
array.forEach(function (n, v) {
|
|
2361
1388
|
list.push({ name: n, value: v });
|
|
2362
|
-
})
|
|
1389
|
+
});
|
|
2363
1390
|
}
|
|
2364
1391
|
return list;
|
|
2365
1392
|
}
|
|
2366
1393
|
|
|
2367
|
-
/**
|
|
2368
|
-
* @fileoverview added by tsickle
|
|
2369
|
-
* Generated from: libs/array/nameValue/index.ts
|
|
2370
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2371
|
-
*/
|
|
2372
|
-
|
|
2373
|
-
/**
|
|
2374
|
-
* @fileoverview added by tsickle
|
|
2375
|
-
* Generated from: libs/array/remove/remove.ts
|
|
2376
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2377
|
-
*/
|
|
2378
|
-
/**
|
|
2379
|
-
* @param {?} array
|
|
2380
|
-
* @param {?} query
|
|
2381
|
-
* @return {?}
|
|
2382
|
-
*/
|
|
2383
1394
|
function remove(array, query) {
|
|
2384
|
-
/** @type {?} */
|
|
2385
1395
|
var idx = indexOf(array, query);
|
|
2386
1396
|
if (idx >= 0) {
|
|
2387
1397
|
return array.splice(idx, 1);
|
|
@@ -2389,34 +1399,11 @@
|
|
|
2389
1399
|
return idx;
|
|
2390
1400
|
}
|
|
2391
1401
|
|
|
2392
|
-
/**
|
|
2393
|
-
* @fileoverview added by tsickle
|
|
2394
|
-
* Generated from: libs/array/remove/index.ts
|
|
2395
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2396
|
-
*/
|
|
2397
|
-
|
|
2398
|
-
/**
|
|
2399
|
-
* @fileoverview added by tsickle
|
|
2400
|
-
* Generated from: libs/array/sort/sort.ts
|
|
2401
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2402
|
-
*/
|
|
2403
|
-
/**
|
|
2404
|
-
* @param {?} array
|
|
2405
|
-
* @param {?} query
|
|
2406
|
-
* @param {?=} reverse
|
|
2407
|
-
* @return {?}
|
|
2408
|
-
*/
|
|
2409
1402
|
function sort(array, query, reverse) {
|
|
2410
1403
|
if (reverse === void 0) { reverse = false; }
|
|
2411
1404
|
if (typeof query !== 'function') {
|
|
2412
|
-
/** @type {?} */
|
|
2413
1405
|
var queryStr_1 = query;
|
|
2414
|
-
query = (
|
|
2415
|
-
* @param {?} a
|
|
2416
|
-
* @param {?} b
|
|
2417
|
-
* @return {?}
|
|
2418
|
-
*/
|
|
2419
|
-
function (a, b) {
|
|
1406
|
+
query = function (a, b) {
|
|
2420
1407
|
if (reverse) {
|
|
2421
1408
|
if (a[queryStr_1] < b[queryStr_1]) {
|
|
2422
1409
|
return 1;
|
|
@@ -2434,232 +1421,80 @@
|
|
|
2434
1421
|
}
|
|
2435
1422
|
}
|
|
2436
1423
|
return 0;
|
|
2437
|
-
}
|
|
1424
|
+
};
|
|
2438
1425
|
}
|
|
2439
1426
|
array.sort(query);
|
|
2440
1427
|
return array;
|
|
2441
1428
|
}
|
|
2442
1429
|
|
|
2443
|
-
/**
|
|
2444
|
-
* @fileoverview added by tsickle
|
|
2445
|
-
* Generated from: libs/array/sort/index.ts
|
|
2446
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2447
|
-
*/
|
|
2448
|
-
|
|
2449
|
-
/**
|
|
2450
|
-
* @fileoverview added by tsickle
|
|
2451
|
-
* Generated from: libs/array/rsort/rsort.ts
|
|
2452
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2453
|
-
*/
|
|
2454
|
-
/**
|
|
2455
|
-
* @param {?} array
|
|
2456
|
-
* @param {?} query
|
|
2457
|
-
* @return {?}
|
|
2458
|
-
*/
|
|
2459
1430
|
function rsort(array, query) {
|
|
2460
1431
|
return sort(array, query, true);
|
|
2461
1432
|
}
|
|
2462
1433
|
|
|
2463
|
-
/**
|
|
2464
|
-
* @fileoverview added by tsickle
|
|
2465
|
-
* Generated from: libs/array/rsort/index.ts
|
|
2466
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2467
|
-
*/
|
|
2468
|
-
|
|
2469
|
-
/**
|
|
2470
|
-
* @fileoverview added by tsickle
|
|
2471
|
-
* Generated from: libs/array/find/find.ts
|
|
2472
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2473
|
-
*/
|
|
2474
|
-
/**
|
|
2475
|
-
* @param {?} array
|
|
2476
|
-
* @param {?} query
|
|
2477
|
-
* @return {?}
|
|
2478
|
-
*/
|
|
2479
1434
|
function find(array, query) {
|
|
2480
|
-
/** @type {?} */
|
|
2481
1435
|
var data = filter(array, query);
|
|
2482
1436
|
return data.length ? data[0] : null;
|
|
2483
1437
|
}
|
|
2484
1438
|
|
|
2485
|
-
/**
|
|
2486
|
-
* @fileoverview added by tsickle
|
|
2487
|
-
* Generated from: libs/array/find/index.ts
|
|
2488
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2489
|
-
*/
|
|
2490
|
-
|
|
2491
|
-
/**
|
|
2492
|
-
* @fileoverview added by tsickle
|
|
2493
|
-
* Generated from: libs/array/index.ts
|
|
2494
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2495
|
-
*/
|
|
2496
|
-
|
|
2497
|
-
/**
|
|
2498
|
-
* @fileoverview added by tsickle
|
|
2499
|
-
* Generated from: libs/util/boolean/boolean.ts
|
|
2500
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2501
|
-
*/
|
|
2502
|
-
/**
|
|
2503
|
-
* @param {?} value
|
|
2504
|
-
* @return {?}
|
|
2505
|
-
*/
|
|
2506
1439
|
function boolean(value) {
|
|
2507
1440
|
return lodashEs.toString(value).toLowerCase() !== 'false' && !!value;
|
|
2508
1441
|
}
|
|
2509
1442
|
|
|
2510
|
-
/**
|
|
2511
|
-
* @fileoverview added by tsickle
|
|
2512
|
-
* Generated from: libs/util/boolean/index.ts
|
|
2513
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2514
|
-
*/
|
|
2515
|
-
|
|
2516
|
-
/**
|
|
2517
|
-
* @fileoverview added by tsickle
|
|
2518
|
-
* Generated from: libs/util/debounce/debounce.ts
|
|
2519
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2520
|
-
*/
|
|
2521
|
-
/**
|
|
2522
|
-
* @param {?} func
|
|
2523
|
-
* @param {?} wait
|
|
2524
|
-
* @param {?} immediate
|
|
2525
|
-
* @return {?}
|
|
2526
|
-
*/
|
|
2527
1443
|
function debounce(func, wait, immediate) {
|
|
2528
|
-
/** @type {?} */
|
|
2529
1444
|
var timeout;
|
|
2530
|
-
return (
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
function () {
|
|
2534
|
-
/** @type {?} */
|
|
2535
|
-
var context = this;
|
|
2536
|
-
/** @type {?} */
|
|
2537
|
-
var args = arguments;
|
|
2538
|
-
/** @type {?} */
|
|
2539
|
-
var later = (/**
|
|
2540
|
-
* @return {?}
|
|
2541
|
-
*/
|
|
2542
|
-
function () {
|
|
1445
|
+
return function () {
|
|
1446
|
+
var context = this, args = arguments;
|
|
1447
|
+
var later = function () {
|
|
2543
1448
|
timeout = null;
|
|
2544
1449
|
if (!immediate)
|
|
2545
1450
|
func.apply(context, args);
|
|
2546
|
-
}
|
|
2547
|
-
/** @type {?} */
|
|
1451
|
+
};
|
|
2548
1452
|
var callNow = immediate && !timeout;
|
|
2549
1453
|
clearTimeout(timeout);
|
|
2550
1454
|
timeout = setTimeout(later, wait);
|
|
2551
1455
|
if (callNow)
|
|
2552
1456
|
func.apply(context, args);
|
|
2553
|
-
}
|
|
1457
|
+
};
|
|
2554
1458
|
}
|
|
2555
1459
|
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
var
|
|
2575
|
-
|
|
2576
|
-
var
|
|
2577
|
-
|
|
2578
|
-
var
|
|
2579
|
-
|
|
2580
|
-
var
|
|
2581
|
-
|
|
2582
|
-
var
|
|
2583
|
-
|
|
2584
|
-
var
|
|
2585
|
-
|
|
2586
|
-
var
|
|
2587
|
-
|
|
2588
|
-
var
|
|
2589
|
-
|
|
2590
|
-
var
|
|
2591
|
-
|
|
2592
|
-
var
|
|
2593
|
-
/** @type {?} */
|
|
2594
|
-
var KEY_PAUSE$1 = 19;
|
|
2595
|
-
/** @type {?} */
|
|
2596
|
-
var KEY_CAPS_LOCK$1 = 20;
|
|
2597
|
-
/** @type {?} */
|
|
2598
|
-
var KEY_ESCAPE$1 = 27;
|
|
2599
|
-
/** @type {?} */
|
|
2600
|
-
var KEY_SPACE$1 = 32;
|
|
2601
|
-
/** @type {?} */
|
|
2602
|
-
var KEY_PAGE_UP$1 = 33;
|
|
2603
|
-
/** @type {?} */
|
|
2604
|
-
var KEY_PAGE_DOWN$1 = 34;
|
|
2605
|
-
/** @type {?} */
|
|
2606
|
-
var KEY_END$1 = 35;
|
|
2607
|
-
/** @type {?} */
|
|
2608
|
-
var KEY_HOME$1 = 36;
|
|
2609
|
-
/** @type {?} */
|
|
2610
|
-
var KEY_LEFT$1 = 37;
|
|
2611
|
-
/** @type {?} */
|
|
2612
|
-
var KEY_UP$1 = 38;
|
|
2613
|
-
/** @type {?} */
|
|
2614
|
-
var KEY_RIGHT$1 = 39;
|
|
2615
|
-
/** @type {?} */
|
|
2616
|
-
var KEY_DOWN$1 = 40;
|
|
2617
|
-
/** @type {?} */
|
|
2618
|
-
var KEY_PRINTSCREEN$1 = 44;
|
|
2619
|
-
/** @type {?} */
|
|
2620
|
-
var KEY_INSERT$1 = 45;
|
|
2621
|
-
/** @type {?} */
|
|
2622
|
-
var KEY_DELETE$1 = 46;
|
|
2623
|
-
/** @type {?} */
|
|
2624
|
-
var KEY_0$1 = 48;
|
|
2625
|
-
/** @type {?} */
|
|
2626
|
-
var KEY_1$1 = 49;
|
|
2627
|
-
/** @type {?} */
|
|
2628
|
-
var KEY_2$1 = 50;
|
|
2629
|
-
/** @type {?} */
|
|
2630
|
-
var KEY_3$1 = 51;
|
|
2631
|
-
/** @type {?} */
|
|
2632
|
-
var KEY_4$1 = 52;
|
|
2633
|
-
/** @type {?} */
|
|
2634
|
-
var KEY_5$1 = 53;
|
|
2635
|
-
/** @type {?} */
|
|
2636
|
-
var KEY_6$1 = 54;
|
|
2637
|
-
/** @type {?} */
|
|
2638
|
-
var KEY_7$1 = 55;
|
|
2639
|
-
/** @type {?} */
|
|
2640
|
-
var KEY_8$1 = 56;
|
|
2641
|
-
/** @type {?} */
|
|
2642
|
-
var KEY_9$1 = 57;
|
|
2643
|
-
/** @type {?} */
|
|
2644
|
-
var KEY_SEMICOLON$1 = 59;
|
|
2645
|
-
/** @type {?} */
|
|
2646
|
-
var KEY_EQUALS$1 = 61;
|
|
2647
|
-
|
|
2648
|
-
/**
|
|
2649
|
-
* @fileoverview added by tsickle
|
|
2650
|
-
* Generated from: libs/util/keys/index.ts
|
|
2651
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2652
|
-
*/
|
|
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;
|
|
2653
1497
|
|
|
2654
|
-
/**
|
|
2655
|
-
* @fileoverview added by tsickle
|
|
2656
|
-
* Generated from: libs/util/length/length.ts
|
|
2657
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2658
|
-
*/
|
|
2659
|
-
/**
|
|
2660
|
-
* @param {?} object
|
|
2661
|
-
* @return {?}
|
|
2662
|
-
*/
|
|
2663
1498
|
function length(object) {
|
|
2664
1499
|
if (lodashEs.isObject(object)) {
|
|
2665
1500
|
return Object.keys(object).length;
|
|
@@ -2670,87 +1505,21 @@
|
|
|
2670
1505
|
return 0;
|
|
2671
1506
|
}
|
|
2672
1507
|
|
|
2673
|
-
/**
|
|
2674
|
-
* @fileoverview added by tsickle
|
|
2675
|
-
* Generated from: libs/util/length/index.ts
|
|
2676
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2677
|
-
*/
|
|
2678
|
-
|
|
2679
|
-
/**
|
|
2680
|
-
* @fileoverview added by tsickle
|
|
2681
|
-
* Generated from: libs/util/resolve/resolve.ts
|
|
2682
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2683
|
-
*/
|
|
2684
|
-
/**
|
|
2685
|
-
* @param {?} promise
|
|
2686
|
-
* @param {?=} defaults
|
|
2687
|
-
* @return {?}
|
|
2688
|
-
*/
|
|
2689
1508
|
function resolve(promise, defaults) {
|
|
2690
1509
|
if (defaults === void 0) { defaults = []; }
|
|
2691
|
-
/** @type {?} */
|
|
2692
1510
|
var result = defaults;
|
|
2693
|
-
return new Promise((
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
*/
|
|
2697
|
-
function (resolve) {
|
|
2698
|
-
promise.then((/**
|
|
2699
|
-
* @param {?} data
|
|
2700
|
-
* @return {?}
|
|
2701
|
-
*/
|
|
2702
|
-
function (data) {
|
|
2703
|
-
Object.keys(data).forEach((/**
|
|
2704
|
-
* @param {?} key
|
|
2705
|
-
* @return {?}
|
|
2706
|
-
*/
|
|
2707
|
-
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]; });
|
|
2708
1514
|
resolve(result);
|
|
2709
|
-
})
|
|
2710
|
-
})
|
|
1515
|
+
});
|
|
1516
|
+
});
|
|
2711
1517
|
}
|
|
2712
1518
|
|
|
2713
|
-
/**
|
|
2714
|
-
* @fileoverview added by tsickle
|
|
2715
|
-
* Generated from: libs/util/resolve/index.ts
|
|
2716
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2717
|
-
*/
|
|
2718
|
-
|
|
2719
|
-
/**
|
|
2720
|
-
* @fileoverview added by tsickle
|
|
2721
|
-
* Generated from: libs/util/stringify/index.ts
|
|
2722
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2723
|
-
*/
|
|
2724
|
-
|
|
2725
|
-
/**
|
|
2726
|
-
* @fileoverview added by tsickle
|
|
2727
|
-
* Generated from: libs/util/uuid/uuid.ts
|
|
2728
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2729
|
-
*/
|
|
2730
|
-
/**
|
|
2731
|
-
* @return {?}
|
|
2732
|
-
*/
|
|
2733
1519
|
function uuid() {
|
|
2734
1520
|
return guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
|
|
2735
1521
|
}
|
|
2736
1522
|
|
|
2737
|
-
/**
|
|
2738
|
-
* @fileoverview added by tsickle
|
|
2739
|
-
* Generated from: libs/util/uuid/index.ts
|
|
2740
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2741
|
-
*/
|
|
2742
|
-
|
|
2743
|
-
/**
|
|
2744
|
-
* @fileoverview added by tsickle
|
|
2745
|
-
* Generated from: libs/util/value/value.ts
|
|
2746
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2747
|
-
*/
|
|
2748
|
-
/**
|
|
2749
|
-
* @param {?} object
|
|
2750
|
-
* @param {?} key
|
|
2751
|
-
* @param {?} def
|
|
2752
|
-
* @return {?}
|
|
2753
|
-
*/
|
|
2754
1523
|
function value(object, key, def) {
|
|
2755
1524
|
if (typeof object === 'object' || Array.isArray(object)) {
|
|
2756
1525
|
if (object.hasOwnProperty(key)) {
|
|
@@ -2760,22 +1529,6 @@
|
|
|
2760
1529
|
return def;
|
|
2761
1530
|
}
|
|
2762
1531
|
|
|
2763
|
-
/**
|
|
2764
|
-
* @fileoverview added by tsickle
|
|
2765
|
-
* Generated from: libs/util/value/index.ts
|
|
2766
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2767
|
-
*/
|
|
2768
|
-
|
|
2769
|
-
/**
|
|
2770
|
-
* @fileoverview added by tsickle
|
|
2771
|
-
* Generated from: libs/util/isClass/isClass.ts
|
|
2772
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2773
|
-
*/
|
|
2774
|
-
/**
|
|
2775
|
-
* @param {?} value
|
|
2776
|
-
* @param {?} cls
|
|
2777
|
-
* @return {?}
|
|
2778
|
-
*/
|
|
2779
1532
|
function isClass(value, cls) {
|
|
2780
1533
|
if (typeof value === 'object') {
|
|
2781
1534
|
if (typeof cls === 'string') {
|
|
@@ -2794,80 +1547,24 @@
|
|
|
2794
1547
|
return false;
|
|
2795
1548
|
}
|
|
2796
1549
|
|
|
2797
|
-
/**
|
|
2798
|
-
* @fileoverview added by tsickle
|
|
2799
|
-
* Generated from: libs/util/isClass/index.ts
|
|
2800
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2801
|
-
*/
|
|
2802
|
-
|
|
2803
|
-
/**
|
|
2804
|
-
* @fileoverview added by tsickle
|
|
2805
|
-
* Generated from: libs/util/isNumeric/isNumeric.ts
|
|
2806
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2807
|
-
*/
|
|
2808
|
-
/**
|
|
2809
|
-
* @param {?} value
|
|
2810
|
-
* @return {?}
|
|
2811
|
-
*/
|
|
2812
1550
|
function isNumeric(value) {
|
|
2813
|
-
/** @type {?} */
|
|
2814
1551
|
var str = lodashEs.toString(value);
|
|
2815
1552
|
return str.length && !!str.match(/^-?\d*\.?\d*$/);
|
|
2816
1553
|
}
|
|
2817
1554
|
|
|
2818
|
-
/**
|
|
2819
|
-
* @fileoverview added by tsickle
|
|
2820
|
-
* Generated from: libs/util/isNumeric/index.ts
|
|
2821
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2822
|
-
*/
|
|
2823
|
-
|
|
2824
|
-
/**
|
|
2825
|
-
* @fileoverview added by tsickle
|
|
2826
|
-
* Generated from: libs/util/isEmpty/index.ts
|
|
2827
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2828
|
-
*/
|
|
2829
|
-
|
|
2830
|
-
/**
|
|
2831
|
-
* @fileoverview added by tsickle
|
|
2832
|
-
* Generated from: libs/util/throttle/throttle.ts
|
|
2833
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2834
|
-
*/
|
|
2835
|
-
/**
|
|
2836
|
-
* @param {?} func
|
|
2837
|
-
* @param {?} wait
|
|
2838
|
-
* @return {?}
|
|
2839
|
-
*/
|
|
2840
1555
|
function throttle(func, wait) {
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
return (/**
|
|
2844
|
-
* @return {?}
|
|
2845
|
-
*/
|
|
2846
|
-
function () {
|
|
1556
|
+
var waiting = false; // Initially, we're not waiting
|
|
1557
|
+
return function () {
|
|
2847
1558
|
if (!waiting) { // If we're not waiting
|
|
2848
1559
|
func.apply(null, arguments); // Execute users function
|
|
2849
1560
|
waiting = true; // Prevent future invocations
|
|
2850
|
-
setTimeout((
|
|
2851
|
-
* @return {?}
|
|
2852
|
-
*/
|
|
2853
|
-
function () {
|
|
1561
|
+
setTimeout(function () {
|
|
2854
1562
|
waiting = false; // And allow future invocations
|
|
2855
|
-
}
|
|
1563
|
+
}, wait);
|
|
2856
1564
|
}
|
|
2857
|
-
}
|
|
1565
|
+
};
|
|
2858
1566
|
}
|
|
2859
1567
|
|
|
2860
|
-
/**
|
|
2861
|
-
* @fileoverview added by tsickle
|
|
2862
|
-
* Generated from: libs/util/throttle/index.ts
|
|
2863
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2864
|
-
*/
|
|
2865
|
-
|
|
2866
|
-
/**
|
|
2867
|
-
* @fileoverview added by tsickle
|
|
2868
|
-
* Generated from: libs/util/queue/operation.ts
|
|
2869
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2870
|
-
*/
|
|
2871
1568
|
var Operation = /** @class */ (function () {
|
|
2872
1569
|
function Operation(target, name) {
|
|
2873
1570
|
this.ready$ = new rxjs.Subject();
|
|
@@ -2881,31 +1578,13 @@
|
|
|
2881
1578
|
}
|
|
2882
1579
|
return Operation;
|
|
2883
1580
|
}());
|
|
2884
|
-
if (false) {
|
|
2885
|
-
/** @type {?} */
|
|
2886
|
-
Operation.prototype.name;
|
|
2887
|
-
/** @type {?} */
|
|
2888
|
-
Operation.prototype.target;
|
|
2889
|
-
/** @type {?} */
|
|
2890
|
-
Operation.prototype.ready$;
|
|
2891
|
-
}
|
|
2892
1581
|
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
/** @enum {string} */
|
|
2899
|
-
var QueueState = {
|
|
2900
|
-
Idle: "idle",
|
|
2901
|
-
Processing: "processing",
|
|
2902
|
-
};
|
|
1582
|
+
exports.QueueState = void 0;
|
|
1583
|
+
(function (QueueState) {
|
|
1584
|
+
QueueState["Idle"] = "idle";
|
|
1585
|
+
QueueState["Processing"] = "processing";
|
|
1586
|
+
})(exports.QueueState || (exports.QueueState = {}));
|
|
2903
1587
|
|
|
2904
|
-
/**
|
|
2905
|
-
* @fileoverview added by tsickle
|
|
2906
|
-
* Generated from: libs/util/queue/queue.ts
|
|
2907
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2908
|
-
*/
|
|
2909
1588
|
var Queue = /** @class */ (function () {
|
|
2910
1589
|
function Queue(_limit) {
|
|
2911
1590
|
if (_limit === void 0) { _limit = Infinity; }
|
|
@@ -2916,210 +1595,109 @@
|
|
|
2916
1595
|
this._total = 0;
|
|
2917
1596
|
this._completed = 0;
|
|
2918
1597
|
this._errors = 0;
|
|
2919
|
-
this._state = QueueState.Idle;
|
|
1598
|
+
this._state = exports.QueueState.Idle;
|
|
2920
1599
|
this._destroy$ = new rxjs.Subject();
|
|
2921
1600
|
}
|
|
2922
1601
|
Object.defineProperty(Queue.prototype, "total", {
|
|
2923
|
-
get:
|
|
2924
|
-
* @return {?}
|
|
2925
|
-
*/
|
|
2926
|
-
function () {
|
|
1602
|
+
get: function () {
|
|
2927
1603
|
return this._total;
|
|
2928
1604
|
},
|
|
2929
|
-
enumerable:
|
|
1605
|
+
enumerable: false,
|
|
2930
1606
|
configurable: true
|
|
2931
1607
|
});
|
|
2932
1608
|
Object.defineProperty(Queue.prototype, "completed", {
|
|
2933
|
-
get:
|
|
2934
|
-
* @return {?}
|
|
2935
|
-
*/
|
|
2936
|
-
function () {
|
|
1609
|
+
get: function () {
|
|
2937
1610
|
return this._completed;
|
|
2938
1611
|
},
|
|
2939
|
-
enumerable:
|
|
1612
|
+
enumerable: false,
|
|
2940
1613
|
configurable: true
|
|
2941
1614
|
});
|
|
2942
1615
|
Object.defineProperty(Queue.prototype, "pending", {
|
|
2943
|
-
get:
|
|
2944
|
-
* @return {?}
|
|
2945
|
-
*/
|
|
2946
|
-
function () {
|
|
1616
|
+
get: function () {
|
|
2947
1617
|
return this._queue.length;
|
|
2948
1618
|
},
|
|
2949
|
-
enumerable:
|
|
1619
|
+
enumerable: false,
|
|
2950
1620
|
configurable: true
|
|
2951
1621
|
});
|
|
2952
1622
|
Object.defineProperty(Queue.prototype, "inProgress", {
|
|
2953
|
-
get:
|
|
2954
|
-
* @return {?}
|
|
2955
|
-
*/
|
|
2956
|
-
function () {
|
|
1623
|
+
get: function () {
|
|
2957
1624
|
return this._inProgress.length;
|
|
2958
1625
|
},
|
|
2959
|
-
enumerable:
|
|
1626
|
+
enumerable: false,
|
|
2960
1627
|
configurable: true
|
|
2961
1628
|
});
|
|
2962
1629
|
Object.defineProperty(Queue.prototype, "errors", {
|
|
2963
|
-
get:
|
|
2964
|
-
* @return {?}
|
|
2965
|
-
*/
|
|
2966
|
-
function () {
|
|
1630
|
+
get: function () {
|
|
2967
1631
|
return this._errors;
|
|
2968
1632
|
},
|
|
2969
|
-
enumerable:
|
|
1633
|
+
enumerable: false,
|
|
2970
1634
|
configurable: true
|
|
2971
1635
|
});
|
|
2972
1636
|
Object.defineProperty(Queue.prototype, "state", {
|
|
2973
|
-
get:
|
|
2974
|
-
* @return {?}
|
|
2975
|
-
*/
|
|
2976
|
-
function () {
|
|
1637
|
+
get: function () {
|
|
2977
1638
|
return this._state;
|
|
2978
1639
|
},
|
|
2979
|
-
enumerable:
|
|
1640
|
+
enumerable: false,
|
|
2980
1641
|
configurable: true
|
|
2981
1642
|
});
|
|
2982
1643
|
Object.defineProperty(Queue.prototype, "empty", {
|
|
2983
|
-
get:
|
|
2984
|
-
* @return {?}
|
|
2985
|
-
*/
|
|
2986
|
-
function () {
|
|
1644
|
+
get: function () {
|
|
2987
1645
|
return !this._queue.length && !this._inProgress.length;
|
|
2988
1646
|
},
|
|
2989
|
-
enumerable:
|
|
1647
|
+
enumerable: false,
|
|
2990
1648
|
configurable: true
|
|
2991
1649
|
});
|
|
2992
1650
|
Object.defineProperty(Queue.prototype, "pendingOperations", {
|
|
2993
|
-
get:
|
|
2994
|
-
* @return {?}
|
|
2995
|
-
*/
|
|
2996
|
-
function () {
|
|
1651
|
+
get: function () {
|
|
2997
1652
|
return this._queue
|
|
2998
|
-
.map((
|
|
2999
|
-
* @param {?} operation
|
|
3000
|
-
* @return {?}
|
|
3001
|
-
*/
|
|
3002
|
-
function (operation) { return operation.name; }));
|
|
1653
|
+
.map(function (operation) { return operation.name; });
|
|
3003
1654
|
},
|
|
3004
|
-
enumerable:
|
|
1655
|
+
enumerable: false,
|
|
3005
1656
|
configurable: true
|
|
3006
1657
|
});
|
|
3007
1658
|
Object.defineProperty(Queue.prototype, "inProgressOperations", {
|
|
3008
|
-
get:
|
|
3009
|
-
* @return {?}
|
|
3010
|
-
*/
|
|
3011
|
-
function () {
|
|
1659
|
+
get: function () {
|
|
3012
1660
|
return this._inProgress
|
|
3013
|
-
.map((
|
|
3014
|
-
* @param {?} operation
|
|
3015
|
-
* @return {?}
|
|
3016
|
-
*/
|
|
3017
|
-
function (operation) { return operation.name; }));
|
|
1661
|
+
.map(function (operation) { return operation.name; });
|
|
3018
1662
|
},
|
|
3019
|
-
enumerable:
|
|
1663
|
+
enumerable: false,
|
|
3020
1664
|
configurable: true
|
|
3021
1665
|
});
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
*/
|
|
3025
|
-
Queue.prototype.isProcessing = /**
|
|
3026
|
-
* @return {?}
|
|
3027
|
-
*/
|
|
3028
|
-
function () {
|
|
3029
|
-
return this._state === QueueState.Processing;
|
|
1666
|
+
Queue.prototype.isProcessing = function () {
|
|
1667
|
+
return this._state === exports.QueueState.Processing;
|
|
3030
1668
|
};
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
*/
|
|
3034
|
-
Queue.prototype.isIdle = /**
|
|
3035
|
-
* @return {?}
|
|
3036
|
-
*/
|
|
3037
|
-
function () {
|
|
3038
|
-
return this._state === QueueState.Idle;
|
|
1669
|
+
Queue.prototype.isIdle = function () {
|
|
1670
|
+
return this._state === exports.QueueState.Idle;
|
|
3039
1671
|
};
|
|
3040
|
-
|
|
3041
|
-
* @param {?} value
|
|
3042
|
-
* @return {?}
|
|
3043
|
-
*/
|
|
3044
|
-
Queue.prototype.setLimit = /**
|
|
3045
|
-
* @param {?} value
|
|
3046
|
-
* @return {?}
|
|
3047
|
-
*/
|
|
3048
|
-
function (value) {
|
|
1672
|
+
Queue.prototype.setLimit = function (value) {
|
|
3049
1673
|
this._limit = value;
|
|
3050
1674
|
};
|
|
3051
|
-
|
|
3052
|
-
* @param {?} fun
|
|
3053
|
-
* @param {?=} err
|
|
3054
|
-
* @param {?=} complete
|
|
3055
|
-
* @return {?}
|
|
3056
|
-
*/
|
|
3057
|
-
Queue.prototype.subscribe = /**
|
|
3058
|
-
* @param {?} fun
|
|
3059
|
-
* @param {?=} err
|
|
3060
|
-
* @param {?=} complete
|
|
3061
|
-
* @return {?}
|
|
3062
|
-
*/
|
|
3063
|
-
function (fun, err, complete) {
|
|
1675
|
+
Queue.prototype.subscribe = function (fun, err, complete) {
|
|
3064
1676
|
this._done
|
|
3065
1677
|
.pipe(operators.takeUntil(this._destroy$))
|
|
3066
1678
|
.subscribe(fun, err, complete);
|
|
3067
1679
|
};
|
|
3068
|
-
|
|
3069
|
-
* @param {?} fun
|
|
3070
|
-
* @param {?=} err
|
|
3071
|
-
* @param {?=} complete
|
|
3072
|
-
* @return {?}
|
|
3073
|
-
*/
|
|
3074
|
-
Queue.prototype.complete = /**
|
|
3075
|
-
* @param {?} fun
|
|
3076
|
-
* @param {?=} err
|
|
3077
|
-
* @param {?=} complete
|
|
3078
|
-
* @return {?}
|
|
3079
|
-
*/
|
|
3080
|
-
function (fun, err, complete) {
|
|
1680
|
+
Queue.prototype.complete = function (fun, err, complete) {
|
|
3081
1681
|
var _this = this;
|
|
3082
|
-
rxjs.Observable.create((
|
|
3083
|
-
* @param {?} observer
|
|
3084
|
-
* @return {?}
|
|
3085
|
-
*/
|
|
3086
|
-
function (observer) {
|
|
1682
|
+
rxjs.Observable.create(function (observer) {
|
|
3087
1683
|
if (!_this.isProcessing()) {
|
|
3088
1684
|
observer.next();
|
|
3089
1685
|
observer.complete();
|
|
3090
1686
|
return;
|
|
3091
1687
|
}
|
|
3092
|
-
_this.subscribe((
|
|
3093
|
-
* @return {?}
|
|
3094
|
-
*/
|
|
3095
|
-
function () {
|
|
1688
|
+
_this.subscribe(function () {
|
|
3096
1689
|
observer.next();
|
|
3097
1690
|
observer.complete();
|
|
3098
|
-
}
|
|
3099
|
-
* @param {?} error
|
|
3100
|
-
* @return {?}
|
|
3101
|
-
*/
|
|
3102
|
-
function (error) {
|
|
1691
|
+
}, function (error) {
|
|
3103
1692
|
observer.error(error);
|
|
3104
1693
|
_this.clear();
|
|
3105
|
-
})
|
|
3106
|
-
})
|
|
1694
|
+
});
|
|
1695
|
+
}).subscribe(fun, err, complete);
|
|
3107
1696
|
};
|
|
3108
|
-
|
|
3109
|
-
* @param {?} target
|
|
3110
|
-
* @param {?=} name
|
|
3111
|
-
* @return {?}
|
|
3112
|
-
*/
|
|
3113
|
-
Queue.prototype.push = /**
|
|
3114
|
-
* @param {?} target
|
|
3115
|
-
* @param {?=} name
|
|
3116
|
-
* @return {?}
|
|
3117
|
-
*/
|
|
3118
|
-
function (target, name) {
|
|
3119
|
-
/** @type {?} */
|
|
1697
|
+
Queue.prototype.push = function (target, name) {
|
|
3120
1698
|
var operation = new Operation(target, name);
|
|
3121
1699
|
this._total++;
|
|
3122
|
-
this._state = QueueState.Processing;
|
|
1700
|
+
this._state = exports.QueueState.Processing;
|
|
3123
1701
|
if (this._inProgress.length < this._limit) {
|
|
3124
1702
|
this._processOperation(operation);
|
|
3125
1703
|
}
|
|
@@ -3128,216 +1706,72 @@
|
|
|
3128
1706
|
}
|
|
3129
1707
|
return operation.ready$;
|
|
3130
1708
|
};
|
|
3131
|
-
|
|
3132
|
-
* @return {?}
|
|
3133
|
-
*/
|
|
3134
|
-
Queue.prototype.clear = /**
|
|
3135
|
-
* @return {?}
|
|
3136
|
-
*/
|
|
3137
|
-
function () {
|
|
1709
|
+
Queue.prototype.clear = function () {
|
|
3138
1710
|
this._queue = [];
|
|
3139
1711
|
this._total = 0;
|
|
3140
1712
|
this._errors = 0;
|
|
3141
1713
|
this._completed = 0;
|
|
3142
|
-
this._state = QueueState.Idle;
|
|
1714
|
+
this._state = exports.QueueState.Idle;
|
|
3143
1715
|
this._done = new rxjs.Subject();
|
|
3144
1716
|
};
|
|
3145
|
-
|
|
3146
|
-
* @return {?}
|
|
3147
|
-
*/
|
|
3148
|
-
Queue.prototype.destroy = /**
|
|
3149
|
-
* @return {?}
|
|
3150
|
-
*/
|
|
3151
|
-
function () {
|
|
1717
|
+
Queue.prototype.destroy = function () {
|
|
3152
1718
|
this.clear();
|
|
3153
1719
|
this._done.complete();
|
|
3154
1720
|
};
|
|
3155
|
-
|
|
3156
|
-
* @private
|
|
3157
|
-
* @param {?} operation
|
|
3158
|
-
* @return {?}
|
|
3159
|
-
*/
|
|
3160
|
-
Queue.prototype._processOperation = /**
|
|
3161
|
-
* @private
|
|
3162
|
-
* @param {?} operation
|
|
3163
|
-
* @return {?}
|
|
3164
|
-
*/
|
|
3165
|
-
function (operation) {
|
|
1721
|
+
Queue.prototype._processOperation = function (operation) {
|
|
3166
1722
|
var _this = this;
|
|
3167
1723
|
this._inProgress.push(operation);
|
|
3168
1724
|
operation.target
|
|
3169
1725
|
.pipe(operators.delay(200), // Hack to prevent extra quick proccess execution
|
|
3170
1726
|
operators.takeUntil(this._destroy$)).subscribe({
|
|
3171
|
-
next: (
|
|
3172
|
-
* @param {?} data
|
|
3173
|
-
* @return {?}
|
|
3174
|
-
*/
|
|
3175
|
-
function (data) {
|
|
1727
|
+
next: function (data) {
|
|
3176
1728
|
operation.ready$.next(data);
|
|
3177
|
-
}
|
|
3178
|
-
error: (
|
|
3179
|
-
* @param {?} error
|
|
3180
|
-
* @return {?}
|
|
3181
|
-
*/
|
|
3182
|
-
function (error) {
|
|
3183
|
-
/** @type {?} */
|
|
1729
|
+
},
|
|
1730
|
+
error: function (error) {
|
|
3184
1731
|
var opIndex = _this._inProgress.indexOf(operation);
|
|
3185
1732
|
_this._inProgress.splice(opIndex, 1);
|
|
3186
1733
|
_this._errors++;
|
|
3187
1734
|
operation.ready$.error(error);
|
|
3188
1735
|
if (_this.empty) {
|
|
3189
|
-
_this._state = QueueState.Idle;
|
|
1736
|
+
_this._state = exports.QueueState.Idle;
|
|
3190
1737
|
_this._done.error(error);
|
|
3191
1738
|
}
|
|
3192
|
-
}
|
|
3193
|
-
complete: (
|
|
3194
|
-
* @return {?}
|
|
3195
|
-
*/
|
|
3196
|
-
function () {
|
|
3197
|
-
/** @type {?} */
|
|
1739
|
+
},
|
|
1740
|
+
complete: function () {
|
|
3198
1741
|
var opIndex = _this._inProgress.indexOf(operation);
|
|
3199
1742
|
_this._inProgress.splice(opIndex, 1);
|
|
3200
1743
|
_this._completed++;
|
|
3201
1744
|
operation.ready$.complete();
|
|
3202
1745
|
if (_this.empty) {
|
|
3203
|
-
_this._state = QueueState.Idle;
|
|
1746
|
+
_this._state = exports.QueueState.Idle;
|
|
3204
1747
|
_this._done.next();
|
|
3205
1748
|
}
|
|
3206
1749
|
else {
|
|
3207
1750
|
if (_this._queue.length) {
|
|
3208
|
-
/** @type {?} */
|
|
3209
1751
|
var queueItem = _this._queue.shift();
|
|
3210
1752
|
_this._processOperation(queueItem);
|
|
3211
1753
|
}
|
|
3212
1754
|
}
|
|
3213
|
-
}
|
|
1755
|
+
}
|
|
3214
1756
|
});
|
|
3215
1757
|
};
|
|
3216
1758
|
return Queue;
|
|
3217
1759
|
}());
|
|
3218
|
-
if (false) {
|
|
3219
|
-
/**
|
|
3220
|
-
* @type {?}
|
|
3221
|
-
* @private
|
|
3222
|
-
*/
|
|
3223
|
-
Queue.prototype._done;
|
|
3224
|
-
/**
|
|
3225
|
-
* @type {?}
|
|
3226
|
-
* @private
|
|
3227
|
-
*/
|
|
3228
|
-
Queue.prototype._queue;
|
|
3229
|
-
/**
|
|
3230
|
-
* @type {?}
|
|
3231
|
-
* @private
|
|
3232
|
-
*/
|
|
3233
|
-
Queue.prototype._inProgress;
|
|
3234
|
-
/**
|
|
3235
|
-
* @type {?}
|
|
3236
|
-
* @private
|
|
3237
|
-
*/
|
|
3238
|
-
Queue.prototype._total;
|
|
3239
|
-
/**
|
|
3240
|
-
* @type {?}
|
|
3241
|
-
* @private
|
|
3242
|
-
*/
|
|
3243
|
-
Queue.prototype._completed;
|
|
3244
|
-
/**
|
|
3245
|
-
* @type {?}
|
|
3246
|
-
* @private
|
|
3247
|
-
*/
|
|
3248
|
-
Queue.prototype._errors;
|
|
3249
|
-
/**
|
|
3250
|
-
* @type {?}
|
|
3251
|
-
* @private
|
|
3252
|
-
*/
|
|
3253
|
-
Queue.prototype._state;
|
|
3254
|
-
/**
|
|
3255
|
-
* @type {?}
|
|
3256
|
-
* @private
|
|
3257
|
-
*/
|
|
3258
|
-
Queue.prototype._destroy$;
|
|
3259
|
-
/**
|
|
3260
|
-
* @type {?}
|
|
3261
|
-
* @private
|
|
3262
|
-
*/
|
|
3263
|
-
Queue.prototype._limit;
|
|
3264
|
-
}
|
|
3265
|
-
|
|
3266
|
-
/**
|
|
3267
|
-
* @fileoverview added by tsickle
|
|
3268
|
-
* Generated from: libs/util/queue/index.ts
|
|
3269
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3270
|
-
*/
|
|
3271
1760
|
|
|
3272
|
-
/**
|
|
3273
|
-
* @fileoverview added by tsickle
|
|
3274
|
-
* Generated from: libs/util/remove-query-params/remove-query-params.ts
|
|
3275
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3276
|
-
*/
|
|
3277
|
-
/**
|
|
3278
|
-
* @param {?} path
|
|
3279
|
-
* @return {?}
|
|
3280
|
-
*/
|
|
3281
1761
|
function removeQueryParams(path) {
|
|
3282
1762
|
return path.split('?')[0];
|
|
3283
1763
|
}
|
|
3284
1764
|
|
|
3285
|
-
/**
|
|
3286
|
-
* @fileoverview added by tsickle
|
|
3287
|
-
* Generated from: libs/util/remove-query-params/index.ts
|
|
3288
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3289
|
-
*/
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* @fileoverview added by tsickle
|
|
3293
|
-
* Generated from: libs/util/get-normalized-path/get-normalized-path.ts
|
|
3294
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3295
|
-
*/
|
|
3296
|
-
/**
|
|
3297
|
-
* @param {?} locationSrv
|
|
3298
|
-
* @return {?}
|
|
3299
|
-
*/
|
|
3300
1765
|
function getNormalizedPath(locationSrv) {
|
|
3301
|
-
/** @type {?} */
|
|
3302
1766
|
var path = locationSrv.prepareExternalUrl(locationSrv.path());
|
|
3303
1767
|
return removeQueryParams(path);
|
|
3304
1768
|
}
|
|
3305
1769
|
|
|
3306
|
-
/**
|
|
3307
|
-
* @fileoverview added by tsickle
|
|
3308
|
-
* Generated from: libs/util/get-normalized-path/index.ts
|
|
3309
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3310
|
-
*/
|
|
3311
|
-
|
|
3312
|
-
/**
|
|
3313
|
-
* @fileoverview added by tsickle
|
|
3314
|
-
* Generated from: libs/util/index.ts
|
|
3315
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3316
|
-
*/
|
|
3317
|
-
|
|
3318
|
-
/**
|
|
3319
|
-
* @fileoverview added by tsickle
|
|
3320
|
-
* Generated from: libs/format/number/index.ts
|
|
3321
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3322
|
-
*/
|
|
3323
|
-
|
|
3324
|
-
/**
|
|
3325
|
-
* @fileoverview added by tsickle
|
|
3326
|
-
* Generated from: libs/format/acronym/acronym.ts
|
|
3327
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3328
|
-
*/
|
|
3329
|
-
/**
|
|
3330
|
-
* @param {?} str
|
|
3331
|
-
* @param {?=} length
|
|
3332
|
-
* @return {?}
|
|
3333
|
-
*/
|
|
3334
1770
|
function acronym(str, length) {
|
|
3335
1771
|
if (length === void 0) { length = 2; }
|
|
3336
|
-
/** @type {?} */
|
|
3337
1772
|
var splittedString = str
|
|
3338
1773
|
.replace(/[^a-zA-Z0-9]+/g, ' ')
|
|
3339
1774
|
.split(' ');
|
|
3340
|
-
/** @type {?} */
|
|
3341
1775
|
var result = '';
|
|
3342
1776
|
for (var i = 0; i < length; i++) {
|
|
3343
1777
|
if (!splittedString[i]) {
|
|
@@ -3356,142 +1790,104 @@
|
|
|
3356
1790
|
return result;
|
|
3357
1791
|
}
|
|
3358
1792
|
|
|
3359
|
-
/**
|
|
3360
|
-
* @fileoverview added by tsickle
|
|
3361
|
-
* Generated from: libs/format/acronym/index.ts
|
|
3362
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3363
|
-
*/
|
|
3364
|
-
|
|
3365
|
-
/**
|
|
3366
|
-
* @fileoverview added by tsickle
|
|
3367
|
-
* Generated from: libs/format/currency/index.ts
|
|
3368
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3369
|
-
*/
|
|
3370
|
-
|
|
3371
|
-
/**
|
|
3372
|
-
* @fileoverview added by tsickle
|
|
3373
|
-
* Generated from: libs/format/truncate/index.ts
|
|
3374
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3375
|
-
*/
|
|
3376
|
-
|
|
3377
|
-
/**
|
|
3378
|
-
* @fileoverview added by tsickle
|
|
3379
|
-
* Generated from: libs/format/bytes/index.ts
|
|
3380
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3381
|
-
*/
|
|
3382
|
-
|
|
3383
|
-
/**
|
|
3384
|
-
* @fileoverview added by tsickle
|
|
3385
|
-
* Generated from: libs/format/index.ts
|
|
3386
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3387
|
-
*/
|
|
3388
|
-
|
|
3389
|
-
/**
|
|
3390
|
-
* @fileoverview added by tsickle
|
|
3391
|
-
* Generated from: libs/rxjs/delayedRetry.ts
|
|
3392
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3393
|
-
*/
|
|
3394
|
-
/**
|
|
3395
|
-
* @param {?} delayMs
|
|
3396
|
-
* @param {?=} maxRetry
|
|
3397
|
-
* @param {?=} message
|
|
3398
|
-
* @return {?}
|
|
3399
|
-
*/
|
|
3400
1793
|
function delayedRetry(delayMs, maxRetry, message) {
|
|
3401
1794
|
if (maxRetry === void 0) { maxRetry = 5; }
|
|
3402
|
-
/** @type {?} */
|
|
3403
1795
|
var retries = 0;
|
|
3404
|
-
return (
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
* @param {?} errors
|
|
3411
|
-
* @return {?}
|
|
3412
|
-
*/
|
|
3413
|
-
function (errors) {
|
|
3414
|
-
return errors.pipe(operators.tap((/**
|
|
3415
|
-
* @return {?}
|
|
3416
|
-
*/
|
|
3417
|
-
function () {
|
|
3418
|
-
retries++;
|
|
3419
|
-
if (retries <= maxRetry) {
|
|
3420
|
-
console.info("Failed to load Resource. Retry in " + delayMs / 1000 + " sec. " + retries + "/" + maxRetry + " times...");
|
|
3421
|
-
}
|
|
3422
|
-
})), operators.concatMap((/**
|
|
3423
|
-
* @param {?} error
|
|
3424
|
-
* @return {?}
|
|
3425
|
-
*/
|
|
3426
|
-
function (error) {
|
|
3427
|
-
return rxjs.iif((/**
|
|
3428
|
-
* @return {?}
|
|
3429
|
-
*/
|
|
3430
|
-
function () { return retries > maxRetry; }), rxjs.throwError(getErrorMessage(maxRetry, message)), rxjs.timer(delayMs));
|
|
3431
|
-
})));
|
|
3432
|
-
})));
|
|
3433
|
-
});
|
|
1796
|
+
return function (src) { return src.pipe(operators.retryWhen(function (errors) { return errors.pipe(operators.tap(function () {
|
|
1797
|
+
retries++;
|
|
1798
|
+
if (retries <= maxRetry) {
|
|
1799
|
+
console.info("Failed to load Resource. Retry in " + delayMs / 1000 + " sec. " + retries + "/" + maxRetry + " times...");
|
|
1800
|
+
}
|
|
1801
|
+
}), operators.concatMap(function (error) { return rxjs.iif(function () { return retries > maxRetry; }, rxjs.throwError(getErrorMessage(maxRetry, message)), rxjs.timer(delayMs)); })); })); };
|
|
3434
1802
|
}
|
|
3435
|
-
|
|
3436
|
-
var getErrorMessage = (/**
|
|
3437
|
-
* @param {?} maxRetry
|
|
3438
|
-
* @param {?} defaultMessage
|
|
3439
|
-
* @return {?}
|
|
3440
|
-
*/
|
|
3441
|
-
function (maxRetry, defaultMessage) {
|
|
1803
|
+
var getErrorMessage = function (maxRetry, defaultMessage) {
|
|
3442
1804
|
if (!defaultMessage) {
|
|
3443
1805
|
return "Failed to load Resource for " + maxRetry + " times. Giving up.";
|
|
3444
1806
|
}
|
|
3445
1807
|
else {
|
|
3446
1808
|
return defaultMessage;
|
|
3447
1809
|
}
|
|
3448
|
-
}
|
|
3449
|
-
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1812
|
+
var keyboardShortcut = function (shortcut) {
|
|
1813
|
+
// Observables for all keydown and keyup events
|
|
1814
|
+
var keyDown$ = rxjs.fromEvent(document, 'keydown');
|
|
1815
|
+
var keyUp$ = rxjs.fromEvent(document, 'keyup');
|
|
1816
|
+
// All KeyboardEvents - emitted only when KeyboardEvent changes (key or type)
|
|
1817
|
+
var keyEvents$ = rxjs.merge(keyDown$, keyUp$).pipe(operators.distinctUntilChanged(function (a, b) { return a.code === b.code && a.type === b.type; }), operators.share());
|
|
1818
|
+
// Create KeyboardEvent Observable for specified KeyCode
|
|
1819
|
+
var createKeyPressStream = function (charCode) { return keyEvents$.pipe(operators.filter(function (event) { return event.keyCode === charCode; })); };
|
|
1820
|
+
// Create Event Stream for every KeyCode in shortcut
|
|
1821
|
+
var keyCodeEvents$ = shortcut.map(function (s) { return createKeyPressStream(s); });
|
|
1822
|
+
// Emit when specified keys are pressed (keydown).
|
|
1823
|
+
// Emit only when all specified keys are pressed at the same time.
|
|
1824
|
+
// More on combineLatest below
|
|
1825
|
+
return rxjs.combineLatest(keyCodeEvents$).pipe(operators.filter(function (arr) { return arr.every(function (a) { return a.type === 'keydown'; }); }));
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
/*
|
|
1829
|
+
* Public API Surface of fs-menu
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* Generated bundle index. Do not edit.
|
|
1834
|
+
*/
|
|
3450
1835
|
|
|
3451
1836
|
exports.FsArray = FsArray;
|
|
1837
|
+
exports.FsAutofocusDirective = FsAutofocusDirective;
|
|
3452
1838
|
exports.FsCommonModule = FsCommonModule;
|
|
1839
|
+
exports.FsFormatBytesPipe = FsFormatBytesPipe;
|
|
1840
|
+
exports.FsFormatCurrencyPipe = FsFormatCurrencyPipe;
|
|
1841
|
+
exports.FsFormatNumberPipe = FsFormatNumberPipe;
|
|
1842
|
+
exports.FsFormatOrdinalNumberPipe = FsFormatOrdinalNumberPipe;
|
|
1843
|
+
exports.FsFormatTruncatePipe = FsFormatTruncatePipe;
|
|
3453
1844
|
exports.FsMath = FsMath;
|
|
1845
|
+
exports.FsPreventDefaultDirective = FsPreventDefaultDirective;
|
|
1846
|
+
exports.FsStopPropagationDirective = FsStopPropagationDirective;
|
|
3454
1847
|
exports.FsUtil = FsUtil;
|
|
1848
|
+
exports.FsUtilGuidPipe = FsUtilGuidPipe;
|
|
1849
|
+
exports.FsUtilIsEmptyPipe = FsUtilIsEmptyPipe;
|
|
1850
|
+
exports.FsUtilIsNotEmptyPipe = FsUtilIsNotEmptyPipe;
|
|
1851
|
+
exports.FsUtilStringifyPipe = FsUtilStringifyPipe;
|
|
3455
1852
|
exports.FsValidate = FsValidate;
|
|
3456
|
-
exports.KEY_0 = KEY_0
|
|
3457
|
-
exports.KEY_1 = KEY_1
|
|
3458
|
-
exports.KEY_2 = KEY_2
|
|
3459
|
-
exports.KEY_3 = KEY_3
|
|
3460
|
-
exports.KEY_4 = KEY_4
|
|
3461
|
-
exports.KEY_5 = KEY_5
|
|
3462
|
-
exports.KEY_6 = KEY_6
|
|
3463
|
-
exports.KEY_7 = KEY_7
|
|
3464
|
-
exports.KEY_8 = KEY_8
|
|
3465
|
-
exports.KEY_9 = KEY_9
|
|
3466
|
-
exports.KEY_ALT = KEY_ALT
|
|
3467
|
-
exports.KEY_BACKSPACE = KEY_BACKSPACE
|
|
3468
|
-
exports.KEY_CANCEL = KEY_CANCEL
|
|
3469
|
-
exports.KEY_CAPS_LOCK = KEY_CAPS_LOCK
|
|
3470
|
-
exports.KEY_CLEAR = KEY_CLEAR
|
|
3471
|
-
exports.KEY_CONTROL = KEY_CONTROL
|
|
3472
|
-
exports.KEY_DELETE = KEY_DELETE
|
|
3473
|
-
exports.KEY_DOWN = KEY_DOWN
|
|
3474
|
-
exports.KEY_END = KEY_END
|
|
3475
|
-
exports.KEY_ENTER = KEY_ENTER
|
|
3476
|
-
exports.KEY_EQUALS = KEY_EQUALS
|
|
3477
|
-
exports.KEY_ESCAPE = KEY_ESCAPE
|
|
3478
|
-
exports.KEY_HELP = KEY_HELP
|
|
3479
|
-
exports.KEY_HOME = KEY_HOME
|
|
3480
|
-
exports.KEY_INSERT = KEY_INSERT
|
|
3481
|
-
exports.KEY_LEFT = KEY_LEFT
|
|
3482
|
-
exports.KEY_PAGE_DOWN = KEY_PAGE_DOWN
|
|
3483
|
-
exports.KEY_PAGE_UP = KEY_PAGE_UP
|
|
3484
|
-
exports.KEY_PAUSE = KEY_PAUSE
|
|
3485
|
-
exports.KEY_PRINTSCREEN = KEY_PRINTSCREEN
|
|
3486
|
-
exports.KEY_RETURN = KEY_RETURN
|
|
3487
|
-
exports.KEY_RIGHT = KEY_RIGHT
|
|
3488
|
-
exports.KEY_SEMICOLON = KEY_SEMICOLON
|
|
3489
|
-
exports.KEY_SHIFT = KEY_SHIFT
|
|
3490
|
-
exports.KEY_SPACE = KEY_SPACE
|
|
3491
|
-
exports.KEY_TAB = KEY_TAB
|
|
3492
|
-
exports.KEY_UP = KEY_UP
|
|
1853
|
+
exports.KEY_0 = KEY_0;
|
|
1854
|
+
exports.KEY_1 = KEY_1;
|
|
1855
|
+
exports.KEY_2 = KEY_2;
|
|
1856
|
+
exports.KEY_3 = KEY_3;
|
|
1857
|
+
exports.KEY_4 = KEY_4;
|
|
1858
|
+
exports.KEY_5 = KEY_5;
|
|
1859
|
+
exports.KEY_6 = KEY_6;
|
|
1860
|
+
exports.KEY_7 = KEY_7;
|
|
1861
|
+
exports.KEY_8 = KEY_8;
|
|
1862
|
+
exports.KEY_9 = KEY_9;
|
|
1863
|
+
exports.KEY_ALT = KEY_ALT;
|
|
1864
|
+
exports.KEY_BACKSPACE = KEY_BACKSPACE;
|
|
1865
|
+
exports.KEY_CANCEL = KEY_CANCEL;
|
|
1866
|
+
exports.KEY_CAPS_LOCK = KEY_CAPS_LOCK;
|
|
1867
|
+
exports.KEY_CLEAR = KEY_CLEAR;
|
|
1868
|
+
exports.KEY_CONTROL = KEY_CONTROL;
|
|
1869
|
+
exports.KEY_DELETE = KEY_DELETE;
|
|
1870
|
+
exports.KEY_DOWN = KEY_DOWN;
|
|
1871
|
+
exports.KEY_END = KEY_END;
|
|
1872
|
+
exports.KEY_ENTER = KEY_ENTER;
|
|
1873
|
+
exports.KEY_EQUALS = KEY_EQUALS;
|
|
1874
|
+
exports.KEY_ESCAPE = KEY_ESCAPE;
|
|
1875
|
+
exports.KEY_HELP = KEY_HELP;
|
|
1876
|
+
exports.KEY_HOME = KEY_HOME;
|
|
1877
|
+
exports.KEY_INSERT = KEY_INSERT;
|
|
1878
|
+
exports.KEY_LEFT = KEY_LEFT;
|
|
1879
|
+
exports.KEY_PAGE_DOWN = KEY_PAGE_DOWN;
|
|
1880
|
+
exports.KEY_PAGE_UP = KEY_PAGE_UP;
|
|
1881
|
+
exports.KEY_PAUSE = KEY_PAUSE;
|
|
1882
|
+
exports.KEY_PRINTSCREEN = KEY_PRINTSCREEN;
|
|
1883
|
+
exports.KEY_RETURN = KEY_RETURN;
|
|
1884
|
+
exports.KEY_RIGHT = KEY_RIGHT;
|
|
1885
|
+
exports.KEY_SEMICOLON = KEY_SEMICOLON;
|
|
1886
|
+
exports.KEY_SHIFT = KEY_SHIFT;
|
|
1887
|
+
exports.KEY_SPACE = KEY_SPACE;
|
|
1888
|
+
exports.KEY_TAB = KEY_TAB;
|
|
1889
|
+
exports.KEY_UP = KEY_UP;
|
|
3493
1890
|
exports.Queue = Queue;
|
|
3494
|
-
exports.QueueState = QueueState;
|
|
3495
1891
|
exports.acronym = acronym;
|
|
3496
1892
|
exports.boolean = boolean;
|
|
3497
1893
|
exports.bytes = bytes;
|
|
@@ -3511,6 +1907,7 @@
|
|
|
3511
1907
|
exports.isEmpty = isEmpty;
|
|
3512
1908
|
exports.isNumeric = isNumeric;
|
|
3513
1909
|
exports.keyExists = keyExists;
|
|
1910
|
+
exports.keyboardShortcut = keyboardShortcut;
|
|
3514
1911
|
exports.ksort = ksort;
|
|
3515
1912
|
exports.length = length;
|
|
3516
1913
|
exports.list = list;
|
|
@@ -3529,20 +1926,8 @@
|
|
|
3529
1926
|
exports.url = url;
|
|
3530
1927
|
exports.uuid = uuid;
|
|
3531
1928
|
exports.value = value;
|
|
3532
|
-
exports.ɵa = FsStopPropagationDirective;
|
|
3533
|
-
exports.ɵb = FsPreventDefaultDirective;
|
|
3534
|
-
exports.ɵc = FsAutofocusDirective;
|
|
3535
|
-
exports.ɵd = FsUtilStringifyPipe;
|
|
3536
|
-
exports.ɵe = FsUtilGuidPipe;
|
|
3537
|
-
exports.ɵf = FsUtilIsEmptyPipe;
|
|
3538
|
-
exports.ɵg = FsUtilIsNotEmptyPipe;
|
|
3539
|
-
exports.ɵh = FsFormatNumberPipe;
|
|
3540
|
-
exports.ɵi = FsFormatCurrencyPipe;
|
|
3541
|
-
exports.ɵj = FsFormatTruncatePipe;
|
|
3542
|
-
exports.ɵk = FsFormatBytesPipe;
|
|
3543
|
-
exports.ɵl = FsFormatOrdinalNumberPipe;
|
|
3544
1929
|
|
|
3545
1930
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3546
1931
|
|
|
3547
|
-
}))
|
|
1932
|
+
}));
|
|
3548
1933
|
//# sourceMappingURL=firestitch-common.umd.js.map
|