ngx-sfc-common 0.0.0-watch
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/README.md +644 -0
- package/esm2020/lib/components/button/button-type.enum.mjs +9 -0
- package/esm2020/lib/components/button/button.component.mjs +44 -0
- package/esm2020/lib/components/checkmark/checkmark-type.enum.mjs +7 -0
- package/esm2020/lib/components/checkmark/checkmark.component.mjs +39 -0
- package/esm2020/lib/components/close/close.component.mjs +16 -0
- package/esm2020/lib/components/delimeter/delimeter.component.mjs +28 -0
- package/esm2020/lib/components/dots/dots.component.mjs +30 -0
- package/esm2020/lib/components/hamburger/default/hamburger.component.mjs +12 -0
- package/esm2020/lib/components/hamburger/hamburger-base.component.mjs +23 -0
- package/esm2020/lib/components/hamburger/menu/hamburger-menu.component.mjs +18 -0
- package/esm2020/lib/components/icon/icon.component.mjs +21 -0
- package/esm2020/lib/components/index.mjs +34 -0
- package/esm2020/lib/components/load-container/load-container.component.mjs +180 -0
- package/esm2020/lib/components/load-container/load-container.constants.mjs +5 -0
- package/esm2020/lib/components/load-container/load-container.enum.mjs +11 -0
- package/esm2020/lib/components/load-container/models/load-container.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-more-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-more-predicate-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-more.model.mjs +2 -0
- package/esm2020/lib/components/load-container/service/load-more.service.mjs +27 -0
- package/esm2020/lib/components/load-more-button/load-more-button.component.mjs +31 -0
- package/esm2020/lib/components/loader/bounce/bounce-loader.component.mjs +13 -0
- package/esm2020/lib/components/loader/circle/circle-loader-type.enum.mjs +6 -0
- package/esm2020/lib/components/loader/circle/circle-loader.component.mjs +20 -0
- package/esm2020/lib/components/loader/loader-base.component.mjs +51 -0
- package/esm2020/lib/components/loader/loader.constants.mjs +6 -0
- package/esm2020/lib/components/loader/loader.event.mjs +2 -0
- package/esm2020/lib/components/loader/service/loader.service.mjs +76 -0
- package/esm2020/lib/components/modal/directive/click/modal-open-on-click.directive.mjs +50 -0
- package/esm2020/lib/components/modal/directive/open/modal-open.directive.mjs +28 -0
- package/esm2020/lib/components/modal/footer/default/default-modal-footer.component.mjs +60 -0
- package/esm2020/lib/components/modal/footer/default/default-modal-footer.model.mjs +2 -0
- package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +38 -0
- package/esm2020/lib/components/modal/header/default/default-modal-header.model.mjs +2 -0
- package/esm2020/lib/components/modal/modal-template.enum.mjs +7 -0
- package/esm2020/lib/components/modal/modal.component.mjs +103 -0
- package/esm2020/lib/components/modal/service/modal.event.mjs +2 -0
- package/esm2020/lib/components/modal/service/modal.service.mjs +31 -0
- package/esm2020/lib/components/pagination/models/pagination-view.model.mjs +2 -0
- package/esm2020/lib/components/pagination/pagination.component.mjs +104 -0
- package/esm2020/lib/components/pagination/pagination.constants.mjs +6 -0
- package/esm2020/lib/components/pagination/service/pagination.event.mjs +2 -0
- package/esm2020/lib/components/pagination/service/pagination.service.mjs +47 -0
- package/esm2020/lib/components/sorting/service/sorting.event.mjs +2 -0
- package/esm2020/lib/components/sorting/service/sorting.service.mjs +21 -0
- package/esm2020/lib/components/sorting/sorting.component.mjs +71 -0
- package/esm2020/lib/components/sorting/sorting.constants.mjs +6 -0
- package/esm2020/lib/components/sorting/sorting.model.mjs +2 -0
- package/esm2020/lib/components/template-content/template-content.component.mjs +31 -0
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +38 -0
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.model.mjs +2 -0
- package/esm2020/lib/components/tooltip/tooltip-type.enum.mjs +6 -0
- package/esm2020/lib/components/tooltip/tooltip.component.mjs +69 -0
- package/esm2020/lib/constants/common.constants.mjs +9 -0
- package/esm2020/lib/constants/date-time.constants.mjs +10 -0
- package/esm2020/lib/constants/file.constants.mjs +2 -0
- package/esm2020/lib/constants/index.mjs +4 -0
- package/esm2020/lib/constants/ui.constants.mjs +23 -0
- package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +63 -0
- package/esm2020/lib/directives/click-outside/click-outside.event.mjs +2 -0
- package/esm2020/lib/directives/component-size/component-size.directive.mjs +59 -0
- package/esm2020/lib/directives/destroy-parent/destroy-parent.directive.mjs +27 -0
- package/esm2020/lib/directives/dom-changes/dom-changes.directive.mjs +32 -0
- package/esm2020/lib/directives/if/if.directive.mjs +26 -0
- package/esm2020/lib/directives/image-size/image-load.directive.mjs +41 -0
- package/esm2020/lib/directives/image-size/services/image-load.event.mjs +2 -0
- package/esm2020/lib/directives/image-size/services/image-load.service.mjs +22 -0
- package/esm2020/lib/directives/image-size/services/image-size.model.mjs +2 -0
- package/esm2020/lib/directives/index.mjs +14 -0
- package/esm2020/lib/directives/mouse-down/mouse-down.directive.mjs +37 -0
- package/esm2020/lib/directives/scroll-into-view/scroll-into-view.directive.mjs +39 -0
- package/esm2020/lib/directives/scroll-tracker/scroll-tracker.directive.mjs +39 -0
- package/esm2020/lib/directives/show-hide-element/show-hide-element.directive.mjs +42 -0
- package/esm2020/lib/directives/template-reference/template-reference.directive.mjs +23 -0
- package/esm2020/lib/directives/throw-element-on-hover/throw-element-on-hover.directive.mjs +38 -0
- package/esm2020/lib/enums/direction.enum.mjs +9 -0
- package/esm2020/lib/enums/index.mjs +9 -0
- package/esm2020/lib/enums/media.enum.mjs +13 -0
- package/esm2020/lib/enums/position.enum.mjs +12 -0
- package/esm2020/lib/enums/sequence.enum.mjs +9 -0
- package/esm2020/lib/enums/size.enum.mjs +11 -0
- package/esm2020/lib/enums/sorting-direction.enum.mjs +9 -0
- package/esm2020/lib/enums/theme.enum.mjs +9 -0
- package/esm2020/lib/enums/ui.enum.mjs +30 -0
- package/esm2020/lib/models/class.model.mjs +2 -0
- package/esm2020/lib/models/index.mjs +2 -0
- package/esm2020/lib/ngx-sfc-common.module.mjs +190 -0
- package/esm2020/lib/pipes/index.mjs +2 -0
- package/esm2020/lib/pipes/switch-multi-case/switch-multi-case.pipe.mjs +16 -0
- package/esm2020/lib/services/document-ref.service.mjs +71 -0
- package/esm2020/lib/services/index.mjs +4 -0
- package/esm2020/lib/services/resize.service.mjs +42 -0
- package/esm2020/lib/services/window-ref.service.mjs +70 -0
- package/esm2020/lib/utils/collections.utils.mjs +280 -0
- package/esm2020/lib/utils/common.utils.mjs +184 -0
- package/esm2020/lib/utils/date-time.utils.mjs +265 -0
- package/esm2020/lib/utils/file.utils.mjs +53 -0
- package/esm2020/lib/utils/index.mjs +7 -0
- package/esm2020/lib/utils/string.utils.mjs +31 -0
- package/esm2020/lib/utils/ui.utils.mjs +90 -0
- package/esm2020/ngx-sfc-common.mjs +5 -0
- package/esm2020/public-api.mjs +12 -0
- package/fesm2015/ngx-sfc-common.mjs +3097 -0
- package/fesm2015/ngx-sfc-common.mjs.map +1 -0
- package/fesm2020/ngx-sfc-common.mjs +3088 -0
- package/fesm2020/ngx-sfc-common.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/button/button-type.enum.d.ts +7 -0
- package/lib/components/button/button.component.d.ts +16 -0
- package/lib/components/checkmark/checkmark-type.enum.d.ts +5 -0
- package/lib/components/checkmark/checkmark.component.d.ts +11 -0
- package/lib/components/close/close.component.d.ts +6 -0
- package/lib/components/delimeter/delimeter.component.d.ts +9 -0
- package/lib/components/dots/dots.component.d.ts +9 -0
- package/lib/components/hamburger/default/hamburger.component.d.ts +6 -0
- package/lib/components/hamburger/hamburger-base.component.d.ts +7 -0
- package/lib/components/hamburger/menu/hamburger-menu.component.d.ts +7 -0
- package/lib/components/icon/icon.component.d.ts +9 -0
- package/lib/components/index.d.ts +44 -0
- package/lib/components/load-container/load-container.component.d.ts +50 -0
- package/lib/components/load-container/load-container.constants.d.ts +4 -0
- package/lib/components/load-container/load-container.enum.d.ts +8 -0
- package/lib/components/load-container/models/load-container.model.d.ts +14 -0
- package/lib/components/load-container/models/load-more-parameters.model.d.ts +5 -0
- package/lib/components/load-container/models/load-more-predicate-parameters.model.d.ts +3 -0
- package/lib/components/load-container/models/load-more.model.d.ts +5 -0
- package/lib/components/load-container/service/load-more.service.d.ts +12 -0
- package/lib/components/load-more-button/load-more-button.component.d.ts +12 -0
- package/lib/components/loader/bounce/bounce-loader.component.d.ts +6 -0
- package/lib/components/loader/circle/circle-loader-type.enum.d.ts +4 -0
- package/lib/components/loader/circle/circle-loader.component.d.ts +8 -0
- package/lib/components/loader/loader-base.component.d.ts +27 -0
- package/lib/components/loader/loader.constants.d.ts +5 -0
- package/lib/components/loader/loader.event.d.ts +4 -0
- package/lib/components/loader/service/loader.service.d.ts +33 -0
- package/lib/components/modal/directive/click/modal-open-on-click.directive.d.ts +17 -0
- package/lib/components/modal/directive/open/modal-open.directive.d.ts +13 -0
- package/lib/components/modal/footer/default/default-modal-footer.component.d.ts +19 -0
- package/lib/components/modal/footer/default/default-modal-footer.model.d.ts +8 -0
- package/lib/components/modal/header/default/default-modal-header.component.d.ts +16 -0
- package/lib/components/modal/header/default/default-modal-header.model.d.ts +6 -0
- package/lib/components/modal/modal-template.enum.d.ts +5 -0
- package/lib/components/modal/modal.component.d.ts +26 -0
- package/lib/components/modal/service/modal.event.d.ts +4 -0
- package/lib/components/modal/service/modal.service.d.ts +13 -0
- package/lib/components/pagination/models/pagination-view.model.d.ts +12 -0
- package/lib/components/pagination/pagination.component.d.ts +31 -0
- package/lib/components/pagination/pagination.constants.d.ts +5 -0
- package/lib/components/pagination/service/pagination.event.d.ts +6 -0
- package/lib/components/pagination/service/pagination.service.d.ts +25 -0
- package/lib/components/sorting/service/sorting.event.d.ts +5 -0
- package/lib/components/sorting/service/sorting.service.d.ts +9 -0
- package/lib/components/sorting/sorting.component.d.ts +22 -0
- package/lib/components/sorting/sorting.constants.d.ts +4 -0
- package/lib/components/sorting/sorting.model.d.ts +12 -0
- package/lib/components/template-content/template-content.component.d.ts +14 -0
- package/lib/components/toggle-switcher/toggle-switcher.component.d.ts +12 -0
- package/lib/components/toggle-switcher/toggle-switcher.model.d.ts +5 -0
- package/lib/components/tooltip/tooltip-type.enum.d.ts +4 -0
- package/lib/components/tooltip/tooltip.component.d.ts +22 -0
- package/lib/constants/common.constants.d.ts +8 -0
- package/lib/constants/date-time.constants.d.ts +9 -0
- package/lib/constants/file.constants.d.ts +1 -0
- package/lib/constants/index.d.ts +4 -0
- package/lib/constants/ui.constants.d.ts +22 -0
- package/lib/directives/click-outside/click-outside.directive.d.ts +23 -0
- package/lib/directives/click-outside/click-outside.event.d.ts +4 -0
- package/lib/directives/component-size/component-size.directive.d.ts +18 -0
- package/lib/directives/destroy-parent/destroy-parent.directive.d.ts +10 -0
- package/lib/directives/dom-changes/dom-changes.directive.d.ts +12 -0
- package/lib/directives/if/if.directive.d.ts +11 -0
- package/lib/directives/image-size/image-load.directive.d.ts +12 -0
- package/lib/directives/image-size/services/image-load.event.d.ts +5 -0
- package/lib/directives/image-size/services/image-load.service.d.ts +10 -0
- package/lib/directives/image-size/services/image-size.model.d.ts +4 -0
- package/lib/directives/index.d.ts +16 -0
- package/lib/directives/mouse-down/mouse-down.directive.d.ts +12 -0
- package/lib/directives/scroll-into-view/scroll-into-view.directive.d.ts +11 -0
- package/lib/directives/scroll-tracker/scroll-tracker.directive.d.ts +11 -0
- package/lib/directives/show-hide-element/show-hide-element.directive.d.ts +13 -0
- package/lib/directives/template-reference/template-reference.directive.d.ts +10 -0
- package/lib/directives/throw-element-on-hover/throw-element-on-hover.directive.d.ts +13 -0
- package/lib/enums/direction.enum.d.ts +7 -0
- package/lib/enums/index.d.ts +8 -0
- package/lib/enums/media.enum.d.ts +11 -0
- package/lib/enums/position.enum.d.ts +10 -0
- package/lib/enums/sequence.enum.d.ts +7 -0
- package/lib/enums/size.enum.d.ts +9 -0
- package/lib/enums/sorting-direction.enum.d.ts +7 -0
- package/lib/enums/theme.enum.d.ts +7 -0
- package/lib/enums/ui.enum.d.ts +27 -0
- package/lib/models/class.model.d.ts +3 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/ngx-sfc-common.module.d.ts +43 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/switch-multi-case/switch-multi-case.pipe.d.ts +7 -0
- package/lib/services/document-ref.service.d.ts +43 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/resize.service.d.ts +32 -0
- package/lib/services/window-ref.service.d.ts +43 -0
- package/lib/utils/collections.utils.d.ts +156 -0
- package/lib/utils/common.utils.d.ts +78 -0
- package/lib/utils/date-time.utils.d.ts +164 -0
- package/lib/utils/file.utils.d.ts +25 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/string.utils.d.ts +19 -0
- package/lib/utils/ui.utils.d.ts +58 -0
- package/package.json +56 -0
- package/public-api.d.ts +8 -0
- package/styles/_colors.scss +48 -0
- package/styles/_index.scss +4 -0
- package/styles/_mixins-delimeter.scss +21 -0
- package/styles/_mixins-scroll.scss +38 -0
- package/styles/_mixins.scss +46 -0
- package/styles/_variables.scss +12 -0
- package/styles/themes/_dark.scss +17 -0
- package/styles/themes/_default.scss +18 -0
- package/styles/themes/_yellow.scss +3 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ClassProvider, FactoryProvider, InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Create a new injection token for injecting the window into a component.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WINDOW: InjectionToken<unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Define abstract class for obtaining reference to the global window object.
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class WindowRef {
|
|
11
|
+
get nativeWindow(): Window | Object;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Define class that implements the abstract class and returns the native window object.
|
|
15
|
+
*/
|
|
16
|
+
export declare class BrowserWindowRef extends WindowRef {
|
|
17
|
+
constructor();
|
|
18
|
+
/**
|
|
19
|
+
* @returns window object
|
|
20
|
+
*/
|
|
21
|
+
get nativeWindow(): Window | Object;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserWindowRef, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserWindowRef>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create an factory function that returns the native window object.
|
|
27
|
+
* @param browserWindowRef Native window object
|
|
28
|
+
* @param platformId id of platform
|
|
29
|
+
* @returns type of platform of empty object
|
|
30
|
+
*/
|
|
31
|
+
export declare function windowFactory(browserWindowRef: BrowserWindowRef, platformId: Object): Window | Object;
|
|
32
|
+
/**
|
|
33
|
+
* Create a injectable provider for the WindowRef token that uses the BrowserWindowRef class.
|
|
34
|
+
*/
|
|
35
|
+
export declare const browserWindowProvider: ClassProvider;
|
|
36
|
+
/**
|
|
37
|
+
* Create an injectable provider that uses the windowFactory function for returning the native window object.
|
|
38
|
+
*/
|
|
39
|
+
export declare const windowProvider: FactoryProvider;
|
|
40
|
+
/**
|
|
41
|
+
* Create an array of providers.
|
|
42
|
+
*/
|
|
43
|
+
export declare const WINDOW_PROVIDERS: (ClassProvider | FactoryProvider)[];
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { SortingDirection } from "../enums";
|
|
2
|
+
/**
|
|
3
|
+
* Return true if collection not empty
|
|
4
|
+
* @param collection Array of items
|
|
5
|
+
* @returns True if collection not empty
|
|
6
|
+
*/
|
|
7
|
+
export declare function any<T>(collection: Array<T> | null | undefined): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Return true if collection has such value
|
|
10
|
+
* @param collection Array of items
|
|
11
|
+
* @param value Value to check
|
|
12
|
+
* @returns True if found value in collection
|
|
13
|
+
*/
|
|
14
|
+
export declare function hasItem<T>(collection: Array<T>, value: T): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Return true if collection has such value by predicate function
|
|
17
|
+
* @param collection Array of items
|
|
18
|
+
* @param predicate Function to define check logic
|
|
19
|
+
* @returns True if found value in collection
|
|
20
|
+
*/
|
|
21
|
+
export declare function hasItemBy<T>(collection: Array<T>, predicate: (item: T) => boolean): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Return true if collection of objects has such value as object
|
|
24
|
+
* @param collection Array of objects
|
|
25
|
+
* @param property Property name
|
|
26
|
+
* @param value Value to check
|
|
27
|
+
* @returns True if found value in collection
|
|
28
|
+
*/
|
|
29
|
+
export declare function hasObjectItem<T>(collection: Array<any>, // TODO <-- Array<T>
|
|
30
|
+
property: string, value: T): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Return value from collection by predicate function
|
|
33
|
+
* @param collection Array of items
|
|
34
|
+
* @param predicate Function to define search logic
|
|
35
|
+
* @returns Value from collection
|
|
36
|
+
*/
|
|
37
|
+
export declare function firstOrDefault<T>(collection: Array<T> | null | undefined, predicate: (item: T) => boolean): T | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Return first item from collection
|
|
40
|
+
* @param collection Array of items
|
|
41
|
+
* @returns First value from collection
|
|
42
|
+
*/
|
|
43
|
+
export declare function firstItem<T>(collection: Array<T>): T | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Return last item from collection
|
|
46
|
+
* @param collection Array of items
|
|
47
|
+
* @returns Last value from collection
|
|
48
|
+
*/
|
|
49
|
+
export declare function lastItem<T>(collection: Array<T>): T | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Return True if all values match predicate function
|
|
52
|
+
* @param collection Array of objects
|
|
53
|
+
* @param predicate Function to define check logic
|
|
54
|
+
* @returns True if all values match predicate
|
|
55
|
+
*/
|
|
56
|
+
export declare function all<T>(collection: Array<T>, predicate: (item: T) => boolean): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Return count by predicate
|
|
59
|
+
* @param collection Array of objects
|
|
60
|
+
* @param predicate Function to define check logic
|
|
61
|
+
* @returns Items count
|
|
62
|
+
*/
|
|
63
|
+
export declare function count<T>(collection: Array<T>, predicate: (item: T) => boolean): number;
|
|
64
|
+
/**
|
|
65
|
+
* Return items from collection by predicate function
|
|
66
|
+
* @param collection Array of items
|
|
67
|
+
* @param predicate Function to define search logic
|
|
68
|
+
* @returns Values from collection
|
|
69
|
+
*/
|
|
70
|
+
export declare function where<T>(collection: Array<T>, predicate: (item: T) => boolean): Array<T> | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Return sliced collection by page number and page size
|
|
73
|
+
* @param collection Array of items
|
|
74
|
+
* @param page Page number
|
|
75
|
+
* @param size Page size
|
|
76
|
+
* @returns Sliced collection
|
|
77
|
+
*/
|
|
78
|
+
export declare function skip<T>(collection: Array<T>, page: number, size: number): Array<T>;
|
|
79
|
+
export declare function sort<T>(collection: Array<T>, direction?: SortingDirection): Array<T>;
|
|
80
|
+
/**
|
|
81
|
+
* Return sorted collection of objects by property
|
|
82
|
+
* @param collection Array of items
|
|
83
|
+
* @param property Property name
|
|
84
|
+
* @param direction Sorting direction
|
|
85
|
+
* @returns Sorted collection
|
|
86
|
+
*/
|
|
87
|
+
export declare function sortBy<T>(collection: Array<T>, property: string, direction: SortingDirection): Array<T>;
|
|
88
|
+
/**
|
|
89
|
+
* Return sorted collection of objects by path
|
|
90
|
+
* @param collection Array of items
|
|
91
|
+
* @param path Path to property
|
|
92
|
+
* @param direction Sorting direction
|
|
93
|
+
* @returns Sorted collection
|
|
94
|
+
*/
|
|
95
|
+
export declare function sortByPath<T>(collection: Array<T>, path: string, direction: SortingDirection): Array<T>;
|
|
96
|
+
/**
|
|
97
|
+
* Return collection without matches
|
|
98
|
+
* @param collection Array of items
|
|
99
|
+
* @returns Collection without matches
|
|
100
|
+
*/
|
|
101
|
+
export declare function distinct<T>(collection: Array<T>): Array<T>;
|
|
102
|
+
/**
|
|
103
|
+
* Return sum value from collection items by map function
|
|
104
|
+
* @param collection Array of items
|
|
105
|
+
* @param select Map function
|
|
106
|
+
* @returns Sum value of colection items
|
|
107
|
+
*/
|
|
108
|
+
export declare function sum<T>(collection: Array<T>, select: (item: T) => number): number;
|
|
109
|
+
/**
|
|
110
|
+
* Return max value from collection items by map function
|
|
111
|
+
* @param collection Array of items
|
|
112
|
+
* @param select Map function
|
|
113
|
+
* @returns Max value of collection items
|
|
114
|
+
*/
|
|
115
|
+
export declare function max<T>(collection: Array<T>, select: (item: T) => number): number;
|
|
116
|
+
/**
|
|
117
|
+
* Delete items from collection by predicate
|
|
118
|
+
* @param collection Array of items
|
|
119
|
+
* @param predicate Function to define remove logic
|
|
120
|
+
*/
|
|
121
|
+
export declare function remove<T>(collection: Array<T>, predicate: (item: T) => boolean): void;
|
|
122
|
+
/**
|
|
123
|
+
* Add item to collection
|
|
124
|
+
* @param collection Array of items
|
|
125
|
+
* @param item New item
|
|
126
|
+
* @param predicate Function to define if allowed to add new item
|
|
127
|
+
* @returns True if successfully added
|
|
128
|
+
*/
|
|
129
|
+
export declare function addItem<T>(collection: Array<T>, item: T, predicate: (item: T) => boolean): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Delete item from collection
|
|
132
|
+
* @param collection Array of items
|
|
133
|
+
* @param item Item to delete
|
|
134
|
+
* @returns True if successfully removed
|
|
135
|
+
*/
|
|
136
|
+
export declare function removeItem<T>(collection: Array<T>, item: T): boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Delete item from collection by predicate
|
|
139
|
+
* @param collection Array of items
|
|
140
|
+
* @param predicate Function to define remove logic
|
|
141
|
+
* @returns True if successfully removed
|
|
142
|
+
*/
|
|
143
|
+
export declare function removeItemBy<T>(collection: Array<T>, predicate: (item: T) => boolean): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Update item in collection by predicate
|
|
146
|
+
* @param collection Array of items
|
|
147
|
+
* @param predicate Function to define item for deleting
|
|
148
|
+
* @returns True if successfully removed
|
|
149
|
+
*/
|
|
150
|
+
export declare function updateItemBy<T>(collection: Array<T>, predicate: (item: T) => boolean, newItem: T): Array<T> | null;
|
|
151
|
+
/**
|
|
152
|
+
* Return collection or empty if collection is not defined
|
|
153
|
+
* @param collection Array of items
|
|
154
|
+
* @returns Collection or empty
|
|
155
|
+
*/
|
|
156
|
+
export declare function getCollectionOrEmpty<T>(collection: Array<T>): Array<T>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return true if value defined
|
|
3
|
+
* @param value Value to check
|
|
4
|
+
* @returns True if value is not null and defined
|
|
5
|
+
*/
|
|
6
|
+
export declare function isDefined<T>(value: T | undefined | null): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Return true if value is object
|
|
9
|
+
* @param value Value to check
|
|
10
|
+
* @returns True if value is object
|
|
11
|
+
*/
|
|
12
|
+
export declare function isObject(value: any): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Return true if data is observable
|
|
15
|
+
* @param data Object to check
|
|
16
|
+
* @returns True if data is observable
|
|
17
|
+
*/
|
|
18
|
+
export declare function isAsyncData(data: any): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Return extended object with new property
|
|
21
|
+
* @param obj Object to extend by property
|
|
22
|
+
* @param property New property name
|
|
23
|
+
* @param value Value for new property
|
|
24
|
+
* @returns Extended object with new property
|
|
25
|
+
*/
|
|
26
|
+
export declare function addPropertyToObject(obj: any, property: string, value?: any): any;
|
|
27
|
+
/**
|
|
28
|
+
* Remove property from object
|
|
29
|
+
* @param obj Object for removing property
|
|
30
|
+
* @param property Property name to remove
|
|
31
|
+
*/
|
|
32
|
+
export declare function removePropertyFromObject(obj: any, property: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Deep merge object with others
|
|
35
|
+
* @param target Object to merge
|
|
36
|
+
* @param sources
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* Deep merge object with others
|
|
40
|
+
* @param target Object to merge
|
|
41
|
+
* @param sources Objects to be merged with target
|
|
42
|
+
* @returns Merged object
|
|
43
|
+
*/
|
|
44
|
+
export declare function mergeDeep(target: any, ...sources: any[]): any;
|
|
45
|
+
/**
|
|
46
|
+
* Get type's property name safety
|
|
47
|
+
* @param name KeyOf property
|
|
48
|
+
* @returns Type's property name
|
|
49
|
+
*/
|
|
50
|
+
export declare const nameof: <T>(name: keyof T) => keyof T;
|
|
51
|
+
/**
|
|
52
|
+
* Determines if the input is a Number or something that can be coerced to a Number
|
|
53
|
+
* @param - The input to be tested
|
|
54
|
+
* @returns - An indication if the input is a Number or can be coerced to a Number
|
|
55
|
+
*/
|
|
56
|
+
export declare function isNumeric(number: any): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Return true if current browser is Chrome
|
|
59
|
+
* @returns If current browser is Chrome
|
|
60
|
+
*/
|
|
61
|
+
export declare function isChromeBrowser(): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Return true if value is valid email address
|
|
64
|
+
* @returns True if it's valid email address
|
|
65
|
+
*/
|
|
66
|
+
export declare function isEmail(value: string): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Return true if string is "true"
|
|
69
|
+
* @returns parsed string as boolean
|
|
70
|
+
*/
|
|
71
|
+
export declare function parseBoolean(value: string): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Return true if values equal
|
|
74
|
+
* @param obj1 First value to compare
|
|
75
|
+
* @param obj2 Second value to compare
|
|
76
|
+
* @returns True if equal
|
|
77
|
+
*/
|
|
78
|
+
export declare function isEqual(obj1: any, obj2: any): boolean;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Set minutes for date
|
|
3
|
+
* @param date Date value
|
|
4
|
+
* @param minute Minute value
|
|
5
|
+
* @returns Date with minute value
|
|
6
|
+
*/
|
|
7
|
+
export declare function setMinutes(date: Date, minute: number): Date;
|
|
8
|
+
/**
|
|
9
|
+
* Set hours for date
|
|
10
|
+
* @param date Date value
|
|
11
|
+
* @param hour Hour value
|
|
12
|
+
* @returns Date with hour value
|
|
13
|
+
*/
|
|
14
|
+
export declare function setHours(date: Date, hour: number): Date;
|
|
15
|
+
/**
|
|
16
|
+
* Set day for date value
|
|
17
|
+
* @param date Date value
|
|
18
|
+
* @param dayNumber Day number
|
|
19
|
+
* @returns Date with day number
|
|
20
|
+
*/
|
|
21
|
+
export declare function setDay(date: Date, dayNumber: number): Date;
|
|
22
|
+
/**
|
|
23
|
+
* Set year for date
|
|
24
|
+
* @param date Date value
|
|
25
|
+
* @param year Year value
|
|
26
|
+
* @returns Date with year value
|
|
27
|
+
*/
|
|
28
|
+
export declare function setYear(date: Date, year: number): Date;
|
|
29
|
+
/**
|
|
30
|
+
* Set seconds for date
|
|
31
|
+
* @param date Date value
|
|
32
|
+
* @param value Seconds value
|
|
33
|
+
* @returns Date with minute value
|
|
34
|
+
*/
|
|
35
|
+
export declare function setSeconds(date: Date, value: number): Date;
|
|
36
|
+
/**
|
|
37
|
+
* Set milliseconds for date
|
|
38
|
+
* @param date Date value
|
|
39
|
+
* @param value Milliseconds value
|
|
40
|
+
* @returns Date with minute value
|
|
41
|
+
*/
|
|
42
|
+
export declare function setMilliseconds(date: Date, value: number): Date;
|
|
43
|
+
/**
|
|
44
|
+
* Set 0 for seconds and milliseconds of date
|
|
45
|
+
* @param date Date value
|
|
46
|
+
* @returns Date with minute value
|
|
47
|
+
*/
|
|
48
|
+
export declare function setDefaultSecondsAndMiliseconds(date: Date): Date;
|
|
49
|
+
/**
|
|
50
|
+
* Get next date
|
|
51
|
+
* @param date Date value
|
|
52
|
+
* @returns Next date
|
|
53
|
+
*/
|
|
54
|
+
export declare function getNextDate(date: Date): Date;
|
|
55
|
+
/**
|
|
56
|
+
* Get next month as date
|
|
57
|
+
* @param date Date value
|
|
58
|
+
* @returns Next month as date
|
|
59
|
+
*/
|
|
60
|
+
export declare function getNextMonth(date: Date): Date;
|
|
61
|
+
/**
|
|
62
|
+
* Get previous month as date
|
|
63
|
+
* @param date Date value
|
|
64
|
+
* @returns Previous month as date
|
|
65
|
+
*/
|
|
66
|
+
export declare function getPreviousMonth(date: Date): Date;
|
|
67
|
+
/**
|
|
68
|
+
* Get next year as date
|
|
69
|
+
* @param date Date value
|
|
70
|
+
* @returns Next year as date
|
|
71
|
+
*/
|
|
72
|
+
export declare function getNextYear(date: Date): Date;
|
|
73
|
+
/**
|
|
74
|
+
* Get previous year as date
|
|
75
|
+
* @param date Date value
|
|
76
|
+
* @returns Previous year as date
|
|
77
|
+
*/
|
|
78
|
+
export declare function getPreviousYear(date: Date): Date;
|
|
79
|
+
/**
|
|
80
|
+
* Return first day of month as date from date value
|
|
81
|
+
* @param date Date value
|
|
82
|
+
* @returns First day of month as date
|
|
83
|
+
*/
|
|
84
|
+
export declare function getFirstDayOfMonth(date: Date): Date;
|
|
85
|
+
/**
|
|
86
|
+
* Return last day of month as date from date value
|
|
87
|
+
* @param date Date value
|
|
88
|
+
* @returns Last day of month as date
|
|
89
|
+
*/
|
|
90
|
+
export declare function getLastDayOfMonth(date: Date): Date;
|
|
91
|
+
/**
|
|
92
|
+
* Return first day of year as date from date value
|
|
93
|
+
* @param date Date value
|
|
94
|
+
* @returns First day of year as date
|
|
95
|
+
*/
|
|
96
|
+
export declare function getFirstDayOfYear(date: Date): Date;
|
|
97
|
+
/**
|
|
98
|
+
* Return last day of year as date from date value
|
|
99
|
+
* @param date Date value
|
|
100
|
+
* @returns Last day of year as date
|
|
101
|
+
*/
|
|
102
|
+
export declare function getLastDayOfYear(date: Date): Date;
|
|
103
|
+
/**
|
|
104
|
+
* Return first day of month as date
|
|
105
|
+
* @param year Year value
|
|
106
|
+
* @param month Month value
|
|
107
|
+
* @returns First day of month
|
|
108
|
+
*/
|
|
109
|
+
export declare function getFirstDayOfMonthByYearAndMonth(year: number, month: number): Date;
|
|
110
|
+
/**
|
|
111
|
+
* Return last day of month as date
|
|
112
|
+
* @param year Year value
|
|
113
|
+
* @param month Month value
|
|
114
|
+
* @returns Last day of month
|
|
115
|
+
*/
|
|
116
|
+
export declare function getLastDayOfMonthByYearAndMonth(year: number, month: number): Date;
|
|
117
|
+
/**
|
|
118
|
+
* Return week number in month from date value
|
|
119
|
+
* @param date Date value
|
|
120
|
+
* @returns Week number
|
|
121
|
+
*/
|
|
122
|
+
export declare function getWeeksNumberInMonth(date: Date): number;
|
|
123
|
+
/**
|
|
124
|
+
* Return true if first and second date are equal
|
|
125
|
+
* @param date1 First date value
|
|
126
|
+
* @param date2 Second date value
|
|
127
|
+
* @returns True if first and second date are equal
|
|
128
|
+
*/
|
|
129
|
+
export declare function isEqualDates(date1: Date, date2: Date): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Return true if first and second datetime are equal
|
|
132
|
+
* @param date1 First datetime value
|
|
133
|
+
* @param date2 Second datetime value
|
|
134
|
+
* @returns True if first and second datetime are equal
|
|
135
|
+
*/
|
|
136
|
+
export declare function isEqualDateTimes(date1: Date, date2: Date): boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Return true if first date greater than second date
|
|
139
|
+
* @param date1 First date value
|
|
140
|
+
* @param date2 Second date value
|
|
141
|
+
* @returns True if first date greater than second date
|
|
142
|
+
*/
|
|
143
|
+
export declare function isDateGreat(date1: Date, date2: Date): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Return true if first date greater or equal to second date
|
|
146
|
+
* @param date1 First date value
|
|
147
|
+
* @param date2 Second date value
|
|
148
|
+
* @returns True if first date greater or equal to second date
|
|
149
|
+
*/
|
|
150
|
+
export declare function isDateGreatOrEqual(date1: Date, date2: Date): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Return true if first date time greater than second date time
|
|
153
|
+
* @param date1 First date time value
|
|
154
|
+
* @param date2 Second date time value
|
|
155
|
+
* @returns True if first date time greater than second date time
|
|
156
|
+
*/
|
|
157
|
+
export declare function isDateTimeGreat(date1: Date, date2: Date): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Return true if first date time greater or equal to second date time
|
|
160
|
+
* @param date1 First date time value
|
|
161
|
+
* @param date2 Second date time value
|
|
162
|
+
* @returns True if first date time greater or equal to second date time
|
|
163
|
+
*/
|
|
164
|
+
export declare function isDateTimeGreatOrEqual(date1: Date, date2: Date): boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return parsed file size as string
|
|
3
|
+
* @param bytes Bytes count
|
|
4
|
+
* @param decimals Value after dot
|
|
5
|
+
* @returns Parsed file size
|
|
6
|
+
*/
|
|
7
|
+
export declare function parseFileSize(bytes: number, decimals?: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Return file extension
|
|
10
|
+
* @param file File value
|
|
11
|
+
* @returns File extension
|
|
12
|
+
*/
|
|
13
|
+
export declare function getFileExtension(file: File): string;
|
|
14
|
+
/**
|
|
15
|
+
* Read file as data URL
|
|
16
|
+
* @param file File value
|
|
17
|
+
* @param onLoad On load action
|
|
18
|
+
*/
|
|
19
|
+
export declare function readAsDataURL(file: File, onLoad: (result: string | ArrayBuffer | null) => void): void;
|
|
20
|
+
/**
|
|
21
|
+
* Return true if file is image
|
|
22
|
+
* @param file File value
|
|
23
|
+
* @returns True if file is image
|
|
24
|
+
*/
|
|
25
|
+
export declare function isImage(file: File): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { isDefined, isObject, isAsyncData, addPropertyToObject, removePropertyFromObject, mergeDeep, nameof, isNumeric, isChromeBrowser, isEmail, parseBoolean, isEqual } from './common.utils';
|
|
2
|
+
export { isNullOrEmptyString, contains, trim } from './string.utils';
|
|
3
|
+
export { setMinutes, setHours, setDay, setYear, setSeconds, setMilliseconds, setDefaultSecondsAndMiliseconds, getNextDate, getNextMonth, getPreviousMonth, getNextYear, getPreviousYear, getFirstDayOfMonth, getLastDayOfMonth, getFirstDayOfYear, getLastDayOfYear, getFirstDayOfMonthByYearAndMonth, getLastDayOfMonthByYearAndMonth, getWeeksNumberInMonth, isEqualDates, isEqualDateTimes, isDateGreat, isDateGreatOrEqual, isDateTimeGreat, isDateTimeGreatOrEqual } from './date-time.utils';
|
|
4
|
+
export { parseFileSize, getFileExtension, readAsDataURL, isImage } from './file.utils';
|
|
5
|
+
export { getCssLikeValue, getValueFromCssLikeValue, getCalcValue, getRotateValue, addClasses, removeClasses, rgbToHex, hexToRgb, replaceRgbOpacity } from './ui.utils';
|
|
6
|
+
export { any, hasItem, hasItemBy, hasObjectItem, firstOrDefault, firstItem, lastItem, all, where, skip, sort, sortBy, sortByPath, distinct, sum, max, remove, addItem, removeItem, removeItemBy, updateItemBy, getCollectionOrEmpty, count } from './collections.utils';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return true if string has value(not empty string)
|
|
3
|
+
* @param value String value to check
|
|
4
|
+
* @returns True if string is not null and defined(not empty string)
|
|
5
|
+
*/
|
|
6
|
+
export declare function isNullOrEmptyString(value: string | undefined | null): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Return true if value contains includeValue
|
|
9
|
+
* @param value String value to check
|
|
10
|
+
* @param includeValue Value to check if it include
|
|
11
|
+
* @returns True if value contains includeValue
|
|
12
|
+
*/
|
|
13
|
+
export declare function contains(value: string | undefined | null, includeValue: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Return trimed value
|
|
16
|
+
* @param value Value for trim modification
|
|
17
|
+
* @returns Trimed value
|
|
18
|
+
*/
|
|
19
|
+
export declare function trim(value: string): string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return CSS like value
|
|
3
|
+
* @param value Value as number
|
|
4
|
+
* @returns Value as '1px'
|
|
5
|
+
*/
|
|
6
|
+
export declare function getCssLikeValue(value: number, type?: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Parse CSS like value to number
|
|
9
|
+
* @param value CSS like value
|
|
10
|
+
* @returns Number value
|
|
11
|
+
*/
|
|
12
|
+
export declare function getValueFromCssLikeValue(value: string, type?: string): number;
|
|
13
|
+
/**
|
|
14
|
+
* Return CCS like calc value
|
|
15
|
+
* @param value All value (100% by default)
|
|
16
|
+
* @param part Part value
|
|
17
|
+
* @returns Calc value
|
|
18
|
+
*/
|
|
19
|
+
export declare function getCalcValue(part: number, value?: number): string;
|
|
20
|
+
/**
|
|
21
|
+
* Return CCS like rotate value
|
|
22
|
+
* @param value value as degrees
|
|
23
|
+
* @returns Rotate value
|
|
24
|
+
*/
|
|
25
|
+
export declare function getRotateValue(value: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* Add classes to HTML element
|
|
28
|
+
* @param element HTML element
|
|
29
|
+
* @param classNames Array of CSS classes
|
|
30
|
+
*/
|
|
31
|
+
export declare function addClasses(element: HTMLElement, ...classNames: Array<string>): void;
|
|
32
|
+
/**
|
|
33
|
+
* Remove classes to HTML element
|
|
34
|
+
* @param element HTML element
|
|
35
|
+
* @param classNames Array of CSS classes
|
|
36
|
+
*/
|
|
37
|
+
export declare function removeClasses(element: HTMLElement, ...classNames: Array<string>): void;
|
|
38
|
+
/**
|
|
39
|
+
* Convert RGB color to HEX
|
|
40
|
+
* @param r Red
|
|
41
|
+
* @param g Green
|
|
42
|
+
* @param b Blue
|
|
43
|
+
* @returns HEX value
|
|
44
|
+
*/
|
|
45
|
+
export declare function rgbToHex(r: number, g: number, b: number): string;
|
|
46
|
+
/**
|
|
47
|
+
* Convert HEX to RGB value
|
|
48
|
+
* @param hex HEX value
|
|
49
|
+
* @returns RGB value
|
|
50
|
+
*/
|
|
51
|
+
export declare function hexToRgb(hex: string): string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Set opacity for RGB value
|
|
54
|
+
* @param rgb Rgb value with {opacity} placeholder
|
|
55
|
+
* @param opacity Opacity value
|
|
56
|
+
* @returns RGB value with relevant opacity
|
|
57
|
+
*/
|
|
58
|
+
export declare function replaceRgbOpacity(rgb: string, opacity: number): string;
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-sfc-common",
|
|
3
|
+
"version": "0.0.0-watch+1690135297255",
|
|
4
|
+
"description": "Angular common(shared) library for SFC project",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Street Football Club",
|
|
7
|
+
"SFC",
|
|
8
|
+
"angular",
|
|
9
|
+
"components",
|
|
10
|
+
"directives",
|
|
11
|
+
"services",
|
|
12
|
+
"utils",
|
|
13
|
+
"responsive",
|
|
14
|
+
"common",
|
|
15
|
+
"shared"
|
|
16
|
+
],
|
|
17
|
+
"author": "Andrii Kryvoruk",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/1kriva1/ngx-sfc"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/1kriva1/ngx-sfc/issues"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@angular/common": "^15.0.4",
|
|
28
|
+
"@angular/core": "^15.0.4",
|
|
29
|
+
"@fortawesome/angular-fontawesome": "0.10.2",
|
|
30
|
+
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
|
31
|
+
"@fortawesome/free-solid-svg-icons": "^6.1.1"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"tslib": "^2.3.0"
|
|
35
|
+
},
|
|
36
|
+
"module": "fesm2015/ngx-sfc-common.mjs",
|
|
37
|
+
"es2020": "fesm2020/ngx-sfc-common.mjs",
|
|
38
|
+
"esm2020": "esm2020/ngx-sfc-common.mjs",
|
|
39
|
+
"fesm2020": "fesm2020/ngx-sfc-common.mjs",
|
|
40
|
+
"fesm2015": "fesm2015/ngx-sfc-common.mjs",
|
|
41
|
+
"typings": "index.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
"./package.json": {
|
|
44
|
+
"default": "./package.json"
|
|
45
|
+
},
|
|
46
|
+
".": {
|
|
47
|
+
"types": "./index.d.ts",
|
|
48
|
+
"esm2020": "./esm2020/ngx-sfc-common.mjs",
|
|
49
|
+
"es2020": "./fesm2020/ngx-sfc-common.mjs",
|
|
50
|
+
"es2015": "./fesm2015/ngx-sfc-common.mjs",
|
|
51
|
+
"node": "./fesm2015/ngx-sfc-common.mjs",
|
|
52
|
+
"default": "./fesm2020/ngx-sfc-common.mjs"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"sideEffects": false
|
|
56
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './lib/ngx-sfc-common.module';
|
|
2
|
+
export * from './lib/constants';
|
|
3
|
+
export * from './lib/enums';
|
|
4
|
+
export * from './lib/utils';
|
|
5
|
+
export * from './lib/services';
|
|
6
|
+
export * from './lib/directives';
|
|
7
|
+
export * from './lib/pipes';
|
|
8
|
+
export * from './lib/components';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// colors
|
|
2
|
+
$color-0: #fff !default;
|
|
3
|
+
$color-1: #f6f6f6 !default;
|
|
4
|
+
$color-2: #f5f7fa !default;
|
|
5
|
+
$color-3: #e6e9ed !default;
|
|
6
|
+
$color-4: #e9e9e9 !default;
|
|
7
|
+
$color-5: #d8d7d7 !default;
|
|
8
|
+
$color-6: #ccd1d9 !default;
|
|
9
|
+
$color-7: #aab2bd !default;
|
|
10
|
+
$color-8: #656d78 !default;
|
|
11
|
+
$color-9: #434a54 !default;
|
|
12
|
+
$color-10: #34323d !default;
|
|
13
|
+
$color-11: #1b1d1f !default;
|
|
14
|
+
|
|
15
|
+
// shades
|
|
16
|
+
$color-shadow-0: #00000005 !default;
|
|
17
|
+
$color-shadow-1: #0000001a !default;
|
|
18
|
+
$color-shadow-2: #00000030 !default;
|
|
19
|
+
$color-shadow-3: #0000003b !default;
|
|
20
|
+
$color-shadow-4: #0000004d !default;
|
|
21
|
+
$color-shadow-5: #0009 !default;
|
|
22
|
+
|
|
23
|
+
// result types
|
|
24
|
+
$color-info: #4fc1e9;
|
|
25
|
+
$color-success: #4ec07d;
|
|
26
|
+
$color-failed: #e96075;
|
|
27
|
+
|
|
28
|
+
// color types
|
|
29
|
+
$color-red-0: #ed5565 !default;
|
|
30
|
+
$color-red-1: #da4453 !default;
|
|
31
|
+
$color-orange-0: #fc6e51 !default;
|
|
32
|
+
$color-orange-1: #e9573f !default;
|
|
33
|
+
$color-yellow-0: #ffce54 !default;
|
|
34
|
+
$color-yellow-1: #fcbb42 !default;
|
|
35
|
+
$color-yellow-2: #f8e976 !default;
|
|
36
|
+
$color-green-0: #a0d468 !default;
|
|
37
|
+
$color-green-1: #8cc152 !default;
|
|
38
|
+
$color-green-2: #48cfad !default;
|
|
39
|
+
$color-green-3: #37bc9b !default;
|
|
40
|
+
$color-green-4: #2bbbad !default;
|
|
41
|
+
$color-blue-0: #4fc1e9 !default;
|
|
42
|
+
$color-blue-1: #3bafda !default;
|
|
43
|
+
$color-blue-2: #5d9cec !default;
|
|
44
|
+
$color-blue-3: #4a89dc !default;
|
|
45
|
+
$color-magenta-0: #ac92ec !default;
|
|
46
|
+
$color-magenta-1: #967adc !default;
|
|
47
|
+
$color-pink-0: #ec87c0 !default;
|
|
48
|
+
$color-pink-1: #d770ad !default;
|