@firestitch/common 12.7.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2015/app/directives/autofocus.directive.js → esm2020/app/directives/autofocus.directive.mjs} +4 -4
- package/{esm2015/app/directives/model-change.directive.js → esm2020/app/directives/model-change.directive.mjs} +4 -4
- package/{esm2015/app/directives/prevent-default.directive.js → esm2020/app/directives/prevent-default.directive.mjs} +4 -4
- package/{esm2015/app/directives/stop-propagation.directive.js → esm2020/app/directives/stop-propagation.directive.mjs} +4 -4
- package/{esm2015/app/fs-common.module.js → esm2020/app/fs-common.module.mjs} +5 -5
- package/{esm2015/app/pipes/bytes.pipe.js → esm2020/app/pipes/bytes.pipe.mjs} +4 -4
- package/{esm2015/app/pipes/currency.pipe.js → esm2020/app/pipes/currency.pipe.mjs} +4 -4
- package/{esm2015/app/pipes/number.pipe.js → esm2020/app/pipes/number.pipe.mjs} +4 -4
- package/{esm2015/app/pipes/ordinal-number.pipe.js → esm2020/app/pipes/ordinal-number.pipe.mjs} +4 -4
- package/{esm2015/app/pipes/truncate.pipe.js → esm2020/app/pipes/truncate.pipe.mjs} +4 -4
- package/esm2020/app/pipes/util.pipe.mjs +60 -0
- package/{esm2015/app/services/array.service.js → esm2020/app/services/array.service.mjs} +4 -4
- package/{esm2015/app/services/math.service.js → esm2020/app/services/math.service.mjs} +4 -4
- package/{esm2015/app/services/util.service.js → esm2020/app/services/util.service.mjs} +4 -4
- package/{esm2015/app/services/vaildate.service.js → esm2020/app/services/vaildate.service.mjs} +4 -4
- package/{esm2015/libs/index.js → esm2020/libs/index.mjs} +3 -3
- package/esm2020/libs/util/index.mjs +24 -0
- package/esm2020/libs/util/is-array-equal/index.mjs +2 -0
- package/esm2020/libs/util/is-class/index.mjs +2 -0
- package/esm2020/libs/util/is-class/is-class.mjs +18 -0
- package/esm2020/libs/util/is-empty/index.mjs +2 -0
- package/esm2020/libs/util/is-empty/is-empty.mjs +12 -0
- package/esm2020/libs/util/is-numeric/index.mjs +2 -0
- package/esm2020/libs/util/is-numeric/is-numeric.mjs +5 -0
- package/esm2020/libs/util/ordinal-number/index.mjs +2 -0
- package/esm2020/libs/util/source-loader/index.mjs +2 -0
- package/esm2020/libs/util/source-loader/source-loader.mjs +155 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +2 -2
- package/fesm2015/firestitch-common.mjs +1712 -0
- package/fesm2015/firestitch-common.mjs.map +1 -0
- package/{fesm2015/firestitch-common.js → fesm2020/firestitch-common.mjs} +224 -214
- package/fesm2020/firestitch-common.mjs.map +1 -0
- package/libs/index.d.ts +2 -2
- package/libs/util/index.d.ts +14 -14
- package/libs/util/is-array-equal/index.d.ts +1 -0
- package/libs/util/is-class/index.d.ts +1 -0
- package/libs/util/is-empty/index.d.ts +1 -0
- package/libs/util/is-numeric/index.d.ts +1 -0
- package/libs/util/ordinal-number/index.d.ts +1 -0
- package/libs/util/source-loader/index.d.ts +1 -0
- package/libs/util/source-loader/source-loader.d.ts +4 -0
- package/package.json +20 -7
- package/public_api.d.ts +1 -1
- package/bundles/firestitch-common.umd.js +0 -2258
- package/bundles/firestitch-common.umd.js.map +0 -1
- package/esm2015/app/pipes/util.pipe.js +0 -60
- package/esm2015/libs/util/index.js +0 -24
- package/esm2015/libs/util/isClass/index.js +0 -2
- package/esm2015/libs/util/isClass/isClass.js +0 -18
- package/esm2015/libs/util/isEmpty/index.js +0 -2
- package/esm2015/libs/util/isEmpty/isEmpty.js +0 -12
- package/esm2015/libs/util/isNumeric/index.js +0 -2
- package/esm2015/libs/util/isNumeric/isNumeric.js +0 -5
- package/esm2015/libs/util/source-loader/source-loader.js +0 -145
- package/fesm2015/firestitch-common.js.map +0 -1
- package/libs/util/isClass/index.d.ts +0 -1
- package/libs/util/isEmpty/index.d.ts +0 -1
- package/libs/util/isNumeric/index.d.ts +0 -1
- /package/{esm2015/app/directives/index.js → esm2020/app/directives/index.mjs} +0 -0
- /package/{esm2015/app/pipes/index.js → esm2020/app/pipes/index.mjs} +0 -0
- /package/{esm2015/firestitch-common.js → esm2020/firestitch-common.mjs} +0 -0
- /package/{esm2015/libs/array/compare/compare.js → esm2020/libs/array/compare/compare.mjs} +0 -0
- /package/{esm2015/libs/array/compare/index.js → esm2020/libs/array/compare/index.mjs} +0 -0
- /package/{esm2015/libs/array/filter/filter.js → esm2020/libs/array/filter/filter.mjs} +0 -0
- /package/{esm2015/libs/array/filter/index.js → esm2020/libs/array/filter/index.mjs} +0 -0
- /package/{esm2015/libs/array/find/find.js → esm2020/libs/array/find/find.mjs} +0 -0
- /package/{esm2015/libs/array/find/index.js → esm2020/libs/array/find/index.mjs} +0 -0
- /package/{esm2015/libs/array/inArray/inArray.js → esm2020/libs/array/inArray/inArray.mjs} +0 -0
- /package/{esm2015/libs/array/inArray/index.js → esm2020/libs/array/inArray/index.mjs} +0 -0
- /package/{esm2015/libs/array/index/index.js → esm2020/libs/array/index/index.mjs} +0 -0
- /package/{esm2015/libs/array/index.js → esm2020/libs/array/index.mjs} +0 -0
- /package/{esm2015/libs/array/indexOf/index.js → esm2020/libs/array/indexOf/index.mjs} +0 -0
- /package/{esm2015/libs/array/indexOf/indexOf.js → esm2020/libs/array/indexOf/indexOf.mjs} +0 -0
- /package/{esm2015/libs/array/keyExists/index.js → esm2020/libs/array/keyExists/index.mjs} +0 -0
- /package/{esm2015/libs/array/keyExists/keyExists.js → esm2020/libs/array/keyExists/keyExists.mjs} +0 -0
- /package/{esm2015/libs/array/ksort/index.js → esm2020/libs/array/ksort/index.mjs} +0 -0
- /package/{esm2015/libs/array/ksort/ksort.js → esm2020/libs/array/ksort/ksort.mjs} +0 -0
- /package/{esm2015/libs/array/list/index.js → esm2020/libs/array/list/index.mjs} +0 -0
- /package/{esm2015/libs/array/list/list.js → esm2020/libs/array/list/list.mjs} +0 -0
- /package/{esm2015/libs/array/nameValue/index.js → esm2020/libs/array/nameValue/index.mjs} +0 -0
- /package/{esm2015/libs/array/nameValue/nameValue.js → esm2020/libs/array/nameValue/nameValue.mjs} +0 -0
- /package/{esm2015/libs/array/remove/index.js → esm2020/libs/array/remove/index.mjs} +0 -0
- /package/{esm2015/libs/array/remove/remove.js → esm2020/libs/array/remove/remove.mjs} +0 -0
- /package/{esm2015/libs/array/rsort/index.js → esm2020/libs/array/rsort/index.mjs} +0 -0
- /package/{esm2015/libs/array/rsort/rsort.js → esm2020/libs/array/rsort/rsort.mjs} +0 -0
- /package/{esm2015/libs/array/sort/index.js → esm2020/libs/array/sort/index.mjs} +0 -0
- /package/{esm2015/libs/array/sort/sort.js → esm2020/libs/array/sort/sort.mjs} +0 -0
- /package/{esm2015/libs/format/acronym/acronym.js → esm2020/libs/format/acronym/acronym.mjs} +0 -0
- /package/{esm2015/libs/format/acronym/index.js → esm2020/libs/format/acronym/index.mjs} +0 -0
- /package/{esm2015/libs/format/bytes/bytes.js → esm2020/libs/format/bytes/bytes.mjs} +0 -0
- /package/{esm2015/libs/format/bytes/index.js → esm2020/libs/format/bytes/index.mjs} +0 -0
- /package/{esm2015/libs/format/currency/currency.js → esm2020/libs/format/currency/currency.mjs} +0 -0
- /package/{esm2015/libs/format/currency/index.js → esm2020/libs/format/currency/index.mjs} +0 -0
- /package/{esm2015/libs/format/index.js → esm2020/libs/format/index.mjs} +0 -0
- /package/{esm2015/libs/format/number/index.js → esm2020/libs/format/number/index.mjs} +0 -0
- /package/{esm2015/libs/format/number/number.js → esm2020/libs/format/number/number.mjs} +0 -0
- /package/{esm2015/libs/format/truncate/index.js → esm2020/libs/format/truncate/index.mjs} +0 -0
- /package/{esm2015/libs/format/truncate/truncate.js → esm2020/libs/format/truncate/truncate.mjs} +0 -0
- /package/{esm2015/libs/rxjs/delayedRetry.js → esm2020/libs/rxjs/delayedRetry.mjs} +0 -0
- /package/{esm2015/libs/rxjs/keyboard-shortcut.js → esm2020/libs/rxjs/keyboard-shortcut.mjs} +0 -0
- /package/{esm2015/libs/util/boolean/boolean.js → esm2020/libs/util/boolean/boolean.mjs} +0 -0
- /package/{esm2015/libs/util/boolean/index.js → esm2020/libs/util/boolean/index.mjs} +0 -0
- /package/{esm2015/libs/util/clone/clone.js → esm2020/libs/util/clone/clone.mjs} +0 -0
- /package/{esm2015/libs/util/clone/index.js → esm2020/libs/util/clone/index.mjs} +0 -0
- /package/{esm2015/libs/util/debounce/debounce.js → esm2020/libs/util/debounce/debounce.mjs} +0 -0
- /package/{esm2015/libs/util/debounce/index.js → esm2020/libs/util/debounce/index.mjs} +0 -0
- /package/{esm2015/libs/util/get-normalized-path/get-normalized-path.js → esm2020/libs/util/get-normalized-path/get-normalized-path.mjs} +0 -0
- /package/{esm2015/libs/util/get-normalized-path/index.js → esm2020/libs/util/get-normalized-path/index.mjs} +0 -0
- /package/{esm2015/libs/util/guid/guid.js → esm2020/libs/util/guid/guid.mjs} +0 -0
- /package/{esm2015/libs/util/guid/index.js → esm2020/libs/util/guid/index.mjs} +0 -0
- /package/{esm2015/libs/util/is-array-equal/is-array-equal.js → esm2020/libs/util/is-array-equal/is-array-equal.mjs} +0 -0
- /package/{esm2015/libs/util/is-object/index.js → esm2020/libs/util/is-object/index.mjs} +0 -0
- /package/{esm2015/libs/util/is-object/is-object.js → esm2020/libs/util/is-object/is-object.mjs} +0 -0
- /package/{esm2015/libs/util/keys/index.js → esm2020/libs/util/keys/index.mjs} +0 -0
- /package/{esm2015/libs/util/keys/keys.js → esm2020/libs/util/keys/keys.mjs} +0 -0
- /package/{esm2015/libs/util/length/index.js → esm2020/libs/util/length/index.mjs} +0 -0
- /package/{esm2015/libs/util/length/length.js → esm2020/libs/util/length/length.mjs} +0 -0
- /package/{esm2015/libs/util/ordinal-number/ordinal-number.js → esm2020/libs/util/ordinal-number/ordinal-number.mjs} +0 -0
- /package/{esm2015/libs/util/queue/index.js → esm2020/libs/util/queue/index.mjs} +0 -0
- /package/{esm2015/libs/util/queue/operation.js → esm2020/libs/util/queue/operation.mjs} +0 -0
- /package/{esm2015/libs/util/queue/queue-stats.js → esm2020/libs/util/queue/queue-stats.mjs} +0 -0
- /package/{esm2015/libs/util/queue/queue.enum.js → esm2020/libs/util/queue/queue.enum.mjs} +0 -0
- /package/{esm2015/libs/util/queue/queue.js → esm2020/libs/util/queue/queue.mjs} +0 -0
- /package/{esm2015/libs/util/remove-query-params/index.js → esm2020/libs/util/remove-query-params/index.mjs} +0 -0
- /package/{esm2015/libs/util/remove-query-params/remove-query-params.js → esm2020/libs/util/remove-query-params/remove-query-params.mjs} +0 -0
- /package/{esm2015/libs/util/resolve/index.js → esm2020/libs/util/resolve/index.mjs} +0 -0
- /package/{esm2015/libs/util/resolve/resolve.js → esm2020/libs/util/resolve/resolve.mjs} +0 -0
- /package/{esm2015/libs/util/round/index.js → esm2020/libs/util/round/index.mjs} +0 -0
- /package/{esm2015/libs/util/round/round.js → esm2020/libs/util/round/round.mjs} +0 -0
- /package/{esm2015/libs/util/stringify/index.js → esm2020/libs/util/stringify/index.mjs} +0 -0
- /package/{esm2015/libs/util/stringify/stringify.js → esm2020/libs/util/stringify/stringify.mjs} +0 -0
- /package/{esm2015/libs/util/throttle/index.js → esm2020/libs/util/throttle/index.mjs} +0 -0
- /package/{esm2015/libs/util/throttle/throttle.js → esm2020/libs/util/throttle/throttle.mjs} +0 -0
- /package/{esm2015/libs/util/to-string/index.js → esm2020/libs/util/to-string/index.mjs} +0 -0
- /package/{esm2015/libs/util/to-string/to-string.js → esm2020/libs/util/to-string/to-string.mjs} +0 -0
- /package/{esm2015/libs/util/uuid/index.js → esm2020/libs/util/uuid/index.mjs} +0 -0
- /package/{esm2015/libs/util/uuid/uuid.js → esm2020/libs/util/uuid/uuid.mjs} +0 -0
- /package/{esm2015/libs/util/value/index.js → esm2020/libs/util/value/index.mjs} +0 -0
- /package/{esm2015/libs/util/value/value.js → esm2020/libs/util/value/value.mjs} +0 -0
- /package/{esm2015/libs/validate/email/email.js → esm2020/libs/validate/email/email.mjs} +0 -0
- /package/{esm2015/libs/validate/email/index.js → esm2020/libs/validate/email/index.mjs} +0 -0
- /package/{esm2015/libs/validate/index.js → esm2020/libs/validate/index.mjs} +0 -0
- /package/{esm2015/libs/validate/phone/index.js → esm2020/libs/validate/phone/index.mjs} +0 -0
- /package/{esm2015/libs/validate/phone/phone.js → esm2020/libs/validate/phone/phone.mjs} +0 -0
- /package/{esm2015/libs/validate/url/index.js → esm2020/libs/validate/url/index.mjs} +0 -0
- /package/{esm2015/libs/validate/url/url.js → esm2020/libs/validate/url/url.mjs} +0 -0
- /package/libs/util/{isClass/isClass.d.ts → is-class/is-class.d.ts} +0 -0
- /package/libs/util/{isEmpty/isEmpty.d.ts → is-empty/is-empty.d.ts} +0 -0
- /package/libs/util/{isNumeric/isNumeric.d.ts → is-numeric/is-numeric.d.ts} +0 -0
|
@@ -1,2258 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/material/input'), require('rxjs'), require('rxjs/operators'), require('@angular/forms')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@firestitch/common', ['exports', '@angular/common', '@angular/core', '@angular/material/input', 'rxjs', 'rxjs/operators', '@angular/forms'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.common = {}), global.ng.common, global.ng.core, global.ng.material.input, global.rxjs, global.rxjs.operators, global.ng.forms));
|
|
5
|
-
})(this, (function (exports, common, i0, i1, rxjs, operators, i1$1) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
-
|
|
29
|
-
var FsAutofocusDirective = /** @class */ (function () {
|
|
30
|
-
function FsAutofocusDirective(_matInput, _el) {
|
|
31
|
-
this._matInput = _matInput;
|
|
32
|
-
this._el = _el;
|
|
33
|
-
this.fsAutofocus = true;
|
|
34
|
-
}
|
|
35
|
-
FsAutofocusDirective.prototype.ngAfterViewInit = function () {
|
|
36
|
-
if (this.fsAutofocus || this.fsAutofocus === undefined) {
|
|
37
|
-
this.focus();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
FsAutofocusDirective.prototype.focus = function () {
|
|
41
|
-
var _this = this;
|
|
42
|
-
setTimeout(function () {
|
|
43
|
-
var tmpEl = document.createElement('input');
|
|
44
|
-
tmpEl.style.width = '0';
|
|
45
|
-
tmpEl.style.height = '0';
|
|
46
|
-
tmpEl.style.margin = '0';
|
|
47
|
-
tmpEl.style.padding = '0';
|
|
48
|
-
tmpEl.style.border = '0';
|
|
49
|
-
tmpEl.style.opacity = '0';
|
|
50
|
-
document.body.appendChild(tmpEl);
|
|
51
|
-
tmpEl.focus();
|
|
52
|
-
if (_this._matInput) {
|
|
53
|
-
_this._matInput.focus();
|
|
54
|
-
}
|
|
55
|
-
else if (_this._el.nativeElement.focus) {
|
|
56
|
-
_this._el.nativeElement.focus();
|
|
57
|
-
}
|
|
58
|
-
document.body.removeChild(tmpEl);
|
|
59
|
-
}, 50);
|
|
60
|
-
};
|
|
61
|
-
return FsAutofocusDirective;
|
|
62
|
-
}());
|
|
63
|
-
FsAutofocusDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAutofocusDirective, deps: [{ token: i1__namespace.MatInput, host: true, optional: true }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
64
|
-
FsAutofocusDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsAutofocusDirective, selector: "[fsAutofocus],[autofocus]", inputs: { fsAutofocus: "fsAutofocus" }, ngImport: i0__namespace });
|
|
65
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAutofocusDirective, decorators: [{
|
|
66
|
-
type: i0.Directive,
|
|
67
|
-
args: [{
|
|
68
|
-
selector: '[fsAutofocus],[autofocus]',
|
|
69
|
-
}]
|
|
70
|
-
}], ctorParameters: function () {
|
|
71
|
-
return [{ type: i1__namespace.MatInput, decorators: [{
|
|
72
|
-
type: i0.Optional
|
|
73
|
-
}, {
|
|
74
|
-
type: i0.Host
|
|
75
|
-
}] }, { type: i0__namespace.ElementRef }];
|
|
76
|
-
}, propDecorators: { fsAutofocus: [{
|
|
77
|
-
type: i0.Input
|
|
78
|
-
}] } });
|
|
79
|
-
|
|
80
|
-
var FsModelChangeDirective = /** @class */ (function () {
|
|
81
|
-
function FsModelChangeDirective(_ngModel) {
|
|
82
|
-
this._ngModel = _ngModel;
|
|
83
|
-
this.fsModelChange = new i0.EventEmitter();
|
|
84
|
-
this._destroy$ = new rxjs.Subject();
|
|
85
|
-
}
|
|
86
|
-
FsModelChangeDirective.prototype.ngOnInit = function () {
|
|
87
|
-
var _this = this;
|
|
88
|
-
this._ngModel.update
|
|
89
|
-
.pipe(operators.debounceTime(this.fsModelChangeOptions.debounce), operators.takeUntil(this._destroy$))
|
|
90
|
-
.subscribe(function (value) {
|
|
91
|
-
_this.fsModelChange.emit(value);
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
FsModelChangeDirective.prototype.ngOnDestroy = function () {
|
|
95
|
-
this._destroy$.next();
|
|
96
|
-
this._destroy$.complete();
|
|
97
|
-
};
|
|
98
|
-
return FsModelChangeDirective;
|
|
99
|
-
}());
|
|
100
|
-
FsModelChangeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsModelChangeDirective, deps: [{ token: i1__namespace$1.NgModel }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
101
|
-
FsModelChangeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsModelChangeDirective, selector: "[fsModelChange]", inputs: { fsModelChangeOptions: "fsModelChangeOptions" }, outputs: { fsModelChange: "fsModelChange" }, ngImport: i0__namespace });
|
|
102
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsModelChangeDirective, decorators: [{
|
|
103
|
-
type: i0.Directive,
|
|
104
|
-
args: [{
|
|
105
|
-
selector: '[fsModelChange]',
|
|
106
|
-
}]
|
|
107
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.NgModel }]; }, propDecorators: { fsModelChangeOptions: [{
|
|
108
|
-
type: i0.Input
|
|
109
|
-
}], fsModelChange: [{
|
|
110
|
-
type: i0.Output
|
|
111
|
-
}] } });
|
|
112
|
-
|
|
113
|
-
var FsPreventDefaultDirective = /** @class */ (function () {
|
|
114
|
-
function FsPreventDefaultDirective() {
|
|
115
|
-
}
|
|
116
|
-
FsPreventDefaultDirective.prototype.preventClick = function (event) {
|
|
117
|
-
event.preventDefault();
|
|
118
|
-
};
|
|
119
|
-
return FsPreventDefaultDirective;
|
|
120
|
-
}());
|
|
121
|
-
FsPreventDefaultDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPreventDefaultDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
122
|
-
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 });
|
|
123
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPreventDefaultDirective, decorators: [{
|
|
124
|
-
type: i0.Directive,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: '[fsPreventDefault]',
|
|
127
|
-
}]
|
|
128
|
-
}], propDecorators: { preventClick: [{
|
|
129
|
-
type: i0.HostListener,
|
|
130
|
-
args: ['click', ['$event']]
|
|
131
|
-
}] } });
|
|
132
|
-
|
|
133
|
-
var FsStopPropagationDirective = /** @class */ (function () {
|
|
134
|
-
function FsStopPropagationDirective() {
|
|
135
|
-
}
|
|
136
|
-
FsStopPropagationDirective.prototype.preventClick = function (event) {
|
|
137
|
-
event.stopPropagation();
|
|
138
|
-
};
|
|
139
|
-
return FsStopPropagationDirective;
|
|
140
|
-
}());
|
|
141
|
-
FsStopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStopPropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
142
|
-
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 });
|
|
143
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStopPropagationDirective, decorators: [{
|
|
144
|
-
type: i0.Directive,
|
|
145
|
-
args: [{
|
|
146
|
-
selector: '[fsStopPropagation]',
|
|
147
|
-
}]
|
|
148
|
-
}], propDecorators: { preventClick: [{
|
|
149
|
-
type: i0.HostListener,
|
|
150
|
-
args: ['click', ['$event']]
|
|
151
|
-
}] } });
|
|
152
|
-
|
|
153
|
-
function stringify(value) {
|
|
154
|
-
return JSON.stringify(value);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function guid(pattern, options) {
|
|
158
|
-
if (options === void 0) { options = { case: 'lower', numbers: true }; }
|
|
159
|
-
pattern = pattern || 'xxxxxx';
|
|
160
|
-
var s = '';
|
|
161
|
-
if (options.numbers !== false) {
|
|
162
|
-
s = '0123456789';
|
|
163
|
-
}
|
|
164
|
-
if (!options.case || options.case === 'lower' || options.case === 'mixed') {
|
|
165
|
-
s = s.concat('abcdefghijklmnopqrstuvwxyz');
|
|
166
|
-
}
|
|
167
|
-
if (options.case === 'upper' || options.case === 'mixed') {
|
|
168
|
-
s = s.concat('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
|
|
169
|
-
}
|
|
170
|
-
var chars = s.match(/(.{1,1})/g);
|
|
171
|
-
return pattern.replace(/[x]/g, function (c) {
|
|
172
|
-
var i = (Math.random() * chars.length) | 0;
|
|
173
|
-
return chars[i];
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function isEmpty(value, options) {
|
|
178
|
-
options = options || {};
|
|
179
|
-
return value === undefined ||
|
|
180
|
-
value === null ||
|
|
181
|
-
value === false ||
|
|
182
|
-
value === '' ||
|
|
183
|
-
String(value).length === 0 ||
|
|
184
|
-
(Array.isArray(value) && value.length === 0) ||
|
|
185
|
-
(value instanceof Object && (value.constructor.name === 'Object' && !Object.keys(value).length)) ||
|
|
186
|
-
(!options.zero && (value === 0 || value === '0'));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
var FsUtilStringifyPipe = /** @class */ (function () {
|
|
190
|
-
function FsUtilStringifyPipe() {
|
|
191
|
-
}
|
|
192
|
-
FsUtilStringifyPipe.prototype.transform = function (value) {
|
|
193
|
-
return stringify(value);
|
|
194
|
-
};
|
|
195
|
-
return FsUtilStringifyPipe;
|
|
196
|
-
}());
|
|
197
|
-
FsUtilStringifyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilStringifyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
198
|
-
FsUtilStringifyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilStringifyPipe, name: "fsUtilStringify" });
|
|
199
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilStringifyPipe, decorators: [{
|
|
200
|
-
type: i0.Pipe,
|
|
201
|
-
args: [{
|
|
202
|
-
name: 'fsUtilStringify'
|
|
203
|
-
}]
|
|
204
|
-
}], ctorParameters: function () { return []; } });
|
|
205
|
-
var FsUtilGuidPipe = /** @class */ (function () {
|
|
206
|
-
function FsUtilGuidPipe() {
|
|
207
|
-
}
|
|
208
|
-
FsUtilGuidPipe.prototype.transform = function () {
|
|
209
|
-
return guid();
|
|
210
|
-
};
|
|
211
|
-
return FsUtilGuidPipe;
|
|
212
|
-
}());
|
|
213
|
-
FsUtilGuidPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilGuidPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
214
|
-
FsUtilGuidPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilGuidPipe, name: "fsUtilGuid" });
|
|
215
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilGuidPipe, decorators: [{
|
|
216
|
-
type: i0.Pipe,
|
|
217
|
-
args: [{
|
|
218
|
-
name: 'fsUtilGuid'
|
|
219
|
-
}]
|
|
220
|
-
}], ctorParameters: function () { return []; } });
|
|
221
|
-
var FsUtilIsEmptyPipe = /** @class */ (function () {
|
|
222
|
-
function FsUtilIsEmptyPipe() {
|
|
223
|
-
}
|
|
224
|
-
FsUtilIsEmptyPipe.prototype.transform = function (value) {
|
|
225
|
-
return isEmpty(value);
|
|
226
|
-
};
|
|
227
|
-
return FsUtilIsEmptyPipe;
|
|
228
|
-
}());
|
|
229
|
-
FsUtilIsEmptyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsEmptyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
230
|
-
FsUtilIsEmptyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsEmptyPipe, name: "fsUtilIsEmpty" });
|
|
231
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsEmptyPipe, decorators: [{
|
|
232
|
-
type: i0.Pipe,
|
|
233
|
-
args: [{
|
|
234
|
-
name: 'fsUtilIsEmpty'
|
|
235
|
-
}]
|
|
236
|
-
}] });
|
|
237
|
-
var FsUtilIsNotEmptyPipe = /** @class */ (function () {
|
|
238
|
-
function FsUtilIsNotEmptyPipe() {
|
|
239
|
-
}
|
|
240
|
-
FsUtilIsNotEmptyPipe.prototype.transform = function (value) {
|
|
241
|
-
return !isEmpty(value);
|
|
242
|
-
};
|
|
243
|
-
return FsUtilIsNotEmptyPipe;
|
|
244
|
-
}());
|
|
245
|
-
FsUtilIsNotEmptyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsNotEmptyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
246
|
-
FsUtilIsNotEmptyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsNotEmptyPipe, name: "fsUtilIsNotEmpty" });
|
|
247
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtilIsNotEmptyPipe, decorators: [{
|
|
248
|
-
type: i0.Pipe,
|
|
249
|
-
args: [{
|
|
250
|
-
name: 'fsUtilIsNotEmpty'
|
|
251
|
-
}]
|
|
252
|
-
}] });
|
|
253
|
-
|
|
254
|
-
function email(value) {
|
|
255
|
-
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,}))$/);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
function phone(value) {
|
|
259
|
-
var valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}/.test(value);
|
|
260
|
-
return valid || !String(value).length;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Check validity of the url.
|
|
265
|
-
* Protocol (http/https) isn't required.
|
|
266
|
-
* @param value
|
|
267
|
-
* @returns {boolean}
|
|
268
|
-
*/
|
|
269
|
-
function url(value) {
|
|
270
|
-
var expression = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+,;=.]+$/gm;
|
|
271
|
-
var regexp = new RegExp(expression);
|
|
272
|
-
return !!String(value).match(regexp);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
function compare(query, item) {
|
|
276
|
-
var value = true;
|
|
277
|
-
for (var key in query) {
|
|
278
|
-
value = value && item[key] == query[key];
|
|
279
|
-
}
|
|
280
|
-
return value;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
function filter(array, query) {
|
|
284
|
-
if (typeof query !== 'function') {
|
|
285
|
-
var queryObj_1 = query;
|
|
286
|
-
query = function (item) {
|
|
287
|
-
return compare(queryObj_1, item);
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
var isarray = Array.isArray(array);
|
|
291
|
-
var list = isarray ? [] : {};
|
|
292
|
-
if (isarray) {
|
|
293
|
-
array.forEach(function (item, idx) {
|
|
294
|
-
if (query(item)) {
|
|
295
|
-
list.push(item);
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
Object.keys(array).forEach(function (key) {
|
|
301
|
-
if (query(array[key])) {
|
|
302
|
-
list[key] = array[key];
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
return list;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
function inArray(values, array) {
|
|
310
|
-
if (!Array.isArray(values)) {
|
|
311
|
-
values = [values];
|
|
312
|
-
}
|
|
313
|
-
for (var i = 0, len = values.length; i < len; i++) {
|
|
314
|
-
if (array.indexOf(values[i]) >= 0) {
|
|
315
|
-
return true;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return false;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
function index(array, name, value) {
|
|
322
|
-
if (value === void 0) { value = null; }
|
|
323
|
-
var list = {};
|
|
324
|
-
array.forEach(function (item) {
|
|
325
|
-
list[item[name]] = value ? item[value] : item;
|
|
326
|
-
});
|
|
327
|
-
return list;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function indexOf(array, query) {
|
|
331
|
-
if (typeof query !== 'function') {
|
|
332
|
-
var queryObj_1 = query;
|
|
333
|
-
query = function (item) {
|
|
334
|
-
return compare(queryObj_1, item);
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
for (var i = 0, len = array.length; i < len; i++) {
|
|
338
|
-
if (query(array[i])) {
|
|
339
|
-
return i;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return -1;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function keyExists(array, key) {
|
|
346
|
-
return array.hasOwnProperty(key);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
function ksort(unordered) {
|
|
350
|
-
Object.keys(unordered).sort().forEach(function (key) {
|
|
351
|
-
var value = unordered[key];
|
|
352
|
-
delete unordered[key];
|
|
353
|
-
unordered[key] = value;
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
function list(array, property, index) {
|
|
358
|
-
if (index === void 0) { index = null; }
|
|
359
|
-
var resultList = index ? {} : [];
|
|
360
|
-
array.forEach(function (item, idx) {
|
|
361
|
-
if (index) {
|
|
362
|
-
resultList[item[index]] = item[property];
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
resultList.push(item[property]);
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
return resultList;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
function nameValue(array, name, value) {
|
|
372
|
-
var list = [];
|
|
373
|
-
if (name || value) {
|
|
374
|
-
var nameFn_1 = typeof name === 'function' ? name : function (item) {
|
|
375
|
-
return item[name];
|
|
376
|
-
};
|
|
377
|
-
var valueFn_1 = typeof value === 'function' ? value : function (item) {
|
|
378
|
-
return item[value];
|
|
379
|
-
};
|
|
380
|
-
array.forEach(function (item) {
|
|
381
|
-
list.push({ name: nameFn_1(item), value: valueFn_1(item) });
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
array.forEach(function (n, v) {
|
|
386
|
-
list.push({ name: n, value: v });
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
return list;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
function remove(array, query) {
|
|
393
|
-
var idx = indexOf(array, query);
|
|
394
|
-
if (idx >= 0) {
|
|
395
|
-
return array.splice(idx, 1);
|
|
396
|
-
}
|
|
397
|
-
return idx;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
function sort(array, query, reverse) {
|
|
401
|
-
if (reverse === void 0) { reverse = false; }
|
|
402
|
-
if (typeof query !== 'function') {
|
|
403
|
-
var queryStr_1 = query;
|
|
404
|
-
query = function (a, b) {
|
|
405
|
-
if (reverse) {
|
|
406
|
-
if (a[queryStr_1] < b[queryStr_1]) {
|
|
407
|
-
return 1;
|
|
408
|
-
}
|
|
409
|
-
else if (a[queryStr_1] > b[queryStr_1]) {
|
|
410
|
-
return -1;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
else {
|
|
414
|
-
if (a[queryStr_1] > b[queryStr_1]) {
|
|
415
|
-
return 1;
|
|
416
|
-
}
|
|
417
|
-
else if (a[queryStr_1] < b[queryStr_1]) {
|
|
418
|
-
return -1;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
return 0;
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
array.sort(query);
|
|
425
|
-
return array;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
function rsort(array, query) {
|
|
429
|
-
return sort(array, query, true);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
function find(array, query) {
|
|
433
|
-
var data = filter(array, query);
|
|
434
|
-
return data.length ? data[0] : null;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
function boolean(value) {
|
|
438
|
-
return String(value).toLowerCase() !== 'false' && !!value;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
function debounce(func, wait, immediate) {
|
|
442
|
-
var timeout;
|
|
443
|
-
return function () {
|
|
444
|
-
var context = this, args = arguments;
|
|
445
|
-
var later = function () {
|
|
446
|
-
timeout = null;
|
|
447
|
-
if (!immediate)
|
|
448
|
-
func.apply(context, args);
|
|
449
|
-
};
|
|
450
|
-
var callNow = immediate && !timeout;
|
|
451
|
-
clearTimeout(timeout);
|
|
452
|
-
timeout = setTimeout(later, wait);
|
|
453
|
-
if (callNow)
|
|
454
|
-
func.apply(context, args);
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
var KEY_CANCEL$1 = 3;
|
|
459
|
-
var KEY_HELP$1 = 6;
|
|
460
|
-
var KEY_BACKSPACE$1 = 8;
|
|
461
|
-
var KEY_TAB$1 = 9;
|
|
462
|
-
var KEY_CLEAR$1 = 12;
|
|
463
|
-
var KEY_RETURN$1 = 13;
|
|
464
|
-
var KEY_ENTER$1 = 14;
|
|
465
|
-
var KEY_SHIFT$1 = 16;
|
|
466
|
-
var KEY_CONTROL$1 = 17;
|
|
467
|
-
var KEY_ALT$1 = 18;
|
|
468
|
-
var KEY_PAUSE$1 = 19;
|
|
469
|
-
var KEY_CAPS_LOCK$1 = 20;
|
|
470
|
-
var KEY_ESCAPE$1 = 27;
|
|
471
|
-
var KEY_SPACE$1 = 32;
|
|
472
|
-
var KEY_PAGE_UP$1 = 33;
|
|
473
|
-
var KEY_PAGE_DOWN$1 = 34;
|
|
474
|
-
var KEY_END$1 = 35;
|
|
475
|
-
var KEY_HOME$1 = 36;
|
|
476
|
-
var KEY_LEFT$1 = 37;
|
|
477
|
-
var KEY_UP$1 = 38;
|
|
478
|
-
var KEY_RIGHT$1 = 39;
|
|
479
|
-
var KEY_DOWN$1 = 40;
|
|
480
|
-
var KEY_PRINTSCREEN$1 = 44;
|
|
481
|
-
var KEY_INSERT$1 = 45;
|
|
482
|
-
var KEY_DELETE$1 = 46;
|
|
483
|
-
var KEY_0$1 = 48;
|
|
484
|
-
var KEY_1$1 = 49;
|
|
485
|
-
var KEY_2$1 = 50;
|
|
486
|
-
var KEY_3$1 = 51;
|
|
487
|
-
var KEY_4$1 = 52;
|
|
488
|
-
var KEY_5$1 = 53;
|
|
489
|
-
var KEY_6$1 = 54;
|
|
490
|
-
var KEY_7$1 = 55;
|
|
491
|
-
var KEY_8$1 = 56;
|
|
492
|
-
var KEY_9$1 = 57;
|
|
493
|
-
var KEY_SEMICOLON$1 = 59;
|
|
494
|
-
var KEY_EQUALS$1 = 61;
|
|
495
|
-
|
|
496
|
-
function length(object) {
|
|
497
|
-
if (Array.isArray(object)) {
|
|
498
|
-
return object.length;
|
|
499
|
-
}
|
|
500
|
-
if (object instanceof Object) {
|
|
501
|
-
return Object.keys(object).length;
|
|
502
|
-
}
|
|
503
|
-
return 0;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
function resolve(promise, defaults) {
|
|
507
|
-
if (defaults === void 0) { defaults = []; }
|
|
508
|
-
var result = defaults;
|
|
509
|
-
return new Promise(function (resolve) {
|
|
510
|
-
promise.then(function (data) {
|
|
511
|
-
Object.keys(data).forEach(function (key) { return result[key] = data[key]; });
|
|
512
|
-
resolve(result);
|
|
513
|
-
});
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
function uuid() {
|
|
518
|
-
return guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
function value(object, key, def) {
|
|
522
|
-
if (typeof object === 'object' || Array.isArray(object)) {
|
|
523
|
-
if (object.hasOwnProperty(key)) {
|
|
524
|
-
return object[key];
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
return def;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
function isClass(value, cls) {
|
|
531
|
-
if (typeof value === 'object') {
|
|
532
|
-
if (typeof cls === 'string') {
|
|
533
|
-
if (value.constructor) {
|
|
534
|
-
if (value.constructor.name === cls) {
|
|
535
|
-
return true;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
else {
|
|
540
|
-
if (value instanceof cls) {
|
|
541
|
-
return true;
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
return false;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
function isNumeric(value) {
|
|
549
|
-
var str = String(value);
|
|
550
|
-
return str.length && !!str.match(/^-?\d*\.?\d*$/);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
function isObject(value) {
|
|
554
|
-
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
function throttle(func, wait) {
|
|
558
|
-
var waiting = false; // Initially, we're not waiting
|
|
559
|
-
return function () {
|
|
560
|
-
if (!waiting) { // If we're not waiting
|
|
561
|
-
func.apply(null, arguments); // Execute users function
|
|
562
|
-
waiting = true; // Prevent future invocations
|
|
563
|
-
setTimeout(function () {
|
|
564
|
-
waiting = false; // And allow future invocations
|
|
565
|
-
}, wait);
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
var Operation = /** @class */ (function () {
|
|
571
|
-
function Operation(target, name) {
|
|
572
|
-
this.ready$ = new rxjs.Subject();
|
|
573
|
-
this.name = name ? name : guid();
|
|
574
|
-
if (target instanceof rxjs.Observable) {
|
|
575
|
-
this.target = target;
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
this.target = rxjs.of(target);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
return Operation;
|
|
582
|
-
}());
|
|
583
|
-
|
|
584
|
-
exports.QueueState = void 0;
|
|
585
|
-
(function (QueueState) {
|
|
586
|
-
QueueState["Idle"] = "idle";
|
|
587
|
-
QueueState["Processing"] = "processing";
|
|
588
|
-
})(exports.QueueState || (exports.QueueState = {}));
|
|
589
|
-
|
|
590
|
-
var Queue = /** @class */ (function () {
|
|
591
|
-
function Queue(_limit) {
|
|
592
|
-
if (_limit === void 0) { _limit = Infinity; }
|
|
593
|
-
this._limit = _limit;
|
|
594
|
-
this._queueStats = {
|
|
595
|
-
completed: 0,
|
|
596
|
-
total: 0,
|
|
597
|
-
errors: [],
|
|
598
|
-
};
|
|
599
|
-
this._doneQueueStats = {
|
|
600
|
-
completed: 0,
|
|
601
|
-
total: 0,
|
|
602
|
-
errors: [],
|
|
603
|
-
};
|
|
604
|
-
this._completeQueueStats = {
|
|
605
|
-
completed: 0,
|
|
606
|
-
total: 0,
|
|
607
|
-
errors: [],
|
|
608
|
-
};
|
|
609
|
-
this._done = new rxjs.Subject();
|
|
610
|
-
this._queue = [];
|
|
611
|
-
this._inProgress = [];
|
|
612
|
-
this._state = exports.QueueState.Idle;
|
|
613
|
-
this._destroy$ = new rxjs.Subject();
|
|
614
|
-
// if(_targets) {
|
|
615
|
-
// _targets.forEach((target) => {
|
|
616
|
-
// this.push(target);
|
|
617
|
-
// });
|
|
618
|
-
// }
|
|
619
|
-
}
|
|
620
|
-
Object.defineProperty(Queue.prototype, "total", {
|
|
621
|
-
get: function () {
|
|
622
|
-
return this._queueStats.total;
|
|
623
|
-
},
|
|
624
|
-
enumerable: false,
|
|
625
|
-
configurable: true
|
|
626
|
-
});
|
|
627
|
-
Object.defineProperty(Queue.prototype, "completed", {
|
|
628
|
-
get: function () {
|
|
629
|
-
return this._queueStats.completed;
|
|
630
|
-
},
|
|
631
|
-
enumerable: false,
|
|
632
|
-
configurable: true
|
|
633
|
-
});
|
|
634
|
-
Object.defineProperty(Queue.prototype, "pending", {
|
|
635
|
-
get: function () {
|
|
636
|
-
return this._queue.length;
|
|
637
|
-
},
|
|
638
|
-
enumerable: false,
|
|
639
|
-
configurable: true
|
|
640
|
-
});
|
|
641
|
-
Object.defineProperty(Queue.prototype, "inProgress", {
|
|
642
|
-
get: function () {
|
|
643
|
-
return this._inProgress.length;
|
|
644
|
-
},
|
|
645
|
-
enumerable: false,
|
|
646
|
-
configurable: true
|
|
647
|
-
});
|
|
648
|
-
Object.defineProperty(Queue.prototype, "errors", {
|
|
649
|
-
get: function () {
|
|
650
|
-
return this._queueStats.errors;
|
|
651
|
-
},
|
|
652
|
-
enumerable: false,
|
|
653
|
-
configurable: true
|
|
654
|
-
});
|
|
655
|
-
Object.defineProperty(Queue.prototype, "state", {
|
|
656
|
-
get: function () {
|
|
657
|
-
return this._state;
|
|
658
|
-
},
|
|
659
|
-
enumerable: false,
|
|
660
|
-
configurable: true
|
|
661
|
-
});
|
|
662
|
-
Object.defineProperty(Queue.prototype, "empty", {
|
|
663
|
-
get: function () {
|
|
664
|
-
return !this._queue.length && !this._inProgress.length;
|
|
665
|
-
},
|
|
666
|
-
enumerable: false,
|
|
667
|
-
configurable: true
|
|
668
|
-
});
|
|
669
|
-
Object.defineProperty(Queue.prototype, "pendingOperations", {
|
|
670
|
-
get: function () {
|
|
671
|
-
return this._queue
|
|
672
|
-
.map(function (operation) { return operation.name; });
|
|
673
|
-
},
|
|
674
|
-
enumerable: false,
|
|
675
|
-
configurable: true
|
|
676
|
-
});
|
|
677
|
-
Object.defineProperty(Queue.prototype, "inProgressOperations", {
|
|
678
|
-
get: function () {
|
|
679
|
-
return this._inProgress
|
|
680
|
-
.map(function (operation) { return operation.name; });
|
|
681
|
-
},
|
|
682
|
-
enumerable: false,
|
|
683
|
-
configurable: true
|
|
684
|
-
});
|
|
685
|
-
Queue.prototype.isProcessing = function () {
|
|
686
|
-
return this._state === exports.QueueState.Processing;
|
|
687
|
-
};
|
|
688
|
-
Queue.prototype.isIdle = function () {
|
|
689
|
-
return this._state === exports.QueueState.Idle;
|
|
690
|
-
};
|
|
691
|
-
Queue.prototype.setLimit = function (value) {
|
|
692
|
-
this._limit = value;
|
|
693
|
-
};
|
|
694
|
-
/**
|
|
695
|
-
* @depreated
|
|
696
|
-
*/
|
|
697
|
-
Queue.prototype.subscribe = function (fun, err, complete) {
|
|
698
|
-
this.observe$
|
|
699
|
-
.subscribe(fun, err, complete);
|
|
700
|
-
};
|
|
701
|
-
Object.defineProperty(Queue.prototype, "observe$", {
|
|
702
|
-
get: function () {
|
|
703
|
-
return this._done
|
|
704
|
-
.pipe(operators.takeUntil(this._destroy$));
|
|
705
|
-
},
|
|
706
|
-
enumerable: false,
|
|
707
|
-
configurable: true
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(Queue.prototype, "complete$", {
|
|
710
|
-
get: function () {
|
|
711
|
-
var _this = this;
|
|
712
|
-
if (!this.isProcessing()) {
|
|
713
|
-
return rxjs.of({ total: 0, completed: 0, errors: [] });
|
|
714
|
-
}
|
|
715
|
-
return this.observe$
|
|
716
|
-
.pipe(operators.take(1), operators.map(function () { return (_this._completeQueueStats); }));
|
|
717
|
-
},
|
|
718
|
-
enumerable: false,
|
|
719
|
-
configurable: true
|
|
720
|
-
});
|
|
721
|
-
Queue.prototype.complete = function (fun, err, complete) {
|
|
722
|
-
this.complete$.subscribe(fun, err, complete);
|
|
723
|
-
};
|
|
724
|
-
Queue.prototype.push = function (target, name) {
|
|
725
|
-
var operation = new Operation(target, name);
|
|
726
|
-
this._queueStats.total++;
|
|
727
|
-
this._doneQueueStats.total++;
|
|
728
|
-
this._completeQueueStats.total++;
|
|
729
|
-
this._state = exports.QueueState.Processing;
|
|
730
|
-
if (this._inProgress.length < this._limit) {
|
|
731
|
-
this._processOperation(operation);
|
|
732
|
-
}
|
|
733
|
-
else {
|
|
734
|
-
this._queue.push(operation);
|
|
735
|
-
}
|
|
736
|
-
return operation.ready$;
|
|
737
|
-
};
|
|
738
|
-
Queue.prototype.clear = function () {
|
|
739
|
-
this._queue = [];
|
|
740
|
-
this._state = exports.QueueState.Idle;
|
|
741
|
-
this._queueStats = {
|
|
742
|
-
total: 0,
|
|
743
|
-
errors: [],
|
|
744
|
-
completed: 0,
|
|
745
|
-
};
|
|
746
|
-
this._clearDoneQueueStats();
|
|
747
|
-
};
|
|
748
|
-
Queue.prototype.destroy = function () {
|
|
749
|
-
this._done.complete();
|
|
750
|
-
this.clear();
|
|
751
|
-
};
|
|
752
|
-
Queue.prototype._processOperation = function (operation) {
|
|
753
|
-
var _this = this;
|
|
754
|
-
this._inProgress.push(operation);
|
|
755
|
-
operation.target
|
|
756
|
-
.pipe(operators.delay(200), // Hack to prevent extra quick proccess execution
|
|
757
|
-
operators.finalize(function () {
|
|
758
|
-
var opIndex = _this._inProgress.indexOf(operation);
|
|
759
|
-
_this._inProgress.splice(opIndex, 1);
|
|
760
|
-
if (_this.empty) {
|
|
761
|
-
_this._state = exports.QueueState.Idle;
|
|
762
|
-
_this._done.next(_this._doneQueueStats);
|
|
763
|
-
_this._clearDoneQueueStats();
|
|
764
|
-
}
|
|
765
|
-
else {
|
|
766
|
-
if (_this._queue.length) {
|
|
767
|
-
var queueItem = _this._queue.shift();
|
|
768
|
-
_this._processOperation(queueItem);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}), operators.takeUntil(this._destroy$)).subscribe({
|
|
772
|
-
next: function (data) {
|
|
773
|
-
operation.ready$.next(data);
|
|
774
|
-
},
|
|
775
|
-
error: function (error) {
|
|
776
|
-
_this._queueStats.errors.push(error);
|
|
777
|
-
_this._doneQueueStats.errors.push(error);
|
|
778
|
-
_this._completeQueueStats.errors.push(error);
|
|
779
|
-
operation.ready$.error(error);
|
|
780
|
-
},
|
|
781
|
-
complete: function () {
|
|
782
|
-
_this._queueStats.completed++;
|
|
783
|
-
_this._doneQueueStats.completed++;
|
|
784
|
-
_this._completeQueueStats.completed++;
|
|
785
|
-
operation.ready$.complete();
|
|
786
|
-
}
|
|
787
|
-
});
|
|
788
|
-
};
|
|
789
|
-
Queue.prototype._clearDoneQueueStats = function () {
|
|
790
|
-
this._doneQueueStats = {
|
|
791
|
-
total: 0,
|
|
792
|
-
errors: [],
|
|
793
|
-
completed: 0,
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
return Queue;
|
|
797
|
-
}());
|
|
798
|
-
|
|
799
|
-
function removeQueryParams(path) {
|
|
800
|
-
return path.split('?')[0];
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
function getNormalizedPath(locationSrv) {
|
|
804
|
-
var path = locationSrv.prepareExternalUrl(locationSrv.path());
|
|
805
|
-
return removeQueryParams(path);
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
/*! *****************************************************************************
|
|
809
|
-
Copyright (c) Microsoft Corporation.
|
|
810
|
-
|
|
811
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
812
|
-
purpose with or without fee is hereby granted.
|
|
813
|
-
|
|
814
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
815
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
816
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
817
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
818
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
819
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
820
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
821
|
-
***************************************************************************** */
|
|
822
|
-
/* global Reflect, Promise */
|
|
823
|
-
var extendStatics = function (d, b) {
|
|
824
|
-
extendStatics = Object.setPrototypeOf ||
|
|
825
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
826
|
-
function (d, b) { for (var p in b)
|
|
827
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
828
|
-
d[p] = b[p]; };
|
|
829
|
-
return extendStatics(d, b);
|
|
830
|
-
};
|
|
831
|
-
function __extends(d, b) {
|
|
832
|
-
if (typeof b !== "function" && b !== null)
|
|
833
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
834
|
-
extendStatics(d, b);
|
|
835
|
-
function __() { this.constructor = d; }
|
|
836
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
837
|
-
}
|
|
838
|
-
var __assign = function () {
|
|
839
|
-
__assign = Object.assign || function __assign(t) {
|
|
840
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
841
|
-
s = arguments[i];
|
|
842
|
-
for (var p in s)
|
|
843
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
844
|
-
t[p] = s[p];
|
|
845
|
-
}
|
|
846
|
-
return t;
|
|
847
|
-
};
|
|
848
|
-
return __assign.apply(this, arguments);
|
|
849
|
-
};
|
|
850
|
-
function __rest(s, e) {
|
|
851
|
-
var t = {};
|
|
852
|
-
for (var p in s)
|
|
853
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
854
|
-
t[p] = s[p];
|
|
855
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
856
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
857
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
858
|
-
t[p[i]] = s[p[i]];
|
|
859
|
-
}
|
|
860
|
-
return t;
|
|
861
|
-
}
|
|
862
|
-
function __decorate(decorators, target, key, desc) {
|
|
863
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
864
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
865
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
866
|
-
else
|
|
867
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
868
|
-
if (d = decorators[i])
|
|
869
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
870
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
871
|
-
}
|
|
872
|
-
function __param(paramIndex, decorator) {
|
|
873
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
874
|
-
}
|
|
875
|
-
function __metadata(metadataKey, metadataValue) {
|
|
876
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
877
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
878
|
-
}
|
|
879
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
880
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
881
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
882
|
-
function fulfilled(value) { try {
|
|
883
|
-
step(generator.next(value));
|
|
884
|
-
}
|
|
885
|
-
catch (e) {
|
|
886
|
-
reject(e);
|
|
887
|
-
} }
|
|
888
|
-
function rejected(value) { try {
|
|
889
|
-
step(generator["throw"](value));
|
|
890
|
-
}
|
|
891
|
-
catch (e) {
|
|
892
|
-
reject(e);
|
|
893
|
-
} }
|
|
894
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
895
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
function __generator(thisArg, body) {
|
|
899
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
900
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
901
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
902
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
903
|
-
function step(op) {
|
|
904
|
-
if (f)
|
|
905
|
-
throw new TypeError("Generator is already executing.");
|
|
906
|
-
while (_)
|
|
907
|
-
try {
|
|
908
|
-
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)
|
|
909
|
-
return t;
|
|
910
|
-
if (y = 0, t)
|
|
911
|
-
op = [op[0] & 2, t.value];
|
|
912
|
-
switch (op[0]) {
|
|
913
|
-
case 0:
|
|
914
|
-
case 1:
|
|
915
|
-
t = op;
|
|
916
|
-
break;
|
|
917
|
-
case 4:
|
|
918
|
-
_.label++;
|
|
919
|
-
return { value: op[1], done: false };
|
|
920
|
-
case 5:
|
|
921
|
-
_.label++;
|
|
922
|
-
y = op[1];
|
|
923
|
-
op = [0];
|
|
924
|
-
continue;
|
|
925
|
-
case 7:
|
|
926
|
-
op = _.ops.pop();
|
|
927
|
-
_.trys.pop();
|
|
928
|
-
continue;
|
|
929
|
-
default:
|
|
930
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
931
|
-
_ = 0;
|
|
932
|
-
continue;
|
|
933
|
-
}
|
|
934
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
935
|
-
_.label = op[1];
|
|
936
|
-
break;
|
|
937
|
-
}
|
|
938
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
939
|
-
_.label = t[1];
|
|
940
|
-
t = op;
|
|
941
|
-
break;
|
|
942
|
-
}
|
|
943
|
-
if (t && _.label < t[2]) {
|
|
944
|
-
_.label = t[2];
|
|
945
|
-
_.ops.push(op);
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
if (t[2])
|
|
949
|
-
_.ops.pop();
|
|
950
|
-
_.trys.pop();
|
|
951
|
-
continue;
|
|
952
|
-
}
|
|
953
|
-
op = body.call(thisArg, _);
|
|
954
|
-
}
|
|
955
|
-
catch (e) {
|
|
956
|
-
op = [6, e];
|
|
957
|
-
y = 0;
|
|
958
|
-
}
|
|
959
|
-
finally {
|
|
960
|
-
f = t = 0;
|
|
961
|
-
}
|
|
962
|
-
if (op[0] & 5)
|
|
963
|
-
throw op[1];
|
|
964
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
968
|
-
if (k2 === undefined)
|
|
969
|
-
k2 = k;
|
|
970
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
971
|
-
}) : (function (o, m, k, k2) {
|
|
972
|
-
if (k2 === undefined)
|
|
973
|
-
k2 = k;
|
|
974
|
-
o[k2] = m[k];
|
|
975
|
-
});
|
|
976
|
-
function __exportStar(m, o) {
|
|
977
|
-
for (var p in m)
|
|
978
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
979
|
-
__createBinding(o, m, p);
|
|
980
|
-
}
|
|
981
|
-
function __values(o) {
|
|
982
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
983
|
-
if (m)
|
|
984
|
-
return m.call(o);
|
|
985
|
-
if (o && typeof o.length === "number")
|
|
986
|
-
return {
|
|
987
|
-
next: function () {
|
|
988
|
-
if (o && i >= o.length)
|
|
989
|
-
o = void 0;
|
|
990
|
-
return { value: o && o[i++], done: !o };
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
994
|
-
}
|
|
995
|
-
function __read(o, n) {
|
|
996
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
997
|
-
if (!m)
|
|
998
|
-
return o;
|
|
999
|
-
var i = m.call(o), r, ar = [], e;
|
|
1000
|
-
try {
|
|
1001
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
1002
|
-
ar.push(r.value);
|
|
1003
|
-
}
|
|
1004
|
-
catch (error) {
|
|
1005
|
-
e = { error: error };
|
|
1006
|
-
}
|
|
1007
|
-
finally {
|
|
1008
|
-
try {
|
|
1009
|
-
if (r && !r.done && (m = i["return"]))
|
|
1010
|
-
m.call(i);
|
|
1011
|
-
}
|
|
1012
|
-
finally {
|
|
1013
|
-
if (e)
|
|
1014
|
-
throw e.error;
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
return ar;
|
|
1018
|
-
}
|
|
1019
|
-
/** @deprecated */
|
|
1020
|
-
function __spread() {
|
|
1021
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1022
|
-
ar = ar.concat(__read(arguments[i]));
|
|
1023
|
-
return ar;
|
|
1024
|
-
}
|
|
1025
|
-
/** @deprecated */
|
|
1026
|
-
function __spreadArrays() {
|
|
1027
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1028
|
-
s += arguments[i].length;
|
|
1029
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1030
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1031
|
-
r[k] = a[j];
|
|
1032
|
-
return r;
|
|
1033
|
-
}
|
|
1034
|
-
function __spreadArray(to, from, pack) {
|
|
1035
|
-
if (pack || arguments.length === 2)
|
|
1036
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1037
|
-
if (ar || !(i in from)) {
|
|
1038
|
-
if (!ar)
|
|
1039
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
1040
|
-
ar[i] = from[i];
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1044
|
-
}
|
|
1045
|
-
function __await(v) {
|
|
1046
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
1047
|
-
}
|
|
1048
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1049
|
-
if (!Symbol.asyncIterator)
|
|
1050
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1051
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
1052
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
1053
|
-
function verb(n) { if (g[n])
|
|
1054
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
1055
|
-
function resume(n, v) { try {
|
|
1056
|
-
step(g[n](v));
|
|
1057
|
-
}
|
|
1058
|
-
catch (e) {
|
|
1059
|
-
settle(q[0][3], e);
|
|
1060
|
-
} }
|
|
1061
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
1062
|
-
function fulfill(value) { resume("next", value); }
|
|
1063
|
-
function reject(value) { resume("throw", value); }
|
|
1064
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
1065
|
-
resume(q[0][0], q[0][1]); }
|
|
1066
|
-
}
|
|
1067
|
-
function __asyncDelegator(o) {
|
|
1068
|
-
var i, p;
|
|
1069
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
1070
|
-
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; }
|
|
1071
|
-
}
|
|
1072
|
-
function __asyncValues(o) {
|
|
1073
|
-
if (!Symbol.asyncIterator)
|
|
1074
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1075
|
-
var m = o[Symbol.asyncIterator], i;
|
|
1076
|
-
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);
|
|
1077
|
-
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); }); }; }
|
|
1078
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
1079
|
-
}
|
|
1080
|
-
function __makeTemplateObject(cooked, raw) {
|
|
1081
|
-
if (Object.defineProperty) {
|
|
1082
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1083
|
-
}
|
|
1084
|
-
else {
|
|
1085
|
-
cooked.raw = raw;
|
|
1086
|
-
}
|
|
1087
|
-
return cooked;
|
|
1088
|
-
}
|
|
1089
|
-
;
|
|
1090
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
1091
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1092
|
-
}) : function (o, v) {
|
|
1093
|
-
o["default"] = v;
|
|
1094
|
-
};
|
|
1095
|
-
function __importStar(mod) {
|
|
1096
|
-
if (mod && mod.__esModule)
|
|
1097
|
-
return mod;
|
|
1098
|
-
var result = {};
|
|
1099
|
-
if (mod != null)
|
|
1100
|
-
for (var k in mod)
|
|
1101
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
1102
|
-
__createBinding(result, mod, k);
|
|
1103
|
-
__setModuleDefault(result, mod);
|
|
1104
|
-
return result;
|
|
1105
|
-
}
|
|
1106
|
-
function __importDefault(mod) {
|
|
1107
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
1108
|
-
}
|
|
1109
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
1110
|
-
if (kind === "a" && !f)
|
|
1111
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
1112
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1113
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1114
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1115
|
-
}
|
|
1116
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1117
|
-
if (kind === "m")
|
|
1118
|
-
throw new TypeError("Private method is not writable");
|
|
1119
|
-
if (kind === "a" && !f)
|
|
1120
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
1121
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1122
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1123
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
function ordinalNumber(value) {
|
|
1127
|
-
value = String(value);
|
|
1128
|
-
var index = value.match(templateObject_1 || (templateObject_1 = __makeTemplateObject(["1?.$"], ["1?.$"])));
|
|
1129
|
-
var endings = [, 'st', 'nd', 'rd'];
|
|
1130
|
-
var ending = endings[index] || 'th';
|
|
1131
|
-
return value + ending;
|
|
1132
|
-
}
|
|
1133
|
-
var templateObject_1;
|
|
1134
|
-
|
|
1135
|
-
function round(num, decimalPlaces) {
|
|
1136
|
-
if (decimalPlaces === void 0) { decimalPlaces = 0; }
|
|
1137
|
-
num = parseFloat(parseFloat(num).toPrecision(Number.MAX_SAFE_INTEGER.toString().length - 1));
|
|
1138
|
-
var p = Math.pow(10, decimalPlaces);
|
|
1139
|
-
return Math.round(num * p) / p;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
function clone(obj) {
|
|
1143
|
-
if (obj instanceof Date) {
|
|
1144
|
-
return new Date(obj);
|
|
1145
|
-
}
|
|
1146
|
-
else if (Array.isArray(obj)) {
|
|
1147
|
-
var arr = [];
|
|
1148
|
-
for (var i = 0; i < obj.length; i++) {
|
|
1149
|
-
arr[i] = clone(obj[i]);
|
|
1150
|
-
}
|
|
1151
|
-
return arr;
|
|
1152
|
-
}
|
|
1153
|
-
else if (typeof (obj) === 'object') {
|
|
1154
|
-
var cloned = {};
|
|
1155
|
-
for (var key in obj) {
|
|
1156
|
-
cloned[key] = clone(obj[key]);
|
|
1157
|
-
}
|
|
1158
|
-
return cloned;
|
|
1159
|
-
}
|
|
1160
|
-
return obj;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
function toString(value) {
|
|
1164
|
-
if (value === null || value === undefined) {
|
|
1165
|
-
return '';
|
|
1166
|
-
}
|
|
1167
|
-
return "" + value;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
function isArrayEqual(arr1, arr2) {
|
|
1171
|
-
if (!Array.isArray(arr1) || !Array.isArray(arr2) || arr1.length !== arr2.length) {
|
|
1172
|
-
return false;
|
|
1173
|
-
}
|
|
1174
|
-
var sortFn = function (a, b) {
|
|
1175
|
-
if (a < b) {
|
|
1176
|
-
return -1;
|
|
1177
|
-
}
|
|
1178
|
-
else if (a > b) {
|
|
1179
|
-
return 1;
|
|
1180
|
-
}
|
|
1181
|
-
else {
|
|
1182
|
-
return 0;
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
arr1 = __spreadArray([], __read(arr1)).sort(sortFn);
|
|
1186
|
-
arr2 = __spreadArray([], __read(arr2)).sort(sortFn);
|
|
1187
|
-
return arr1.every(function (value, index) {
|
|
1188
|
-
return value === arr2[index];
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
var fsSourceLoader = (function () {
|
|
1193
|
-
var _document;
|
|
1194
|
-
var _headElement;
|
|
1195
|
-
var _sources = new Map();
|
|
1196
|
-
var _loadedResources = new Map();
|
|
1197
|
-
// bad way but don't want to bother developer
|
|
1198
|
-
setDocument(document);
|
|
1199
|
-
// but developer can set document at any time
|
|
1200
|
-
function setDocument(document) {
|
|
1201
|
-
_document = document;
|
|
1202
|
-
_headElement = _document === null || _document === void 0 ? void 0 : _document.head;
|
|
1203
|
-
}
|
|
1204
|
-
/**
|
|
1205
|
-
* register a list of the resources for future loading
|
|
1206
|
-
*
|
|
1207
|
-
* example:
|
|
1208
|
-
* sourceLoader.registerResources({
|
|
1209
|
-
* froala: [
|
|
1210
|
-
* '/assets/js/froala/froala_editor.min.js',
|
|
1211
|
-
* '/assets/css/froala_editor.pkgd.min.css',
|
|
1212
|
-
* ],
|
|
1213
|
-
* froala_align: '/assets/js/froala/plugins/align.min.js',
|
|
1214
|
-
* froala_colors: '/assets/js/froala/plugins/colors.min.js',
|
|
1215
|
-
* froala_image: '/assets/js/froala/plugins/image.min.js',
|
|
1216
|
-
* });
|
|
1217
|
-
*
|
|
1218
|
-
*/
|
|
1219
|
-
function registerResources(resources) {
|
|
1220
|
-
Object.entries(resources)
|
|
1221
|
-
.forEach(function (_a) {
|
|
1222
|
-
var _b = __read(_a, 2), name = _b[0], path = _b[1];
|
|
1223
|
-
if (typeof path === 'string') {
|
|
1224
|
-
path = [path];
|
|
1225
|
-
}
|
|
1226
|
-
if (!_sources.has(name)) {
|
|
1227
|
-
_sources.set(name, new Set());
|
|
1228
|
-
}
|
|
1229
|
-
var resourcesList = _sources.get(name);
|
|
1230
|
-
path.forEach(function (p) {
|
|
1231
|
-
resourcesList.add(p);
|
|
1232
|
-
});
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
/**
|
|
1236
|
-
* load any resource previously registered
|
|
1237
|
-
*
|
|
1238
|
-
* sourceLoader.loadResource('froala')
|
|
1239
|
-
*
|
|
1240
|
-
* or load any js/css file
|
|
1241
|
-
*
|
|
1242
|
-
* sourceLoader.loadResource('/assets/my-source.js')
|
|
1243
|
-
*
|
|
1244
|
-
*/
|
|
1245
|
-
function loadResource(name) {
|
|
1246
|
-
if (_loadedResources.has(name)) {
|
|
1247
|
-
return _loadedResources.get(name);
|
|
1248
|
-
}
|
|
1249
|
-
if (_sources.has(name)) {
|
|
1250
|
-
var sourcesForLoading = __spreadArray([], __read(_sources.get(name))).map(function (path) {
|
|
1251
|
-
return _loadResource(path);
|
|
1252
|
-
})
|
|
1253
|
-
.filter(function (v) { return !!v; });
|
|
1254
|
-
return rxjs.combineLatest(sourcesForLoading);
|
|
1255
|
-
}
|
|
1256
|
-
return _loadResource(name);
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* the same as `loadResource` but you can pass list of the resources for loading
|
|
1260
|
-
*/
|
|
1261
|
-
function loadResources(listOfResources) {
|
|
1262
|
-
var resourcesToLoad = listOfResources
|
|
1263
|
-
.reduce(function (acc, name) {
|
|
1264
|
-
var loading$ = loadResource(name);
|
|
1265
|
-
if (loading$) {
|
|
1266
|
-
acc.push(loading$);
|
|
1267
|
-
}
|
|
1268
|
-
return acc;
|
|
1269
|
-
}, []);
|
|
1270
|
-
return rxjs.combineLatest(resourcesToLoad);
|
|
1271
|
-
}
|
|
1272
|
-
///
|
|
1273
|
-
function _loadResource(path) {
|
|
1274
|
-
if (_isStylesUrl(path)) {
|
|
1275
|
-
return _loadStyles(path);
|
|
1276
|
-
}
|
|
1277
|
-
if (_isJavascriptUrl(path)) {
|
|
1278
|
-
return _loadJs(path);
|
|
1279
|
-
}
|
|
1280
|
-
console.warn("Resource " + path + " can not be identified and loaded");
|
|
1281
|
-
return null;
|
|
1282
|
-
}
|
|
1283
|
-
function _loadJs(scriptPath) {
|
|
1284
|
-
if (!_loadedResources.has(scriptPath)) {
|
|
1285
|
-
var obs$ = new rxjs.Observable(function (obs) {
|
|
1286
|
-
var script = document.createElement('script');
|
|
1287
|
-
script.src = scriptPath;
|
|
1288
|
-
_headElement.appendChild(script);
|
|
1289
|
-
script.onload = function () {
|
|
1290
|
-
obs.next();
|
|
1291
|
-
obs.complete();
|
|
1292
|
-
};
|
|
1293
|
-
script.onerror = function (err) {
|
|
1294
|
-
obs.error(err);
|
|
1295
|
-
};
|
|
1296
|
-
}).pipe(operators.shareReplay(1));
|
|
1297
|
-
_loadedResources.set(scriptPath, obs$);
|
|
1298
|
-
}
|
|
1299
|
-
return _loadedResources.get(scriptPath);
|
|
1300
|
-
}
|
|
1301
|
-
function _loadStyles(stylePath) {
|
|
1302
|
-
if (!_loadedResources.has(stylePath)) {
|
|
1303
|
-
var obs$ = new rxjs.Observable(function (obs) {
|
|
1304
|
-
var style = document.createElement('link');
|
|
1305
|
-
style.id = stylePath;
|
|
1306
|
-
style.rel = 'stylesheet';
|
|
1307
|
-
style.href = "" + stylePath;
|
|
1308
|
-
_headElement.appendChild(style);
|
|
1309
|
-
style.onload = function () {
|
|
1310
|
-
obs.next();
|
|
1311
|
-
obs.complete();
|
|
1312
|
-
};
|
|
1313
|
-
style.onerror = function (err) {
|
|
1314
|
-
obs.error(err);
|
|
1315
|
-
};
|
|
1316
|
-
});
|
|
1317
|
-
_loadedResources.set(stylePath, obs$);
|
|
1318
|
-
}
|
|
1319
|
-
return _loadedResources.get(stylePath);
|
|
1320
|
-
}
|
|
1321
|
-
function _isJavascriptUrl(url) {
|
|
1322
|
-
return url.endsWith('.js');
|
|
1323
|
-
}
|
|
1324
|
-
function _isStylesUrl(url) {
|
|
1325
|
-
return url.endsWith('.css');
|
|
1326
|
-
}
|
|
1327
|
-
return {
|
|
1328
|
-
setDocument: setDocument,
|
|
1329
|
-
registerResources: registerResources,
|
|
1330
|
-
loadResource: loadResource,
|
|
1331
|
-
loadResources: loadResources,
|
|
1332
|
-
};
|
|
1333
|
-
})();
|
|
1334
|
-
|
|
1335
|
-
function number(value, decimals) {
|
|
1336
|
-
if (isNumeric(decimals)) {
|
|
1337
|
-
value = round(value, decimals);
|
|
1338
|
-
}
|
|
1339
|
-
return Number(value || 0).toLocaleString(undefined, { maximumFractionDigits: decimals });
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
function acronym(str, length) {
|
|
1343
|
-
if (length === void 0) { length = 2; }
|
|
1344
|
-
var splittedString = str
|
|
1345
|
-
.replace(/[^a-zA-Z0-9]+/g, ' ')
|
|
1346
|
-
.split(' ');
|
|
1347
|
-
var result = '';
|
|
1348
|
-
for (var i = 0; i < length; i++) {
|
|
1349
|
-
if (!splittedString[i]) {
|
|
1350
|
-
if (splittedString.length === 1) {
|
|
1351
|
-
for (var j = 1; j < length; j++) {
|
|
1352
|
-
if (!splittedString[i - 1][j]) {
|
|
1353
|
-
break;
|
|
1354
|
-
}
|
|
1355
|
-
result += splittedString[i - 1][j].toUpperCase();
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
break;
|
|
1359
|
-
}
|
|
1360
|
-
result += splittedString[i][0].toUpperCase();
|
|
1361
|
-
}
|
|
1362
|
-
return result;
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
function currency(amount, precision, currencyCode, locale) {
|
|
1366
|
-
if (precision === void 0) { precision = [2, 10]; }
|
|
1367
|
-
if (currencyCode === void 0) { currencyCode = 'USD'; }
|
|
1368
|
-
if (locale === void 0) { locale = 'en-US'; }
|
|
1369
|
-
var digitsInfo = Array.isArray(precision) ? precision : [precision, precision];
|
|
1370
|
-
amount = round(amount, digitsInfo[1]);
|
|
1371
|
-
return new common.CurrencyPipe(locale)
|
|
1372
|
-
.transform(amount, currencyCode, 'symbol', "1." + digitsInfo[0] + "-" + digitsInfo[1]);
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
function truncate(value, limit, completeWords, ellipsis) {
|
|
1376
|
-
if (limit === void 0) { limit = 100; }
|
|
1377
|
-
if (completeWords === void 0) { completeWords = false; }
|
|
1378
|
-
if (ellipsis === void 0) { ellipsis = '...'; }
|
|
1379
|
-
value = value || '';
|
|
1380
|
-
if (completeWords) {
|
|
1381
|
-
limit = value.substr(0, limit).lastIndexOf(' ');
|
|
1382
|
-
}
|
|
1383
|
-
var result = "" + value.substr(0, limit);
|
|
1384
|
-
if (result !== value) {
|
|
1385
|
-
result += ellipsis;
|
|
1386
|
-
}
|
|
1387
|
-
return result;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
function delayedRetry(delayMs, maxRetry, message) {
|
|
1391
|
-
if (maxRetry === void 0) { maxRetry = 5; }
|
|
1392
|
-
var retries = 0;
|
|
1393
|
-
return function (src) { return src.pipe(operators.retryWhen(function (errors) { return errors.pipe(operators.tap(function () {
|
|
1394
|
-
retries++;
|
|
1395
|
-
if (retries <= maxRetry) {
|
|
1396
|
-
console.info("Failed to load Resource. Retry in " + delayMs / 1000 + " sec. " + retries + "/" + maxRetry + " times...");
|
|
1397
|
-
}
|
|
1398
|
-
}), operators.concatMap(function (error) { return rxjs.iif(function () { return retries > maxRetry; }, rxjs.throwError(getErrorMessage(maxRetry, message)), rxjs.timer(delayMs)); })); })); };
|
|
1399
|
-
}
|
|
1400
|
-
var getErrorMessage = function (maxRetry, defaultMessage) {
|
|
1401
|
-
if (!defaultMessage) {
|
|
1402
|
-
return "Failed to load Resource for " + maxRetry + " times. Giving up.";
|
|
1403
|
-
}
|
|
1404
|
-
else {
|
|
1405
|
-
return defaultMessage;
|
|
1406
|
-
}
|
|
1407
|
-
};
|
|
1408
|
-
|
|
1409
|
-
function bytes(bytes, decimals, unit) {
|
|
1410
|
-
if (!bytes) {
|
|
1411
|
-
return '0 MB';
|
|
1412
|
-
}
|
|
1413
|
-
var e = typeof unit === 'string' ?
|
|
1414
|
-
'KMGTP'.indexOf(unit.replace('B', '')) + 1 :
|
|
1415
|
-
Math.floor(Math.log(bytes) / Math.log(1024));
|
|
1416
|
-
if (!isNumeric(decimals)) {
|
|
1417
|
-
decimals = (bytes / 1024) > 1000 ? 2 : 0;
|
|
1418
|
-
}
|
|
1419
|
-
return ("" + (bytes / Math.pow(1024, e))
|
|
1420
|
-
.toFixed(decimals))
|
|
1421
|
-
.replace(/\.00/, '')
|
|
1422
|
-
+ ' '
|
|
1423
|
-
+ (e ? ' KMGTP'.charAt(e) : '') + 'B';
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
var FsFormatBytesPipe = /** @class */ (function () {
|
|
1427
|
-
function FsFormatBytesPipe() {
|
|
1428
|
-
}
|
|
1429
|
-
FsFormatBytesPipe.prototype.transform = function (value, decimals, unit) {
|
|
1430
|
-
return bytes(value, decimals, unit);
|
|
1431
|
-
};
|
|
1432
|
-
return FsFormatBytesPipe;
|
|
1433
|
-
}());
|
|
1434
|
-
FsFormatBytesPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatBytesPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1435
|
-
FsFormatBytesPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatBytesPipe, name: "fsFormatBytes" });
|
|
1436
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatBytesPipe, decorators: [{
|
|
1437
|
-
type: i0.Pipe,
|
|
1438
|
-
args: [{
|
|
1439
|
-
name: 'fsFormatBytes',
|
|
1440
|
-
}]
|
|
1441
|
-
}] });
|
|
1442
|
-
|
|
1443
|
-
var FsFormatCurrencyPipe = /** @class */ (function () {
|
|
1444
|
-
function FsFormatCurrencyPipe(locale) {
|
|
1445
|
-
this.locale = locale;
|
|
1446
|
-
}
|
|
1447
|
-
FsFormatCurrencyPipe.prototype.transform = function (amount, precision, currencyCode) {
|
|
1448
|
-
if (precision === void 0) { precision = 2; }
|
|
1449
|
-
return currency(amount, precision, currencyCode);
|
|
1450
|
-
};
|
|
1451
|
-
return FsFormatCurrencyPipe;
|
|
1452
|
-
}());
|
|
1453
|
-
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 });
|
|
1454
|
-
FsFormatCurrencyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatCurrencyPipe, name: "fsFormatCurrency" });
|
|
1455
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatCurrencyPipe, decorators: [{
|
|
1456
|
-
type: i0.Pipe,
|
|
1457
|
-
args: [{
|
|
1458
|
-
name: 'fsFormatCurrency',
|
|
1459
|
-
}]
|
|
1460
|
-
}], ctorParameters: function () {
|
|
1461
|
-
return [{ type: undefined, decorators: [{
|
|
1462
|
-
type: i0.Inject,
|
|
1463
|
-
args: [i0.LOCALE_ID]
|
|
1464
|
-
}] }];
|
|
1465
|
-
} });
|
|
1466
|
-
|
|
1467
|
-
var FsFormatNumberPipe = /** @class */ (function () {
|
|
1468
|
-
function FsFormatNumberPipe() {
|
|
1469
|
-
}
|
|
1470
|
-
FsFormatNumberPipe.prototype.transform = function (value, decimals) {
|
|
1471
|
-
return number(value, decimals);
|
|
1472
|
-
};
|
|
1473
|
-
return FsFormatNumberPipe;
|
|
1474
|
-
}());
|
|
1475
|
-
FsFormatNumberPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatNumberPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1476
|
-
FsFormatNumberPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatNumberPipe, name: "fsFormatNumber" });
|
|
1477
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatNumberPipe, decorators: [{
|
|
1478
|
-
type: i0.Pipe,
|
|
1479
|
-
args: [{
|
|
1480
|
-
name: 'fsFormatNumber'
|
|
1481
|
-
}]
|
|
1482
|
-
}] });
|
|
1483
|
-
|
|
1484
|
-
var FsFormatOrdinalNumberPipe = /** @class */ (function () {
|
|
1485
|
-
function FsFormatOrdinalNumberPipe() {
|
|
1486
|
-
}
|
|
1487
|
-
FsFormatOrdinalNumberPipe.prototype.transform = function (value) {
|
|
1488
|
-
return ordinalNumber(value);
|
|
1489
|
-
};
|
|
1490
|
-
return FsFormatOrdinalNumberPipe;
|
|
1491
|
-
}());
|
|
1492
|
-
FsFormatOrdinalNumberPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatOrdinalNumberPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1493
|
-
FsFormatOrdinalNumberPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatOrdinalNumberPipe, name: "fsFormatOrdinalNumber" });
|
|
1494
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatOrdinalNumberPipe, decorators: [{
|
|
1495
|
-
type: i0.Pipe,
|
|
1496
|
-
args: [{
|
|
1497
|
-
name: 'fsFormatOrdinalNumber',
|
|
1498
|
-
}]
|
|
1499
|
-
}] });
|
|
1500
|
-
|
|
1501
|
-
var FsFormatTruncatePipe = /** @class */ (function () {
|
|
1502
|
-
function FsFormatTruncatePipe() {
|
|
1503
|
-
}
|
|
1504
|
-
FsFormatTruncatePipe.prototype.transform = function (value, limit, completeWords, ellipsis) {
|
|
1505
|
-
return truncate(value, limit, completeWords, ellipsis);
|
|
1506
|
-
};
|
|
1507
|
-
return FsFormatTruncatePipe;
|
|
1508
|
-
}());
|
|
1509
|
-
FsFormatTruncatePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatTruncatePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1510
|
-
FsFormatTruncatePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatTruncatePipe, name: "fsFormatTruncate" });
|
|
1511
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsFormatTruncatePipe, decorators: [{
|
|
1512
|
-
type: i0.Pipe,
|
|
1513
|
-
args: [{
|
|
1514
|
-
name: 'fsFormatTruncate'
|
|
1515
|
-
}]
|
|
1516
|
-
}], ctorParameters: function () { return []; } });
|
|
1517
|
-
|
|
1518
|
-
var FsArray = /** @class */ (function () {
|
|
1519
|
-
function FsArray() {
|
|
1520
|
-
}
|
|
1521
|
-
/**
|
|
1522
|
-
* @deprecated use import { nameValue } from @firestitch/common/array; instead
|
|
1523
|
-
*/
|
|
1524
|
-
FsArray.prototype.nameValue = function (array, name, value) {
|
|
1525
|
-
console.warn('@deprecated use import { nameValue } from @firestitch/common/array; instead');
|
|
1526
|
-
var list = [];
|
|
1527
|
-
if (name || value) {
|
|
1528
|
-
var nameFn_1 = typeof name === 'function' ? name : function (item) { return item[name]; };
|
|
1529
|
-
var valueFn_1 = typeof value === 'function' ? value : function (item) { return item[value]; };
|
|
1530
|
-
array.forEach(function (item) {
|
|
1531
|
-
list.push({ name: nameFn_1(item), value: valueFn_1(item) });
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
else {
|
|
1535
|
-
array.forEach(function (name, value) {
|
|
1536
|
-
list.push({ name: name, value: value });
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
return list;
|
|
1540
|
-
};
|
|
1541
|
-
/**
|
|
1542
|
-
* @deprecated use import { remove } from @firestitch/common/array; instead
|
|
1543
|
-
*/
|
|
1544
|
-
FsArray.prototype.remove = function (array, query) {
|
|
1545
|
-
console.warn('@deprecated use import { remove } from @firestitch/common/array; instead');
|
|
1546
|
-
var idx = this.indexOf(array, query);
|
|
1547
|
-
if (idx >= 0) {
|
|
1548
|
-
return array.splice(idx, 1);
|
|
1549
|
-
}
|
|
1550
|
-
return idx;
|
|
1551
|
-
};
|
|
1552
|
-
/**
|
|
1553
|
-
* @deprecated use import { indexOf } from @firestitch/common/array; instead
|
|
1554
|
-
*/
|
|
1555
|
-
FsArray.prototype.indexOf = function (array, query) {
|
|
1556
|
-
var _this = this;
|
|
1557
|
-
console.warn('@deprecated use import { indexOf } from @firestitch/common/array; instead');
|
|
1558
|
-
if (typeof query !== 'function') {
|
|
1559
|
-
var queryObj_1 = query;
|
|
1560
|
-
query = function (item) {
|
|
1561
|
-
return _this.compare(queryObj_1, item);
|
|
1562
|
-
};
|
|
1563
|
-
}
|
|
1564
|
-
for (var i = 0, len = array.length; i < len; i++) {
|
|
1565
|
-
if (query(array[i])) {
|
|
1566
|
-
return i;
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
return -1;
|
|
1570
|
-
};
|
|
1571
|
-
/**
|
|
1572
|
-
* @deprecated use import { compare } from @firestitch/common/array; instead
|
|
1573
|
-
*/
|
|
1574
|
-
FsArray.prototype.compare = function (query, item) {
|
|
1575
|
-
console.warn('@deprecated use import { compare } from @firestitch/common/array; instead');
|
|
1576
|
-
var value = true;
|
|
1577
|
-
for (var key in query) {
|
|
1578
|
-
value = value && item[key] == query[key];
|
|
1579
|
-
}
|
|
1580
|
-
return value;
|
|
1581
|
-
};
|
|
1582
|
-
/**
|
|
1583
|
-
* @deprecated use import { filter } from @firestitch/common/array; instead
|
|
1584
|
-
*/
|
|
1585
|
-
FsArray.prototype.filter = function (array, query) {
|
|
1586
|
-
var _this = this;
|
|
1587
|
-
console.warn('@deprecated use import { filter } from @firestitch/common/array; instead');
|
|
1588
|
-
if (typeof query !== 'function') {
|
|
1589
|
-
var queryObj_2 = query;
|
|
1590
|
-
query = function (item) {
|
|
1591
|
-
return _this.compare(queryObj_2, item);
|
|
1592
|
-
};
|
|
1593
|
-
}
|
|
1594
|
-
var isarray = Array.isArray(array);
|
|
1595
|
-
var list = isarray ? [] : {};
|
|
1596
|
-
if (isarray)
|
|
1597
|
-
array.forEach(function (item, idx) {
|
|
1598
|
-
if (query(item)) {
|
|
1599
|
-
list.push(item);
|
|
1600
|
-
}
|
|
1601
|
-
});
|
|
1602
|
-
else
|
|
1603
|
-
Object.keys(array).forEach(function (key) {
|
|
1604
|
-
if (query(array[key])) {
|
|
1605
|
-
list[key] = array[key];
|
|
1606
|
-
}
|
|
1607
|
-
});
|
|
1608
|
-
return list;
|
|
1609
|
-
};
|
|
1610
|
-
/**
|
|
1611
|
-
* @deprecated use import { index } from @firestitch/common/array; instead
|
|
1612
|
-
*/
|
|
1613
|
-
FsArray.prototype.index = function (array, property) {
|
|
1614
|
-
console.warn('@deprecated use import { index } from @firestitch/common/array; instead');
|
|
1615
|
-
var list = {};
|
|
1616
|
-
array.forEach(function (item, idx) {
|
|
1617
|
-
list[item[property]] = item;
|
|
1618
|
-
});
|
|
1619
|
-
return list;
|
|
1620
|
-
};
|
|
1621
|
-
/**
|
|
1622
|
-
* @deprecated use import { sort } from @firestitch/common/array; instead
|
|
1623
|
-
*/
|
|
1624
|
-
FsArray.prototype.sort = function (array, query, reverse) {
|
|
1625
|
-
if (reverse === void 0) { reverse = false; }
|
|
1626
|
-
console.warn('@deprecated use import { sort } from @firestitch/common/array; instead');
|
|
1627
|
-
if (typeof query !== 'function') {
|
|
1628
|
-
var queryStr_1 = query;
|
|
1629
|
-
query = function (a, b) {
|
|
1630
|
-
if (reverse) {
|
|
1631
|
-
if (a[queryStr_1] < b[queryStr_1]) {
|
|
1632
|
-
return 1;
|
|
1633
|
-
}
|
|
1634
|
-
else if (a[queryStr_1] > b[queryStr_1]) {
|
|
1635
|
-
return -1;
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
else {
|
|
1639
|
-
if (a[queryStr_1] > b[queryStr_1]) {
|
|
1640
|
-
return 1;
|
|
1641
|
-
}
|
|
1642
|
-
else if (a[queryStr_1] < b[queryStr_1]) {
|
|
1643
|
-
return -1;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
return 0;
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
array.sort(query);
|
|
1650
|
-
return array;
|
|
1651
|
-
};
|
|
1652
|
-
/**
|
|
1653
|
-
* @deprecated use import { rsort } from @firestitch/common/array; instead
|
|
1654
|
-
*/
|
|
1655
|
-
FsArray.prototype.rsort = function (array, query) {
|
|
1656
|
-
console.warn('@deprecated use import { rsort } from @firestitch/common/array; instead');
|
|
1657
|
-
return this.sort(array, query, true);
|
|
1658
|
-
};
|
|
1659
|
-
/**
|
|
1660
|
-
* @deprecated use import { list } from @firestitch/common/array; instead
|
|
1661
|
-
*/
|
|
1662
|
-
FsArray.prototype.list = function (array, property, index) {
|
|
1663
|
-
if (index === void 0) { index = null; }
|
|
1664
|
-
console.warn('@deprecated use import { list } from @firestitch/common/array; instead');
|
|
1665
|
-
var list = index ? {} : [];
|
|
1666
|
-
array.forEach(function (item, idx) {
|
|
1667
|
-
if (index) {
|
|
1668
|
-
list[item[index]] = item[property];
|
|
1669
|
-
}
|
|
1670
|
-
else {
|
|
1671
|
-
list.push(item[property]);
|
|
1672
|
-
}
|
|
1673
|
-
});
|
|
1674
|
-
return list;
|
|
1675
|
-
};
|
|
1676
|
-
/**
|
|
1677
|
-
* @deprecated use import { applyDepth } from @firestitch/common/array; instead
|
|
1678
|
-
*/
|
|
1679
|
-
FsArray.prototype.applyDepth = function (objects, parent_property, id_property, depth_property) {
|
|
1680
|
-
if (id_property === void 0) { id_property = 'id'; }
|
|
1681
|
-
if (depth_property === void 0) { depth_property = 'depth'; }
|
|
1682
|
-
console.warn('@deprecated use import { applyDepth } from @firestitch/common/array; instead');
|
|
1683
|
-
var keyed = {};
|
|
1684
|
-
objects.forEach(function (object) {
|
|
1685
|
-
if (!object[parent_property]) {
|
|
1686
|
-
object[depth_property] = 0;
|
|
1687
|
-
}
|
|
1688
|
-
keyed[object[id_property]] = object;
|
|
1689
|
-
});
|
|
1690
|
-
Object.keys(keyed).forEach(function (key) {
|
|
1691
|
-
Object.keys(keyed).forEach(function (key) {
|
|
1692
|
-
var object = keyed[key];
|
|
1693
|
-
if (!keyed[key][depth_property]) {
|
|
1694
|
-
if (keyed[key][parent_property]) {
|
|
1695
|
-
keyed[key][depth_property] = keyed[keyed[key][parent_property]][depth_property] + 1;
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
});
|
|
1699
|
-
});
|
|
1700
|
-
return keyed;
|
|
1701
|
-
};
|
|
1702
|
-
/**
|
|
1703
|
-
* @deprecated use import { inArray } from @firestitch/common/array; instead
|
|
1704
|
-
*/
|
|
1705
|
-
FsArray.prototype.inArray = function (values, array) {
|
|
1706
|
-
console.warn('@deprecated use import { inArray } from @firestitch/common/array; instead');
|
|
1707
|
-
if (!Array.isArray(values)) {
|
|
1708
|
-
values = [values];
|
|
1709
|
-
}
|
|
1710
|
-
for (var i = 0, len = values.length; i < len; i++) {
|
|
1711
|
-
if (array.indexOf(values[i]) >= 0) {
|
|
1712
|
-
return true;
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
return false;
|
|
1716
|
-
};
|
|
1717
|
-
/**
|
|
1718
|
-
* @deprecated use import { keyExists } from @firestitch/common/array; instead
|
|
1719
|
-
*/
|
|
1720
|
-
FsArray.prototype.keyExists = function (array, key) {
|
|
1721
|
-
console.warn('@deprecated use import { keyExists } from @firestitch/common/array; instead');
|
|
1722
|
-
return array.hasOwnProperty(key);
|
|
1723
|
-
};
|
|
1724
|
-
/**
|
|
1725
|
-
* @deprecated use import { length } from @firestitch/common/array; instead
|
|
1726
|
-
*/
|
|
1727
|
-
FsArray.prototype.length = function (array) {
|
|
1728
|
-
console.warn('@deprecated use import { length } from @firestitch/common/array; instead');
|
|
1729
|
-
return array.length;
|
|
1730
|
-
};
|
|
1731
|
-
/**
|
|
1732
|
-
* @deprecated use import { ksort } from @firestitch/common/array; instead
|
|
1733
|
-
*/
|
|
1734
|
-
FsArray.prototype.ksort = function (unordered) {
|
|
1735
|
-
console.warn('@deprecated use import { ksort } from @firestitch/common/array; instead');
|
|
1736
|
-
Object.keys(unordered).sort().forEach(function (key) {
|
|
1737
|
-
var value = unordered[key];
|
|
1738
|
-
delete unordered[key];
|
|
1739
|
-
unordered[key] = value;
|
|
1740
|
-
});
|
|
1741
|
-
};
|
|
1742
|
-
return FsArray;
|
|
1743
|
-
}());
|
|
1744
|
-
FsArray.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsArray, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1745
|
-
FsArray.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsArray });
|
|
1746
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsArray, decorators: [{
|
|
1747
|
-
type: i0.Injectable
|
|
1748
|
-
}] });
|
|
1749
|
-
|
|
1750
|
-
var FsMath = /** @class */ (function () {
|
|
1751
|
-
function FsMath() {
|
|
1752
|
-
}
|
|
1753
|
-
/**
|
|
1754
|
-
* @deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}
|
|
1755
|
-
*/
|
|
1756
|
-
FsMath.prototype.round = function (number, precision) {
|
|
1757
|
-
console.warn('@deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}');
|
|
1758
|
-
precision = precision || 0;
|
|
1759
|
-
var factor = Math.pow(10, precision);
|
|
1760
|
-
var tempNumber = number * factor;
|
|
1761
|
-
var roundedTempNumber = Math.round(tempNumber);
|
|
1762
|
-
return roundedTempNumber / factor;
|
|
1763
|
-
};
|
|
1764
|
-
return FsMath;
|
|
1765
|
-
}());
|
|
1766
|
-
FsMath.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMath, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1767
|
-
FsMath.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMath });
|
|
1768
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMath, decorators: [{
|
|
1769
|
-
type: i0.Injectable
|
|
1770
|
-
}] });
|
|
1771
|
-
|
|
1772
|
-
var KEY_CANCEL = 3, KEY_HELP = 6, KEY_BACKSPACE = 8, KEY_TAB = 9, KEY_CLEAR = 12, KEY_RETURN = 13, KEY_ENTER = 14, KEY_SHIFT = 16, KEY_CONTROL = 17, KEY_ALT = 18, KEY_PAUSE = 19, KEY_CAPS_LOCK = 20, KEY_ESCAPE = 27, KEY_SPACE = 32, KEY_PAGE_UP = 33, KEY_PAGE_DOWN = 34, KEY_END = 35, KEY_HOME = 36, KEY_LEFT = 37, KEY_UP = 38, KEY_RIGHT = 39, KEY_DOWN = 40, KEY_PRINTSCREEN = 44, KEY_INSERT = 45, KEY_DELETE = 46, KEY_0 = 48, KEY_1 = 49, KEY_2 = 50, KEY_3 = 51, KEY_4 = 52, KEY_5 = 53, KEY_6 = 54, KEY_7 = 55, KEY_8 = 56, KEY_9 = 57, KEY_SEMICOLON = 59, KEY_EQUALS = 61;
|
|
1773
|
-
/*
|
|
1774
|
-
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)
|
|
1775
|
-
There might be a better way to organise constatns but I need to know use-cases
|
|
1776
|
-
*/
|
|
1777
|
-
var FsUtil = /** @class */ (function () {
|
|
1778
|
-
function FsUtil() {
|
|
1779
|
-
this.intervals = {};
|
|
1780
|
-
}
|
|
1781
|
-
/**
|
|
1782
|
-
* @deprecated use @firestitch/common/util/guid instead
|
|
1783
|
-
*/
|
|
1784
|
-
FsUtil.prototype.guid = function (pattern) {
|
|
1785
|
-
console.warn('@deprecated use @firestitch/common/util/guid instead');
|
|
1786
|
-
pattern = pattern || 'xxxxxx';
|
|
1787
|
-
return pattern.replace(/[xy]/g, function (c) {
|
|
1788
|
-
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
|
1789
|
-
return v.toString(16);
|
|
1790
|
-
});
|
|
1791
|
-
};
|
|
1792
|
-
/**
|
|
1793
|
-
* @deprecated use import { uuid } from @firestitch/common/util; instead
|
|
1794
|
-
*/
|
|
1795
|
-
FsUtil.prototype.uuid = function () {
|
|
1796
|
-
console.warn('@deprecated use @firestitch/common/util/uuid instead');
|
|
1797
|
-
return this.guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
|
|
1798
|
-
};
|
|
1799
|
-
/**
|
|
1800
|
-
* @deprecated use import { resolve } from @firestitch/common/util; instead
|
|
1801
|
-
*/
|
|
1802
|
-
FsUtil.prototype.resolve = function (promise, defaults) {
|
|
1803
|
-
if (defaults === void 0) { defaults = []; }
|
|
1804
|
-
console.warn('@deprecated use @firestitch/common/util/resolve instead');
|
|
1805
|
-
var result = defaults;
|
|
1806
|
-
return new Promise(function (resolve) {
|
|
1807
|
-
promise.then(function (data) {
|
|
1808
|
-
Object.keys(data).forEach(function (key) { return result[key] = data[key]; });
|
|
1809
|
-
resolve(result);
|
|
1810
|
-
});
|
|
1811
|
-
});
|
|
1812
|
-
};
|
|
1813
|
-
/**
|
|
1814
|
-
* @deprecated use _.toInteger() instead
|
|
1815
|
-
*/
|
|
1816
|
-
FsUtil.prototype.int = function (value) {
|
|
1817
|
-
console.warn('@deprecated use _.toInteger() instead');
|
|
1818
|
-
value = parseInt(value);
|
|
1819
|
-
if (isNaN(value)) {
|
|
1820
|
-
value = 0;
|
|
1821
|
-
}
|
|
1822
|
-
return value;
|
|
1823
|
-
};
|
|
1824
|
-
/**
|
|
1825
|
-
* @deprecated use _.toFinite() instead
|
|
1826
|
-
*/
|
|
1827
|
-
FsUtil.prototype.float = function (value) {
|
|
1828
|
-
console.warn('@deprecated use _.toFinite() instead');
|
|
1829
|
-
value = parseFloat(value);
|
|
1830
|
-
if (isNaN(value)) {
|
|
1831
|
-
value = 0;
|
|
1832
|
-
}
|
|
1833
|
-
return value;
|
|
1834
|
-
};
|
|
1835
|
-
/**
|
|
1836
|
-
* @deprecated use _.toString() instead
|
|
1837
|
-
*/
|
|
1838
|
-
FsUtil.prototype.string = function (string) {
|
|
1839
|
-
console.warn('@deprecated use _.toString() instead');
|
|
1840
|
-
if (string === null || string === undefined) {
|
|
1841
|
-
string = '';
|
|
1842
|
-
}
|
|
1843
|
-
return (string).toString();
|
|
1844
|
-
};
|
|
1845
|
-
/**
|
|
1846
|
-
* @deprecated use import { isEmpty } from @firestitch/common/util; instead
|
|
1847
|
-
*/
|
|
1848
|
-
FsUtil.prototype.isEmpty = function (value, options) {
|
|
1849
|
-
console.warn('@deprecated use import { isEmpty } from @firestitch/common/util; instead');
|
|
1850
|
-
options = options || {};
|
|
1851
|
-
return value === undefined ||
|
|
1852
|
-
value === null ||
|
|
1853
|
-
value === false ||
|
|
1854
|
-
value === '' ||
|
|
1855
|
-
!this.string(value).length ||
|
|
1856
|
-
(this.isObject(value) &&
|
|
1857
|
-
(value.constructor.name === 'Object' && !Object.keys(value).length)) ||
|
|
1858
|
-
(!options.zero && (value === 0 || value === '0'));
|
|
1859
|
-
};
|
|
1860
|
-
/**
|
|
1861
|
-
* @deprecated use _.isInteger() instead
|
|
1862
|
-
*/
|
|
1863
|
-
FsUtil.prototype.isInt = function (value, type) {
|
|
1864
|
-
console.warn('@deprecated use _.isInteger() instead');
|
|
1865
|
-
var int = !!this.string(value).match(/^\d+$/);
|
|
1866
|
-
if (!int) {
|
|
1867
|
-
return false;
|
|
1868
|
-
}
|
|
1869
|
-
if (type) {
|
|
1870
|
-
return Number.isInteger(value);
|
|
1871
|
-
}
|
|
1872
|
-
return true;
|
|
1873
|
-
};
|
|
1874
|
-
/**
|
|
1875
|
-
* @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
|
|
1876
|
-
*/
|
|
1877
|
-
FsUtil.prototype.each = function (object, func) {
|
|
1878
|
-
console.warn('@deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}');
|
|
1879
|
-
if (!this.isArray(object) && !this.isObject(object)) {
|
|
1880
|
-
return;
|
|
1881
|
-
}
|
|
1882
|
-
Object.keys(object).forEach(function (key) {
|
|
1883
|
-
func(object[key], key);
|
|
1884
|
-
});
|
|
1885
|
-
};
|
|
1886
|
-
/**
|
|
1887
|
-
* @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
|
|
1888
|
-
* or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
|
|
1889
|
-
*/
|
|
1890
|
-
FsUtil.prototype.isObject = function (value) {
|
|
1891
|
-
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');
|
|
1892
|
-
return value !== null && typeof value === 'object' && !this.isArray(value);
|
|
1893
|
-
};
|
|
1894
|
-
/**
|
|
1895
|
-
* @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
|
|
1896
|
-
*/
|
|
1897
|
-
FsUtil.prototype.isString = function (value) {
|
|
1898
|
-
console.warn('@deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}');
|
|
1899
|
-
return typeof value === 'string' || value instanceof String;
|
|
1900
|
-
};
|
|
1901
|
-
/**
|
|
1902
|
-
* @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
|
|
1903
|
-
*/
|
|
1904
|
-
FsUtil.prototype.isArray = function (value) {
|
|
1905
|
-
console.warn('@deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}');
|
|
1906
|
-
return value instanceof Array;
|
|
1907
|
-
};
|
|
1908
|
-
/**
|
|
1909
|
-
* @deprecated use import { isNumeric } from @firestitch/common/util; instead
|
|
1910
|
-
*/
|
|
1911
|
-
FsUtil.prototype.isNumeric = function (value) {
|
|
1912
|
-
console.warn('@deprecated use import { isNumeric } from @firestitch/common/util; instead');
|
|
1913
|
-
return this.string(value).length && !!this.string(value).match(/^-?\d*\.?\d*$/);
|
|
1914
|
-
};
|
|
1915
|
-
/**
|
|
1916
|
-
* @deprecated use import { isClass } from @firestitch/common/util; instead
|
|
1917
|
-
*/
|
|
1918
|
-
FsUtil.prototype.isClass = function (value, cls) {
|
|
1919
|
-
console.warn('@deprecated use import { isClass } from @firestitch/common/util; instead');
|
|
1920
|
-
if (this.isObject(value)) {
|
|
1921
|
-
if (this.isString(cls)) {
|
|
1922
|
-
if (value.constructor) {
|
|
1923
|
-
if (value.constructor.name === cls) {
|
|
1924
|
-
return true;
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
else {
|
|
1929
|
-
if (value instanceof cls) {
|
|
1930
|
-
return true;
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
return false;
|
|
1935
|
-
};
|
|
1936
|
-
/**
|
|
1937
|
-
* @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
|
|
1938
|
-
*/
|
|
1939
|
-
FsUtil.prototype.isBoolean = function (value) {
|
|
1940
|
-
console.warn('@deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}');
|
|
1941
|
-
return value === true || value === false;
|
|
1942
|
-
};
|
|
1943
|
-
/**
|
|
1944
|
-
* @deprecated use import { value } from @firestitch/common/util; instead
|
|
1945
|
-
*/
|
|
1946
|
-
FsUtil.prototype.value = function (object, key, def) {
|
|
1947
|
-
console.warn('@deprecated use import { value } from @firestitch/common/util; instead');
|
|
1948
|
-
if (this.isObject(object) || this.isArray(object)) {
|
|
1949
|
-
if (object.hasOwnProperty(key)) {
|
|
1950
|
-
return object[key];
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
return def;
|
|
1954
|
-
};
|
|
1955
|
-
FsUtil.prototype.throttle = function (func, wait) {
|
|
1956
|
-
console.warn('@deprecated use import { throttle } from @firestitch/common/util; instead');
|
|
1957
|
-
var waiting = false; // Initially, we're not waiting
|
|
1958
|
-
return function () {
|
|
1959
|
-
if (!waiting) { // If we're not waiting
|
|
1960
|
-
func.apply(null, arguments); // Execute users function
|
|
1961
|
-
waiting = true; // Prevent future invocations
|
|
1962
|
-
setTimeout(function () {
|
|
1963
|
-
waiting = false; // And allow future invocations
|
|
1964
|
-
}, wait);
|
|
1965
|
-
}
|
|
1966
|
-
};
|
|
1967
|
-
};
|
|
1968
|
-
/**
|
|
1969
|
-
* @deprecated use import { debounce } from @firestitch/common/util; instead
|
|
1970
|
-
*/
|
|
1971
|
-
FsUtil.prototype.debounce = function (func, wait, immediate) {
|
|
1972
|
-
console.warn('@deprecated use import { debounce } from @firestitch/common/util; instead');
|
|
1973
|
-
var timeout;
|
|
1974
|
-
return function () {
|
|
1975
|
-
var context = this, args = arguments;
|
|
1976
|
-
var later = function () {
|
|
1977
|
-
timeout = null;
|
|
1978
|
-
if (!immediate)
|
|
1979
|
-
func.apply(context, args);
|
|
1980
|
-
};
|
|
1981
|
-
var callNow = immediate && !timeout;
|
|
1982
|
-
clearTimeout(timeout);
|
|
1983
|
-
timeout = setTimeout(later, wait);
|
|
1984
|
-
if (callNow)
|
|
1985
|
-
func.apply(context, args);
|
|
1986
|
-
};
|
|
1987
|
-
};
|
|
1988
|
-
/**
|
|
1989
|
-
* @deprecated use import { length } from @firestitch/common/util; instead
|
|
1990
|
-
*/
|
|
1991
|
-
FsUtil.prototype.length = function (object) {
|
|
1992
|
-
console.warn('@deprecated use import { length } from @firestitch/common/util; instead');
|
|
1993
|
-
if (this.isObject(object)) {
|
|
1994
|
-
return Object.keys(object).length;
|
|
1995
|
-
}
|
|
1996
|
-
if (this.isArray(object)) {
|
|
1997
|
-
return object.length;
|
|
1998
|
-
}
|
|
1999
|
-
return 0;
|
|
2000
|
-
};
|
|
2001
|
-
/**
|
|
2002
|
-
* @deprecated use import { boolean } from @firestitch/common/util; instead
|
|
2003
|
-
*/
|
|
2004
|
-
FsUtil.prototype.boolean = function (value) {
|
|
2005
|
-
console.warn('@deprecated use import { boolean } from @firestitch/common/util; instead');
|
|
2006
|
-
return this.string(value).toLowerCase() !== 'false' && !!value;
|
|
2007
|
-
};
|
|
2008
|
-
/**
|
|
2009
|
-
* @deprecated use import { stringify } from @firestitch/common/util; instead
|
|
2010
|
-
*/
|
|
2011
|
-
FsUtil.prototype.stringify = function (value) {
|
|
2012
|
-
console.warn('@deprecated use import { stringify } from @firestitch/common/util; instead');
|
|
2013
|
-
return JSON.stringify(value);
|
|
2014
|
-
};
|
|
2015
|
-
return FsUtil;
|
|
2016
|
-
}());
|
|
2017
|
-
FsUtil.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtil, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2018
|
-
FsUtil.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtil });
|
|
2019
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsUtil, decorators: [{
|
|
2020
|
-
type: i0.Injectable
|
|
2021
|
-
}] });
|
|
2022
|
-
|
|
2023
|
-
var FsValidate = /** @class */ (function () {
|
|
2024
|
-
function FsValidate(fsUtil) {
|
|
2025
|
-
this.fsUtil = fsUtil;
|
|
2026
|
-
}
|
|
2027
|
-
/**
|
|
2028
|
-
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
2029
|
-
*/
|
|
2030
|
-
FsValidate.prototype.phone = function (value) {
|
|
2031
|
-
var valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/.test(value);
|
|
2032
|
-
return valid || !String(value).length;
|
|
2033
|
-
};
|
|
2034
|
-
/**
|
|
2035
|
-
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
2036
|
-
*/
|
|
2037
|
-
FsValidate.prototype.email = function (value) {
|
|
2038
|
-
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,}))$/);
|
|
2039
|
-
};
|
|
2040
|
-
return FsValidate;
|
|
2041
|
-
}());
|
|
2042
|
-
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 });
|
|
2043
|
-
FsValidate.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsValidate });
|
|
2044
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsValidate, decorators: [{
|
|
2045
|
-
type: i0.Injectable
|
|
2046
|
-
}], ctorParameters: function () { return [{ type: FsUtil }]; } });
|
|
2047
|
-
|
|
2048
|
-
var FsCommonModule = /** @class */ (function () {
|
|
2049
|
-
function FsCommonModule() {
|
|
2050
|
-
}
|
|
2051
|
-
FsCommonModule.forRoot = function () {
|
|
2052
|
-
return {
|
|
2053
|
-
ngModule: FsCommonModule,
|
|
2054
|
-
providers: [
|
|
2055
|
-
FsArray,
|
|
2056
|
-
FsMath,
|
|
2057
|
-
FsUtil,
|
|
2058
|
-
FsValidate,
|
|
2059
|
-
],
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
return FsCommonModule;
|
|
2063
|
-
}());
|
|
2064
|
-
FsCommonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2065
|
-
FsCommonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, declarations: [FsStopPropagationDirective,
|
|
2066
|
-
FsPreventDefaultDirective,
|
|
2067
|
-
FsAutofocusDirective,
|
|
2068
|
-
FsUtilGuidPipe,
|
|
2069
|
-
FsUtilIsEmptyPipe,
|
|
2070
|
-
FsUtilIsNotEmptyPipe,
|
|
2071
|
-
FsUtilStringifyPipe,
|
|
2072
|
-
FsFormatNumberPipe,
|
|
2073
|
-
FsFormatCurrencyPipe,
|
|
2074
|
-
FsFormatTruncatePipe,
|
|
2075
|
-
FsFormatBytesPipe,
|
|
2076
|
-
FsFormatOrdinalNumberPipe,
|
|
2077
|
-
FsModelChangeDirective], imports: [common.CommonModule], exports: [FsStopPropagationDirective,
|
|
2078
|
-
FsPreventDefaultDirective,
|
|
2079
|
-
FsAutofocusDirective,
|
|
2080
|
-
FsUtilGuidPipe,
|
|
2081
|
-
FsUtilStringifyPipe,
|
|
2082
|
-
FsFormatNumberPipe,
|
|
2083
|
-
FsFormatCurrencyPipe,
|
|
2084
|
-
FsFormatTruncatePipe,
|
|
2085
|
-
FsUtilIsEmptyPipe,
|
|
2086
|
-
FsUtilIsNotEmptyPipe,
|
|
2087
|
-
FsFormatBytesPipe,
|
|
2088
|
-
FsModelChangeDirective,
|
|
2089
|
-
FsFormatOrdinalNumberPipe] });
|
|
2090
|
-
FsCommonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, imports: [[
|
|
2091
|
-
common.CommonModule,
|
|
2092
|
-
]] });
|
|
2093
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsCommonModule, decorators: [{
|
|
2094
|
-
type: i0.NgModule,
|
|
2095
|
-
args: [{
|
|
2096
|
-
imports: [
|
|
2097
|
-
common.CommonModule,
|
|
2098
|
-
],
|
|
2099
|
-
declarations: [
|
|
2100
|
-
FsStopPropagationDirective,
|
|
2101
|
-
FsPreventDefaultDirective,
|
|
2102
|
-
FsAutofocusDirective,
|
|
2103
|
-
FsUtilGuidPipe,
|
|
2104
|
-
FsUtilIsEmptyPipe,
|
|
2105
|
-
FsUtilIsNotEmptyPipe,
|
|
2106
|
-
FsUtilStringifyPipe,
|
|
2107
|
-
FsFormatNumberPipe,
|
|
2108
|
-
FsFormatCurrencyPipe,
|
|
2109
|
-
FsFormatTruncatePipe,
|
|
2110
|
-
FsFormatBytesPipe,
|
|
2111
|
-
FsFormatOrdinalNumberPipe,
|
|
2112
|
-
FsModelChangeDirective,
|
|
2113
|
-
],
|
|
2114
|
-
exports: [
|
|
2115
|
-
FsStopPropagationDirective,
|
|
2116
|
-
FsPreventDefaultDirective,
|
|
2117
|
-
FsAutofocusDirective,
|
|
2118
|
-
FsUtilGuidPipe,
|
|
2119
|
-
FsUtilStringifyPipe,
|
|
2120
|
-
FsFormatNumberPipe,
|
|
2121
|
-
FsFormatCurrencyPipe,
|
|
2122
|
-
FsFormatTruncatePipe,
|
|
2123
|
-
FsUtilIsEmptyPipe,
|
|
2124
|
-
FsUtilIsNotEmptyPipe,
|
|
2125
|
-
FsFormatBytesPipe,
|
|
2126
|
-
FsModelChangeDirective,
|
|
2127
|
-
FsFormatOrdinalNumberPipe,
|
|
2128
|
-
],
|
|
2129
|
-
}]
|
|
2130
|
-
}] });
|
|
2131
|
-
|
|
2132
|
-
var keyboardShortcut = function (shortcut) {
|
|
2133
|
-
// Observables for all keydown and keyup events
|
|
2134
|
-
var keyDown$ = rxjs.fromEvent(document, 'keydown');
|
|
2135
|
-
var keyUp$ = rxjs.fromEvent(document, 'keyup');
|
|
2136
|
-
// All KeyboardEvents - emitted only when KeyboardEvent changes (key or type)
|
|
2137
|
-
var keyEvents$ = rxjs.merge(keyDown$, keyUp$).pipe(operators.distinctUntilChanged(function (a, b) { return a.code === b.code && a.type === b.type; }), operators.share());
|
|
2138
|
-
// Create KeyboardEvent Observable for specified KeyCode
|
|
2139
|
-
var createKeyPressStream = function (charCode) { return keyEvents$.pipe(operators.filter(function (event) { return event.keyCode === charCode; })); };
|
|
2140
|
-
// Create Event Stream for every KeyCode in shortcut
|
|
2141
|
-
var keyCodeEvents$ = shortcut.map(function (s) { return createKeyPressStream(s); });
|
|
2142
|
-
// Emit when specified keys are pressed (keydown).
|
|
2143
|
-
// Emit only when all specified keys are pressed at the same time.
|
|
2144
|
-
// More on combineLatest below
|
|
2145
|
-
return rxjs.combineLatest(keyCodeEvents$).pipe(operators.filter(function (arr) { return arr.every(function (a) { return a.type === 'keydown'; }); }));
|
|
2146
|
-
};
|
|
2147
|
-
|
|
2148
|
-
// Modules
|
|
2149
|
-
|
|
2150
|
-
/**
|
|
2151
|
-
* Generated bundle index. Do not edit.
|
|
2152
|
-
*/
|
|
2153
|
-
|
|
2154
|
-
exports.FsArray = FsArray;
|
|
2155
|
-
exports.FsAutofocusDirective = FsAutofocusDirective;
|
|
2156
|
-
exports.FsCommonModule = FsCommonModule;
|
|
2157
|
-
exports.FsFormatBytesPipe = FsFormatBytesPipe;
|
|
2158
|
-
exports.FsFormatCurrencyPipe = FsFormatCurrencyPipe;
|
|
2159
|
-
exports.FsFormatNumberPipe = FsFormatNumberPipe;
|
|
2160
|
-
exports.FsFormatOrdinalNumberPipe = FsFormatOrdinalNumberPipe;
|
|
2161
|
-
exports.FsFormatTruncatePipe = FsFormatTruncatePipe;
|
|
2162
|
-
exports.FsMath = FsMath;
|
|
2163
|
-
exports.FsModelChangeDirective = FsModelChangeDirective;
|
|
2164
|
-
exports.FsPreventDefaultDirective = FsPreventDefaultDirective;
|
|
2165
|
-
exports.FsStopPropagationDirective = FsStopPropagationDirective;
|
|
2166
|
-
exports.FsUtil = FsUtil;
|
|
2167
|
-
exports.FsUtilGuidPipe = FsUtilGuidPipe;
|
|
2168
|
-
exports.FsUtilIsEmptyPipe = FsUtilIsEmptyPipe;
|
|
2169
|
-
exports.FsUtilIsNotEmptyPipe = FsUtilIsNotEmptyPipe;
|
|
2170
|
-
exports.FsUtilStringifyPipe = FsUtilStringifyPipe;
|
|
2171
|
-
exports.FsValidate = FsValidate;
|
|
2172
|
-
exports.KEY_0 = KEY_0$1;
|
|
2173
|
-
exports.KEY_1 = KEY_1$1;
|
|
2174
|
-
exports.KEY_2 = KEY_2$1;
|
|
2175
|
-
exports.KEY_3 = KEY_3$1;
|
|
2176
|
-
exports.KEY_4 = KEY_4$1;
|
|
2177
|
-
exports.KEY_5 = KEY_5$1;
|
|
2178
|
-
exports.KEY_6 = KEY_6$1;
|
|
2179
|
-
exports.KEY_7 = KEY_7$1;
|
|
2180
|
-
exports.KEY_8 = KEY_8$1;
|
|
2181
|
-
exports.KEY_9 = KEY_9$1;
|
|
2182
|
-
exports.KEY_ALT = KEY_ALT$1;
|
|
2183
|
-
exports.KEY_BACKSPACE = KEY_BACKSPACE$1;
|
|
2184
|
-
exports.KEY_CANCEL = KEY_CANCEL$1;
|
|
2185
|
-
exports.KEY_CAPS_LOCK = KEY_CAPS_LOCK$1;
|
|
2186
|
-
exports.KEY_CLEAR = KEY_CLEAR$1;
|
|
2187
|
-
exports.KEY_CONTROL = KEY_CONTROL$1;
|
|
2188
|
-
exports.KEY_DELETE = KEY_DELETE$1;
|
|
2189
|
-
exports.KEY_DOWN = KEY_DOWN$1;
|
|
2190
|
-
exports.KEY_END = KEY_END$1;
|
|
2191
|
-
exports.KEY_ENTER = KEY_ENTER$1;
|
|
2192
|
-
exports.KEY_EQUALS = KEY_EQUALS$1;
|
|
2193
|
-
exports.KEY_ESCAPE = KEY_ESCAPE$1;
|
|
2194
|
-
exports.KEY_HELP = KEY_HELP$1;
|
|
2195
|
-
exports.KEY_HOME = KEY_HOME$1;
|
|
2196
|
-
exports.KEY_INSERT = KEY_INSERT$1;
|
|
2197
|
-
exports.KEY_LEFT = KEY_LEFT$1;
|
|
2198
|
-
exports.KEY_PAGE_DOWN = KEY_PAGE_DOWN$1;
|
|
2199
|
-
exports.KEY_PAGE_UP = KEY_PAGE_UP$1;
|
|
2200
|
-
exports.KEY_PAUSE = KEY_PAUSE$1;
|
|
2201
|
-
exports.KEY_PRINTSCREEN = KEY_PRINTSCREEN$1;
|
|
2202
|
-
exports.KEY_RETURN = KEY_RETURN$1;
|
|
2203
|
-
exports.KEY_RIGHT = KEY_RIGHT$1;
|
|
2204
|
-
exports.KEY_SEMICOLON = KEY_SEMICOLON$1;
|
|
2205
|
-
exports.KEY_SHIFT = KEY_SHIFT$1;
|
|
2206
|
-
exports.KEY_SPACE = KEY_SPACE$1;
|
|
2207
|
-
exports.KEY_TAB = KEY_TAB$1;
|
|
2208
|
-
exports.KEY_UP = KEY_UP$1;
|
|
2209
|
-
exports.Queue = Queue;
|
|
2210
|
-
exports.acronym = acronym;
|
|
2211
|
-
exports.boolean = boolean;
|
|
2212
|
-
exports.bytes = bytes;
|
|
2213
|
-
exports.clone = clone;
|
|
2214
|
-
exports.compare = compare;
|
|
2215
|
-
exports.currency = currency;
|
|
2216
|
-
exports.debounce = debounce;
|
|
2217
|
-
exports.delayedRetry = delayedRetry;
|
|
2218
|
-
exports.email = email;
|
|
2219
|
-
exports.filter = filter;
|
|
2220
|
-
exports.find = find;
|
|
2221
|
-
exports.fsSourceLoader = fsSourceLoader;
|
|
2222
|
-
exports.getNormalizedPath = getNormalizedPath;
|
|
2223
|
-
exports.guid = guid;
|
|
2224
|
-
exports.inArray = inArray;
|
|
2225
|
-
exports.index = index;
|
|
2226
|
-
exports.indexOf = indexOf;
|
|
2227
|
-
exports.isArrayEqual = isArrayEqual;
|
|
2228
|
-
exports.isClass = isClass;
|
|
2229
|
-
exports.isEmpty = isEmpty;
|
|
2230
|
-
exports.isNumeric = isNumeric;
|
|
2231
|
-
exports.isObject = isObject;
|
|
2232
|
-
exports.keyExists = keyExists;
|
|
2233
|
-
exports.keyboardShortcut = keyboardShortcut;
|
|
2234
|
-
exports.ksort = ksort;
|
|
2235
|
-
exports.length = length;
|
|
2236
|
-
exports.list = list;
|
|
2237
|
-
exports.nameValue = nameValue;
|
|
2238
|
-
exports.number = number;
|
|
2239
|
-
exports.ordinalNumber = ordinalNumber;
|
|
2240
|
-
exports.phone = phone;
|
|
2241
|
-
exports.remove = remove;
|
|
2242
|
-
exports.removeQueryParams = removeQueryParams;
|
|
2243
|
-
exports.resolve = resolve;
|
|
2244
|
-
exports.round = round;
|
|
2245
|
-
exports.rsort = rsort;
|
|
2246
|
-
exports.sort = sort;
|
|
2247
|
-
exports.stringify = stringify;
|
|
2248
|
-
exports.throttle = throttle;
|
|
2249
|
-
exports.toString = toString;
|
|
2250
|
-
exports.truncate = truncate;
|
|
2251
|
-
exports.url = url;
|
|
2252
|
-
exports.uuid = uuid;
|
|
2253
|
-
exports.value = value;
|
|
2254
|
-
|
|
2255
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2256
|
-
|
|
2257
|
-
}));
|
|
2258
|
-
//# sourceMappingURL=firestitch-common.umd.js.map
|