ngx-sfc-components 0.0.18 → 0.0.20
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 +1 -1
- package/esm2020/lib/components/avatar/avatar.component.mjs +14 -20
- package/esm2020/lib/components/avatar/models/avatar-data.model.mjs +1 -1
- package/esm2020/lib/components/avatar/models/avatar-image.model.mjs +3 -2
- package/esm2020/lib/components/avatar/parts/badge/avatar-badge.component.mjs +17 -8
- package/esm2020/lib/components/avatar/parts/badge/avatar-badge.constants.mjs +3 -3
- package/esm2020/lib/components/avatar/parts/badge/avatar-badge.model.mjs +2 -0
- package/esm2020/lib/components/carousel/carousel.component.mjs +2 -2
- package/esm2020/lib/components/index.mjs +3 -2
- package/esm2020/lib/components/menu/dropdown/dropdown-menu.component.mjs +21 -6
- package/esm2020/lib/components/menu/dropdown/parts/item/dropdown-menu-item.component.mjs +2 -2
- package/esm2020/lib/components/menu/dropdown/parts/item/dropdown-menu-item.model.mjs +1 -1
- package/esm2020/lib/components/menu/navigation/navigation-menu.component.mjs +2 -2
- package/esm2020/lib/components/menu/navigation/parts/item/navigation-menu-item.component.mjs +2 -2
- package/esm2020/lib/components/menu/side/parts/header/side-menu-header.component.mjs +2 -2
- package/esm2020/lib/components/menu/side/parts/item/content/side-menu-item-content.component.mjs +2 -2
- package/esm2020/lib/components/menu/side/parts/title/side-menu-title.component.mjs +2 -2
- package/esm2020/lib/components/no-export-index.mjs +3 -1
- package/esm2020/lib/components/progress/circle/progress-circle.component.mjs +2 -2
- package/esm2020/lib/components/progress/line/progress-line.component.mjs +2 -2
- package/esm2020/lib/components/progress/semi-circle/progress-semi-circle.component.mjs +2 -2
- package/esm2020/lib/components/stars/stars.component.mjs +2 -2
- package/esm2020/lib/components/table/models/table.model.mjs +1 -1
- package/esm2020/lib/components/table/parts/columns/default/default-table-column.component.mjs +3 -3
- package/esm2020/lib/components/table/parts/columns/selectable/selectable-table-column.component.mjs +11 -4
- package/esm2020/lib/components/table/parts/columns/selectable/selectable-table-column.constants.mjs +5 -0
- package/esm2020/lib/components/table/parts/columns/sorting/sorting-column.component.mjs +69 -0
- package/esm2020/lib/components/table/parts/columns/sorting/sorting-column.constants.mjs +6 -0
- package/esm2020/lib/components/table/parts/columns/sorting/sorting-column.model.mjs +2 -0
- package/esm2020/lib/components/table/parts/columns/table-column.model.mjs +1 -1
- package/esm2020/lib/components/table/parts/content/base-default-table-content.component.mjs +16 -18
- package/esm2020/lib/components/table/parts/content/cards/default/default-table-card.component.mjs +3 -3
- package/esm2020/lib/components/table/parts/content/rows/default/default-table-row.component.mjs +4 -7
- package/esm2020/lib/components/table/parts/content/rows/expanded/expanded-table-row.component.mjs +3 -4
- package/esm2020/lib/components/table/parts/content/rows/expanded/expanded-table-row.model.mjs +1 -1
- package/esm2020/lib/components/table/parts/toggle/columns-toggle.component.mjs +15 -10
- package/esm2020/lib/components/table/parts/toggle/columns-toggle.constants.mjs +3 -10
- package/esm2020/lib/components/table/parts/toggle/service/columns-toggle.service.mjs +10 -20
- package/esm2020/lib/components/table/service/select/table-select.service.mjs +14 -1
- package/esm2020/lib/components/table/table.component.mjs +198 -140
- package/esm2020/lib/components/table/table.constants.mjs +5 -6
- package/esm2020/lib/components/tabs/models/tab.model.mjs +1 -1
- package/esm2020/lib/components/tabs/parts/labels/tab-label-content-base.component.mjs +6 -2
- package/esm2020/lib/components/tabs/parts/labels/tab-label-icon/tab-label-icon.component.mjs +3 -8
- package/esm2020/lib/components/tabs/parts/labels/tab-label-line/tab-label-line.component.mjs +16 -7
- package/esm2020/lib/components/tabs/tabs.component.mjs +2 -2
- package/esm2020/lib/components/tags/parts/tag/tag.component.mjs +2 -2
- package/esm2020/lib/components/tags/tags.component.mjs +3 -3
- package/esm2020/lib/components/timeline/parts/item/timeline-item.component.mjs +2 -2
- package/esm2020/lib/components/timeline/parts/item/timeline-item.model.mjs +1 -1
- package/esm2020/lib/ngx-sfc-components.module.mjs +5 -5
- package/fesm2015/ngx-sfc-components.mjs +439 -285
- package/fesm2015/ngx-sfc-components.mjs.map +1 -1
- package/fesm2020/ngx-sfc-components.mjs +438 -283
- package/fesm2020/ngx-sfc-components.mjs.map +1 -1
- package/lib/components/avatar/avatar.component.d.ts +8 -7
- package/lib/components/avatar/models/avatar-data.model.d.ts +5 -4
- package/lib/components/avatar/models/avatar-image.model.d.ts +2 -1
- package/lib/components/avatar/parts/badge/avatar-badge.component.d.ts +3 -3
- package/lib/components/avatar/parts/badge/avatar-badge.model.d.ts +14 -0
- package/lib/components/index.d.ts +6 -4
- package/lib/components/menu/dropdown/dropdown-menu.component.d.ts +5 -2
- package/lib/components/menu/dropdown/parts/item/dropdown-menu-item.model.d.ts +2 -2
- package/lib/components/no-export-index.d.ts +2 -0
- package/lib/components/table/models/table.model.d.ts +2 -5
- package/lib/components/table/parts/columns/default/default-table-column.component.d.ts +2 -2
- package/lib/components/table/parts/columns/selectable/selectable-table-column.component.d.ts +3 -0
- package/lib/components/table/parts/columns/selectable/selectable-table-column.constants.d.ts +4 -0
- package/lib/components/table/parts/columns/sorting/sorting-column.component.d.ts +21 -0
- package/lib/components/table/parts/columns/sorting/sorting-column.constants.d.ts +4 -0
- package/lib/components/table/parts/columns/sorting/sorting-column.model.d.ts +12 -0
- package/lib/components/table/parts/columns/table-column.model.d.ts +8 -5
- package/lib/components/table/parts/content/base-default-table-content.component.d.ts +10 -9
- package/lib/components/table/parts/content/rows/default/default-table-row.component.d.ts +0 -3
- package/lib/components/table/parts/content/rows/expanded/expanded-table-row.model.d.ts +2 -3
- package/lib/components/table/parts/toggle/columns-toggle.component.d.ts +3 -1
- package/lib/components/table/parts/toggle/columns-toggle.constants.d.ts +2 -8
- package/lib/components/table/parts/toggle/service/columns-toggle.service.d.ts +2 -8
- package/lib/components/table/service/select/table-select.service.d.ts +2 -0
- package/lib/components/table/table.component.d.ts +57 -32
- package/lib/components/table/table.constants.d.ts +8 -9
- package/lib/components/tabs/models/tab.model.d.ts +1 -0
- package/lib/components/tabs/parts/labels/tab-label-content-base.component.d.ts +1 -0
- package/lib/components/tabs/parts/labels/tab-label-icon/tab-label-icon.component.d.ts +1 -3
- package/lib/components/tabs/parts/labels/tab-label-line/tab-label-line.component.d.ts +4 -1
- package/lib/components/timeline/parts/item/timeline-item.model.d.ts +2 -2
- package/lib/ngx-sfc-components.module.d.ts +11 -10
- package/package.json +2 -2
- package/esm2020/lib/components/table/models/table-pagination.model.mjs +0 -2
- package/lib/components/table/models/table-pagination.model.d.ts +0 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { IAvatarDataModel } from './models/avatar-data.model';
|
|
3
3
|
import { AvatarImageModel } from './models/avatar-image.model';
|
|
4
4
|
import { IAvatarProgressModel } from './models/avatar-progress.model';
|
|
5
|
-
import {
|
|
5
|
+
import { IAvatarBadgeModel } from './parts/badge/avatar-badge.model';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AvatarComponent implements OnInit
|
|
7
|
+
export declare class AvatarComponent implements OnInit {
|
|
8
8
|
readonly PROGRESS_MODEL_DEFAULT: IAvatarProgressModel;
|
|
9
9
|
readonly DATA_MODEL_DEFAULT: IAvatarDataModel;
|
|
10
10
|
readonly STROKE_HOVER_VALUE = 2;
|
|
@@ -25,18 +25,19 @@ export declare class AvatarComponent implements OnInit, AfterContentInit {
|
|
|
25
25
|
/**
|
|
26
26
|
* Progress colors model
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
_progressModel: IAvatarProgressModel;
|
|
29
|
+
get progressModel(): IAvatarProgressModel;
|
|
30
|
+
set progressModel(value: IAvatarProgressModel);
|
|
29
31
|
data: IAvatarDataModel;
|
|
30
32
|
stars: boolean;
|
|
31
33
|
starsValue: number;
|
|
32
|
-
badges:
|
|
34
|
+
badges: IAvatarBadgeModel[];
|
|
33
35
|
/**
|
|
34
36
|
* Avatar image calculated values
|
|
35
37
|
*/
|
|
36
38
|
imageModel: AvatarImageModel;
|
|
37
39
|
ngOnInit(): void;
|
|
38
|
-
ngAfterContentInit(): void;
|
|
39
40
|
get strokeDashOffset(): number;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sfc-avatar", never, { "radius": "radius"; "stroke": "stroke"; "progress": "progress"; "progressModel": "progressModel"; "data": "data"; "stars": "stars"; "starsValue": "starsValue"; }, {},
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sfc-avatar", never, { "radius": "radius"; "stroke": "stroke"; "progress": "progress"; "progressModel": "progressModel"; "data": "data"; "stars": "stars"; "starsValue": "starsValue"; "badges": "badges"; }, {}, never, never, false, never>;
|
|
42
43
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { empty } from "ngx-sfc-common";
|
|
1
2
|
export interface IAvatarDataModel {
|
|
2
|
-
firstName?: string;
|
|
3
|
-
lastName?: string;
|
|
4
|
-
image?: string;
|
|
5
|
-
title?: string;
|
|
3
|
+
firstName?: string | empty;
|
|
4
|
+
lastName?: string | empty;
|
|
5
|
+
image?: string | File | empty;
|
|
6
|
+
title?: string | empty;
|
|
6
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAvatarBadgeModel } from './avatar-badge.model';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AvatarBadgeComponent {
|
|
4
|
-
position: AvatarBadgePosition;
|
|
5
4
|
background?: string;
|
|
5
|
+
model: IAvatarBadgeModel;
|
|
6
6
|
radius: number;
|
|
7
7
|
normalizedRadius: number;
|
|
8
8
|
stroke: number;
|
|
@@ -10,5 +10,5 @@ export declare class AvatarBadgeComponent {
|
|
|
10
10
|
private get positionStyle();
|
|
11
11
|
private get sizePart();
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarBadgeComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarBadgeComponent, "sfc-avatar-badge", never, { "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarBadgeComponent, "sfc-avatar-badge", never, { "background": "background"; "model": "model"; "radius": "radius"; "normalizedRadius": "normalizedRadius"; "stroke": "stroke"; }, {}, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
import { Position, empty } from "ngx-sfc-common";
|
|
3
|
+
import { AvatarBadgePosition } from "./avatar-badge-position.enum";
|
|
4
|
+
export interface IAvatarBadgeTooltipModel {
|
|
5
|
+
value?: string | empty;
|
|
6
|
+
position: Position;
|
|
7
|
+
}
|
|
8
|
+
export interface IAvatarBadgeModel {
|
|
9
|
+
label?: string | empty;
|
|
10
|
+
icon?: IconDefinition | empty;
|
|
11
|
+
position: AvatarBadgePosition;
|
|
12
|
+
background?: string | empty;
|
|
13
|
+
tooltip?: IAvatarBadgeTooltipModel;
|
|
14
|
+
}
|
|
@@ -13,10 +13,10 @@ export { NavigationMenuComponent } from './menu/navigation/navigation-menu.compo
|
|
|
13
13
|
export { INavigationMenuItemModel } from './menu/navigation/parts/item/navigation-menu-item.model';
|
|
14
14
|
export { StarsComponent } from './stars/stars.component';
|
|
15
15
|
export { AvatarComponent } from './avatar/avatar.component';
|
|
16
|
-
export { AvatarBadgeComponent } from './avatar/parts/badge/avatar-badge.component';
|
|
17
16
|
export { IAvatarDataModel } from './avatar/models/avatar-data.model';
|
|
18
17
|
export { IAvatarProgressModel } from './avatar/models/avatar-progress.model';
|
|
19
18
|
export { AvatarBadgePosition } from './avatar/parts/badge/avatar-badge-position.enum';
|
|
19
|
+
export { IAvatarBadgeModel, IAvatarBadgeTooltipModel } from './avatar/parts/badge/avatar-badge.model';
|
|
20
20
|
export { ProgressLineComponent } from './progress/line/progress-line.component';
|
|
21
21
|
export { ProgressSemiCircleComponent } from './progress/semi-circle/progress-semi-circle.component';
|
|
22
22
|
export { ProgressCircleComponent } from './progress/circle/progress-circle.component';
|
|
@@ -39,13 +39,15 @@ export { ChartThemeService } from './chart/service/theme/chart-theme.service';
|
|
|
39
39
|
export { ChartThemeModel } from './chart/service/theme/chart-theme.model';
|
|
40
40
|
export { ChartOptionModel } from './chart/chart-option.model';
|
|
41
41
|
export { TableComponent } from './table/table.component';
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
42
|
+
export { TableSelectService } from './table/service/select/table-select.service';
|
|
43
|
+
export { ITableModel } from './table/models/table.model';
|
|
44
44
|
export { TableDataType } from './table/enums/table-data-type.enum';
|
|
45
45
|
export { TableTemplate } from './table/enums/table-template.enum';
|
|
46
46
|
export { ITableSelectEvent } from './table/service/select/table-select.event';
|
|
47
47
|
export { DefaultTableColumnComponent } from './table/parts/columns/default/default-table-column.component';
|
|
48
|
-
export {
|
|
48
|
+
export { ITableColumnModel, ITableColumnExtendedModel } from './table/parts/columns/table-column.model';
|
|
49
|
+
export { TableColumnType } from './table/parts/columns/table-column-type.enum';
|
|
50
|
+
export { ISortingModel } from './table/parts/columns/sorting/sorting-column.model';
|
|
49
51
|
export { SelectableTableColumnComponent } from './table/parts/columns/selectable/selectable-table-column.component';
|
|
50
52
|
export { ColumnsToggleComponent } from './table/parts/toggle/columns-toggle.component';
|
|
51
53
|
export { DefaultTableRowComponent } from './table/parts/content/rows/default/default-table-row.component';
|
|
@@ -13,6 +13,7 @@ export declare class DropdownMenuComponent implements OnDestroy, OnInit, AfterCo
|
|
|
13
13
|
hideOnClick: boolean;
|
|
14
14
|
hideOnClickOutside: boolean;
|
|
15
15
|
bordered: boolean;
|
|
16
|
+
filled: boolean;
|
|
16
17
|
position: Position[];
|
|
17
18
|
open: boolean;
|
|
18
19
|
autoResize: boolean;
|
|
@@ -24,8 +25,10 @@ export declare class DropdownMenuComponent implements OnDestroy, OnInit, AfterCo
|
|
|
24
25
|
ngOnInit(): void;
|
|
25
26
|
ngAfterContentInit(): void;
|
|
26
27
|
ngOnDestroy(): void;
|
|
27
|
-
onClick(item: IDropdownMenuItemModel): void;
|
|
28
|
+
onClick(item: IDropdownMenuItemModel, event: Event): void;
|
|
29
|
+
toggle(event: Event): void;
|
|
28
30
|
onClickOutside(event: ClickOutsideEvent): void;
|
|
31
|
+
private preventPropagation;
|
|
29
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuComponent, "sfc-dropdown-menu", never, { "items": "items"; "icon": "icon"; "defaultDots": "defaultDots"; "label": "label"; "hideOnClick": "hideOnClick"; "hideOnClickOutside": "hideOnClickOutside"; "bordered": "bordered"; "position": "position"; "open": "open"; "autoResize": "autoResize"; }, { "selected": "selected"; }, never, ["*"], false, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuComponent, "sfc-dropdown-menu", never, { "items": "items"; "icon": "icon"; "defaultDots": "defaultDots"; "label": "label"; "hideOnClick": "hideOnClick"; "hideOnClickOutside": "hideOnClickOutside"; "bordered": "bordered"; "filled": "filled"; "position": "position"; "open": "open"; "autoResize": "autoResize"; }, { "selected": "selected"; }, never, ["*"], false, never>;
|
|
31
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
2
2
|
export interface IDropdownMenuItemModel {
|
|
3
3
|
label: string;
|
|
4
|
-
icon?: IconDefinition;
|
|
5
|
-
image?: string;
|
|
4
|
+
icon?: IconDefinition | null;
|
|
5
|
+
image?: string | null;
|
|
6
6
|
delimeter?: boolean;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
value?: any;
|
|
@@ -12,3 +12,5 @@ export { TimelineItemComponent } from './timeline/parts/item/timeline-item.compo
|
|
|
12
12
|
export { NotificationContentComponent } from './notification/parts/content/notification-content.component';
|
|
13
13
|
export { CarouselStageComponent } from './carousel/parts/stage/carousel-stage.component';
|
|
14
14
|
export { CarouselSlideDirective } from './carousel/directive/carousel-slide.directive';
|
|
15
|
+
export { AvatarBadgeComponent } from './avatar/parts/badge/avatar-badge.component';
|
|
16
|
+
export { SortingColumnComponent } from './table/parts/columns/sorting/sorting-column.component';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITableColumnModel } from '../table-column.model';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DefaultTableColumnComponent {
|
|
4
|
-
model:
|
|
4
|
+
model: ITableColumnModel;
|
|
5
5
|
get active(): boolean;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTableColumnComponent, never>;
|
|
7
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultTableColumnComponent, "sfc-default-table-column", never, { "model": "model"; }, {}, never, never, false, never>;
|
package/lib/components/table/parts/columns/selectable/selectable-table-column.component.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { CheckmarkType } from 'ngx-sfc-common';
|
|
1
2
|
import { TableSelectService } from '../../../service/select/table-select.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class SelectableTableColumnComponent {
|
|
4
5
|
private service;
|
|
6
|
+
CheckmarkType: typeof CheckmarkType;
|
|
5
7
|
selected: boolean;
|
|
6
8
|
selectAll(): void;
|
|
9
|
+
get label(): string;
|
|
7
10
|
constructor(service: TableSelectService);
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectableTableColumnComponent, never>;
|
|
9
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectableTableColumnComponent, "sfc-selectable-table-column", never, { "selected": "selected"; }, {}, never, never, false, never>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
+
import { SortingDirection, SortingService } from 'ngx-sfc-common';
|
|
4
|
+
import { ISortingModel } from './sorting-column.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SortingColumnComponent implements OnInit, OnDestroy {
|
|
7
|
+
private service;
|
|
8
|
+
SortingDirection: typeof SortingDirection;
|
|
9
|
+
id: string;
|
|
10
|
+
model: ISortingModel;
|
|
11
|
+
get enabled(): boolean;
|
|
12
|
+
get active(): boolean;
|
|
13
|
+
sort(): void;
|
|
14
|
+
get icon(): IconDefinition;
|
|
15
|
+
private _subscription;
|
|
16
|
+
constructor(service: SortingService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortingColumnComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SortingColumnComponent, "sfc-sorting-column", never, { "id": "id"; "model": "model"; }, {}, never, ["*"], false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import { SortingDirection } from 'ngx-sfc-common';
|
|
3
|
+
export interface ISortingModel {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
direction: SortingDirection;
|
|
7
|
+
icons?: ISortingIcon[];
|
|
8
|
+
}
|
|
9
|
+
export interface ISortingIcon {
|
|
10
|
+
direction: SortingDirection;
|
|
11
|
+
icon: IconDefinition;
|
|
12
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { empty } from "ngx-sfc-common";
|
|
2
2
|
import { TableColumnType } from "./table-column-type.enum";
|
|
3
3
|
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
4
|
-
|
|
4
|
+
import { ISortingModel } from "./sorting/sorting-column.model";
|
|
5
|
+
export interface ITableColumnModel {
|
|
5
6
|
name: string;
|
|
6
7
|
field: string;
|
|
7
|
-
icon?: IconDefinition;
|
|
8
|
-
sorting?: ISortingModel;
|
|
8
|
+
icon?: IconDefinition | empty;
|
|
9
|
+
sorting?: ISortingModel | empty;
|
|
10
|
+
width?: number | empty;
|
|
9
11
|
}
|
|
10
|
-
export interface
|
|
12
|
+
export interface ITableColumnExtendedModel extends ITableColumnModel {
|
|
11
13
|
type?: TableColumnType;
|
|
14
|
+
calculatedWidth?: string;
|
|
12
15
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
2
|
-
import { Position } from "ngx-sfc-common";
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { CheckmarkType, Position } from "ngx-sfc-common";
|
|
3
3
|
import { Subscription } from "rxjs";
|
|
4
|
-
import {
|
|
5
|
-
import { IDefaultTableColumnInnerModel } from "../columns/table-column.model";
|
|
4
|
+
import { ITableColumnExtendedModel } from "../columns/table-column.model";
|
|
6
5
|
import { TableColumnType } from "../columns/table-column-type.enum";
|
|
7
6
|
import { ITableModel } from "../../models/table.model";
|
|
7
|
+
import { TableSelectService } from "../../service/select/table-select.service";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare abstract class BaseDefaultTableContentComponent implements AfterViewInit, OnDestroy {
|
|
10
|
+
private selectedService;
|
|
10
11
|
TableColumnType: typeof TableColumnType;
|
|
12
|
+
CheckmarkType: typeof CheckmarkType;
|
|
11
13
|
model: ITableModel;
|
|
12
|
-
columns:
|
|
14
|
+
columns: ITableColumnExtendedModel[];
|
|
13
15
|
selectOnClick: boolean;
|
|
14
16
|
position: Position;
|
|
15
|
-
columnWidth: number;
|
|
16
|
-
selected: EventEmitter<ITableSelectEvent>;
|
|
17
17
|
columnCheckmark: ElementRef;
|
|
18
18
|
_columnCheckmarkSubscription: Subscription;
|
|
19
19
|
onContentClick(): void;
|
|
20
20
|
get even(): boolean;
|
|
21
21
|
get pointer(): boolean;
|
|
22
|
+
constructor(selectedService: TableSelectService);
|
|
22
23
|
ngAfterViewInit(): void;
|
|
23
24
|
ngOnDestroy(): void;
|
|
24
|
-
|
|
25
|
+
private select;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDefaultTableContentComponent, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseDefaultTableContentComponent, never, never, { "model": "model"; "columns": "columns"; "selectOnClick": "selectOnClick"; "position": "position";
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseDefaultTableContentComponent, never, never, { "model": "model"; "columns": "columns"; "selectOnClick": "selectOnClick"; "position": "position"; }, {}, never, never, false, never>;
|
|
27
28
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { BaseDefaultTableContentComponent } from '../../base-default-table-content.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DefaultTableRowComponent extends BaseDefaultTableContentComponent {
|
|
4
|
-
get width(): {
|
|
5
|
-
width: string;
|
|
6
|
-
};
|
|
7
4
|
get contentPosition(): string;
|
|
8
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTableRowComponent, never>;
|
|
9
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultTableRowComponent, "sfc-default-table-row", never, {}, {}, never, never, false, never>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Position } from "ngx-sfc-common";
|
|
2
2
|
import { ITableModel } from "../../../../models/table.model";
|
|
3
|
-
import {
|
|
3
|
+
import { ITableColumnExtendedModel } from "../../../columns/table-column.model";
|
|
4
4
|
export interface IExpandedTableRowContextModel {
|
|
5
5
|
model: ITableModel;
|
|
6
|
-
columns:
|
|
7
|
-
columnWidth: number;
|
|
6
|
+
columns: ITableColumnExtendedModel[];
|
|
8
7
|
position: Position;
|
|
9
8
|
expanded: boolean;
|
|
10
9
|
even: boolean;
|
|
@@ -4,10 +4,12 @@ import { ColumnsToggleService } from './service/columns-toggle.service';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ColumnsToggleComponent implements OnInit {
|
|
6
6
|
private service;
|
|
7
|
+
showLabel: string;
|
|
8
|
+
hideLabel: string;
|
|
7
9
|
onToggle(): void;
|
|
8
10
|
vm$: Observable<any>;
|
|
9
11
|
constructor(service: ColumnsToggleService);
|
|
10
12
|
ngOnInit(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsToggleComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnsToggleComponent, "sfc-columns-toggle", never, {}, {}, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnsToggleComponent, "sfc-columns-toggle", never, { "showLabel": "showLabel"; "hideLabel": "hideLabel"; }, {}, never, never, false, never>;
|
|
13
15
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export declare class ColumnsToggleConstants {
|
|
2
|
-
static
|
|
3
|
-
|
|
4
|
-
ICON: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
|
-
};
|
|
6
|
-
static SHOW: {
|
|
7
|
-
LABEL: string;
|
|
8
|
-
ICON: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
9
|
-
};
|
|
2
|
+
static HIDE_LABEL_DEFAULT: string;
|
|
3
|
+
static SHOW_LABEL_DEFAULT: string;
|
|
10
4
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { ResizeService } from 'ngx-sfc-common';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export declare class ColumnsToggleService {
|
|
5
|
-
|
|
6
|
-
private resizeService;
|
|
7
|
-
private showColumns;
|
|
3
|
+
show: boolean;
|
|
8
4
|
private toggleSubject;
|
|
9
|
-
|
|
10
|
-
constructor(window: Window, resizeService: ResizeService);
|
|
11
|
-
showColumns$: Observable<boolean>;
|
|
5
|
+
toggle$: import("rxjs").Observable<boolean>;
|
|
12
6
|
toggle(): void;
|
|
13
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsToggleService, never>;
|
|
14
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<ColumnsToggleService>;
|
|
@@ -4,6 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TableSelectService {
|
|
5
5
|
private selectSubject;
|
|
6
6
|
select$: Observable<ITableSelectEvent>;
|
|
7
|
+
selectedItems: number[];
|
|
8
|
+
unselectedItems: number[];
|
|
7
9
|
selectAll(selected: boolean): void;
|
|
8
10
|
select(index: number | null, selected: boolean): void;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableSelectService, never>;
|
|
@@ -1,74 +1,99 @@
|
|
|
1
|
-
import { AfterContentChecked,
|
|
2
|
-
import {
|
|
1
|
+
import { AfterContentChecked, AfterViewChecked, ChangeDetectorRef, DoCheck, EventEmitter, IterableDiffers, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Position, ResizeService, TemplateReferenceDirective, LoadContainerType, LoaderFunction, LoadContainerLoadType, ILoadContainerModel, ILoadContainerResultModel, IPaginationModel, SortingService, ILoadContainerPredicateParameters, FilterFunction, IToggleSwitcherModel } from 'ngx-sfc-common';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { TableColumnType } from './parts/columns/table-column-type.enum';
|
|
5
|
-
import {
|
|
5
|
+
import { ITableColumnExtendedModel, ITableColumnModel } from './parts/columns/table-column.model';
|
|
6
6
|
import { ColumnsToggleService } from './parts/toggle/service/columns-toggle.service';
|
|
7
7
|
import { ITableSelectEvent } from './service/select/table-select.event';
|
|
8
8
|
import { TableSelectService } from './service/select/table-select.service';
|
|
9
9
|
import { TableDataType } from './enums/table-data-type.enum';
|
|
10
|
-
import { ITablePaginationModel } from './models/table-pagination.model';
|
|
11
10
|
import { TableConstants } from './table.constants';
|
|
12
11
|
import { TableTemplate } from './enums/table-template.enum';
|
|
13
|
-
import {
|
|
12
|
+
import { ITableModel } from './models/table.model';
|
|
14
13
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare class TableComponent implements OnInit,
|
|
14
|
+
export declare class TableComponent implements OnInit, AfterContentChecked, AfterViewChecked, DoCheck, OnDestroy {
|
|
15
|
+
columnsToggleService: ColumnsToggleService;
|
|
16
16
|
private window;
|
|
17
|
-
private paginationService;
|
|
18
17
|
private selectedService;
|
|
19
18
|
private sortingService;
|
|
20
19
|
private changeDetector;
|
|
21
20
|
private resizeService;
|
|
22
|
-
private columnsToggleService;
|
|
23
21
|
private iterableDiffers;
|
|
24
22
|
TableDataType: typeof TableDataType;
|
|
25
23
|
TableColumnType: typeof TableColumnType;
|
|
26
24
|
TableTemplate: typeof TableTemplate;
|
|
27
25
|
Constants: typeof TableConstants;
|
|
26
|
+
LoadContainerType: typeof LoadContainerType;
|
|
28
27
|
position: Position;
|
|
29
28
|
delimeter: boolean;
|
|
30
29
|
dataType: TableDataType;
|
|
31
30
|
dataToggle: boolean;
|
|
32
31
|
showColumns: boolean;
|
|
33
|
-
|
|
32
|
+
columnsToggle: boolean;
|
|
33
|
+
pagination: IPaginationModel;
|
|
34
34
|
sequence: boolean;
|
|
35
35
|
expanded: boolean;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
notFoundLabel: string;
|
|
37
|
+
showTotal: boolean;
|
|
38
|
+
totalLabel: string;
|
|
39
|
+
paginationCount: number;
|
|
40
|
+
paginationLimits: boolean;
|
|
41
|
+
showLoading: boolean;
|
|
38
42
|
columnContent?: TemplateRef<any>;
|
|
39
43
|
rowContent?: TemplateRef<any>;
|
|
40
44
|
cardContent?: TemplateRef<any>;
|
|
41
|
-
data:
|
|
42
|
-
|
|
43
|
-
get data$(): Observable<ITableDataModel[]>;
|
|
44
|
-
private _data$;
|
|
45
|
+
data: any[];
|
|
46
|
+
data$: Observable<any[]>;
|
|
45
47
|
private dataDiffer;
|
|
46
48
|
private dataSubject;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
columns: ITableColumnModel[];
|
|
50
|
+
showColumnsLabel: string;
|
|
51
|
+
hideColumnsLabel: string;
|
|
52
|
+
resize: boolean;
|
|
49
53
|
private columnsDiffer;
|
|
50
54
|
private columnsSubject;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
tableColumns: ITableColumnExtendedModel[];
|
|
56
|
+
loadType: LoadContainerLoadType;
|
|
57
|
+
loader: LoaderFunction;
|
|
58
|
+
filter?: FilterFunction;
|
|
59
|
+
predicate$: Observable<ILoadContainerPredicateParameters | null>;
|
|
60
|
+
loadModel: ILoadContainerModel;
|
|
61
|
+
loadContainerId: string;
|
|
62
|
+
items: ITableModel[];
|
|
63
|
+
total: number;
|
|
64
|
+
private page;
|
|
65
|
+
loading: boolean;
|
|
66
|
+
selectable: boolean;
|
|
67
|
+
selectOnClick: boolean;
|
|
68
|
+
selected: EventEmitter<ITableSelectEvent>;
|
|
69
|
+
get allRowsSelected(): boolean;
|
|
70
|
+
private allSelected;
|
|
71
|
+
private _allSelectionSubscription;
|
|
72
|
+
dataListLabel: string;
|
|
73
|
+
dataCardsLabel: string;
|
|
74
|
+
toggleSwitcherLeftModel: IToggleSwitcherModel;
|
|
75
|
+
toggleSwitcherRightModel: IToggleSwitcherModel;
|
|
55
76
|
vm$: Observable<any>;
|
|
77
|
+
private _columnsResizeSubscription;
|
|
78
|
+
private _columnsSubscription;
|
|
79
|
+
private _sortingSubscription;
|
|
80
|
+
private get initialSorting();
|
|
56
81
|
templates: QueryList<TemplateReferenceDirective> | undefined;
|
|
57
|
-
constructor(
|
|
82
|
+
constructor(columnsToggleService: ColumnsToggleService, window: Window, selectedService: TableSelectService, sortingService: SortingService, changeDetector: ChangeDetectorRef, resizeService: ResizeService, iterableDiffers: IterableDiffers);
|
|
58
83
|
ngOnInit(): void;
|
|
59
|
-
ngAfterViewInit(): void;
|
|
60
84
|
ngAfterViewChecked(): void;
|
|
61
85
|
ngDoCheck(): void;
|
|
62
86
|
ngAfterContentChecked(): void;
|
|
63
|
-
|
|
87
|
+
ngOnDestroy(): void;
|
|
64
88
|
onDataTypeToggle(): void;
|
|
65
|
-
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private
|
|
69
|
-
private
|
|
70
|
-
private
|
|
71
|
-
private
|
|
89
|
+
handleSuccess(result: ILoadContainerResultModel<any>): void;
|
|
90
|
+
private selectionSubscribe;
|
|
91
|
+
private resizeSubscribe;
|
|
92
|
+
private columnsSubscribe;
|
|
93
|
+
private sortingSubscribe;
|
|
94
|
+
private calculateColumnWidth;
|
|
95
|
+
private setColumnSorting;
|
|
96
|
+
private getItemSelected;
|
|
72
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "sfc-table", never, { "position": "position"; "delimeter": "delimeter"; "dataType": "dataType"; "dataToggle": "dataToggle"; "showColumns": "showColumns"; "pagination": "pagination"; "sequence": "sequence"; "expanded": "expanded"; "
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "sfc-table", never, { "position": "position"; "delimeter": "delimeter"; "dataType": "dataType"; "dataToggle": "dataToggle"; "showColumns": "showColumns"; "columnsToggle": "columnsToggle"; "pagination": "pagination"; "sequence": "sequence"; "expanded": "expanded"; "notFoundLabel": "notFoundLabel"; "showTotal": "showTotal"; "totalLabel": "totalLabel"; "paginationCount": "paginationCount"; "paginationLimits": "paginationLimits"; "showLoading": "showLoading"; "columnContent": "columnContent"; "rowContent": "rowContent"; "cardContent": "cardContent"; "data": "data"; "data$": "data$"; "columns": "columns"; "showColumnsLabel": "showColumnsLabel"; "hideColumnsLabel": "hideColumnsLabel"; "resize": "resize"; "loadType": "loadType"; "loader": "loader"; "filter": "filter"; "predicate$": "predicate$"; "selectable": "selectable"; "selectOnClick": "selectOnClick"; "dataListLabel": "dataListLabel"; "dataCardsLabel": "dataCardsLabel"; }, { "selected": "selected"; }, ["templates"], never, false, never>;
|
|
74
99
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IToggleSwitcherModel } from "ngx-sfc-common";
|
|
1
|
+
import { ITableColumnExtendedModel } from "./parts/columns/table-column.model";
|
|
3
2
|
export declare class TableConstants {
|
|
4
|
-
static SEQUENCE_COLUMN:
|
|
5
|
-
static SELECTABLE_COLUMN:
|
|
6
|
-
static EXPANDED_COLUMN:
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
3
|
+
static SEQUENCE_COLUMN: ITableColumnExtendedModel;
|
|
4
|
+
static SELECTABLE_COLUMN: ITableColumnExtendedModel;
|
|
5
|
+
static EXPANDED_COLUMN: ITableColumnExtendedModel;
|
|
6
|
+
static NOT_FOUND_LABEL_DEFAULT: string;
|
|
7
|
+
static TOTAL_LABEL_DEFAULT: string;
|
|
8
|
+
static DATA_LIST_LABEL: string;
|
|
9
|
+
static DATA_CARDS_LABEL: string;
|
|
11
10
|
}
|
|
@@ -5,6 +5,7 @@ export declare class TabLabelContentBase {
|
|
|
5
5
|
icon?: IconDefinition;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
selected: boolean;
|
|
8
|
+
get tabIcon(): IconDefinition;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelContentBase, never>;
|
|
9
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TabLabelContentBase, never, never, { "label": "label"; "icon": "icon"; "disabled": "disabled"; "selected": "selected"; }, {}, never, never, false, never>;
|
|
10
11
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { TabLabelContentBase } from '../tab-label-content-base.component';
|
|
2
|
-
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class TabLabelIconComponent extends TabLabelContentBase {
|
|
5
|
-
get tabIcon(): IconDefinition;
|
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelIconComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabLabelIconComponent, "sfc-tab-label-icon", never, {}, {}, never,
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabLabelIconComponent, "sfc-tab-label-icon", never, {}, {}, never, ["*"], false, never>;
|
|
8
6
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
1
2
|
import { TabLabelContentBase } from '../tab-label-content-base.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TabLabelLineComponent extends TabLabelContentBase {
|
|
5
|
+
image: string | null;
|
|
6
|
+
get tabLineIcon(): IconDefinition | null;
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelLineComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabLabelLineComponent, "sfc-tab-label-line", never, {}, {}, never, ["*"], false, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabLabelLineComponent, "sfc-tab-label-line", never, { "image": "image"; }, {}, never, ["*"], false, never>;
|
|
6
9
|
}
|