ngx-sfc-common 0.0.21 → 0.0.22
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/components/close/close.component.mixins.scss +9 -0
- package/components/collapse-expand/collapse-expand.component.mixins.scss +7 -0
- package/components/delimeter/delimeter.component.mixins.scss +37 -0
- package/components/load-container/load-container.component.mixins.scss +26 -0
- package/components/loader/bounce/bounce-loader.component.mixins.scss +7 -0
- package/components/loader/styles/loader.component.mixins.scss +11 -0
- package/esm2020/lib/components/checkmark/checkmark.component.mjs +2 -2
- package/esm2020/lib/components/close/close.component.mjs +3 -3
- package/esm2020/lib/components/collapse-expand/collapse-expand.component.mjs +31 -0
- package/esm2020/lib/components/collapse-expand/collapse-expand.constants.mjs +5 -0
- package/esm2020/lib/components/collapse-expand-container/collapse-expand-container.component.mjs +31 -0
- package/esm2020/lib/components/dots/dots.component.mjs +1 -1
- package/esm2020/lib/components/icon/icon.component.mjs +2 -2
- package/esm2020/lib/components/index.mjs +8 -6
- package/esm2020/lib/components/load-container/enums/load-container-changes-source.enum.mjs +9 -0
- package/esm2020/lib/components/load-container/enums/load-container-load-type.enum.mjs +7 -0
- package/esm2020/lib/components/load-container/enums/load-container-type.enum.mjs +6 -0
- package/esm2020/lib/components/load-container/load-container.component.mjs +110 -60
- package/esm2020/lib/components/load-container/load-container.constants.mjs +4 -3
- package/esm2020/lib/components/load-container/models/load-container-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-container-predicate-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-container-result.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-container.model.mjs +1 -1
- package/esm2020/lib/components/load-more-button/load-more-button.component.mjs +2 -2
- package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +2 -2
- package/esm2020/lib/components/modal/modal.component.mjs +3 -3
- package/esm2020/lib/components/modal/service/modal.service.mjs +1 -1
- package/esm2020/lib/components/pagination/pagination-view.model.mjs +2 -0
- package/esm2020/lib/components/pagination/pagination.component.mjs +41 -40
- package/esm2020/lib/components/pagination/pagination.constants.mjs +5 -1
- package/esm2020/lib/components/pagination/pagination.model.mjs +2 -0
- package/esm2020/lib/components/toggle/toggle.component.mjs +30 -0
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +3 -3
- package/esm2020/lib/components/tooltip/tooltip.component.mjs +12 -7
- package/esm2020/lib/constants/common.constants.mjs +3 -1
- package/esm2020/lib/constants/date-time.constants.mjs +2 -1
- package/esm2020/lib/directives/collapse-expand/collapse-expand.directive.mjs +41 -0
- package/esm2020/lib/directives/component-reference/component-reference.directive.mjs +17 -0
- package/esm2020/lib/directives/index.mjs +3 -1
- package/esm2020/lib/enums/ui.enum.mjs +2 -1
- package/esm2020/lib/ngx-sfc-common.module.mjs +32 -12
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/pipes/sort-by/sort-by.pipe.mjs +25 -0
- package/esm2020/lib/services/index.mjs +4 -1
- package/esm2020/lib/services/load-more/load-more.service.mjs +27 -0
- package/esm2020/lib/services/pagination/pagination.service.mjs +27 -0
- package/esm2020/lib/services/sorting/sorting.model.mjs +2 -0
- package/esm2020/lib/services/sorting/sorting.service.mjs +21 -0
- package/esm2020/lib/types/empty.type.mjs +2 -0
- package/esm2020/lib/types/index.mjs +2 -0
- package/esm2020/lib/utils/collections.utils.mjs +2 -2
- package/esm2020/lib/utils/common.utils.mjs +11 -1
- package/esm2020/lib/utils/date-time.utils.mjs +25 -1
- package/esm2020/lib/utils/http.utils.mjs +30 -0
- package/esm2020/lib/utils/index.mjs +4 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-sfc-common.mjs +511 -286
- package/fesm2015/ngx-sfc-common.mjs.map +1 -1
- package/fesm2020/ngx-sfc-common.mjs +508 -286
- package/fesm2020/ngx-sfc-common.mjs.map +1 -1
- package/lib/components/close/close.component.d.ts +1 -1
- package/lib/components/collapse-expand/collapse-expand.component.d.ts +11 -0
- package/lib/components/collapse-expand/collapse-expand.constants.d.ts +4 -0
- package/lib/components/collapse-expand-container/collapse-expand-container.component.d.ts +11 -0
- package/lib/components/index.d.ts +12 -11
- package/lib/components/load-container/enums/load-container-changes-source.enum.d.ts +7 -0
- package/lib/components/load-container/enums/load-container-load-type.enum.d.ts +5 -0
- package/lib/components/load-container/enums/load-container-type.enum.d.ts +4 -0
- package/lib/components/load-container/load-container.component.d.ts +25 -11
- package/lib/components/load-container/load-container.constants.d.ts +3 -2
- package/lib/components/load-container/models/load-container-parameters.model.d.ts +8 -0
- package/lib/components/load-container/models/load-container-predicate-parameters.model.d.ts +3 -0
- package/lib/components/load-container/models/load-container-result.model.d.ts +12 -0
- package/lib/components/load-container/models/load-container.model.d.ts +16 -11
- package/lib/components/modal/service/modal.service.d.ts +2 -1
- package/lib/components/pagination/pagination.component.d.ts +11 -9
- package/lib/components/pagination/pagination.constants.d.ts +3 -0
- package/lib/components/pagination/pagination.model.d.ts +4 -0
- package/lib/components/toggle/toggle.component.d.ts +8 -0
- package/lib/components/tooltip/tooltip.component.d.ts +4 -2
- package/lib/constants/common.constants.d.ts +2 -0
- package/lib/constants/date-time.constants.d.ts +1 -0
- package/lib/directives/collapse-expand/collapse-expand.directive.d.ts +13 -0
- package/lib/directives/component-reference/component-reference.directive.d.ts +8 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/enums/ui.enum.d.ts +2 -1
- package/lib/ngx-sfc-common.module.d.ts +41 -36
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/sort-by/sort-by.pipe.d.ts +8 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/{components/load-container/service → services/load-more}/load-more.service.d.ts +1 -1
- package/lib/services/pagination/pagination.service.d.ts +11 -0
- package/lib/services/sorting/sorting.model.d.ts +5 -0
- package/lib/{components/sorting/service → services/sorting}/sorting.service.d.ts +3 -3
- package/lib/types/empty.type.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/collections.utils.d.ts +1 -1
- package/lib/utils/common.utils.d.ts +5 -0
- package/lib/utils/date-time.utils.d.ts +13 -0
- package/lib/utils/http.utils.d.ts +7 -0
- package/lib/utils/index.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles/_index.scss +0 -2
- package/styles/_mixins.scss +48 -2
- package/styles/_variables.scss +1 -0
- package/esm2020/lib/components/load-container/load-container.enum.mjs +0 -11
- package/esm2020/lib/components/load-container/models/load-more-parameters.model.mjs +0 -2
- package/esm2020/lib/components/load-container/models/load-more-predicate-parameters.model.mjs +0 -2
- package/esm2020/lib/components/load-container/models/load-more.model.mjs +0 -2
- package/esm2020/lib/components/load-container/service/load-more.service.mjs +0 -27
- package/esm2020/lib/components/pagination/models/pagination-view.model.mjs +0 -2
- package/esm2020/lib/components/pagination/service/pagination.event.mjs +0 -2
- package/esm2020/lib/components/pagination/service/pagination.service.mjs +0 -47
- package/esm2020/lib/components/sorting/service/sorting.event.mjs +0 -2
- package/esm2020/lib/components/sorting/service/sorting.service.mjs +0 -21
- package/esm2020/lib/components/sorting/sorting.component.mjs +0 -71
- package/esm2020/lib/components/sorting/sorting.constants.mjs +0 -6
- package/esm2020/lib/components/sorting/sorting.model.mjs +0 -2
- package/lib/components/load-container/load-container.enum.d.ts +0 -8
- package/lib/components/load-container/models/load-more-parameters.model.d.ts +0 -5
- package/lib/components/load-container/models/load-more-predicate-parameters.model.d.ts +0 -3
- package/lib/components/load-container/models/load-more.model.d.ts +0 -5
- package/lib/components/pagination/service/pagination.event.d.ts +0 -6
- package/lib/components/pagination/service/pagination.service.d.ts +0 -25
- package/lib/components/sorting/service/sorting.event.d.ts +0 -5
- package/lib/components/sorting/sorting.component.d.ts +0 -22
- package/lib/components/sorting/sorting.constants.d.ts +0 -4
- package/lib/components/sorting/sorting.model.d.ts +0 -12
- package/styles/_mixins-delimeter.scss +0 -21
- package/styles/_mixins-scroll.scss +0 -38
- /package/lib/components/pagination/{models/pagination-view.model.d.ts → pagination-view.model.d.ts} +0 -0
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class CloseComponent {
|
|
3
3
|
faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<CloseComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CloseComponent, "sfc-close", never, {}, {}, never,
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CloseComponent, "sfc-close", never, {}, {}, never, ["*"], false, never>;
|
|
6
6
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CollapseExpandComponent {
|
|
4
|
+
expand: boolean;
|
|
5
|
+
labelExpand: string;
|
|
6
|
+
labelCollapse: string;
|
|
7
|
+
get label(): string;
|
|
8
|
+
get icon(): IconDefinition;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseExpandComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseExpandComponent, "sfc-collapse-expand", never, { "expand": "expand"; "labelExpand": "labelExpand"; "labelCollapse": "labelCollapse"; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CollapseExpandContainerComponent {
|
|
3
|
+
faChevronDown: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
|
+
faChevronUp: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
|
+
expand: boolean;
|
|
6
|
+
labelExpand: string;
|
|
7
|
+
labelCollapse: string;
|
|
8
|
+
delimeter: boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseExpandContainerComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseExpandContainerComponent, "sfc-collapse-expand-container", never, { "expand": "expand"; "labelExpand": "labelExpand"; "labelCollapse": "labelCollapse"; "delimeter": "delimeter"; }, {}, never, ["*"], false, never>;
|
|
11
|
+
}
|
|
@@ -12,6 +12,7 @@ export { ModalComponent } from './modal/modal.component';
|
|
|
12
12
|
export { ModalOpenOnClickDirective } from './modal/directive/click/modal-open-on-click.directive';
|
|
13
13
|
export { ModalOpenDirective } from './modal/directive/open/modal-open.directive';
|
|
14
14
|
export { ModalService } from './modal/service/modal.service';
|
|
15
|
+
export { IModalEvent } from './modal/service/modal.event';
|
|
15
16
|
export { DefaultModalHeaderComponent } from './modal/header/default/default-modal-header.component';
|
|
16
17
|
export { DefaultModalFooterComponent } from './modal/footer/default/default-modal-footer.component';
|
|
17
18
|
export { IDefaultModalFooterModel } from './modal/footer/default/default-modal-footer.model';
|
|
@@ -27,18 +28,18 @@ export { CheckmarkType } from './checkmark/checkmark-type.enum';
|
|
|
27
28
|
export { TemplateContentComponent } from './template-content/template-content.component';
|
|
28
29
|
export { CloseComponent } from './close/close.component';
|
|
29
30
|
export { PaginationComponent } from './pagination/pagination.component';
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export { SortingComponent } from './sorting/sorting.component';
|
|
33
|
-
export { SortingService } from './sorting/service/sorting.service';
|
|
34
|
-
export { ISortingModel } from './sorting/sorting.model';
|
|
35
|
-
export { ISortingEvent } from './sorting/service/sorting.event';
|
|
31
|
+
export { IPaginationModel } from './pagination/pagination.model';
|
|
32
|
+
export { PaginationConstants } from './pagination/pagination.constants';
|
|
36
33
|
export { LoadContainerComponent } from './load-container/load-container.component';
|
|
37
34
|
export { LoadMoreButtonComponent } from './load-more-button/load-more-button.component';
|
|
38
|
-
export {
|
|
35
|
+
export { LoadContainerLoadType } from './load-container/enums/load-container-load-type.enum';
|
|
36
|
+
export { LoadContainerType } from './load-container/enums/load-container-type.enum';
|
|
39
37
|
export { LoaderFunction, FilterFunction, ILoadContainerModel } from './load-container/models/load-container.model';
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
38
|
+
export { ILoadContainerParameters } from './load-container/models/load-container-parameters.model';
|
|
39
|
+
export { ILoadContainerPredicateParameters } from './load-container/models/load-container-predicate-parameters.model';
|
|
40
|
+
export { ILoadContainerResultModel, ILoadContainerLoaderResultModel } from './load-container/models/load-container-result.model';
|
|
41
|
+
export { LoadContainerChangesSource } from './load-container/enums/load-container-changes-source.enum';
|
|
44
42
|
export { IconComponent } from './icon/icon.component';
|
|
43
|
+
export { CollapseExpandComponent } from './collapse-expand/collapse-expand.component';
|
|
44
|
+
export { CollapseExpandContainerComponent } from './collapse-expand-container/collapse-expand-container.component';
|
|
45
|
+
export { ToggleComponent } from './toggle/toggle.component';
|
|
@@ -1,50 +1,64 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ComponentSize, Position } from '../../enums';
|
|
3
|
-
import {
|
|
3
|
+
import { ILoadContainerResultModel } from './models/load-container-result.model';
|
|
4
4
|
import { LoaderService } from '../loader/service/loader.service';
|
|
5
|
-
import { LoadMoreService } from './service/load-more.service';
|
|
6
5
|
import { ILoadContainerModel } from './models/load-container.model';
|
|
7
|
-
import {
|
|
6
|
+
import { LoadMoreService, PaginationService, SortingService } from '../../services';
|
|
7
|
+
import { LoadContainerType } from './enums/load-container-type.enum';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class LoadContainerComponent implements OnDestroy {
|
|
10
10
|
private loaderService;
|
|
11
11
|
private loadMoreService;
|
|
12
|
+
private paginationService;
|
|
13
|
+
private sortingService;
|
|
12
14
|
ComponentSize: typeof ComponentSize;
|
|
13
15
|
Position: typeof Position;
|
|
14
16
|
id: string;
|
|
15
17
|
type: LoadContainerType;
|
|
16
18
|
open: boolean;
|
|
17
19
|
loadMore: boolean;
|
|
18
|
-
showEmpty: boolean;
|
|
19
|
-
showLoadMoreButton: boolean;
|
|
20
20
|
loadMoreLabel: string;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
showEmpty: boolean;
|
|
22
|
+
emptyLabel: string;
|
|
23
|
+
set model(value: ILoadContainerModel);
|
|
24
|
+
get model(): ILoadContainerModel;
|
|
25
|
+
_model: ILoadContainerModel;
|
|
23
26
|
scrollTarget: HTMLElement;
|
|
27
|
+
paginationCount: number;
|
|
28
|
+
paginationLimits: boolean;
|
|
29
|
+
showLoading: boolean;
|
|
24
30
|
handleError: EventEmitter<any>;
|
|
25
|
-
handleSuccess: EventEmitter<
|
|
31
|
+
handleSuccess: EventEmitter<ILoadContainerResultModel<any>>;
|
|
26
32
|
handleLoading: EventEmitter<boolean>;
|
|
27
33
|
private contentEl;
|
|
28
|
-
next: boolean;
|
|
29
34
|
get scrollPosition(): Position[];
|
|
30
35
|
get allowLoadMore(): boolean;
|
|
31
36
|
get hideLoadMoreButton(): boolean;
|
|
37
|
+
next: boolean;
|
|
32
38
|
empty: boolean;
|
|
39
|
+
total: number;
|
|
33
40
|
get isEmpty(): boolean;
|
|
41
|
+
get page(): number;
|
|
42
|
+
get showPagination(): boolean;
|
|
34
43
|
private _loading;
|
|
35
44
|
private set loading(value);
|
|
45
|
+
private get showLoadMoreButton();
|
|
46
|
+
private get reset();
|
|
47
|
+
private get pagination();
|
|
36
48
|
private _subscription;
|
|
37
49
|
private source;
|
|
38
|
-
|
|
50
|
+
private predicateChanged;
|
|
51
|
+
constructor(loaderService: LoaderService, loadMoreService: LoadMoreService, paginationService: PaginationService, sortingService: SortingService);
|
|
39
52
|
ngOnDestroy(): void;
|
|
40
53
|
more(event: MouseEvent): void;
|
|
41
54
|
onScroll(): void;
|
|
42
55
|
private success;
|
|
43
56
|
private error;
|
|
57
|
+
private subscribe;
|
|
44
58
|
private buildParameters;
|
|
45
59
|
private buildDynamic;
|
|
46
60
|
private buildStatic;
|
|
47
61
|
private resetParameters;
|
|
48
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadContainerComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadContainerComponent, "sfc-load-container", never, { "id": "id"; "type": "type"; "open": "open"; "loadMore": "loadMore"; "showEmpty": "showEmpty"; "
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadContainerComponent, "sfc-load-container", never, { "id": "id"; "type": "type"; "open": "open"; "loadMore": "loadMore"; "loadMoreLabel": "loadMoreLabel"; "showEmpty": "showEmpty"; "emptyLabel": "emptyLabel"; "model": "model"; "scrollTarget": "scrollTarget"; "paginationCount": "paginationCount"; "paginationLimits": "paginationLimits"; "showLoading": "showLoading"; }, { "handleError": "handleError"; "handleSuccess": "handleSuccess"; "handleLoading": "handleLoading"; }, never, ["*"], false, never>;
|
|
50
64
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ISortingModel } from "../../../services";
|
|
2
|
+
import { empty } from "../../../types";
|
|
3
|
+
import { ILoadContainerPredicateParameters } from "./load-container-predicate-parameters.model";
|
|
4
|
+
export interface ILoadContainerParameters {
|
|
5
|
+
params: ILoadContainerPredicateParameters;
|
|
6
|
+
page: number;
|
|
7
|
+
sorting?: ISortingModel | empty;
|
|
8
|
+
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { ILoadContainerLoaderResultModel } from "./load-container-result.model";
|
|
3
|
+
import { ILoadContainerParameters } from "./load-container-parameters.model";
|
|
4
|
+
import { ILoadContainerPredicateParameters } from "./load-container-predicate-parameters.model";
|
|
5
|
+
import { LoadContainerLoadType } from "../enums/load-container-load-type.enum";
|
|
6
|
+
import { IPaginationModel } from "../../pagination/pagination.model";
|
|
7
|
+
import { ISortingModel } from "../../../services";
|
|
8
|
+
import { empty } from "../../../types";
|
|
9
|
+
export declare type LoaderFunction = (parameters: ILoadContainerParameters) => Observable<ILoadContainerLoaderResultModel<any>>;
|
|
10
|
+
export declare type FilterFunction = (data: any[], parameters: ILoadContainerParameters) => any[];
|
|
8
11
|
export interface ILoadContainerModel {
|
|
9
|
-
|
|
10
|
-
predicate$?: Observable<
|
|
11
|
-
data$?: Observable<any[]
|
|
12
|
-
loader?: LoaderFunction;
|
|
13
|
-
filter?: FilterFunction;
|
|
12
|
+
loadType: LoadContainerLoadType;
|
|
13
|
+
predicate$?: Observable<ILoadContainerPredicateParameters | null> | empty;
|
|
14
|
+
data$?: Observable<any[]> | empty;
|
|
15
|
+
loader?: LoaderFunction | empty;
|
|
16
|
+
filter?: FilterFunction | empty;
|
|
17
|
+
pagination?: IPaginationModel | empty;
|
|
18
|
+
sorting?: ISortingModel | empty;
|
|
14
19
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { IModalEvent } from './modal.event';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ModalService {
|
|
4
5
|
private subject;
|
|
5
|
-
modal$: Observable<
|
|
6
|
+
modal$: Observable<IModalEvent>;
|
|
6
7
|
get isOpen(): boolean;
|
|
7
8
|
args: any;
|
|
8
9
|
toggle(): void;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IPaginationViewModel } from './models/pagination-view.model';
|
|
4
|
-
import { PaginationService } from './service/pagination.service';
|
|
1
|
+
import { IPaginationViewModel } from './pagination-view.model';
|
|
2
|
+
import { PaginationService } from '../../services';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PaginationComponent
|
|
4
|
+
export declare class PaginationComponent {
|
|
7
5
|
private service;
|
|
8
6
|
faChevronLeft: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
9
7
|
faChevronRight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -16,10 +14,14 @@ export declare class PaginationComponent implements OnInit {
|
|
|
16
14
|
* show first and last page's btn
|
|
17
15
|
*/
|
|
18
16
|
limits: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
page: number;
|
|
18
|
+
total: number;
|
|
19
|
+
/**
|
|
20
|
+
* Page size
|
|
21
|
+
*/
|
|
22
|
+
size: number;
|
|
23
|
+
get model(): IPaginationViewModel;
|
|
21
24
|
constructor(service: PaginationService);
|
|
22
|
-
ngOnInit(): void;
|
|
23
25
|
onPageClick(page: number): void;
|
|
24
26
|
private get showLimitPages();
|
|
25
27
|
private showStartLimit;
|
|
@@ -27,5 +29,5 @@ export declare class PaginationComponent implements OnInit {
|
|
|
27
29
|
private initRange;
|
|
28
30
|
private range;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "sfc-pagination", never, { "count": "count"; "full": "full"; "limits": "limits"; "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "sfc-pagination", never, { "count": "count"; "full": "full"; "limits": "limits"; "page": "page"; "total": "total"; "size": "size"; }, {}, never, never, false, never>;
|
|
31
33
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { IPaginationModel } from "./pagination.model";
|
|
1
2
|
export declare class PaginationConstants {
|
|
2
3
|
static DEFAULT_SIZE: number;
|
|
3
4
|
static DEFAULT_PAGE: number;
|
|
4
5
|
static DEFAULT_COUNT: number;
|
|
6
|
+
static DEFAULT_TOTAL: number;
|
|
7
|
+
static DEFAULT_PAGINATION: IPaginationModel;
|
|
5
8
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ToggleComponent {
|
|
3
|
+
active: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
onClick: () => boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "sfc-toggle", never, { "active": "active"; "disabled": "disabled"; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { AfterContentInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Position } from '../../enums';
|
|
3
3
|
import { ResizeService } from '../../services';
|
|
4
|
+
import { empty } from '../../types';
|
|
4
5
|
import { TooltipType } from './tooltip-type.enum';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class TooltipComponent implements OnInit, OnDestroy, AfterContentInit {
|
|
7
8
|
private resizeService;
|
|
8
9
|
private window;
|
|
9
|
-
value?: string;
|
|
10
|
+
value?: string | empty;
|
|
10
11
|
tooltipType: TooltipType;
|
|
11
12
|
tooltipPosition: Position;
|
|
12
13
|
tooltipShow: boolean;
|
|
14
|
+
resize: boolean;
|
|
13
15
|
click(): void;
|
|
14
16
|
private _position;
|
|
15
17
|
private _resizeSubscription?;
|
|
@@ -18,5 +20,5 @@ export declare class TooltipComponent implements OnInit, OnDestroy, AfterContent
|
|
|
18
20
|
ngAfterContentInit(): void;
|
|
19
21
|
ngOnDestroy(): void;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "[sfc-tooltip]", never, { "value": "sfc-tooltip"; "tooltipType": "tooltipType"; "tooltipPosition": "tooltipPosition"; "tooltipShow": "tooltipShow"; }, {}, never, ["*"], false, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "[sfc-tooltip]", never, { "value": "sfc-tooltip"; "tooltipType": "tooltipType"; "tooltipPosition": "tooltipPosition"; "tooltipShow": "tooltipShow"; "resize": "resize"; }, {}, never, ["*"], false, never>;
|
|
22
24
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare class CommonConstants {
|
|
2
2
|
static NOT_FOUND_INDEX: number;
|
|
3
3
|
static EMPTY_STRING: string;
|
|
4
|
+
static DEFAULT_KEY_VALUE: number;
|
|
4
5
|
static MOUSE_BUTTON_LEFT: number;
|
|
5
6
|
static FULL_PERCENTAGE: number;
|
|
6
7
|
static COMMON_TEXT_DELIMETER: string;
|
|
7
8
|
static PERCENTAGE_SYMBOL: string;
|
|
9
|
+
static DOT: string;
|
|
8
10
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CollapseExpandDirective {
|
|
4
|
+
private el;
|
|
5
|
+
private readonly EXPAND_COLLAPSE_TRANSITION_DELAY_DEFAULT;
|
|
6
|
+
set expand(expand: boolean);
|
|
7
|
+
set delay(value: number);
|
|
8
|
+
private get style();
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
private getTransitionValue;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseExpandDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseExpandDirective, "[sfcCollapseExpand]", never, { "expand": "sfcCollapseExpand"; "delay": "delay"; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ComponentReferenceDirective {
|
|
4
|
+
elementRef: ElementRef;
|
|
5
|
+
constructor(elementRef: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentReferenceDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentReferenceDirective, "[sfcComponentReference]", ["componentRef"], {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -14,3 +14,5 @@ export { ImageLoadDirective } from './image-size/image-load.directive';
|
|
|
14
14
|
export { ImageSize } from './image-size/services/image-size.model';
|
|
15
15
|
export { ImageLoadEvent } from './image-size/services/image-load.event';
|
|
16
16
|
export { ImageLoadService } from './image-size/services/image-load.service';
|
|
17
|
+
export { CollapseExpandDirective } from './collapse-expand/collapse-expand.directive';
|
|
18
|
+
export { ComponentReferenceDirective } from './component-reference/component-reference.directive';
|
package/lib/enums/ui.enum.d.ts
CHANGED
|
@@ -1,43 +1,48 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./directives/click-outside/click-outside.directive";
|
|
3
3
|
import * as i2 from "./directives/show-hide-element/show-hide-element.directive";
|
|
4
|
-
import * as i3 from "./directives/
|
|
5
|
-
import * as i4 from "./directives/
|
|
6
|
-
import * as i5 from "./directives/
|
|
7
|
-
import * as i6 from "./directives/
|
|
8
|
-
import * as i7 from "./directives/
|
|
9
|
-
import * as i8 from "./directives/
|
|
10
|
-
import * as i9 from "./directives/
|
|
11
|
-
import * as i10 from "./directives/
|
|
12
|
-
import * as i11 from "./directives/scroll-
|
|
13
|
-
import * as i12 from "./directives/
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./components/
|
|
17
|
-
import * as i16 from "./components/
|
|
18
|
-
import * as i17 from "./components/
|
|
19
|
-
import * as i18 from "./components/
|
|
20
|
-
import * as i19 from "./components/
|
|
21
|
-
import * as i20 from "./components/
|
|
22
|
-
import * as i21 from "./components/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/
|
|
25
|
-
import * as i24 from "./components/
|
|
26
|
-
import * as i25 from "./components/
|
|
27
|
-
import * as i26 from "./components/load-
|
|
28
|
-
import * as i27 from "./components/
|
|
29
|
-
import * as i28 from "./components/
|
|
30
|
-
import * as i29 from "./components/
|
|
31
|
-
import * as i30 from "./components/
|
|
32
|
-
import * as i31 from "./components/
|
|
33
|
-
import * as i32 from "./components/
|
|
34
|
-
import * as i33 from "./components/
|
|
35
|
-
import * as i34 from "./components/modal/
|
|
36
|
-
import * as i35 from "./
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "
|
|
4
|
+
import * as i3 from "./directives/collapse-expand/collapse-expand.directive";
|
|
5
|
+
import * as i4 from "./directives/if/if.directive";
|
|
6
|
+
import * as i5 from "./directives/throw-element-on-hover/throw-element-on-hover.directive";
|
|
7
|
+
import * as i6 from "./directives/template-reference/template-reference.directive";
|
|
8
|
+
import * as i7 from "./directives/mouse-down/mouse-down.directive";
|
|
9
|
+
import * as i8 from "./directives/component-size/component-size.directive";
|
|
10
|
+
import * as i9 from "./directives/destroy-parent/destroy-parent.directive";
|
|
11
|
+
import * as i10 from "./directives/dom-changes/dom-changes.directive";
|
|
12
|
+
import * as i11 from "./directives/scroll-tracker/scroll-tracker.directive";
|
|
13
|
+
import * as i12 from "./directives/scroll-into-view/scroll-into-view.directive";
|
|
14
|
+
import * as i13 from "./directives/image-size/image-load.directive";
|
|
15
|
+
import * as i14 from "./directives/component-reference/component-reference.directive";
|
|
16
|
+
import * as i15 from "./components/button/button.component";
|
|
17
|
+
import * as i16 from "./components/tooltip/tooltip.component";
|
|
18
|
+
import * as i17 from "./components/delimeter/delimeter.component";
|
|
19
|
+
import * as i18 from "./components/toggle-switcher/toggle-switcher.component";
|
|
20
|
+
import * as i19 from "./components/checkmark/checkmark.component";
|
|
21
|
+
import * as i20 from "./components/template-content/template-content.component";
|
|
22
|
+
import * as i21 from "./components/close/close.component";
|
|
23
|
+
import * as i22 from "./components/hamburger/default/hamburger.component";
|
|
24
|
+
import * as i23 from "./components/hamburger/menu/hamburger-menu.component";
|
|
25
|
+
import * as i24 from "./components/dots/dots.component";
|
|
26
|
+
import * as i25 from "./components/pagination/pagination.component";
|
|
27
|
+
import * as i26 from "./components/load-more-button/load-more-button.component";
|
|
28
|
+
import * as i27 from "./components/load-container/load-container.component";
|
|
29
|
+
import * as i28 from "./components/icon/icon.component";
|
|
30
|
+
import * as i29 from "./components/collapse-expand/collapse-expand.component";
|
|
31
|
+
import * as i30 from "./components/collapse-expand-container/collapse-expand-container.component";
|
|
32
|
+
import * as i31 from "./components/toggle/toggle.component";
|
|
33
|
+
import * as i32 from "./components/loader/bounce/bounce-loader.component";
|
|
34
|
+
import * as i33 from "./components/loader/circle/circle-loader.component";
|
|
35
|
+
import * as i34 from "./components/modal/modal.component";
|
|
36
|
+
import * as i35 from "./components/modal/directive/open/modal-open.directive";
|
|
37
|
+
import * as i36 from "./components/modal/directive/click/modal-open-on-click.directive";
|
|
38
|
+
import * as i37 from "./components/modal/header/default/default-modal-header.component";
|
|
39
|
+
import * as i38 from "./components/modal/footer/default/default-modal-footer.component";
|
|
40
|
+
import * as i39 from "./pipes/switch-multi-case/switch-multi-case.pipe";
|
|
41
|
+
import * as i40 from "./pipes/sort-by/sort-by.pipe";
|
|
42
|
+
import * as i41 from "@angular/common";
|
|
43
|
+
import * as i42 from "@fortawesome/angular-fontawesome";
|
|
39
44
|
export declare class NgxSfcCommonModule {
|
|
40
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxSfcCommonModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSfcCommonModule, [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSfcCommonModule, [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.CollapseExpandDirective, typeof i4.IfDirective, typeof i5.ThrowElementOnHoverDirective, typeof i6.TemplateReferenceDirective, typeof i7.MouseDownDirective, typeof i8.ComponentSizeDirective, typeof i9.DestroyParentDirective, typeof i10.DomChangesDirective, typeof i11.ScrollTrackerDirective, typeof i12.ScrollIntoViewDirective, typeof i13.ImageLoadDirective, typeof i14.ComponentReferenceDirective, typeof i15.ButtonComponent, typeof i16.TooltipComponent, typeof i17.DelimeterComponent, typeof i18.ToggleSwitcherComponent, typeof i19.CheckmarkComponent, typeof i20.TemplateContentComponent, typeof i21.CloseComponent, typeof i22.HamburgerComponent, typeof i23.HamburgerMenuComponent, typeof i24.DotsComponent, typeof i25.PaginationComponent, typeof i26.LoadMoreButtonComponent, typeof i27.LoadContainerComponent, typeof i28.IconComponent, typeof i29.CollapseExpandComponent, typeof i30.CollapseExpandContainerComponent, typeof i31.ToggleComponent, typeof i32.BounceLoaderComponent, typeof i33.CircleLoaderComponent, typeof i34.ModalComponent, typeof i35.ModalOpenDirective, typeof i36.ModalOpenOnClickDirective, typeof i37.DefaultModalHeaderComponent, typeof i38.DefaultModalFooterComponent, typeof i39.SwitchMultiCasePipe, typeof i40.SortByPipe], [typeof i41.CommonModule, typeof i42.FontAwesomeModule], [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.CollapseExpandDirective, typeof i4.IfDirective, typeof i5.ThrowElementOnHoverDirective, typeof i6.TemplateReferenceDirective, typeof i7.MouseDownDirective, typeof i8.ComponentSizeDirective, typeof i9.DestroyParentDirective, typeof i10.DomChangesDirective, typeof i11.ScrollTrackerDirective, typeof i12.ScrollIntoViewDirective, typeof i13.ImageLoadDirective, typeof i14.ComponentReferenceDirective, typeof i15.ButtonComponent, typeof i16.TooltipComponent, typeof i17.DelimeterComponent, typeof i21.CloseComponent, typeof i19.CheckmarkComponent, typeof i20.TemplateContentComponent, typeof i18.ToggleSwitcherComponent, typeof i24.DotsComponent, typeof i22.HamburgerComponent, typeof i23.HamburgerMenuComponent, typeof i25.PaginationComponent, typeof i26.LoadMoreButtonComponent, typeof i27.LoadContainerComponent, typeof i28.IconComponent, typeof i29.CollapseExpandComponent, typeof i30.CollapseExpandContainerComponent, typeof i31.ToggleComponent, typeof i32.BounceLoaderComponent, typeof i33.CircleLoaderComponent, typeof i34.ModalComponent, typeof i35.ModalOpenDirective, typeof i36.ModalOpenOnClickDirective, typeof i37.DefaultModalHeaderComponent, typeof i38.DefaultModalFooterComponent, typeof i39.SwitchMultiCasePipe, typeof i40.SortByPipe]>;
|
|
42
47
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxSfcCommonModule>;
|
|
43
48
|
}
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SortingDirection } from '../../enums';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SortByPipe implements PipeTransform {
|
|
5
|
+
transform(value: any[], path: string, direction?: SortingDirection): any[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortByPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SortByPipe, "sfcSortBy", false>;
|
|
8
|
+
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export * from './document-ref.service';
|
|
2
2
|
export * from './window-ref.service';
|
|
3
3
|
export * from './resize.service';
|
|
4
|
+
export { LoadMoreService } from './load-more/load-more.service';
|
|
5
|
+
export { PaginationService } from './pagination/pagination.service';
|
|
6
|
+
export { SortingService } from './sorting/sorting.service';
|
|
7
|
+
export { ISortingModel } from './sorting/sorting.model';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PaginationService {
|
|
3
|
+
static readonly START_PAGE: number;
|
|
4
|
+
pageValue: number;
|
|
5
|
+
private pageSubject;
|
|
6
|
+
page$: import("rxjs").Observable<number>;
|
|
7
|
+
page(page: number): void;
|
|
8
|
+
reset(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaginationService>;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISortingModel } from './sorting.model';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SortingService {
|
|
4
4
|
private sortingSubject;
|
|
5
|
-
sorting$: import("rxjs").Observable<
|
|
6
|
-
sort(
|
|
5
|
+
sorting$: import("rxjs").Observable<ISortingModel>;
|
|
6
|
+
sort(model: ISortingModel): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortingService, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<SortingService>;
|
|
9
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type empty = null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { empty } from './empty.type';
|
|
@@ -126,7 +126,7 @@ export declare function remove<T>(collection: Array<T>, predicate: (item: T) =>
|
|
|
126
126
|
* @param predicate Function to define if allowed to add new item
|
|
127
127
|
* @returns True if successfully added
|
|
128
128
|
*/
|
|
129
|
-
export declare function addItem<T>(collection: Array<T>, item: T, predicate
|
|
129
|
+
export declare function addItem<T>(collection: Array<T>, item: T, predicate?: ((item: T) => boolean) | null): boolean;
|
|
130
130
|
/**
|
|
131
131
|
* Delete item from collection
|
|
132
132
|
* @param collection Array of items
|
|
@@ -76,3 +76,8 @@ export declare function parseBoolean(value: string): boolean;
|
|
|
76
76
|
* @returns True if equal
|
|
77
77
|
*/
|
|
78
78
|
export declare function isEqual(obj1: any, obj2: any): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Generate unique identificator
|
|
81
|
+
* @returns Random GUID
|
|
82
|
+
*/
|
|
83
|
+
export declare function generateGuid(): string;
|