tin-spa 14.4.2 → 14.13.2
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 +24 -24
- package/esm2020/lib/classes/Classes.mjs +57 -32
- package/esm2020/lib/classes/LibClasses.mjs +2 -1
- package/esm2020/lib/classes/TinCore.mjs +194 -44
- package/esm2020/lib/components/alert/alert.component.mjs +12 -6
- package/esm2020/lib/components/attach/attach.component.mjs +49 -33
- package/esm2020/lib/components/capsules/capsules.component.mjs +63 -0
- package/esm2020/lib/components/cards/cards.component.mjs +103 -0
- package/esm2020/lib/components/date/date.component.mjs +4 -4
- package/esm2020/lib/components/email/email.component.mjs +19 -17
- package/esm2020/lib/components/form/form.component.mjs +142 -57
- package/esm2020/lib/components/html/html.component.mjs +34 -0
- package/esm2020/lib/components/label/label.component.mjs +9 -3
- package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +3 -3
- package/esm2020/lib/components/money/money.component.mjs +26 -9
- package/esm2020/lib/components/multi-select/multi-select.component.mjs +165 -0
- package/esm2020/lib/components/multi-text/multi-text.component.mjs +208 -0
- package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +31 -27
- package/esm2020/lib/components/notes/notes.component.mjs +62 -0
- package/esm2020/lib/components/number/number.component.mjs +23 -8
- package/esm2020/lib/components/option/option.component.mjs +36 -14
- package/esm2020/lib/components/page/page.component.mjs +101 -0
- package/esm2020/lib/components/search/search.component.mjs +10 -5
- package/esm2020/lib/components/select/select.component.mjs +56 -129
- package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +87 -0
- package/esm2020/lib/components/select-common/select-common.component.mjs +208 -0
- package/esm2020/lib/components/select-internal/select-internal.component.mjs +75 -0
- package/esm2020/lib/components/select-lite/select-lite.component.mjs +18 -0
- package/esm2020/lib/components/steps/steps.component.mjs +83 -61
- package/esm2020/lib/components/suffix/suffix.component.mjs +70 -0
- package/esm2020/lib/components/table/detailsDialog.component.mjs +169 -37
- package/esm2020/lib/components/table/table.component.mjs +136 -111
- package/esm2020/lib/components/table-action/table-action.component.mjs +42 -8
- package/esm2020/lib/components/table-header/table-header.component.mjs +12 -8
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +169 -35
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +138 -112
- package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +371 -0
- package/esm2020/lib/components/table-lite/table-lite.component.mjs +441 -0
- package/esm2020/lib/components/table-row/table-row.component.mjs +23 -4
- package/esm2020/lib/components/tabs/tabs.component.mjs +83 -0
- package/esm2020/lib/components/text/text.component.mjs +85 -40
- package/esm2020/lib/components/tiles/tiles.component.mjs +32 -20
- package/esm2020/lib/components/viewer/viewer.component.mjs +7 -3
- package/esm2020/lib/components/viewer/viewerDialog.component.mjs +20 -13
- package/esm2020/lib/modules/admin/admin-routing.module.mjs +11 -1
- package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
- package/esm2020/lib/pages/app-models/app-models.component.mjs +56 -0
- package/esm2020/lib/pages/approvals/approvals.component.mjs +19 -0
- package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +165 -0
- package/esm2020/lib/pages/bug/bug.component.mjs +3 -3
- package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
- package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
- package/esm2020/lib/pages/customers/customers.component.mjs +9 -48
- package/esm2020/lib/pages/departments/departments.component.mjs +2 -4
- package/esm2020/lib/pages/employees/employees.component.mjs +3 -4
- package/esm2020/lib/pages/grades/grades.component.mjs +3 -3
- package/esm2020/lib/pages/inventory/inventory.component.mjs +3 -3
- package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
- package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +11 -10
- package/esm2020/lib/pages/login/login.component.mjs +52 -14
- package/esm2020/lib/pages/logs/logs.component.mjs +27 -22
- package/esm2020/lib/pages/membership/membership.component.mjs +15 -19
- package/esm2020/lib/pages/notifications/notifications.component.mjs +82 -6
- package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +113 -0
- package/esm2020/lib/pages/plans/plans.component.mjs +16 -19
- package/esm2020/lib/pages/positions/positions.component.mjs +4 -4
- package/esm2020/lib/pages/profile/profile.component.mjs +4 -3
- package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
- package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +2 -2
- package/esm2020/lib/pages/roles/roles.component.mjs +77 -17
- package/esm2020/lib/pages/settings/settings.component.mjs +5 -13
- package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
- package/esm2020/lib/pages/suppliers/suppliers.component.mjs +3 -31
- package/esm2020/lib/pages/tasks/tasks.component.mjs +9 -9
- package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +145 -72
- package/esm2020/lib/pages/tenants/tenants.component.mjs +10 -10
- package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
- package/esm2020/lib/pages/transactions/transactions.component.mjs +3 -3
- package/esm2020/lib/pages/users/users.component.mjs +115 -92
- package/esm2020/lib/pages/welcome/welcome.component.mjs +9 -9
- package/esm2020/lib/select-context.directive.mjs +23 -0
- package/esm2020/lib/services/button.service.mjs +90 -30
- package/esm2020/lib/services/csv.service.mjs +1 -1
- package/esm2020/lib/services/datalib.service.mjs +504 -76
- package/esm2020/lib/services/dialog.service.mjs +24 -7
- package/esm2020/lib/services/notifications.service.mjs +33 -0
- package/esm2020/lib/services/table-config.service.mjs +55 -7
- package/esm2020/lib/tin-spa.module.mjs +47 -11
- package/esm2020/public-api.mjs +9 -1
- package/fesm2015/tin-spa.mjs +6333 -2671
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +6492 -2770
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/classes/Classes.d.ts +233 -127
- package/lib/classes/LibClasses.d.ts +1 -0
- package/lib/classes/TinCore.d.ts +11 -3
- package/lib/components/attach/attach.component.d.ts +13 -6
- package/lib/components/capsules/capsules.component.d.ts +26 -0
- package/lib/components/cards/cards.component.d.ts +39 -0
- package/lib/components/email/email.component.d.ts +4 -3
- package/lib/components/form/form.component.d.ts +20 -11
- package/lib/components/html/html.component.d.ts +16 -0
- package/lib/components/label/label.component.d.ts +3 -1
- package/lib/components/money/money.component.d.ts +8 -1
- package/lib/components/multi-select/multi-select.component.d.ts +47 -0
- package/lib/components/multi-text/multi-text.component.d.ts +56 -0
- package/lib/components/nav-menu/nav-menu.component.d.ts +6 -2
- package/lib/components/notes/notes.component.d.ts +19 -0
- package/lib/components/number/number.component.d.ts +7 -1
- package/lib/components/option/option.component.d.ts +10 -2
- package/lib/components/page/page.component.d.ts +38 -0
- package/lib/components/search/search.component.d.ts +3 -1
- package/lib/components/select/select.component.d.ts +16 -37
- package/lib/components/select-bitwise/select-bitwise.component.d.ts +31 -0
- package/lib/components/select-common/select-common.component.d.ts +53 -0
- package/lib/components/select-internal/select-internal.component.d.ts +23 -0
- package/lib/components/select-lite/select-lite.component.d.ts +8 -0
- package/lib/components/steps/steps.component.d.ts +18 -9
- package/lib/components/suffix/suffix.component.d.ts +23 -0
- package/lib/components/table/detailsDialog.component.d.ts +24 -7
- package/lib/components/table/table.component.d.ts +15 -9
- package/lib/components/table-action/table-action.component.d.ts +4 -1
- package/lib/components/table-header/table-header.component.d.ts +3 -1
- package/lib/components/table-internal/detailsDialog-internal.component.d.ts +24 -7
- package/lib/components/table-internal/table-internal.component.d.ts +15 -9
- package/lib/components/table-lite/detailsDialog-lite.component.d.ts +81 -0
- package/lib/components/table-lite/table-lite.component.d.ts +91 -0
- package/lib/components/table-row/table-row.component.d.ts +4 -1
- package/lib/components/tabs/tabs.component.d.ts +32 -0
- package/lib/components/text/text.component.d.ts +16 -7
- package/lib/components/tiles/tiles.component.d.ts +4 -3
- package/lib/components/viewer/viewerDialog.component.d.ts +3 -1
- package/lib/pages/app-models/app-models.component.d.ts +15 -0
- package/lib/pages/approvals/approvals.component.d.ts +10 -0
- package/lib/pages/approvals-config/approvals-config.component.d.ts +24 -0
- package/lib/pages/customers/customers.component.d.ts +2 -8
- package/lib/pages/invitations-table/invitations-table.component.d.ts +1 -1
- package/lib/pages/login/login.component.d.ts +7 -1
- package/lib/pages/logs/logs.component.d.ts +2 -6
- package/lib/pages/membership/membership.component.d.ts +2 -6
- package/lib/pages/notifications/notifications.component.d.ts +9 -1
- package/lib/pages/notifications-config/notifications-config.component.d.ts +17 -0
- package/lib/pages/plans/plans.component.d.ts +2 -6
- package/lib/pages/roles/roles.component.d.ts +14 -2
- package/lib/pages/suppliers/suppliers.component.d.ts +1 -4
- package/lib/pages/tasks/tasks.component.d.ts +1 -1
- package/lib/pages/tenant-settings/tenant-settings.component.d.ts +12 -7
- package/lib/pages/tenants/tenants.component.d.ts +2 -2
- package/lib/pages/users/users.component.d.ts +8 -16
- package/lib/select-context.directive.d.ts +10 -0
- package/lib/services/button.service.d.ts +10 -7
- package/lib/services/datalib.service.d.ts +54 -10
- package/lib/services/dialog.service.d.ts +2 -2
- package/lib/services/notifications.service.d.ts +12 -0
- package/lib/services/table-config.service.d.ts +9 -1
- package/lib/tin-spa.module.d.ts +51 -33
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
- package/esm2020/lib/pages/invitations/invitations.component.mjs +0 -14
- package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +0 -60
- package/lib/pages/invitations/invitations.component.d.ts +0 -8
- package/lib/pages/tenant-settings/inviteDialog.component.d.ts +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } from '../../classes/Classes';
|
|
3
|
+
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
6
|
import { LoaderService } from '../../services/loader.service';
|
|
@@ -8,8 +8,11 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|
|
8
8
|
import { Subject } from 'rxjs';
|
|
9
9
|
import { ButtonService } from '../../services/button.service';
|
|
10
10
|
import { DialogService } from '../../services/dialog.service';
|
|
11
|
+
import { AuthService } from '../../services/auth.service';
|
|
12
|
+
import { TableConfigService } from '../../services/table-config.service';
|
|
13
|
+
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
11
14
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class DetailsDialog implements OnInit {
|
|
15
|
+
export declare class DetailsDialog implements OnInit, OnDestroy {
|
|
13
16
|
private breakpointObserver;
|
|
14
17
|
private loaderService;
|
|
15
18
|
dataService: DataServiceLib;
|
|
@@ -18,8 +21,13 @@ export declare class DetailsDialog implements OnInit {
|
|
|
18
21
|
detailsConfig: DetailsDialogConfig;
|
|
19
22
|
private buttonService;
|
|
20
23
|
private dialogService;
|
|
21
|
-
|
|
24
|
+
private authService;
|
|
25
|
+
tableConfigService: TableConfigService;
|
|
26
|
+
constructor(breakpointObserver: BreakpointObserver, loaderService: LoaderService, dataService: DataServiceLib, messageService: MessageService, dialogRef: MatDialogRef<DetailsDialog>, detailsConfig: DetailsDialogConfig, buttonService: ButtonService, dialogService: DialogService, authService: AuthService, tableConfigService: TableConfigService);
|
|
22
27
|
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
private refreshSubscription;
|
|
30
|
+
autoRefreshEnabled: boolean;
|
|
23
31
|
titleAction: string;
|
|
24
32
|
loadByAction: boolean;
|
|
25
33
|
extraButtons: Button[];
|
|
@@ -31,14 +39,21 @@ export declare class DetailsDialog implements OnInit {
|
|
|
31
39
|
files: any[];
|
|
32
40
|
tableReload: Subject<boolean>;
|
|
33
41
|
tableConfig: TableConfig;
|
|
34
|
-
tableConfigs:
|
|
42
|
+
tableConfigs: TableConfig[];
|
|
35
43
|
details: any;
|
|
36
44
|
formConfig: FormConfig;
|
|
45
|
+
stepConfig: StepConfig;
|
|
37
46
|
smallScreen: boolean;
|
|
38
47
|
isLoadComplete: boolean;
|
|
39
48
|
isProcessing: boolean;
|
|
40
49
|
inputChange: EventEmitter<any>;
|
|
41
|
-
|
|
50
|
+
selectedTabIndex: number;
|
|
51
|
+
onTabChange(event: MatTabChangeEvent): void;
|
|
52
|
+
private initAutoRefresh;
|
|
53
|
+
private startAutoRefresh;
|
|
54
|
+
private stopAutoRefresh;
|
|
55
|
+
toggleAutoRefresh(): void;
|
|
56
|
+
loadData(action: Action, causeTablesReload: any): void;
|
|
42
57
|
inputChanged(event: any): void;
|
|
43
58
|
setMode(newMode: any): void;
|
|
44
59
|
setTitleAction(): void;
|
|
@@ -55,10 +70,12 @@ export declare class DetailsDialog implements OnInit {
|
|
|
55
70
|
private openNestedDetailsDialog;
|
|
56
71
|
private refreshData;
|
|
57
72
|
handleButtonAction(buttonName: string): void;
|
|
73
|
+
processButtonAction(button: Button): void;
|
|
58
74
|
private validateForm;
|
|
59
75
|
private prepareActionData;
|
|
60
76
|
private executeAction;
|
|
61
77
|
private performApiCall;
|
|
78
|
+
close(): void;
|
|
62
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialog, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialog, "
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialog, "spa-detailsDialog", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
64
81
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Action, Button, Color, Column, Icon, TableConfig } from '../../classes/Classes';
|
|
3
3
|
import { MatPaginator } from '@angular/material/paginator';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
@@ -10,6 +10,7 @@ import { ButtonService } from '../../services/button.service';
|
|
|
10
10
|
import { DialogService } from '../../services/dialog.service';
|
|
11
11
|
import { TableConfigService } from '../../services/table-config.service';
|
|
12
12
|
import { ConditionService } from '../../services/condition.service';
|
|
13
|
+
import { AuthService } from '../../services/auth.service';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class TableComponent implements OnInit {
|
|
15
16
|
private dataService;
|
|
@@ -20,37 +21,43 @@ export declare class TableComponent implements OnInit {
|
|
|
20
21
|
private dialogService;
|
|
21
22
|
private tableConfigService;
|
|
22
23
|
private conditionService;
|
|
23
|
-
|
|
24
|
+
private authService;
|
|
25
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService, authService: AuthService);
|
|
24
26
|
ngOnInit(): void;
|
|
25
|
-
ngOnChanges(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
26
28
|
elevation: string;
|
|
27
29
|
actionsWidth: string;
|
|
28
30
|
showFilterButton: boolean;
|
|
29
31
|
tileReload: Subject<boolean>;
|
|
32
|
+
hasBeenActivated: boolean;
|
|
30
33
|
smallScreen: boolean;
|
|
34
|
+
hasFormAccess: boolean;
|
|
31
35
|
tableDataSource: any;
|
|
32
36
|
dataSource: any[];
|
|
33
37
|
displayedColumns: any[];
|
|
34
38
|
displayedButtons: any[];
|
|
35
39
|
originalTableLoadAction: Action;
|
|
36
40
|
tablePaginator: MatPaginator;
|
|
37
|
-
hideTitle: boolean;
|
|
38
41
|
data: any;
|
|
42
|
+
tileData: any;
|
|
39
43
|
config: TableConfig;
|
|
40
44
|
reload: Subject<boolean>;
|
|
45
|
+
activeTab: boolean;
|
|
46
|
+
inTab: boolean;
|
|
41
47
|
dataLoad: EventEmitter<any>;
|
|
48
|
+
actionSuccess: EventEmitter<any>;
|
|
42
49
|
refreshClick: EventEmitter<any>;
|
|
43
50
|
searchClick: EventEmitter<any>;
|
|
44
51
|
createClick: EventEmitter<any>;
|
|
45
52
|
actionClick: EventEmitter<any>;
|
|
46
53
|
inputChange: EventEmitter<any>;
|
|
54
|
+
actionResponse: EventEmitter<any>;
|
|
47
55
|
private initializeComponent;
|
|
48
56
|
private updateTableConfiguration;
|
|
49
57
|
private setupDataLoading;
|
|
50
58
|
loadData(action: Action, data: any): void;
|
|
51
59
|
inputChanged(event: any): void;
|
|
52
60
|
formDefaults(): void;
|
|
53
|
-
setColumns(): void;
|
|
54
61
|
setButtons(): void;
|
|
55
62
|
getButton(name: string): Button;
|
|
56
63
|
getIcon(buttonName: string): string;
|
|
@@ -61,7 +68,7 @@ export declare class TableComponent implements OnInit {
|
|
|
61
68
|
testColorCondition(row: any, color: Color): boolean;
|
|
62
69
|
showBanner(message: string): void;
|
|
63
70
|
testDisabled(row: any, buttonName: string): boolean;
|
|
64
|
-
|
|
71
|
+
lastSearch: any;
|
|
65
72
|
searchClicked(x: any): void;
|
|
66
73
|
tileClicked(tile: any): void;
|
|
67
74
|
tileUnClicked(tile: any): void;
|
|
@@ -75,11 +82,10 @@ export declare class TableComponent implements OnInit {
|
|
|
75
82
|
newModel(): void;
|
|
76
83
|
editModel(row: any): void;
|
|
77
84
|
private open;
|
|
78
|
-
private openDetailsDialog;
|
|
79
85
|
deleteModel(row: any): void;
|
|
80
86
|
doAction(buttonName: string, row: any): void;
|
|
81
|
-
execAction(
|
|
87
|
+
execAction(button: Button, row: any): void;
|
|
82
88
|
private getElevationClass;
|
|
83
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "spa-table", never, { "
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "spa-table", never, { "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; "activeTab": "activeTab"; "inTab": "inTab"; }, { "dataLoad": "dataLoad"; "actionSuccess": "actionSuccess"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; "actionResponse": "actionResponse"; }, never, never, false>;
|
|
85
91
|
}
|
|
@@ -8,6 +8,7 @@ export declare class TableActionComponent {
|
|
|
8
8
|
displayedButtons: Button[];
|
|
9
9
|
config: TableConfig;
|
|
10
10
|
row: any;
|
|
11
|
+
smallScreen: boolean;
|
|
11
12
|
actionClick: EventEmitter<{
|
|
12
13
|
name: string;
|
|
13
14
|
row: any;
|
|
@@ -17,6 +18,8 @@ export declare class TableActionComponent {
|
|
|
17
18
|
getButtonColor(button: Button, row: any): string;
|
|
18
19
|
getIcon(buttonName: string): string;
|
|
19
20
|
onActionClick(buttonName: string, row: any): void;
|
|
21
|
+
get visibleButtons(): Button[];
|
|
22
|
+
get overflowButtons(): Button[];
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableActionComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "app-table-action", never, { "displayedButtons": "displayedButtons"; "config": "config"; "row": "row"; }, { "actionClick": "actionClick"; }, never, never, false>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "app-table-action", never, { "displayedButtons": "displayedButtons"; "config": "config"; "row": "row"; "smallScreen": "smallScreen"; }, { "actionClick": "actionClick"; }, never, never, false>;
|
|
22
25
|
}
|
|
@@ -14,6 +14,7 @@ export declare class TableHeaderComponent {
|
|
|
14
14
|
constructor(buttonService: ButtonService, dialogService: DialogService, messageService: MessageService, csvService: CsvService);
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
createButton: Button;
|
|
17
|
+
lastSearch: any;
|
|
17
18
|
config: TableConfig;
|
|
18
19
|
hideTitle: boolean;
|
|
19
20
|
tableDataSource: any;
|
|
@@ -22,6 +23,7 @@ export declare class TableHeaderComponent {
|
|
|
22
23
|
tileReload: Subject<boolean>;
|
|
23
24
|
showFilterButton: boolean;
|
|
24
25
|
data: any;
|
|
26
|
+
tileData: any;
|
|
25
27
|
createClick: EventEmitter<void>;
|
|
26
28
|
customClick: EventEmitter<any>;
|
|
27
29
|
refreshClick: EventEmitter<void>;
|
|
@@ -40,5 +42,5 @@ export declare class TableHeaderComponent {
|
|
|
40
42
|
testDisabled(button: Button): boolean;
|
|
41
43
|
getButtonColor(button: Button, row: any): string;
|
|
42
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; "data": "data"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "lastSearch": "lastSearch"; "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; "data": "data"; "tileData": "tileData"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
|
|
44
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } from '../../classes/Classes';
|
|
3
|
+
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
6
|
import { LoaderService } from '../../services/loader.service';
|
|
@@ -8,8 +8,11 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|
|
8
8
|
import { DialogService } from '../../services/dialog.service';
|
|
9
9
|
import { ButtonService } from '../../services/button.service';
|
|
10
10
|
import { Subject } from 'rxjs';
|
|
11
|
+
import { AuthService } from '../../services/auth.service';
|
|
12
|
+
import { TableConfigService } from '../../services/table-config.service';
|
|
13
|
+
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
11
14
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class DetailsDialogInternal implements OnInit {
|
|
15
|
+
export declare class DetailsDialogInternal implements OnInit, OnDestroy {
|
|
13
16
|
private breakpointObserver;
|
|
14
17
|
private loaderService;
|
|
15
18
|
dataService: DataServiceLib;
|
|
@@ -18,8 +21,13 @@ export declare class DetailsDialogInternal implements OnInit {
|
|
|
18
21
|
detailsConfig: DetailsDialogConfig;
|
|
19
22
|
private buttonService;
|
|
20
23
|
private dialogService;
|
|
21
|
-
|
|
24
|
+
private authService;
|
|
25
|
+
tableConfigService: TableConfigService;
|
|
26
|
+
constructor(breakpointObserver: BreakpointObserver, loaderService: LoaderService, dataService: DataServiceLib, messageService: MessageService, dialogRef: MatDialogRef<DetailsDialogInternal>, detailsConfig: DetailsDialogConfig, buttonService: ButtonService, dialogService: DialogService, authService: AuthService, tableConfigService: TableConfigService);
|
|
22
27
|
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
private refreshSubscription;
|
|
30
|
+
autoRefreshEnabled: boolean;
|
|
23
31
|
titleAction: string;
|
|
24
32
|
loadByAction: boolean;
|
|
25
33
|
extraButtons: Button[];
|
|
@@ -31,14 +39,21 @@ export declare class DetailsDialogInternal implements OnInit {
|
|
|
31
39
|
files: any[];
|
|
32
40
|
tableReload: Subject<boolean>;
|
|
33
41
|
tableConfig: TableConfig;
|
|
34
|
-
tableConfigs:
|
|
42
|
+
tableConfigs: TableConfig[];
|
|
35
43
|
details: any;
|
|
36
44
|
formConfig: FormConfig;
|
|
45
|
+
stepConfig: StepConfig;
|
|
37
46
|
smallScreen: boolean;
|
|
38
47
|
isLoadComplete: boolean;
|
|
39
48
|
isProcessing: boolean;
|
|
40
49
|
inputChange: EventEmitter<any>;
|
|
41
|
-
|
|
50
|
+
selectedTabIndex: number;
|
|
51
|
+
onTabChange(event: MatTabChangeEvent): void;
|
|
52
|
+
private initAutoRefresh;
|
|
53
|
+
private startAutoRefresh;
|
|
54
|
+
private stopAutoRefresh;
|
|
55
|
+
toggleAutoRefresh(): void;
|
|
56
|
+
loadData(action: Action, causeTablesReload: any): void;
|
|
42
57
|
inputChanged(event: any): void;
|
|
43
58
|
setMode(newMode: any): void;
|
|
44
59
|
setTitleAction(): void;
|
|
@@ -55,10 +70,12 @@ export declare class DetailsDialogInternal implements OnInit {
|
|
|
55
70
|
private openNestedDetailsDialog;
|
|
56
71
|
private refreshData;
|
|
57
72
|
handleButtonAction(buttonName: string): void;
|
|
73
|
+
processButtonAction(button: Button): void;
|
|
58
74
|
private validateForm;
|
|
59
75
|
private prepareActionData;
|
|
60
76
|
private executeAction;
|
|
61
77
|
private performApiCall;
|
|
78
|
+
close(): void;
|
|
62
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialogInternal, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "spa-detailsDialog-internal", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
64
81
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Action, Button, Color, Column, Icon, TableConfig } from '../../classes/Classes';
|
|
3
3
|
import { MatPaginator } from '@angular/material/paginator';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
@@ -10,6 +10,7 @@ import { ButtonService } from '../../services/button.service';
|
|
|
10
10
|
import { DialogService } from '../../services/dialog.service';
|
|
11
11
|
import { TableConfigService } from '../../services/table-config.service';
|
|
12
12
|
import { ConditionService } from '../../services/condition.service';
|
|
13
|
+
import { AuthService } from '../../services/auth.service';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class TableInternalComponent implements OnInit {
|
|
15
16
|
private dataService;
|
|
@@ -20,37 +21,43 @@ export declare class TableInternalComponent implements OnInit {
|
|
|
20
21
|
private dialogService;
|
|
21
22
|
private tableConfigService;
|
|
22
23
|
private conditionService;
|
|
23
|
-
|
|
24
|
+
private authService;
|
|
25
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService, authService: AuthService);
|
|
24
26
|
ngOnInit(): void;
|
|
25
|
-
ngOnChanges(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
26
28
|
elevation: string;
|
|
27
29
|
actionsWidth: string;
|
|
28
30
|
showFilterButton: boolean;
|
|
29
31
|
tileReload: Subject<boolean>;
|
|
32
|
+
hasBeenActivated: boolean;
|
|
30
33
|
smallScreen: boolean;
|
|
34
|
+
hasFormAccess: boolean;
|
|
31
35
|
tableDataSource: any;
|
|
32
36
|
dataSource: any[];
|
|
33
37
|
displayedColumns: any[];
|
|
34
38
|
displayedButtons: any[];
|
|
35
39
|
originalTableLoadAction: Action;
|
|
36
40
|
tablePaginator: MatPaginator;
|
|
37
|
-
hideTitle: boolean;
|
|
38
41
|
data: any;
|
|
42
|
+
tileData: any;
|
|
39
43
|
config: TableConfig;
|
|
40
44
|
reload: Subject<boolean>;
|
|
45
|
+
activeTab: boolean;
|
|
46
|
+
inTab: boolean;
|
|
41
47
|
dataLoad: EventEmitter<any>;
|
|
48
|
+
actionSuccess: EventEmitter<any>;
|
|
42
49
|
refreshClick: EventEmitter<any>;
|
|
43
50
|
searchClick: EventEmitter<any>;
|
|
44
51
|
createClick: EventEmitter<any>;
|
|
45
52
|
actionClick: EventEmitter<any>;
|
|
46
53
|
inputChange: EventEmitter<any>;
|
|
54
|
+
actionResponse: EventEmitter<any>;
|
|
47
55
|
private initializeComponent;
|
|
48
56
|
private updateTableConfiguration;
|
|
49
57
|
private setupDataLoading;
|
|
50
58
|
loadData(action: Action, data: any): void;
|
|
51
59
|
inputChanged(event: any): void;
|
|
52
60
|
formDefaults(): void;
|
|
53
|
-
setColumns(): void;
|
|
54
61
|
setButtons(): void;
|
|
55
62
|
getButton(name: string): Button;
|
|
56
63
|
getIcon(buttonName: string): string;
|
|
@@ -61,7 +68,7 @@ export declare class TableInternalComponent implements OnInit {
|
|
|
61
68
|
testColorCondition(row: any, color: Color): boolean;
|
|
62
69
|
showBanner(message: string): void;
|
|
63
70
|
testDisabled(row: any, buttonName: string): boolean;
|
|
64
|
-
|
|
71
|
+
lastSearch: any;
|
|
65
72
|
searchClicked(x: any): void;
|
|
66
73
|
tileClicked(tile: any): void;
|
|
67
74
|
tileUnClicked(tile: any): void;
|
|
@@ -75,11 +82,10 @@ export declare class TableInternalComponent implements OnInit {
|
|
|
75
82
|
newModel(): void;
|
|
76
83
|
editModel(row: any): void;
|
|
77
84
|
private open;
|
|
78
|
-
private openDetailsDialog;
|
|
79
85
|
deleteModel(row: any): void;
|
|
80
86
|
doAction(buttonName: string, row: any): void;
|
|
81
|
-
execAction(
|
|
87
|
+
execAction(button: Button, row: any): void;
|
|
82
88
|
private getElevationClass;
|
|
83
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableInternalComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; "activeTab": "activeTab"; "inTab": "inTab"; }, { "dataLoad": "dataLoad"; "actionSuccess": "actionSuccess"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; "actionResponse": "actionResponse"; }, never, never, false>;
|
|
85
91
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
|
+
import { LoaderService } from '../../services/loader.service';
|
|
7
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
8
|
+
import { DialogService } from '../../services/dialog.service';
|
|
9
|
+
import { ButtonService } from '../../services/button.service';
|
|
10
|
+
import { Subject } from 'rxjs';
|
|
11
|
+
import { AuthService } from '../../services/auth.service';
|
|
12
|
+
import { TableConfigService } from '../../services/table-config.service';
|
|
13
|
+
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class DetailsDialogLite implements OnInit, OnDestroy {
|
|
16
|
+
private breakpointObserver;
|
|
17
|
+
private loaderService;
|
|
18
|
+
dataService: DataServiceLib;
|
|
19
|
+
private messageService;
|
|
20
|
+
private dialogRef;
|
|
21
|
+
detailsConfig: DetailsDialogConfig;
|
|
22
|
+
private buttonService;
|
|
23
|
+
private dialogService;
|
|
24
|
+
private authService;
|
|
25
|
+
tableConfigService: TableConfigService;
|
|
26
|
+
constructor(breakpointObserver: BreakpointObserver, loaderService: LoaderService, dataService: DataServiceLib, messageService: MessageService, dialogRef: MatDialogRef<DetailsDialogLite>, detailsConfig: DetailsDialogConfig, buttonService: ButtonService, dialogService: DialogService, authService: AuthService, tableConfigService: TableConfigService);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
private refreshSubscription;
|
|
30
|
+
autoRefreshEnabled: boolean;
|
|
31
|
+
titleAction: string;
|
|
32
|
+
loadByAction: boolean;
|
|
33
|
+
extraButtons: Button[];
|
|
34
|
+
buttons: Button[];
|
|
35
|
+
createButton: Button;
|
|
36
|
+
editButton: Button;
|
|
37
|
+
deleteButton: Button;
|
|
38
|
+
fileField: Field;
|
|
39
|
+
files: any[];
|
|
40
|
+
tableReload: Subject<boolean>;
|
|
41
|
+
tableConfig: TableConfig;
|
|
42
|
+
tableConfigs: TableConfig[];
|
|
43
|
+
details: any;
|
|
44
|
+
formConfig: FormConfig;
|
|
45
|
+
stepConfig: StepConfig;
|
|
46
|
+
smallScreen: boolean;
|
|
47
|
+
isLoadComplete: boolean;
|
|
48
|
+
isProcessing: boolean;
|
|
49
|
+
inputChange: EventEmitter<any>;
|
|
50
|
+
selectedTabIndex: number;
|
|
51
|
+
onTabChange(event: MatTabChangeEvent): void;
|
|
52
|
+
private initAutoRefresh;
|
|
53
|
+
private startAutoRefresh;
|
|
54
|
+
private stopAutoRefresh;
|
|
55
|
+
toggleAutoRefresh(): void;
|
|
56
|
+
loadData(action: Action, causeTablesReload: any): void;
|
|
57
|
+
inputChanged(event: any): void;
|
|
58
|
+
setMode(newMode: any): void;
|
|
59
|
+
setTitleAction(): void;
|
|
60
|
+
getButton(name: string): Button;
|
|
61
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
62
|
+
testVisible(row: any, buttonName: string): boolean;
|
|
63
|
+
testVisibleTab(tblConfig: TableConfig): boolean;
|
|
64
|
+
getButtonColor(button: Button, row: any): string;
|
|
65
|
+
getVisibleFields(): Field[];
|
|
66
|
+
create(): void;
|
|
67
|
+
edit(): void;
|
|
68
|
+
delete(): void;
|
|
69
|
+
custom(button: Button): void;
|
|
70
|
+
private openNestedDetailsDialog;
|
|
71
|
+
private refreshData;
|
|
72
|
+
handleButtonAction(buttonName: string): void;
|
|
73
|
+
processButtonAction(button: Button): void;
|
|
74
|
+
private validateForm;
|
|
75
|
+
private prepareActionData;
|
|
76
|
+
private executeAction;
|
|
77
|
+
private performApiCall;
|
|
78
|
+
close(): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialogLite, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogLite, "spa-detailsDialog-lite", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Action, Button, Color, Column, Icon, TableConfig } from '../../classes/Classes';
|
|
3
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
7
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
8
|
+
import { Subject } from 'rxjs';
|
|
9
|
+
import { ButtonService } from '../../services/button.service';
|
|
10
|
+
import { DialogService } from '../../services/dialog.service';
|
|
11
|
+
import { TableConfigService } from '../../services/table-config.service';
|
|
12
|
+
import { ConditionService } from '../../services/condition.service';
|
|
13
|
+
import { AuthService } from '../../services/auth.service';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class TableLiteComponent implements OnInit {
|
|
16
|
+
private dataService;
|
|
17
|
+
private messageService;
|
|
18
|
+
private breakpointObserver;
|
|
19
|
+
dialog: MatDialog;
|
|
20
|
+
private buttonService;
|
|
21
|
+
private dialogService;
|
|
22
|
+
private tableConfigService;
|
|
23
|
+
private conditionService;
|
|
24
|
+
private authService;
|
|
25
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService, authService: AuthService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
elevation: string;
|
|
29
|
+
actionsWidth: string;
|
|
30
|
+
showFilterButton: boolean;
|
|
31
|
+
tileReload: Subject<boolean>;
|
|
32
|
+
hasBeenActivated: boolean;
|
|
33
|
+
smallScreen: boolean;
|
|
34
|
+
hasFormAccess: boolean;
|
|
35
|
+
tableDataSource: any;
|
|
36
|
+
dataSource: any[];
|
|
37
|
+
displayedColumns: any[];
|
|
38
|
+
displayedButtons: any[];
|
|
39
|
+
originalTableLoadAction: Action;
|
|
40
|
+
tablePaginator: MatPaginator;
|
|
41
|
+
data: any;
|
|
42
|
+
tileData: any;
|
|
43
|
+
config: TableConfig;
|
|
44
|
+
reload: Subject<boolean>;
|
|
45
|
+
activeTab: boolean;
|
|
46
|
+
inTab: boolean;
|
|
47
|
+
dataLoad: EventEmitter<any>;
|
|
48
|
+
actionSuccess: EventEmitter<any>;
|
|
49
|
+
refreshClick: EventEmitter<any>;
|
|
50
|
+
searchClick: EventEmitter<any>;
|
|
51
|
+
createClick: EventEmitter<any>;
|
|
52
|
+
actionClick: EventEmitter<any>;
|
|
53
|
+
inputChange: EventEmitter<any>;
|
|
54
|
+
actionResponse: EventEmitter<any>;
|
|
55
|
+
private initializeComponent;
|
|
56
|
+
private updateTableConfiguration;
|
|
57
|
+
private setupDataLoading;
|
|
58
|
+
loadData(action: Action, data: any): void;
|
|
59
|
+
inputChanged(event: any): void;
|
|
60
|
+
formDefaults(): void;
|
|
61
|
+
setButtons(): void;
|
|
62
|
+
getButton(name: string): Button;
|
|
63
|
+
getIcon(buttonName: string): string;
|
|
64
|
+
getButtonColor(button: Button, row: any): string;
|
|
65
|
+
getOptions(column: any): Column;
|
|
66
|
+
getColor(value: any, options: any[]): string;
|
|
67
|
+
testIconCondition(row: any, icon: Icon): boolean;
|
|
68
|
+
testColorCondition(row: any, color: Color): boolean;
|
|
69
|
+
showBanner(message: string): void;
|
|
70
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
71
|
+
lastSearch: any;
|
|
72
|
+
searchClicked(x: any): void;
|
|
73
|
+
tileClicked(tile: any): void;
|
|
74
|
+
tileUnClicked(tile: any): void;
|
|
75
|
+
refreshClicked(): void;
|
|
76
|
+
dataLoaded(x: any): void;
|
|
77
|
+
actionClicked(name: string, row: any): void;
|
|
78
|
+
columnClicked(column: Column, row: any): void;
|
|
79
|
+
customModel(name: any, row: any): void;
|
|
80
|
+
actionClickedEmit(name: any, row: any): void;
|
|
81
|
+
viewModel(row: any): void;
|
|
82
|
+
newModel(): void;
|
|
83
|
+
editModel(row: any): void;
|
|
84
|
+
private open;
|
|
85
|
+
deleteModel(row: any): void;
|
|
86
|
+
doAction(buttonName: string, row: any): void;
|
|
87
|
+
execAction(button: Button, row: any): void;
|
|
88
|
+
private getElevationClass;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableLiteComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableLiteComponent, "spa-table-lite", never, { "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; "activeTab": "activeTab"; "inTab": "inTab"; }, { "dataLoad": "dataLoad"; "actionSuccess": "actionSuccess"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; "actionResponse": "actionResponse"; }, never, never, false>;
|
|
91
|
+
}
|
|
@@ -7,6 +7,7 @@ export declare class TableRowComponent {
|
|
|
7
7
|
column: Column;
|
|
8
8
|
row: any;
|
|
9
9
|
config: TableConfig;
|
|
10
|
+
smallScreen: boolean;
|
|
10
11
|
actionClick: EventEmitter<{
|
|
11
12
|
name: string;
|
|
12
13
|
row: any;
|
|
@@ -23,6 +24,8 @@ export declare class TableRowComponent {
|
|
|
23
24
|
onActionClick(name: string, row: any): void;
|
|
24
25
|
onColumnClick(column: Column, row: any): void;
|
|
25
26
|
showBanner(message: string): void;
|
|
27
|
+
textDisplayed(row: any, column: Column): any;
|
|
28
|
+
textTruncated(row: any, column: Column): boolean;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent, "app-table-row", never, { "column": "column"; "row": "row"; "config": "config"; }, { "actionClick": "actionClick"; "columnClick": "columnClick"; "showBannerEvent": "showBannerEvent"; }, never, never, false>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent, "app-table-row", never, { "column": "column"; "row": "row"; "config": "config"; "smallScreen": "smallScreen"; }, { "actionClick": "actionClick"; "columnClick": "columnClick"; "showBannerEvent": "showBannerEvent"; }, never, never, false>;
|
|
28
31
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TableConfig } from '../../classes/Classes';
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TabsComponent implements OnInit {
|
|
7
|
+
private dataService;
|
|
8
|
+
constructor(dataService: DataServiceLib);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
tableConfigs: TableConfig[];
|
|
11
|
+
tabCounts: {
|
|
12
|
+
[index: number]: number;
|
|
13
|
+
};
|
|
14
|
+
activeTabsLoaded: {
|
|
15
|
+
[index: number]: boolean;
|
|
16
|
+
};
|
|
17
|
+
selectedTabIndex: number;
|
|
18
|
+
tableReloads: {
|
|
19
|
+
[index: number]: Subject<boolean>;
|
|
20
|
+
};
|
|
21
|
+
private loadAllCounts;
|
|
22
|
+
private loadTabCount;
|
|
23
|
+
onTabChange(event: any): void;
|
|
24
|
+
getTabCount(index: number): number | undefined;
|
|
25
|
+
shouldShowBadge(index: number): boolean;
|
|
26
|
+
getTabTitle(config: TableConfig): string;
|
|
27
|
+
shouldLoadTabData(index: number): boolean;
|
|
28
|
+
refreshTabCount(index: number): void;
|
|
29
|
+
onTableActionResponse(tabIndex: number, event: any): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "spa-tabs", never, { "tableConfigs": "tableConfigs"; }, {}, never, never, false>;
|
|
32
|
+
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import {
|
|
4
|
+
import { Action } from '../../classes/Classes';
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class TextComponent implements OnInit {
|
|
7
|
-
private
|
|
8
|
-
constructor(
|
|
8
|
+
private dataService;
|
|
9
|
+
constructor(dataService: DataServiceLib);
|
|
9
10
|
ngOnInit(): void;
|
|
10
11
|
ngAfterViewInit(): void;
|
|
11
12
|
filteredOptions: Observable<string[]>;
|
|
12
13
|
multiDimension: boolean;
|
|
13
14
|
hideRequiredControl: FormControl<boolean>;
|
|
14
15
|
hide: boolean;
|
|
16
|
+
appearance: 'legacy' | 'standard' | 'fill' | 'outline';
|
|
15
17
|
readonly: boolean;
|
|
16
18
|
hint: string;
|
|
17
19
|
display: string;
|
|
@@ -25,26 +27,33 @@ export declare class TextComponent implements OnInit {
|
|
|
25
27
|
rows: number;
|
|
26
28
|
width: string;
|
|
27
29
|
copyContent: boolean;
|
|
30
|
+
clearContent: boolean;
|
|
28
31
|
options: any;
|
|
32
|
+
optionDisplay: string;
|
|
29
33
|
optionValue: string;
|
|
34
|
+
loadAction: Action;
|
|
30
35
|
required: boolean;
|
|
31
36
|
min: number;
|
|
32
37
|
max: number;
|
|
33
38
|
regex: string;
|
|
34
39
|
suffix: string;
|
|
35
40
|
infoMessage: string;
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
isHovered: boolean;
|
|
42
|
+
onMouseEnter(): void;
|
|
43
|
+
onMouseLeave(): void;
|
|
38
44
|
private initFilter;
|
|
39
45
|
private _filter;
|
|
40
|
-
copyText(): void;
|
|
41
46
|
initControl(control: FormControl): void;
|
|
47
|
+
getDisplayValue(value: any): string;
|
|
42
48
|
changed(): void;
|
|
43
49
|
leaved(): void;
|
|
50
|
+
clear(): void;
|
|
44
51
|
enterPressed(): void;
|
|
52
|
+
refresh(event: MouseEvent): void;
|
|
53
|
+
getData(action: Action): void;
|
|
45
54
|
myControl: FormControl<string>;
|
|
46
55
|
control: FormControl<string>;
|
|
47
56
|
validate(control: FormControl): string;
|
|
48
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "spa-text", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "format": "format"; "type": "type"; "rows": "rows"; "width": "width"; "copyContent": "copyContent"; "options": "options"; "optionValue": "optionValue"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress";
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "spa-text", never, { "appearance": "appearance"; "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "format": "format"; "type": "type"; "rows": "rows"; "width": "width"; "copyContent": "copyContent"; "clearContent": "clearContent"; "options": "options"; "optionDisplay": "optionDisplay"; "optionValue": "optionValue"; "loadAction": "loadAction"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; }, never, never, false>;
|
|
50
59
|
}
|