@firestitch/common 8.0.10
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 +6 -0
- package/app/directives/prevent-default.directive.d.ts +3 -0
- package/app/directives/stop-propagation.directive.d.ts +3 -0
- package/app/fs-common.module.d.ts +4 -0
- package/app/pipes/bytes.pipe.d.ts +4 -0
- package/app/pipes/currency.pipe.d.ts +6 -0
- package/app/pipes/number.pipe.d.ts +4 -0
- package/app/pipes/ordinal-number.pipe.d.ts +4 -0
- package/app/pipes/truncate.pipe.d.ts +5 -0
- package/app/pipes/util.pipe.d.ts +15 -0
- package/app/services/array.service.d.ts +58 -0
- package/app/services/math.service.d.ts +6 -0
- package/app/services/util.service.d.ts +86 -0
- package/app/services/vaildate.service.d.ts +13 -0
- package/bundles/firestitch-common.umd.js +3548 -0
- package/bundles/firestitch-common.umd.js.map +1 -0
- package/bundles/firestitch-common.umd.min.js +16 -0
- package/bundles/firestitch-common.umd.min.js.map +1 -0
- package/esm2015/app/directives/autofocus.directive.js +42 -0
- package/esm2015/app/directives/prevent-default.directive.js +24 -0
- package/esm2015/app/directives/stop-propagation.directive.js +24 -0
- package/esm2015/app/fs-common.module.js +72 -0
- package/esm2015/app/pipes/bytes.pipe.js +22 -0
- package/esm2015/app/pipes/currency.pipe.js +38 -0
- package/esm2015/app/pipes/number.pipe.js +23 -0
- package/esm2015/app/pipes/ordinal-number.pipe.js +22 -0
- package/esm2015/app/pipes/truncate.pipe.js +28 -0
- package/esm2015/app/pipes/util.pipe.js +71 -0
- package/esm2015/app/services/array.service.js +352 -0
- package/esm2015/app/services/math.service.js +29 -0
- package/esm2015/app/services/util.service.js +430 -0
- package/esm2015/app/services/vaildate.service.js +48 -0
- package/esm2015/firestitch-common.js +19 -0
- package/esm2015/libs/array/compare/compare.js +19 -0
- package/esm2015/libs/array/compare/index.js +7 -0
- package/esm2015/libs/array/filter/filter.js +53 -0
- package/esm2015/libs/array/filter/index.js +7 -0
- package/esm2015/libs/array/find/find.js +17 -0
- package/esm2015/libs/array/find/index.js +7 -0
- package/esm2015/libs/array/inArray/inArray.js +22 -0
- package/esm2015/libs/array/inArray/index.js +7 -0
- package/esm2015/libs/array/index/index.js +24 -0
- package/esm2015/libs/array/index.js +19 -0
- package/esm2015/libs/array/indexOf/index.js +7 -0
- package/esm2015/libs/array/indexOf/indexOf.js +31 -0
- package/esm2015/libs/array/keyExists/index.js +7 -0
- package/esm2015/libs/array/keyExists/keyExists.js +14 -0
- package/esm2015/libs/array/ksort/index.js +7 -0
- package/esm2015/libs/array/ksort/ksort.js +22 -0
- package/esm2015/libs/array/list/index.js +7 -0
- package/esm2015/libs/array/list/list.js +30 -0
- package/esm2015/libs/array/nameValue/index.js +7 -0
- package/esm2015/libs/array/nameValue/nameValue.js +52 -0
- package/esm2015/libs/array/remove/index.js +7 -0
- package/esm2015/libs/array/remove/remove.js +20 -0
- package/esm2015/libs/array/rsort/index.js +7 -0
- package/esm2015/libs/array/rsort/rsort.js +15 -0
- package/esm2015/libs/array/sort/index.js +7 -0
- package/esm2015/libs/array/sort/sort.js +44 -0
- package/esm2015/libs/format/acronym/acronym.js +34 -0
- package/esm2015/libs/format/acronym/index.js +7 -0
- package/esm2015/libs/format/bytes/bytes.js +23 -0
- package/esm2015/libs/format/bytes/index.js +7 -0
- package/esm2015/libs/format/currency/currency.js +20 -0
- package/esm2015/libs/format/currency/index.js +7 -0
- package/esm2015/libs/format/index.js +11 -0
- package/esm2015/libs/format/number/index.js +7 -0
- package/esm2015/libs/format/number/number.js +14 -0
- package/esm2015/libs/format/truncate/index.js +7 -0
- package/esm2015/libs/format/truncate/truncate.js +25 -0
- package/esm2015/libs/index.js +11 -0
- package/esm2015/libs/rxjs/delayedRetry.js +58 -0
- package/esm2015/libs/util/boolean/boolean.js +14 -0
- package/esm2015/libs/util/boolean/index.js +7 -0
- package/esm2015/libs/util/debounce/debounce.js +40 -0
- package/esm2015/libs/util/debounce/index.js +7 -0
- package/esm2015/libs/util/get-normalized-path/get-normalized-path.js +16 -0
- package/esm2015/libs/util/get-normalized-path/index.js +7 -0
- package/esm2015/libs/util/guid/guid.js +36 -0
- package/esm2015/libs/util/guid/index.js +7 -0
- package/esm2015/libs/util/index.js +23 -0
- package/esm2015/libs/util/isClass/index.js +7 -0
- package/esm2015/libs/util/isClass/isClass.js +28 -0
- package/esm2015/libs/util/isEmpty/index.js +7 -0
- package/esm2015/libs/util/isEmpty/isEmpty.js +23 -0
- package/esm2015/libs/util/isNumeric/index.js +7 -0
- package/esm2015/libs/util/isNumeric/isNumeric.js +16 -0
- package/esm2015/libs/util/keys/index.js +7 -0
- package/esm2015/libs/util/keys/keys.js +80 -0
- package/esm2015/libs/util/length/index.js +7 -0
- package/esm2015/libs/util/length/length.js +20 -0
- package/esm2015/libs/util/ordinal-number/ordinal-number.js +20 -0
- package/esm2015/libs/util/queue/index.js +8 -0
- package/esm2015/libs/util/queue/operation.js +32 -0
- package/esm2015/libs/util/queue/queue.enum.js +12 -0
- package/esm2015/libs/util/queue/queue.js +291 -0
- package/esm2015/libs/util/remove-query-params/index.js +7 -0
- package/esm2015/libs/util/remove-query-params/remove-query-params.js +13 -0
- package/esm2015/libs/util/resolve/index.js +7 -0
- package/esm2015/libs/util/resolve/resolve.js +33 -0
- package/esm2015/libs/util/stringify/index.js +7 -0
- package/esm2015/libs/util/stringify/stringify.js +13 -0
- package/esm2015/libs/util/throttle/index.js +7 -0
- package/esm2015/libs/util/throttle/throttle.js +30 -0
- package/esm2015/libs/util/uuid/index.js +7 -0
- package/esm2015/libs/util/uuid/uuid.js +13 -0
- package/esm2015/libs/util/value/index.js +7 -0
- package/esm2015/libs/util/value/value.js +20 -0
- package/esm2015/libs/validate/email/email.js +13 -0
- package/esm2015/libs/validate/email/index.js +7 -0
- package/esm2015/libs/validate/index.js +9 -0
- package/esm2015/libs/validate/phone/index.js +7 -0
- package/esm2015/libs/validate/phone/phone.js +15 -0
- package/esm2015/libs/validate/url/index.js +7 -0
- package/esm2015/libs/validate/url/url.js +23 -0
- package/esm2015/public_api.js +17 -0
- package/esm5/app/directives/autofocus.directive.js +45 -0
- package/esm5/app/directives/prevent-default.directive.js +32 -0
- package/esm5/app/directives/stop-propagation.directive.js +32 -0
- package/esm5/app/fs-common.module.js +79 -0
- package/esm5/app/pipes/bytes.pipe.js +30 -0
- package/esm5/app/pipes/currency.pipe.js +43 -0
- package/esm5/app/pipes/number.pipe.js +32 -0
- package/esm5/app/pipes/ordinal-number.pipe.js +30 -0
- package/esm5/app/pipes/truncate.pipe.js +38 -0
- package/esm5/app/pipes/util.pipe.js +100 -0
- package/esm5/app/services/array.service.js +491 -0
- package/esm5/app/services/math.service.js +42 -0
- package/esm5/app/services/util.service.js +608 -0
- package/esm5/app/services/vaildate.service.js +63 -0
- package/esm5/firestitch-common.js +19 -0
- package/esm5/libs/array/compare/compare.js +19 -0
- package/esm5/libs/array/compare/index.js +7 -0
- package/esm5/libs/array/filter/filter.js +53 -0
- package/esm5/libs/array/filter/index.js +7 -0
- package/esm5/libs/array/find/find.js +17 -0
- package/esm5/libs/array/find/index.js +7 -0
- package/esm5/libs/array/inArray/inArray.js +22 -0
- package/esm5/libs/array/inArray/index.js +7 -0
- package/esm5/libs/array/index/index.js +24 -0
- package/esm5/libs/array/index.js +19 -0
- package/esm5/libs/array/indexOf/index.js +7 -0
- package/esm5/libs/array/indexOf/indexOf.js +31 -0
- package/esm5/libs/array/keyExists/index.js +7 -0
- package/esm5/libs/array/keyExists/keyExists.js +14 -0
- package/esm5/libs/array/ksort/index.js +7 -0
- package/esm5/libs/array/ksort/ksort.js +22 -0
- package/esm5/libs/array/list/index.js +7 -0
- package/esm5/libs/array/list/list.js +31 -0
- package/esm5/libs/array/nameValue/index.js +7 -0
- package/esm5/libs/array/nameValue/nameValue.js +52 -0
- package/esm5/libs/array/remove/index.js +7 -0
- package/esm5/libs/array/remove/remove.js +20 -0
- package/esm5/libs/array/rsort/index.js +7 -0
- package/esm5/libs/array/rsort/rsort.js +15 -0
- package/esm5/libs/array/sort/index.js +7 -0
- package/esm5/libs/array/sort/sort.js +45 -0
- package/esm5/libs/format/acronym/acronym.js +35 -0
- package/esm5/libs/format/acronym/index.js +7 -0
- package/esm5/libs/format/bytes/bytes.js +23 -0
- package/esm5/libs/format/bytes/index.js +7 -0
- package/esm5/libs/format/currency/currency.js +23 -0
- package/esm5/libs/format/currency/index.js +7 -0
- package/esm5/libs/format/index.js +11 -0
- package/esm5/libs/format/number/index.js +7 -0
- package/esm5/libs/format/number/number.js +14 -0
- package/esm5/libs/format/truncate/index.js +7 -0
- package/esm5/libs/format/truncate/truncate.js +28 -0
- package/esm5/libs/index.js +11 -0
- package/esm5/libs/rxjs/delayedRetry.js +65 -0
- package/esm5/libs/util/boolean/boolean.js +14 -0
- package/esm5/libs/util/boolean/index.js +7 -0
- package/esm5/libs/util/debounce/debounce.js +40 -0
- package/esm5/libs/util/debounce/index.js +7 -0
- package/esm5/libs/util/get-normalized-path/get-normalized-path.js +16 -0
- package/esm5/libs/util/get-normalized-path/index.js +7 -0
- package/esm5/libs/util/guid/guid.js +37 -0
- package/esm5/libs/util/guid/index.js +7 -0
- package/esm5/libs/util/index.js +23 -0
- package/esm5/libs/util/isClass/index.js +7 -0
- package/esm5/libs/util/isClass/isClass.js +28 -0
- package/esm5/libs/util/isEmpty/index.js +7 -0
- package/esm5/libs/util/isEmpty/isEmpty.js +23 -0
- package/esm5/libs/util/isNumeric/index.js +7 -0
- package/esm5/libs/util/isNumeric/isNumeric.js +16 -0
- package/esm5/libs/util/keys/index.js +7 -0
- package/esm5/libs/util/keys/keys.js +80 -0
- package/esm5/libs/util/length/index.js +7 -0
- package/esm5/libs/util/length/length.js +20 -0
- package/esm5/libs/util/ordinal-number/ordinal-number.js +22 -0
- package/esm5/libs/util/queue/index.js +8 -0
- package/esm5/libs/util/queue/operation.js +30 -0
- package/esm5/libs/util/queue/queue.enum.js +12 -0
- package/esm5/libs/util/queue/queue.js +367 -0
- package/esm5/libs/util/remove-query-params/index.js +7 -0
- package/esm5/libs/util/remove-query-params/remove-query-params.js +13 -0
- package/esm5/libs/util/resolve/index.js +7 -0
- package/esm5/libs/util/resolve/resolve.js +34 -0
- package/esm5/libs/util/stringify/index.js +7 -0
- package/esm5/libs/util/stringify/stringify.js +13 -0
- package/esm5/libs/util/throttle/index.js +7 -0
- package/esm5/libs/util/throttle/throttle.js +30 -0
- package/esm5/libs/util/uuid/index.js +7 -0
- package/esm5/libs/util/uuid/uuid.js +13 -0
- package/esm5/libs/util/value/index.js +7 -0
- package/esm5/libs/util/value/value.js +20 -0
- package/esm5/libs/validate/email/email.js +13 -0
- package/esm5/libs/validate/email/index.js +7 -0
- package/esm5/libs/validate/index.js +9 -0
- package/esm5/libs/validate/phone/index.js +7 -0
- package/esm5/libs/validate/phone/phone.js +15 -0
- package/esm5/libs/validate/url/index.js +7 -0
- package/esm5/libs/validate/url/url.js +23 -0
- package/esm5/public_api.js +17 -0
- package/fesm2015/firestitch-common.js +2769 -0
- package/fesm2015/firestitch-common.js.map +1 -0
- package/fesm5/firestitch-common.js +3284 -0
- package/fesm5/firestitch-common.js.map +1 -0
- package/firestitch-common.d.ts +13 -0
- package/firestitch-common.metadata.json +1 -0
- package/libs/array/compare/compare.d.ts +1 -0
- package/libs/array/compare/index.d.ts +1 -0
- package/libs/array/filter/filter.d.ts +1 -0
- package/libs/array/filter/index.d.ts +1 -0
- package/libs/array/find/find.d.ts +1 -0
- package/libs/array/find/index.d.ts +1 -0
- package/libs/array/inArray/inArray.d.ts +1 -0
- package/libs/array/inArray/index.d.ts +1 -0
- package/libs/array/index/index.d.ts +1 -0
- package/libs/array/index.d.ts +13 -0
- package/libs/array/indexOf/index.d.ts +1 -0
- package/libs/array/indexOf/indexOf.d.ts +1 -0
- package/libs/array/keyExists/index.d.ts +1 -0
- package/libs/array/keyExists/keyExists.d.ts +1 -0
- package/libs/array/ksort/index.d.ts +1 -0
- package/libs/array/ksort/ksort.d.ts +1 -0
- package/libs/array/list/index.d.ts +1 -0
- package/libs/array/list/list.d.ts +1 -0
- package/libs/array/nameValue/index.d.ts +1 -0
- package/libs/array/nameValue/nameValue.d.ts +1 -0
- package/libs/array/remove/index.d.ts +1 -0
- package/libs/array/remove/remove.d.ts +1 -0
- package/libs/array/rsort/index.d.ts +1 -0
- package/libs/array/rsort/rsort.d.ts +1 -0
- package/libs/array/sort/index.d.ts +1 -0
- package/libs/array/sort/sort.d.ts +1 -0
- package/libs/format/acronym/acronym.d.ts +1 -0
- package/libs/format/acronym/index.d.ts +1 -0
- package/libs/format/bytes/bytes.d.ts +1 -0
- package/libs/format/bytes/index.d.ts +1 -0
- package/libs/format/currency/currency.d.ts +1 -0
- package/libs/format/currency/index.d.ts +1 -0
- package/libs/format/index.d.ts +5 -0
- package/libs/format/number/index.d.ts +1 -0
- package/libs/format/number/number.d.ts +1 -0
- package/libs/format/truncate/index.d.ts +1 -0
- package/libs/format/truncate/truncate.d.ts +1 -0
- package/libs/index.d.ts +5 -0
- package/libs/rxjs/delayedRetry.d.ts +2 -0
- package/libs/util/boolean/boolean.d.ts +1 -0
- package/libs/util/boolean/index.d.ts +1 -0
- package/libs/util/debounce/debounce.d.ts +1 -0
- package/libs/util/debounce/index.d.ts +1 -0
- package/libs/util/get-normalized-path/get-normalized-path.d.ts +2 -0
- package/libs/util/get-normalized-path/index.d.ts +1 -0
- package/libs/util/guid/guid.d.ts +1 -0
- package/libs/util/guid/index.d.ts +1 -0
- package/libs/util/index.d.ts +17 -0
- package/libs/util/isClass/index.d.ts +1 -0
- package/libs/util/isClass/isClass.d.ts +1 -0
- package/libs/util/isEmpty/index.d.ts +1 -0
- package/libs/util/isEmpty/isEmpty.d.ts +1 -0
- package/libs/util/isNumeric/index.d.ts +1 -0
- package/libs/util/isNumeric/isNumeric.d.ts +1 -0
- package/libs/util/keys/index.d.ts +1 -0
- package/libs/util/keys/keys.d.ts +37 -0
- package/libs/util/length/index.d.ts +1 -0
- package/libs/util/length/length.d.ts +1 -0
- package/libs/util/ordinal-number/ordinal-number.d.ts +1 -0
- package/libs/util/queue/index.d.ts +2 -0
- package/libs/util/queue/operation.d.ts +7 -0
- package/libs/util/queue/queue.d.ts +32 -0
- package/libs/util/queue/queue.enum.d.ts +4 -0
- package/libs/util/remove-query-params/index.d.ts +1 -0
- package/libs/util/remove-query-params/remove-query-params.d.ts +1 -0
- package/libs/util/resolve/index.d.ts +1 -0
- package/libs/util/resolve/resolve.d.ts +1 -0
- package/libs/util/stringify/index.d.ts +1 -0
- package/libs/util/stringify/stringify.d.ts +1 -0
- package/libs/util/throttle/index.d.ts +1 -0
- package/libs/util/throttle/throttle.d.ts +1 -0
- package/libs/util/uuid/index.d.ts +1 -0
- package/libs/util/uuid/uuid.d.ts +1 -0
- package/libs/util/value/index.d.ts +1 -0
- package/libs/util/value/value.d.ts +1 -0
- package/libs/validate/email/email.d.ts +1 -0
- package/libs/validate/email/index.d.ts +1 -0
- package/libs/validate/index.d.ts +3 -0
- package/libs/validate/phone/index.d.ts +1 -0
- package/libs/validate/phone/phone.d.ts +1 -0
- package/libs/validate/url/index.d.ts +1 -0
- package/libs/validate/url/url.d.ts +7 -0
- package/package.json +33 -0
- package/public_api.d.ts +6 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
export declare class FsUtilStringifyPipe implements PipeTransform {
|
|
3
|
+
constructor();
|
|
4
|
+
transform(value: any): string;
|
|
5
|
+
}
|
|
6
|
+
export declare class FsUtilGuidPipe implements PipeTransform {
|
|
7
|
+
constructor();
|
|
8
|
+
transform(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare class FsUtilIsEmptyPipe implements PipeTransform {
|
|
11
|
+
transform(value: any): any;
|
|
12
|
+
}
|
|
13
|
+
export declare class FsUtilIsNotEmptyPipe implements PipeTransform {
|
|
14
|
+
transform(value: any): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare class FsArray {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use import { nameValue } from @firestitch/common/array; instead
|
|
4
|
+
*/
|
|
5
|
+
nameValue(array: any, name: any, value: any): Array<any>;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use import { remove } from @firestitch/common/array; instead
|
|
8
|
+
*/
|
|
9
|
+
remove(array: any, query: any): any;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use import { indexOf } from @firestitch/common/array; instead
|
|
12
|
+
*/
|
|
13
|
+
indexOf(array: any, query: any): number;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use import { compare } from @firestitch/common/array; instead
|
|
16
|
+
*/
|
|
17
|
+
compare(query: any, item: any): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use import { filter } from @firestitch/common/array; instead
|
|
20
|
+
*/
|
|
21
|
+
filter(array: any, query: any): Array<any>;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated use import { index } from @firestitch/common/array; instead
|
|
24
|
+
*/
|
|
25
|
+
index(array: any, property: any): Object;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use import { sort } from @firestitch/common/array; instead
|
|
28
|
+
*/
|
|
29
|
+
sort(array: any, query: any, reverse?: boolean): Array<any>;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated use import { rsort } from @firestitch/common/array; instead
|
|
32
|
+
*/
|
|
33
|
+
rsort(array: any, query: any): Array<any>;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated use import { list } from @firestitch/common/array; instead
|
|
36
|
+
*/
|
|
37
|
+
list(array: any, property: any, index?: any): Object;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use import { applyDepth } from @firestitch/common/array; instead
|
|
40
|
+
*/
|
|
41
|
+
applyDepth(objects: any, parent_property: any, id_property?: string, depth_property?: string): {};
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated use import { inArray } from @firestitch/common/array; instead
|
|
44
|
+
*/
|
|
45
|
+
inArray(values: any, array: any): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated use import { keyExists } from @firestitch/common/array; instead
|
|
48
|
+
*/
|
|
49
|
+
keyExists(array: any, key: any): any;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use import { length } from @firestitch/common/array; instead
|
|
52
|
+
*/
|
|
53
|
+
length(array: any): any;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated use import { ksort } from @firestitch/common/array; instead
|
|
56
|
+
*/
|
|
57
|
+
ksort(unordered: any): void;
|
|
58
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
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;
|
|
2
|
+
export declare class FsUtil {
|
|
3
|
+
private intervals;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use @firestitch/common/util/guid instead
|
|
6
|
+
*/
|
|
7
|
+
guid(pattern?: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use import { uuid } from @firestitch/common/util; instead
|
|
10
|
+
*/
|
|
11
|
+
uuid(): string;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use import { resolve } from @firestitch/common/util; instead
|
|
14
|
+
*/
|
|
15
|
+
resolve(promise: Promise<object>, defaults?: any[]): Promise<object>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use _.toInteger() instead
|
|
18
|
+
*/
|
|
19
|
+
int(value: any): number;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use _.toFinite() instead
|
|
22
|
+
*/
|
|
23
|
+
float(value: any): number;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use _.toString() instead
|
|
26
|
+
*/
|
|
27
|
+
string(string: any): string;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated use import { isEmpty } from @firestitch/common/util; instead
|
|
30
|
+
*/
|
|
31
|
+
isEmpty(value: any, options?: any): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated use _.isInteger() instead
|
|
34
|
+
*/
|
|
35
|
+
isInt(value: any, type?: any): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
|
|
38
|
+
*/
|
|
39
|
+
each(object: any, func: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
|
|
42
|
+
* or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
|
|
43
|
+
*/
|
|
44
|
+
isObject(value: any): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
|
|
47
|
+
*/
|
|
48
|
+
isString(value: any): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
|
|
51
|
+
*/
|
|
52
|
+
isArray(value: any): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated use import { isNumeric } from @firestitch/common/util; instead
|
|
55
|
+
*/
|
|
56
|
+
isNumeric(value: any): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated use import { isClass } from @firestitch/common/util; instead
|
|
59
|
+
*/
|
|
60
|
+
isClass(value: any, cls: any): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
|
|
63
|
+
*/
|
|
64
|
+
isBoolean(value: any): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated use import { value } from @firestitch/common/util; instead
|
|
67
|
+
*/
|
|
68
|
+
value(object: any, key: any, def: any): any;
|
|
69
|
+
throttle(func: any, wait: any): () => void;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated use import { debounce } from @firestitch/common/util; instead
|
|
72
|
+
*/
|
|
73
|
+
debounce(func: any, wait: any, immediate: any): () => void;
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated use import { length } from @firestitch/common/util; instead
|
|
76
|
+
*/
|
|
77
|
+
length(object: any): number;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated use import { boolean } from @firestitch/common/util; instead
|
|
80
|
+
*/
|
|
81
|
+
boolean(value: any): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use import { stringify } from @firestitch/common/util; instead
|
|
84
|
+
*/
|
|
85
|
+
stringify(value: any): string;
|
|
86
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FsUtil } from './util.service';
|
|
2
|
+
export declare class FsValidate {
|
|
3
|
+
private fsUtil;
|
|
4
|
+
constructor(fsUtil: FsUtil);
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
7
|
+
*/
|
|
8
|
+
phone(value: any): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use import { email } from @firestitch/common/validate; instead
|
|
11
|
+
*/
|
|
12
|
+
email(value: any): boolean;
|
|
13
|
+
}
|