@firestitch/common 8.0.13 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/directives/autofocus.directive.d.ts +9 -6
- package/app/directives/prevent-default.directive.d.ts +6 -3
- package/app/directives/stop-propagation.directive.d.ts +6 -3
- package/app/fs-common.module.d.ts +18 -4
- package/app/pipes/bytes.pipe.d.ts +7 -4
- package/app/pipes/currency.pipe.d.ts +9 -6
- package/app/pipes/number.pipe.d.ts +7 -4
- package/app/pipes/ordinal-number.pipe.d.ts +7 -4
- package/app/pipes/truncate.pipe.d.ts +8 -5
- package/app/pipes/util.pipe.d.ts +24 -15
- package/app/services/array.service.d.ts +61 -58
- package/app/services/math.service.d.ts +9 -6
- package/app/services/util.service.d.ts +89 -86
- package/app/services/vaildate.service.d.ts +16 -13
- package/bundles/firestitch-common.umd.js +1771 -3404
- package/bundles/firestitch-common.umd.js.map +1 -1
- package/esm2015/app/directives/autofocus.directive.js +21 -42
- package/esm2015/app/directives/prevent-default.directive.js +19 -24
- package/esm2015/app/directives/stop-propagation.directive.js +19 -24
- package/esm2015/app/fs-common.module.js +93 -72
- package/esm2015/app/pipes/bytes.pipe.js +17 -22
- package/esm2015/app/pipes/currency.pipe.js +23 -38
- package/esm2015/app/pipes/number.pipe.js +17 -23
- package/esm2015/app/pipes/ordinal-number.pipe.js +17 -22
- package/esm2015/app/pipes/truncate.pipe.js +18 -28
- package/esm2015/app/pipes/util.pipe.js +60 -71
- package/esm2015/app/services/array.service.js +225 -352
- package/esm2015/app/services/math.service.js +21 -29
- package/esm2015/app/services/util.service.js +251 -430
- package/esm2015/app/services/vaildate.service.js +28 -48
- package/esm2015/firestitch-common.js +5 -19
- package/esm2015/libs/array/compare/compare.js +8 -19
- package/esm2015/libs/array/compare/index.js +2 -7
- package/esm2015/libs/array/filter/filter.js +27 -53
- package/esm2015/libs/array/filter/index.js +2 -7
- package/esm2015/libs/array/find/find.js +6 -17
- package/esm2015/libs/array/find/index.js +2 -7
- package/esm2015/libs/array/inArray/inArray.js +12 -22
- package/esm2015/libs/array/inArray/index.js +2 -7
- package/esm2015/libs/array/index/index.js +8 -24
- package/esm2015/libs/array/index.js +14 -19
- package/esm2015/libs/array/indexOf/index.js +2 -7
- package/esm2015/libs/array/indexOf/indexOf.js +16 -31
- package/esm2015/libs/array/keyExists/index.js +2 -7
- package/esm2015/libs/array/keyExists/keyExists.js +4 -14
- package/esm2015/libs/array/ksort/index.js +2 -7
- package/esm2015/libs/array/ksort/ksort.js +8 -22
- package/esm2015/libs/array/list/index.js +2 -7
- package/esm2015/libs/array/list/list.js +13 -30
- package/esm2015/libs/array/nameValue/index.js +2 -7
- package/esm2015/libs/array/nameValue/nameValue.js +21 -52
- package/esm2015/libs/array/remove/index.js +2 -7
- package/esm2015/libs/array/remove/remove.js +9 -20
- package/esm2015/libs/array/rsort/index.js +2 -7
- package/esm2015/libs/array/rsort/rsort.js +5 -15
- package/esm2015/libs/array/sort/index.js +2 -7
- package/esm2015/libs/array/sort/sort.js +27 -44
- package/esm2015/libs/format/acronym/acronym.js +22 -34
- package/esm2015/libs/format/acronym/index.js +2 -7
- package/esm2015/libs/format/bytes/bytes.js +12 -23
- package/esm2015/libs/format/bytes/index.js +2 -7
- package/esm2015/libs/format/currency/currency.js +7 -20
- package/esm2015/libs/format/currency/index.js +2 -7
- package/esm2015/libs/format/index.js +6 -11
- package/esm2015/libs/format/number/index.js +2 -7
- package/esm2015/libs/format/number/number.js +4 -14
- package/esm2015/libs/format/truncate/index.js +2 -7
- package/esm2015/libs/format/truncate/truncate.js +12 -25
- package/esm2015/libs/index.js +6 -11
- package/esm2015/libs/rxjs/delayedRetry.js +20 -58
- package/esm2015/libs/util/boolean/boolean.js +5 -14
- package/esm2015/libs/util/boolean/index.js +2 -7
- package/esm2015/libs/util/debounce/debounce.js +17 -40
- package/esm2015/libs/util/debounce/index.js +2 -7
- package/esm2015/libs/util/get-normalized-path/get-normalized-path.js +6 -16
- package/esm2015/libs/util/get-normalized-path/index.js +2 -7
- package/esm2015/libs/util/guid/guid.js +19 -36
- package/esm2015/libs/util/guid/index.js +2 -7
- package/esm2015/libs/util/index.js +18 -23
- package/esm2015/libs/util/isClass/index.js +2 -7
- package/esm2015/libs/util/isClass/isClass.js +18 -28
- package/esm2015/libs/util/isEmpty/index.js +2 -7
- package/esm2015/libs/util/isEmpty/isEmpty.js +13 -23
- package/esm2015/libs/util/isNumeric/index.js +2 -7
- package/esm2015/libs/util/isNumeric/isNumeric.js +6 -16
- package/esm2015/libs/util/keys/index.js +2 -7
- package/esm2015/libs/util/keys/keys.js +38 -80
- package/esm2015/libs/util/length/index.js +2 -7
- package/esm2015/libs/util/length/length.js +11 -20
- package/esm2015/libs/util/ordinal-number/ordinal-number.js +8 -20
- package/esm2015/libs/util/queue/index.js +3 -8
- package/esm2015/libs/util/queue/operation.js +15 -32
- package/esm2015/libs/util/queue/queue.enum.js +6 -12
- package/esm2015/libs/util/queue/queue.js +137 -291
- package/esm2015/libs/util/remove-query-params/index.js +2 -7
- package/esm2015/libs/util/remove-query-params/remove-query-params.js +4 -13
- package/esm2015/libs/util/resolve/index.js +2 -7
- package/esm2015/libs/util/resolve/resolve.js +10 -33
- package/esm2015/libs/util/stringify/index.js +2 -7
- package/esm2015/libs/util/stringify/stringify.js +4 -13
- package/esm2015/libs/util/throttle/index.js +2 -7
- package/esm2015/libs/util/throttle/throttle.js +13 -30
- package/esm2015/libs/util/uuid/index.js +2 -7
- package/esm2015/libs/util/uuid/uuid.js +5 -13
- package/esm2015/libs/util/value/index.js +2 -7
- package/esm2015/libs/util/value/value.js +9 -20
- package/esm2015/libs/validate/email/email.js +4 -13
- package/esm2015/libs/validate/email/index.js +2 -7
- package/esm2015/libs/validate/index.js +4 -9
- package/esm2015/libs/validate/phone/index.js +2 -7
- package/esm2015/libs/validate/phone/phone.js +5 -15
- package/esm2015/libs/validate/url/index.js +2 -7
- package/esm2015/libs/validate/url/url.js +12 -23
- package/esm2015/public_api.js +21 -17
- package/fesm2015/firestitch-common.js +1287 -2677
- package/fesm2015/firestitch-common.js.map +1 -1
- package/firestitch-common.d.ts +5 -13
- package/libs/array/compare/compare.d.ts +1 -1
- package/libs/array/compare/index.d.ts +1 -1
- package/libs/array/filter/filter.d.ts +1 -1
- package/libs/array/filter/index.d.ts +1 -1
- package/libs/array/find/find.d.ts +1 -1
- package/libs/array/find/index.d.ts +1 -1
- package/libs/array/inArray/inArray.d.ts +1 -1
- package/libs/array/inArray/index.d.ts +1 -1
- package/libs/array/index/index.d.ts +1 -1
- package/libs/array/index.d.ts +13 -13
- package/libs/array/indexOf/index.d.ts +1 -1
- package/libs/array/indexOf/indexOf.d.ts +1 -1
- package/libs/array/keyExists/index.d.ts +1 -1
- package/libs/array/keyExists/keyExists.d.ts +1 -1
- package/libs/array/ksort/index.d.ts +1 -1
- package/libs/array/ksort/ksort.d.ts +1 -1
- package/libs/array/list/index.d.ts +1 -1
- package/libs/array/list/list.d.ts +1 -1
- package/libs/array/nameValue/index.d.ts +1 -1
- package/libs/array/nameValue/nameValue.d.ts +1 -1
- package/libs/array/remove/index.d.ts +1 -1
- package/libs/array/remove/remove.d.ts +1 -1
- package/libs/array/rsort/index.d.ts +1 -1
- package/libs/array/rsort/rsort.d.ts +1 -1
- package/libs/array/sort/index.d.ts +1 -1
- package/libs/array/sort/sort.d.ts +1 -1
- package/libs/format/acronym/acronym.d.ts +1 -1
- package/libs/format/acronym/index.d.ts +1 -1
- package/libs/format/bytes/bytes.d.ts +1 -1
- package/libs/format/bytes/index.d.ts +1 -1
- package/libs/format/currency/currency.d.ts +1 -1
- package/libs/format/currency/index.d.ts +1 -1
- package/libs/format/index.d.ts +5 -5
- package/libs/format/number/index.d.ts +1 -1
- package/libs/format/number/number.d.ts +1 -1
- package/libs/format/truncate/index.d.ts +1 -1
- package/libs/format/truncate/truncate.d.ts +1 -1
- package/libs/index.d.ts +5 -5
- package/libs/rxjs/delayedRetry.d.ts +2 -2
- package/libs/util/boolean/boolean.d.ts +1 -1
- package/libs/util/boolean/index.d.ts +1 -1
- package/libs/util/debounce/debounce.d.ts +1 -1
- package/libs/util/debounce/index.d.ts +1 -1
- package/libs/util/get-normalized-path/get-normalized-path.d.ts +2 -2
- package/libs/util/get-normalized-path/index.d.ts +1 -1
- package/libs/util/guid/guid.d.ts +1 -1
- package/libs/util/guid/index.d.ts +1 -1
- package/libs/util/index.d.ts +17 -17
- package/libs/util/isClass/index.d.ts +1 -1
- package/libs/util/isClass/isClass.d.ts +1 -1
- package/libs/util/isEmpty/index.d.ts +1 -1
- package/libs/util/isEmpty/isEmpty.d.ts +1 -1
- package/libs/util/isNumeric/index.d.ts +1 -1
- package/libs/util/isNumeric/isNumeric.d.ts +1 -1
- package/libs/util/keys/index.d.ts +1 -1
- package/libs/util/keys/keys.d.ts +37 -37
- package/libs/util/length/index.d.ts +1 -1
- package/libs/util/length/length.d.ts +1 -1
- package/libs/util/ordinal-number/ordinal-number.d.ts +1 -1
- package/libs/util/queue/index.d.ts +2 -2
- package/libs/util/queue/operation.d.ts +7 -7
- package/libs/util/queue/queue.d.ts +32 -32
- package/libs/util/queue/queue.enum.d.ts +4 -4
- package/libs/util/remove-query-params/index.d.ts +1 -1
- package/libs/util/remove-query-params/remove-query-params.d.ts +1 -1
- package/libs/util/resolve/index.d.ts +1 -1
- package/libs/util/resolve/resolve.d.ts +1 -1
- package/libs/util/stringify/index.d.ts +1 -1
- package/libs/util/stringify/stringify.d.ts +1 -1
- package/libs/util/throttle/index.d.ts +1 -1
- package/libs/util/throttle/throttle.d.ts +1 -1
- package/libs/util/uuid/index.d.ts +1 -1
- package/libs/util/uuid/uuid.d.ts +1 -1
- package/libs/util/value/index.d.ts +1 -1
- package/libs/util/value/value.d.ts +1 -1
- package/libs/validate/email/email.d.ts +1 -1
- package/libs/validate/email/index.d.ts +1 -1
- package/libs/validate/index.d.ts +3 -3
- package/libs/validate/phone/index.d.ts +1 -1
- package/libs/validate/phone/phone.d.ts +1 -1
- package/libs/validate/url/index.d.ts +1 -1
- package/libs/validate/url/url.d.ts +7 -7
- package/package.json +7 -11
- package/public_api.d.ts +15 -6
- package/bundles/firestitch-common.umd.min.js +0 -16
- package/bundles/firestitch-common.umd.min.js.map +0 -1
- package/esm5/app/directives/autofocus.directive.js +0 -45
- package/esm5/app/directives/prevent-default.directive.js +0 -32
- package/esm5/app/directives/stop-propagation.directive.js +0 -32
- package/esm5/app/fs-common.module.js +0 -79
- package/esm5/app/pipes/bytes.pipe.js +0 -30
- package/esm5/app/pipes/currency.pipe.js +0 -43
- package/esm5/app/pipes/number.pipe.js +0 -32
- package/esm5/app/pipes/ordinal-number.pipe.js +0 -30
- package/esm5/app/pipes/truncate.pipe.js +0 -38
- package/esm5/app/pipes/util.pipe.js +0 -100
- package/esm5/app/services/array.service.js +0 -491
- package/esm5/app/services/math.service.js +0 -42
- package/esm5/app/services/util.service.js +0 -608
- package/esm5/app/services/vaildate.service.js +0 -63
- package/esm5/firestitch-common.js +0 -19
- package/esm5/libs/array/compare/compare.js +0 -19
- package/esm5/libs/array/compare/index.js +0 -7
- package/esm5/libs/array/filter/filter.js +0 -53
- package/esm5/libs/array/filter/index.js +0 -7
- package/esm5/libs/array/find/find.js +0 -17
- package/esm5/libs/array/find/index.js +0 -7
- package/esm5/libs/array/inArray/inArray.js +0 -22
- package/esm5/libs/array/inArray/index.js +0 -7
- package/esm5/libs/array/index/index.js +0 -25
- package/esm5/libs/array/index.js +0 -19
- package/esm5/libs/array/indexOf/index.js +0 -7
- package/esm5/libs/array/indexOf/indexOf.js +0 -31
- package/esm5/libs/array/keyExists/index.js +0 -7
- package/esm5/libs/array/keyExists/keyExists.js +0 -14
- package/esm5/libs/array/ksort/index.js +0 -7
- package/esm5/libs/array/ksort/ksort.js +0 -22
- package/esm5/libs/array/list/index.js +0 -7
- package/esm5/libs/array/list/list.js +0 -31
- package/esm5/libs/array/nameValue/index.js +0 -7
- package/esm5/libs/array/nameValue/nameValue.js +0 -52
- package/esm5/libs/array/remove/index.js +0 -7
- package/esm5/libs/array/remove/remove.js +0 -20
- package/esm5/libs/array/rsort/index.js +0 -7
- package/esm5/libs/array/rsort/rsort.js +0 -15
- package/esm5/libs/array/sort/index.js +0 -7
- package/esm5/libs/array/sort/sort.js +0 -45
- package/esm5/libs/format/acronym/acronym.js +0 -35
- package/esm5/libs/format/acronym/index.js +0 -7
- package/esm5/libs/format/bytes/bytes.js +0 -23
- package/esm5/libs/format/bytes/index.js +0 -7
- package/esm5/libs/format/currency/currency.js +0 -23
- package/esm5/libs/format/currency/index.js +0 -7
- package/esm5/libs/format/index.js +0 -11
- package/esm5/libs/format/number/index.js +0 -7
- package/esm5/libs/format/number/number.js +0 -14
- package/esm5/libs/format/truncate/index.js +0 -7
- package/esm5/libs/format/truncate/truncate.js +0 -28
- package/esm5/libs/index.js +0 -11
- package/esm5/libs/rxjs/delayedRetry.js +0 -65
- package/esm5/libs/util/boolean/boolean.js +0 -14
- package/esm5/libs/util/boolean/index.js +0 -7
- package/esm5/libs/util/debounce/debounce.js +0 -40
- package/esm5/libs/util/debounce/index.js +0 -7
- package/esm5/libs/util/get-normalized-path/get-normalized-path.js +0 -16
- package/esm5/libs/util/get-normalized-path/index.js +0 -7
- package/esm5/libs/util/guid/guid.js +0 -37
- package/esm5/libs/util/guid/index.js +0 -7
- package/esm5/libs/util/index.js +0 -23
- package/esm5/libs/util/isClass/index.js +0 -7
- package/esm5/libs/util/isClass/isClass.js +0 -28
- package/esm5/libs/util/isEmpty/index.js +0 -7
- package/esm5/libs/util/isEmpty/isEmpty.js +0 -23
- package/esm5/libs/util/isNumeric/index.js +0 -7
- package/esm5/libs/util/isNumeric/isNumeric.js +0 -16
- package/esm5/libs/util/keys/index.js +0 -7
- package/esm5/libs/util/keys/keys.js +0 -80
- package/esm5/libs/util/length/index.js +0 -7
- package/esm5/libs/util/length/length.js +0 -20
- package/esm5/libs/util/ordinal-number/ordinal-number.js +0 -22
- package/esm5/libs/util/queue/index.js +0 -8
- package/esm5/libs/util/queue/operation.js +0 -30
- package/esm5/libs/util/queue/queue.enum.js +0 -12
- package/esm5/libs/util/queue/queue.js +0 -367
- package/esm5/libs/util/remove-query-params/index.js +0 -7
- package/esm5/libs/util/remove-query-params/remove-query-params.js +0 -13
- package/esm5/libs/util/resolve/index.js +0 -7
- package/esm5/libs/util/resolve/resolve.js +0 -34
- package/esm5/libs/util/stringify/index.js +0 -7
- package/esm5/libs/util/stringify/stringify.js +0 -13
- package/esm5/libs/util/throttle/index.js +0 -7
- package/esm5/libs/util/throttle/throttle.js +0 -30
- package/esm5/libs/util/uuid/index.js +0 -7
- package/esm5/libs/util/uuid/uuid.js +0 -13
- package/esm5/libs/util/value/index.js +0 -7
- package/esm5/libs/util/value/value.js +0 -20
- package/esm5/libs/validate/email/email.js +0 -13
- package/esm5/libs/validate/email/index.js +0 -7
- package/esm5/libs/validate/index.js +0 -9
- package/esm5/libs/validate/phone/index.js +0 -7
- package/esm5/libs/validate/phone/phone.js +0 -15
- package/esm5/libs/validate/url/index.js +0 -7
- package/esm5/libs/validate/url/url.js +0 -23
- package/esm5/public_api.js +0 -17
- package/fesm5/firestitch-common.js +0 -3285
- package/fesm5/firestitch-common.js.map +0 -1
- package/firestitch-common.metadata.json +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsAutofocusDirective implements AfterViewInit {
|
|
4
|
+
private _el;
|
|
5
|
+
constructor(_el: ElementRef);
|
|
6
|
+
ngAfterViewInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAutofocusDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsAutofocusDirective, "[autofocus]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FsPreventDefaultDirective {
|
|
3
|
+
preventClick(event: any): void;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsPreventDefaultDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsPreventDefaultDirective, "[fsPreventDefault]", never, {}, {}, never>;
|
|
6
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FsStopPropagationDirective {
|
|
3
|
+
preventClick(event: any): void;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsStopPropagationDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsStopPropagationDirective, "[fsStopPropagation]", never, {}, {}, never>;
|
|
6
|
+
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./directives/stop-propagation.directive";
|
|
4
|
+
import * as i2 from "./directives/prevent-default.directive";
|
|
5
|
+
import * as i3 from "./directives/autofocus.directive";
|
|
6
|
+
import * as i4 from "./pipes/util.pipe";
|
|
7
|
+
import * as i5 from "./pipes/number.pipe";
|
|
8
|
+
import * as i6 from "./pipes/currency.pipe";
|
|
9
|
+
import * as i7 from "./pipes/truncate.pipe";
|
|
10
|
+
import * as i8 from "./pipes/bytes.pipe";
|
|
11
|
+
import * as i9 from "./pipes/ordinal-number.pipe";
|
|
12
|
+
import * as i10 from "@angular/common";
|
|
13
|
+
export declare class FsCommonModule {
|
|
14
|
+
static forRoot(): ModuleWithProviders<FsCommonModule>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsCommonModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsCommonModule, [typeof i1.FsStopPropagationDirective, typeof i2.FsPreventDefaultDirective, typeof i3.FsAutofocusDirective, typeof i4.FsUtilGuidPipe, typeof i4.FsUtilIsEmptyPipe, typeof i4.FsUtilIsNotEmptyPipe, typeof i4.FsUtilStringifyPipe, typeof i5.FsFormatNumberPipe, typeof i6.FsFormatCurrencyPipe, typeof i7.FsFormatTruncatePipe, typeof i8.FsFormatBytesPipe, typeof i9.FsFormatOrdinalNumberPipe], [typeof i10.CommonModule], [typeof i1.FsStopPropagationDirective, typeof i2.FsPreventDefaultDirective, typeof i3.FsAutofocusDirective, typeof i4.FsUtilGuidPipe, typeof i4.FsUtilStringifyPipe, typeof i5.FsFormatNumberPipe, typeof i6.FsFormatCurrencyPipe, typeof i7.FsFormatTruncatePipe, typeof i4.FsUtilIsEmptyPipe, typeof i4.FsUtilIsNotEmptyPipe, typeof i8.FsFormatBytesPipe, typeof i9.FsFormatOrdinalNumberPipe]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsCommonModule>;
|
|
18
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsFormatBytesPipe implements PipeTransform {
|
|
4
|
+
transform(value: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormatBytesPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsFormatBytesPipe, "fsFormatBytes">;
|
|
7
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsFormatCurrencyPipe implements PipeTransform {
|
|
4
|
+
locale: string;
|
|
5
|
+
constructor(locale: string);
|
|
6
|
+
transform(amount: any, precision?: any, currencyCode?: any): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormatCurrencyPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsFormatCurrencyPipe, "fsFormatCurrency">;
|
|
9
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsFormatNumberPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, decimals?: any): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormatNumberPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsFormatNumberPipe, "fsFormatNumber">;
|
|
7
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsFormatOrdinalNumberPipe implements PipeTransform {
|
|
4
|
+
transform(value: any): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormatOrdinalNumberPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsFormatOrdinalNumberPipe, "fsFormatOrdinalNumber">;
|
|
7
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsFormatTruncatePipe implements PipeTransform {
|
|
4
|
+
constructor();
|
|
5
|
+
transform(value: any, limit?: any, completeWords?: any, ellipsis?: any): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormatTruncatePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsFormatTruncatePipe, "fsFormatTruncate">;
|
|
8
|
+
}
|
package/app/pipes/util.pipe.d.ts
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
transform(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsUtilStringifyPipe implements PipeTransform {
|
|
4
|
+
constructor();
|
|
5
|
+
transform(value: any): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsUtilStringifyPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsUtilStringifyPipe, "fsUtilStringify">;
|
|
8
|
+
}
|
|
9
|
+
export declare class FsUtilGuidPipe implements PipeTransform {
|
|
10
|
+
constructor();
|
|
11
|
+
transform(): string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsUtilGuidPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsUtilGuidPipe, "fsUtilGuid">;
|
|
14
|
+
}
|
|
15
|
+
export declare class FsUtilIsEmptyPipe implements PipeTransform {
|
|
16
|
+
transform(value: any): any;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsUtilIsEmptyPipe, never>;
|
|
18
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsUtilIsEmptyPipe, "fsUtilIsEmpty">;
|
|
19
|
+
}
|
|
20
|
+
export declare class FsUtilIsNotEmptyPipe implements PipeTransform {
|
|
21
|
+
transform(value: any): any;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsUtilIsNotEmptyPipe, never>;
|
|
23
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FsUtilIsNotEmptyPipe, "fsUtilIsNotEmpty">;
|
|
24
|
+
}
|
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FsArray {
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use import { nameValue } from @firestitch/common/array; instead
|
|
5
|
+
*/
|
|
6
|
+
nameValue(array: any, name: any, value: any): Array<any>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use import { remove } from @firestitch/common/array; instead
|
|
9
|
+
*/
|
|
10
|
+
remove(array: any, query: any): any;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use import { indexOf } from @firestitch/common/array; instead
|
|
13
|
+
*/
|
|
14
|
+
indexOf(array: any, query: any): number;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use import { compare } from @firestitch/common/array; instead
|
|
17
|
+
*/
|
|
18
|
+
compare(query: any, item: any): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated use import { filter } from @firestitch/common/array; instead
|
|
21
|
+
*/
|
|
22
|
+
filter(array: any, query: any): Array<any>;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated use import { index } from @firestitch/common/array; instead
|
|
25
|
+
*/
|
|
26
|
+
index(array: any, property: any): Object;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated use import { sort } from @firestitch/common/array; instead
|
|
29
|
+
*/
|
|
30
|
+
sort(array: any, query: any, reverse?: boolean): Array<any>;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use import { rsort } from @firestitch/common/array; instead
|
|
33
|
+
*/
|
|
34
|
+
rsort(array: any, query: any): Array<any>;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use import { list } from @firestitch/common/array; instead
|
|
37
|
+
*/
|
|
38
|
+
list(array: any, property: any, index?: any): Object;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use import { applyDepth } from @firestitch/common/array; instead
|
|
41
|
+
*/
|
|
42
|
+
applyDepth(objects: any, parent_property: any, id_property?: string, depth_property?: string): {};
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated use import { inArray } from @firestitch/common/array; instead
|
|
45
|
+
*/
|
|
46
|
+
inArray(values: any, array: any): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated use import { keyExists } from @firestitch/common/array; instead
|
|
49
|
+
*/
|
|
50
|
+
keyExists(array: any, key: any): any;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated use import { length } from @firestitch/common/array; instead
|
|
53
|
+
*/
|
|
54
|
+
length(array: any): any;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated use import { ksort } from @firestitch/common/array; instead
|
|
57
|
+
*/
|
|
58
|
+
ksort(unordered: any): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsArray, never>;
|
|
60
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsArray>;
|
|
61
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FsMath {
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}
|
|
5
|
+
*/
|
|
6
|
+
round(number: any, precision: any): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsMath, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsMath>;
|
|
9
|
+
}
|
|
@@ -1,86 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare const 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;
|
|
3
|
+
export declare class FsUtil {
|
|
4
|
+
private intervals;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use @firestitch/common/util/guid instead
|
|
7
|
+
*/
|
|
8
|
+
guid(pattern?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use import { uuid } from @firestitch/common/util; instead
|
|
11
|
+
*/
|
|
12
|
+
uuid(): string;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated use import { resolve } from @firestitch/common/util; instead
|
|
15
|
+
*/
|
|
16
|
+
resolve(promise: Promise<object>, defaults?: any[]): Promise<object>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated use _.toInteger() instead
|
|
19
|
+
*/
|
|
20
|
+
int(value: any): number;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use _.toFinite() instead
|
|
23
|
+
*/
|
|
24
|
+
float(value: any): number;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated use _.toString() instead
|
|
27
|
+
*/
|
|
28
|
+
string(string: any): string;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated use import { isEmpty } from @firestitch/common/util; instead
|
|
31
|
+
*/
|
|
32
|
+
isEmpty(value: any, options?: any): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated use _.isInteger() instead
|
|
35
|
+
*/
|
|
36
|
+
isInt(value: any, type?: any): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
|
|
39
|
+
*/
|
|
40
|
+
each(object: any, func: any): void;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
|
|
43
|
+
* or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
|
|
44
|
+
*/
|
|
45
|
+
isObject(value: any): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
|
|
48
|
+
*/
|
|
49
|
+
isString(value: any): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
|
|
52
|
+
*/
|
|
53
|
+
isArray(value: any): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated use import { isNumeric } from @firestitch/common/util; instead
|
|
56
|
+
*/
|
|
57
|
+
isNumeric(value: any): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated use import { isClass } from @firestitch/common/util; instead
|
|
60
|
+
*/
|
|
61
|
+
isClass(value: any, cls: any): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
|
|
64
|
+
*/
|
|
65
|
+
isBoolean(value: any): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated use import { value } from @firestitch/common/util; instead
|
|
68
|
+
*/
|
|
69
|
+
value(object: any, key: any, def: any): any;
|
|
70
|
+
throttle(func: any, wait: any): () => void;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated use import { debounce } from @firestitch/common/util; instead
|
|
73
|
+
*/
|
|
74
|
+
debounce(func: any, wait: any, immediate: any): () => void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated use import { length } from @firestitch/common/util; instead
|
|
77
|
+
*/
|
|
78
|
+
length(object: any): number;
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated use import { boolean } from @firestitch/common/util; instead
|
|
81
|
+
*/
|
|
82
|
+
boolean(value: any): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated use import { stringify } from @firestitch/common/util; instead
|
|
85
|
+
*/
|
|
86
|
+
stringify(value: any): string;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsUtil, never>;
|
|
88
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsUtil>;
|
|
89
|
+
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { FsUtil } from './util.service';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { FsUtil } from './util.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsValidate {
|
|
4
|
+
private fsUtil;
|
|
5
|
+
constructor(fsUtil: FsUtil);
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
8
|
+
*/
|
|
9
|
+
phone(value: any): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
12
|
+
*/
|
|
13
|
+
email(value: any): boolean;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsValidate, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsValidate>;
|
|
16
|
+
}
|