tin-spa 14.3.11 → 14.10.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 +53 -206
- package/esm2020/lib/classes/LibClasses.mjs +180 -0
- package/esm2020/lib/classes/TinCore.mjs +201 -42
- 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 +6 -6
- package/esm2020/lib/components/datetime/datetime.component.mjs +6 -3
- package/esm2020/lib/components/email/email.component.mjs +133 -0
- package/esm2020/lib/components/filter/filter.component.mjs +7 -3
- package/esm2020/lib/components/form/form.component.mjs +155 -53
- package/esm2020/lib/components/html/html.component.mjs +34 -0
- package/esm2020/lib/components/label/label.component.mjs +6 -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 +32 -28
- 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 +39 -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 -119
- package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +87 -0
- package/esm2020/lib/components/select-common/select-common.component.mjs +189 -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 +179 -37
- package/esm2020/lib/components/table/table.component.mjs +142 -108
- package/esm2020/lib/components/table-action/table-action.component.mjs +42 -8
- package/esm2020/lib/components/table-header/table-header.component.mjs +87 -15
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +183 -35
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +144 -109
- 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 +41 -6
- package/esm2020/lib/components/text/text.component.mjs +97 -42
- package/esm2020/lib/components/tiles/tiles.component.mjs +44 -26
- 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 +32 -22
- package/esm2020/lib/modules/index/index-routing.module.mjs +4 -4
- package/esm2020/lib/modules/spa-admin.module.mjs +7 -7
- package/esm2020/lib/modules/spa-index.module.mjs +4 -4
- package/esm2020/lib/modules/spa-user.module.mjs +3 -3
- package/esm2020/lib/modules/user/user-routing.module.mjs +3 -3
- package/esm2020/lib/pages/accounts/accountDialog.component.mjs +56 -0
- package/esm2020/lib/pages/accounts/accounts.component.mjs +70 -0
- 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 +14 -0
- package/esm2020/lib/pages/change-password/change-password.component.mjs +92 -0
- package/esm2020/lib/pages/create-account/create-account.component.mjs +110 -0
- package/esm2020/lib/pages/customers/customers.component.mjs +21 -0
- package/esm2020/lib/{components → pages}/departments/departments.component.mjs +3 -5
- package/esm2020/lib/pages/employees/employees.component.mjs +20 -0
- package/esm2020/lib/pages/grades/grades.component.mjs +14 -0
- package/esm2020/lib/pages/inventory/inventory.component.mjs +99 -0
- package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +53 -0
- package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +71 -0
- package/esm2020/lib/pages/login/login.component.mjs +166 -0
- package/esm2020/lib/pages/logs/logs.component.mjs +42 -0
- package/esm2020/lib/pages/membership/membership.component.mjs +44 -0
- package/esm2020/lib/pages/notifications/notifications.component.mjs +90 -0
- package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +113 -0
- package/esm2020/lib/pages/plans/plans.component.mjs +44 -0
- package/esm2020/lib/pages/positions/positions.component.mjs +21 -0
- package/esm2020/lib/pages/profile/profile.component.mjs +94 -0
- package/esm2020/lib/pages/recover-account/recover-account.component.mjs +46 -0
- package/esm2020/lib/{components → pages}/roles/addRoleDialog.component.mjs +3 -3
- package/esm2020/lib/pages/roles/roles.component.mjs +151 -0
- package/esm2020/lib/{components → pages}/settings/settings.component.mjs +2 -11
- package/esm2020/lib/pages/signup/signup.component.mjs +50 -0
- package/esm2020/lib/pages/suppliers/suppliers.component.mjs +22 -0
- package/esm2020/lib/pages/tasks/tasks.component.mjs +86 -0
- package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +228 -0
- package/esm2020/lib/pages/tenants/tenants.component.mjs +47 -0
- package/esm2020/lib/pages/transactions/transactDialog.component.mjs +80 -0
- package/esm2020/lib/pages/transactions/transactions.component.mjs +101 -0
- package/esm2020/lib/pages/users/users.component.mjs +141 -0
- package/esm2020/lib/pages/welcome/welcome.component.mjs +86 -0
- package/esm2020/lib/select-context.directive.mjs +23 -0
- package/esm2020/lib/services/auth.service.mjs +3 -2
- package/esm2020/lib/services/button.service.mjs +90 -30
- package/esm2020/lib/services/csv.service.mjs +49 -0
- package/esm2020/lib/services/datalib.service.mjs +504 -76
- package/esm2020/lib/services/dialog.service.mjs +24 -7
- package/esm2020/lib/services/log.service.mjs +2 -2
- 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 +70 -30
- package/esm2020/public-api.mjs +33 -25
- package/fesm2015/tin-spa.mjs +6258 -2345
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +6308 -2336
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/classes/Classes.d.ts +244 -294
- package/lib/classes/LibClasses.d.ts +173 -0
- package/lib/classes/TinCore.d.ts +13 -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/datetime/datetime.component.d.ts +2 -1
- package/lib/components/email/email.component.d.ts +40 -0
- package/lib/components/filter/filter.component.d.ts +1 -0
- package/lib/components/form/form.component.d.ts +20 -9
- package/lib/components/html/html.component.d.ts +16 -0
- package/lib/components/label/label.component.d.ts +2 -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 +11 -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 -35
- package/lib/components/select-bitwise/select-bitwise.component.d.ts +31 -0
- package/lib/components/select-common/select-common.component.d.ts +50 -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 +18 -9
- package/lib/components/table-action/table-action.component.d.ts +4 -1
- package/lib/components/table-header/table-header.component.d.ts +19 -4
- package/lib/components/table-internal/detailsDialog-internal.component.d.ts +24 -7
- package/lib/components/table-internal/table-internal.component.d.ts +18 -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 +5 -2
- package/lib/components/text/text.component.d.ts +17 -4
- package/lib/components/tiles/tiles.component.d.ts +7 -4
- package/lib/components/viewer/viewerDialog.component.d.ts +3 -1
- package/lib/modules/spa-admin.module.d.ts +6 -6
- package/lib/modules/spa-index.module.d.ts +3 -3
- package/lib/modules/spa-user.module.d.ts +2 -2
- 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/{components → pages}/change-password/change-password.component.d.ts +1 -1
- package/lib/{components → pages}/create-account/create-account.component.d.ts +2 -1
- package/lib/{components → pages}/customers/customers.component.d.ts +2 -8
- package/lib/{components → pages}/invitations-table/invitations-table.component.d.ts +1 -1
- package/lib/{components → pages}/login/login.component.d.ts +10 -3
- package/lib/{components → pages}/logs/logs.component.d.ts +2 -6
- package/lib/{components → pages}/membership/membership.component.d.ts +2 -6
- package/lib/pages/notifications/notifications.component.d.ts +16 -0
- package/lib/pages/notifications-config/notifications-config.component.d.ts +17 -0
- package/lib/{components → pages}/plans/plans.component.d.ts +2 -6
- package/lib/{components → pages}/profile/profile.component.d.ts +2 -1
- package/lib/{components → pages}/roles/addRoleDialog.component.d.ts +1 -1
- package/lib/{components → pages}/roles/roles.component.d.ts +15 -3
- package/lib/{components → pages}/signup/signup.component.d.ts +1 -1
- package/lib/{components → pages}/suppliers/suppliers.component.d.ts +1 -4
- package/lib/{components → pages}/tasks/tasks.component.d.ts +1 -1
- package/lib/{components → pages}/tenant-settings/tenant-settings.component.d.ts +12 -7
- package/lib/{components → pages}/tenants/tenants.component.d.ts +2 -2
- package/lib/{components → pages}/users/users.component.d.ts +8 -16
- package/lib/select-context.directive.d.ts +10 -0
- package/lib/services/auth.service.d.ts +1 -1
- package/lib/services/button.service.d.ts +10 -7
- package/lib/services/csv.service.d.ts +10 -0
- package/lib/services/datalib.service.d.ts +55 -10
- package/lib/services/dialog.service.d.ts +2 -2
- package/lib/services/log.service.d.ts +1 -1
- 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 +31 -23
- package/esm2020/lib/components/accounts/accountDialog.component.mjs +0 -56
- package/esm2020/lib/components/accounts/accounts.component.mjs +0 -70
- package/esm2020/lib/components/bug/bug.component.mjs +0 -14
- package/esm2020/lib/components/change-password/change-password.component.mjs +0 -92
- package/esm2020/lib/components/create-account/create-account.component.mjs +0 -109
- package/esm2020/lib/components/customers/customers.component.mjs +0 -60
- package/esm2020/lib/components/employees/employees.component.mjs +0 -21
- package/esm2020/lib/components/grades/grades.component.mjs +0 -14
- package/esm2020/lib/components/inventory/inventory.component.mjs +0 -99
- package/esm2020/lib/components/inventory/quantityDialog.component.mjs +0 -53
- package/esm2020/lib/components/invitations/invitations.component.mjs +0 -14
- package/esm2020/lib/components/invitations-table/invitations-table.component.mjs +0 -70
- package/esm2020/lib/components/login/login.component.mjs +0 -127
- package/esm2020/lib/components/logs/logs.component.mjs +0 -37
- package/esm2020/lib/components/membership/membership.component.mjs +0 -48
- package/esm2020/lib/components/notifications/notifications.component.mjs +0 -14
- package/esm2020/lib/components/plans/plans.component.mjs +0 -47
- package/esm2020/lib/components/positions/positions.component.mjs +0 -21
- package/esm2020/lib/components/profile/profile.component.mjs +0 -92
- package/esm2020/lib/components/recover-account/recover-account.component.mjs +0 -46
- package/esm2020/lib/components/roles/roles.component.mjs +0 -91
- package/esm2020/lib/components/signup/signup.component.mjs +0 -50
- package/esm2020/lib/components/suppliers/suppliers.component.mjs +0 -50
- package/esm2020/lib/components/tasks/tasks.component.mjs +0 -86
- package/esm2020/lib/components/tenant-settings/inviteDialog.component.mjs +0 -60
- package/esm2020/lib/components/tenant-settings/tenant-settings.component.mjs +0 -155
- package/esm2020/lib/components/tenants/tenants.component.mjs +0 -47
- package/esm2020/lib/components/transactions/transactDialog.component.mjs +0 -80
- package/esm2020/lib/components/transactions/transactions.component.mjs +0 -101
- package/esm2020/lib/components/users/users.component.mjs +0 -118
- package/esm2020/lib/components/welcome/welcome.component.mjs +0 -86
- package/lib/components/invitations/invitations.component.d.ts +0 -8
- package/lib/components/notifications/notifications.component.d.ts +0 -8
- package/lib/components/tenant-settings/inviteDialog.component.d.ts +0 -28
- /package/lib/{components → pages}/accounts/accountDialog.component.d.ts +0 -0
- /package/lib/{components → pages}/accounts/accounts.component.d.ts +0 -0
- /package/lib/{components → pages}/bug/bug.component.d.ts +0 -0
- /package/lib/{components → pages}/departments/departments.component.d.ts +0 -0
- /package/lib/{components → pages}/employees/employees.component.d.ts +0 -0
- /package/lib/{components → pages}/grades/grades.component.d.ts +0 -0
- /package/lib/{components → pages}/inventory/inventory.component.d.ts +0 -0
- /package/lib/{components → pages}/inventory/quantityDialog.component.d.ts +0 -0
- /package/lib/{components → pages}/positions/positions.component.d.ts +0 -0
- /package/lib/{components → pages}/recover-account/recover-account.component.d.ts +0 -0
- /package/lib/{components → pages}/settings/settings.component.d.ts +0 -0
- /package/lib/{components → pages}/transactions/transactDialog.component.d.ts +0 -0
- /package/lib/{components → pages}/transactions/transactions.component.d.ts +0 -0
- /package/lib/{components → pages}/welcome/welcome.component.d.ts +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MessageService } from '../../services/message.service';
|
|
3
|
+
import { Action } from '../../classes/Classes';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class OptionComponent implements OnInit {
|
|
4
|
-
|
|
6
|
+
private messageService;
|
|
7
|
+
constructor(messageService: MessageService);
|
|
5
8
|
ngOnInit(): void;
|
|
6
9
|
OGValue: any;
|
|
7
10
|
options: any;
|
|
@@ -12,12 +15,18 @@ export declare class OptionComponent implements OnInit {
|
|
|
12
15
|
value: string;
|
|
13
16
|
display: string;
|
|
14
17
|
show: boolean;
|
|
18
|
+
required: boolean;
|
|
19
|
+
infoMessage: string;
|
|
20
|
+
copyContent: boolean;
|
|
21
|
+
suffix: string;
|
|
22
|
+
loadAction: Action;
|
|
15
23
|
valueChange: EventEmitter<any>;
|
|
16
24
|
enterPress: EventEmitter<any>;
|
|
17
25
|
changed(): void;
|
|
18
26
|
dateChanged(x: any): void;
|
|
19
27
|
enterPressed(): void;
|
|
20
28
|
resetValue(): void;
|
|
29
|
+
onInfoClick(event: MouseEvent): void;
|
|
21
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "spa-option", never, { "options": "options"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "readonly": "readonly"; "type": "type"; "value": "value"; "display": "display"; "show": "show"; }, { "valueChange": "valueChange"; "enterPress": "enterPress"; }, never, never, false>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "spa-option", never, { "options": "options"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "readonly": "readonly"; "type": "type"; "value": "value"; "display": "display"; "show": "show"; "required": "required"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "suffix": "suffix"; "loadAction": "loadAction"; }, { "valueChange": "valueChange"; "enterPress": "enterPress"; }, never, never, false>;
|
|
23
32
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { PageConfig, TableConfig } from '../../classes/Classes';
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { MessageService } from '../../services/message.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PageComponent implements OnInit {
|
|
8
|
+
dataServiceLib: DataServiceLib;
|
|
9
|
+
private messageService;
|
|
10
|
+
constructor(dataServiceLib: DataServiceLib, messageService: MessageService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
config: PageConfig;
|
|
13
|
+
searchModeActivated: EventEmitter<any>;
|
|
14
|
+
searchModeDeactivated: EventEmitter<any>;
|
|
15
|
+
refreshClick: EventEmitter<any>;
|
|
16
|
+
actionClick: EventEmitter<any>;
|
|
17
|
+
actionResponse: EventEmitter<any>;
|
|
18
|
+
inputChange: EventEmitter<any>;
|
|
19
|
+
createClick: EventEmitter<any>;
|
|
20
|
+
searchClick: EventEmitter<any>;
|
|
21
|
+
dataLoad: EventEmitter<any>;
|
|
22
|
+
tableReload: Subject<boolean>;
|
|
23
|
+
searchMode: boolean;
|
|
24
|
+
normalTableConfig: TableConfig;
|
|
25
|
+
searchTableConfig: TableConfig;
|
|
26
|
+
toggleSearch(): void;
|
|
27
|
+
getNormalTableConfig(): TableConfig;
|
|
28
|
+
getSearchTableConfig(): TableConfig;
|
|
29
|
+
refreshClicked(): void;
|
|
30
|
+
actionClicked(x: any): void;
|
|
31
|
+
actionResponded(x: any): void;
|
|
32
|
+
inputChanged(x: any): void;
|
|
33
|
+
createClicked(x: any): void;
|
|
34
|
+
searchClicked(x: any): void;
|
|
35
|
+
dataLoaded(x: any): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "spa-page", never, { "config": "config"; }, { "searchModeActivated": "searchModeActivated"; "searchModeDeactivated": "searchModeDeactivated"; "refreshClick": "refreshClick"; "actionClick": "actionClick"; "actionResponse": "actionResponse"; "inputChange": "inputChange"; "createClick": "createClick"; "searchClick": "searchClick"; "dataLoad": "dataLoad"; }, never, never, false>;
|
|
38
|
+
}
|
|
@@ -7,7 +7,9 @@ export declare class SearchComponent implements OnInit {
|
|
|
7
7
|
data: any;
|
|
8
8
|
config: SearchConfig;
|
|
9
9
|
searchClick: EventEmitter<any>;
|
|
10
|
+
smallScreen: boolean;
|
|
11
|
+
tableDataSource: any;
|
|
10
12
|
search(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "spa-search", never, { "config": "config"; }, { "searchClick": "searchClick"; }, never, never, false>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "spa-search", never, { "config": "config"; "smallScreen": "smallScreen"; "tableDataSource": "tableDataSource"; }, { "searchClick": "searchClick"; }, never, never, false>;
|
|
13
15
|
}
|
|
@@ -1,42 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DetailsDialogConfig } from '../../classes/Classes';
|
|
3
3
|
import { MessageService } from '../../services/message.service';
|
|
4
4
|
import { DialogService } from '../../services/dialog.service';
|
|
5
|
+
import { SelectCommonComponent } from '../select-common/select-common.component';
|
|
6
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
7
|
+
import { ButtonService } from '../../services/button.service';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SelectComponent implements OnInit {
|
|
7
|
-
|
|
9
|
+
export declare class SelectComponent extends SelectCommonComponent implements OnInit {
|
|
10
|
+
protected messageService: MessageService;
|
|
11
|
+
protected dataService: DataServiceLib;
|
|
8
12
|
private dialogService;
|
|
9
|
-
|
|
13
|
+
private buttonService;
|
|
14
|
+
constructor(messageService: MessageService, dataService: DataServiceLib, dialogService: DialogService, buttonService: ButtonService);
|
|
10
15
|
ngOnInit(): void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
required: boolean;
|
|
17
|
-
defaultFirstValue: boolean;
|
|
18
|
-
readonlyMode: string;
|
|
19
|
-
hint: string;
|
|
20
|
-
placeholder: string;
|
|
21
|
-
multiple: boolean;
|
|
22
|
-
display: string;
|
|
23
|
-
value: any;
|
|
24
|
-
options: any;
|
|
25
|
-
masterOptions: any;
|
|
26
|
-
optionValue: string;
|
|
27
|
-
optionDisplay: string;
|
|
28
|
-
optionDisplayExtra: string;
|
|
29
|
-
nullable: boolean;
|
|
30
|
-
peekConfig: PeekDialogConfig;
|
|
31
|
-
infoMessage: string;
|
|
32
|
-
valueChange: EventEmitter<any>;
|
|
33
|
-
infoClick: EventEmitter<void>;
|
|
34
|
-
changed(): void;
|
|
35
|
-
onMouseEnter(): void;
|
|
36
|
-
onMouseLeave(): void;
|
|
37
|
-
onAddClick(event: MouseEvent): void;
|
|
38
|
-
onViewClick(event: MouseEvent): void;
|
|
39
|
-
onInfoClick(event: MouseEvent): void;
|
|
16
|
+
detailsConfig: DetailsDialogConfig;
|
|
17
|
+
onHoverChange(isHovered: boolean): void;
|
|
18
|
+
canCreate(): boolean;
|
|
19
|
+
canView(): boolean;
|
|
20
|
+
onPeekClick(event: MouseEvent, mode: 'create' | 'view'): void;
|
|
40
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "spa-select", never, { "
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "spa-select", never, { "detailsConfig": "detailsConfig"; }, {}, never, never, false>;
|
|
42
23
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BitwiseOption, Icon } from '../../classes/Classes';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectBitwiseComponent implements OnInit {
|
|
5
|
+
display: string;
|
|
6
|
+
hint: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
readonly: boolean;
|
|
9
|
+
width: string;
|
|
10
|
+
infoMessage: string;
|
|
11
|
+
options: {
|
|
12
|
+
name?: string;
|
|
13
|
+
value: number;
|
|
14
|
+
icon?: Icon;
|
|
15
|
+
}[];
|
|
16
|
+
set value(val: number);
|
|
17
|
+
get value(): number;
|
|
18
|
+
valueChange: EventEmitter<number>;
|
|
19
|
+
infoClick: EventEmitter<void>;
|
|
20
|
+
private _value;
|
|
21
|
+
bitwiseOptions: BitwiseOption[];
|
|
22
|
+
selectedValues: number[];
|
|
23
|
+
hasNames: boolean;
|
|
24
|
+
get selectedOptions(): BitwiseOption[];
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
onSelectionChange(event: any): void;
|
|
27
|
+
private updateSelectedValues;
|
|
28
|
+
onInfoClick(event: MouseEvent): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectBitwiseComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectBitwiseComponent, "spa-select-bitwise", never, { "display": "display"; "hint": "hint"; "required": "required"; "readonly": "readonly"; "width": "width"; "infoMessage": "infoMessage"; "options": "options"; "value": "value"; }, { "valueChange": "valueChange"; "infoClick": "infoClick"; }, never, never, false>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MessageService } from '../../services/message.service';
|
|
3
|
+
import { Action, Field } from '../../classes/Classes';
|
|
4
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SelectCommonComponent implements OnInit, OnDestroy {
|
|
7
|
+
protected messageService: MessageService;
|
|
8
|
+
protected dataService: DataServiceLib;
|
|
9
|
+
constructor(messageService: MessageService, dataService: DataServiceLib);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
displayValue: any;
|
|
13
|
+
isHovered: boolean;
|
|
14
|
+
private subscription;
|
|
15
|
+
width: string;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
defaultFirstValue: boolean;
|
|
19
|
+
readonlyMode: string;
|
|
20
|
+
hint: string;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
multiple: boolean;
|
|
23
|
+
display: string;
|
|
24
|
+
value: any;
|
|
25
|
+
options: any;
|
|
26
|
+
masterOptions: any;
|
|
27
|
+
masterField: string;
|
|
28
|
+
optionValue: string;
|
|
29
|
+
optionDisplay: string;
|
|
30
|
+
optionDisplayExtra: string;
|
|
31
|
+
nullable: boolean;
|
|
32
|
+
infoMessage: string;
|
|
33
|
+
copyContent: boolean;
|
|
34
|
+
loadAction: Action;
|
|
35
|
+
loadIDField: string;
|
|
36
|
+
field: Field;
|
|
37
|
+
data: any;
|
|
38
|
+
valueChange: EventEmitter<any>;
|
|
39
|
+
hoverChange: EventEmitter<boolean>;
|
|
40
|
+
setDefaultValue(): void;
|
|
41
|
+
changed(): void;
|
|
42
|
+
onMouseEnter(): void;
|
|
43
|
+
onMouseLeave(): void;
|
|
44
|
+
refresh(event: MouseEvent): void;
|
|
45
|
+
private transformLoadUrl;
|
|
46
|
+
getData(loadAction: Action): void;
|
|
47
|
+
ngOnDestroy(): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectCommonComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectCommonComponent, "spa-select-common", never, { "width": "width"; "readonly": "readonly"; "required": "required"; "defaultFirstValue": "defaultFirstValue"; "readonlyMode": "readonlyMode"; "hint": "hint"; "placeholder": "placeholder"; "multiple": "multiple"; "display": "display"; "value": "value"; "options": "options"; "masterOptions": "masterOptions"; "masterField": "masterField"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "optionDisplayExtra": "optionDisplayExtra"; "nullable": "nullable"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "loadAction": "loadAction"; "loadIDField": "loadIDField"; "field": "field"; "data": "data"; }, { "valueChange": "valueChange"; "hoverChange": "hoverChange"; }, never, ["[additionalButtons]"], false>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DetailsDialogConfig } from '../../classes/Classes';
|
|
3
|
+
import { MessageService } from '../../services/message.service';
|
|
4
|
+
import { DialogService } from '../../services/dialog.service';
|
|
5
|
+
import { SelectCommonComponent } from '../select-common/select-common.component';
|
|
6
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
7
|
+
import { ButtonService } from '../../services/button.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SelectInternalComponent extends SelectCommonComponent implements OnInit {
|
|
10
|
+
protected messageService: MessageService;
|
|
11
|
+
protected dataService: DataServiceLib;
|
|
12
|
+
private dialogService;
|
|
13
|
+
private buttonService;
|
|
14
|
+
constructor(messageService: MessageService, dataService: DataServiceLib, dialogService: DialogService, buttonService: ButtonService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
detailsConfig: DetailsDialogConfig;
|
|
17
|
+
onHoverChange(isHovered: boolean): void;
|
|
18
|
+
canCreate(): boolean;
|
|
19
|
+
canView(): boolean;
|
|
20
|
+
onPeekClick(event: MouseEvent, mode: 'create' | 'view'): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectInternalComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectInternalComponent, "spa-select-internal", never, { "detailsConfig": "detailsConfig"; }, {}, never, never, false>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SelectCommonComponent } from '../select-common/select-common.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectLiteComponent extends SelectCommonComponent implements OnInit {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectLiteComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectLiteComponent, "spa-select-lite", never, {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatStepper } from '@angular/material/stepper';
|
|
3
|
-
import { Step } from '../../classes/Classes';
|
|
3
|
+
import { Step, StepConfig } from '../../classes/Classes';
|
|
4
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class StepsComponent implements OnInit
|
|
6
|
-
|
|
7
|
+
export declare class StepsComponent implements OnInit {
|
|
8
|
+
private breakpointObserver;
|
|
9
|
+
private dataService;
|
|
10
|
+
constructor(breakpointObserver: BreakpointObserver, dataService: DataServiceLib);
|
|
7
11
|
ngOnInit(): void;
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
12
|
ngOnChanges(): void;
|
|
13
|
+
private observeScreenSize;
|
|
10
14
|
stepper: MatStepper;
|
|
11
15
|
value: string;
|
|
16
|
+
config: StepConfig;
|
|
17
|
+
data: any;
|
|
18
|
+
selectedIndex: number;
|
|
19
|
+
smallScreen: boolean;
|
|
12
20
|
steps: Step[];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
private loadSteps;
|
|
22
|
+
private updateSelectedStep;
|
|
23
|
+
get shouldShowLabels(): boolean;
|
|
24
|
+
getVisibleSteps(): Step[];
|
|
16
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepsComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "spa-steps", never, { "value": "value"; "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "spa-steps", never, { "value": "value"; "config": "config"; "data": "data"; }, {}, never, never, false>;
|
|
18
27
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MessageService } from '../../services/message.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SuffixComponent implements OnInit {
|
|
5
|
+
private messageService;
|
|
6
|
+
constructor(messageService: MessageService);
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
label: string;
|
|
9
|
+
infoMessage: string;
|
|
10
|
+
copyContent: boolean;
|
|
11
|
+
isHovered: boolean;
|
|
12
|
+
clearContent: boolean;
|
|
13
|
+
value: any;
|
|
14
|
+
infoClick: EventEmitter<void>;
|
|
15
|
+
copyClick: EventEmitter<string>;
|
|
16
|
+
clearClick: EventEmitter<void>;
|
|
17
|
+
valueChange: EventEmitter<any>;
|
|
18
|
+
onInfoClick(event: MouseEvent): void;
|
|
19
|
+
onCopyClick(event: MouseEvent): void;
|
|
20
|
+
onClearClick(event: MouseEvent): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuffixComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuffixComponent, "spa-suffix", never, { "label": "label"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "isHovered": "isHovered"; "clearContent": "clearContent"; "value": "value"; }, { "infoClick": "infoClick"; "copyClick": "copyClick"; "clearClick": "clearClick"; "valueChange": "valueChange"; }, never, never, false>;
|
|
23
|
+
}
|
|
@@ -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,36 +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[];
|
|
39
|
+
originalTableLoadAction: Action;
|
|
35
40
|
tablePaginator: MatPaginator;
|
|
36
|
-
hideTitle: boolean;
|
|
37
41
|
data: any;
|
|
42
|
+
tileData: any;
|
|
38
43
|
config: TableConfig;
|
|
39
44
|
reload: Subject<boolean>;
|
|
45
|
+
activeTab: boolean;
|
|
46
|
+
inTab: boolean;
|
|
40
47
|
dataLoad: EventEmitter<any>;
|
|
48
|
+
actionSuccess: EventEmitter<any>;
|
|
41
49
|
refreshClick: EventEmitter<any>;
|
|
42
50
|
searchClick: EventEmitter<any>;
|
|
43
51
|
createClick: EventEmitter<any>;
|
|
44
52
|
actionClick: EventEmitter<any>;
|
|
45
53
|
inputChange: EventEmitter<any>;
|
|
54
|
+
actionResponse: EventEmitter<any>;
|
|
46
55
|
private initializeComponent;
|
|
47
56
|
private updateTableConfiguration;
|
|
48
57
|
private setupDataLoading;
|
|
49
58
|
loadData(action: Action, data: any): void;
|
|
50
59
|
inputChanged(event: any): void;
|
|
51
60
|
formDefaults(): void;
|
|
52
|
-
setColumns(): void;
|
|
53
61
|
setButtons(): void;
|
|
54
62
|
getButton(name: string): Button;
|
|
55
63
|
getIcon(buttonName: string): string;
|
|
@@ -60,8 +68,10 @@ export declare class TableComponent implements OnInit {
|
|
|
60
68
|
testColorCondition(row: any, color: Color): boolean;
|
|
61
69
|
showBanner(message: string): void;
|
|
62
70
|
testDisabled(row: any, buttonName: string): boolean;
|
|
63
|
-
|
|
71
|
+
lastSearch: any;
|
|
64
72
|
searchClicked(x: any): void;
|
|
73
|
+
tileClicked(tile: any): void;
|
|
74
|
+
tileUnClicked(tile: any): void;
|
|
65
75
|
refreshClicked(): void;
|
|
66
76
|
dataLoaded(x: any): void;
|
|
67
77
|
actionClicked(name: string, row: any): void;
|
|
@@ -72,11 +82,10 @@ export declare class TableComponent implements OnInit {
|
|
|
72
82
|
newModel(): void;
|
|
73
83
|
editModel(row: any): void;
|
|
74
84
|
private open;
|
|
75
|
-
private openDetailsDialog;
|
|
76
85
|
deleteModel(row: any): void;
|
|
77
86
|
doAction(buttonName: string, row: any): void;
|
|
78
|
-
execAction(
|
|
87
|
+
execAction(button: Button, row: any): void;
|
|
79
88
|
private getElevationClass;
|
|
80
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
81
|
-
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>;
|
|
82
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
|
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { TableConfig, Button, TileConfig } from '../../classes/Classes';
|
|
2
|
+
import { TableConfig, Button, TileConfig, DetailsDialogConfig } from '../../classes/Classes';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { ButtonService } from '../../services/button.service';
|
|
5
|
+
import { DialogService } from '../../services/dialog.service';
|
|
6
|
+
import { MessageService } from '../../services/message.service';
|
|
7
|
+
import { CsvService } from '../../services/csv.service';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
9
|
export declare class TableHeaderComponent {
|
|
7
10
|
private buttonService;
|
|
8
|
-
|
|
11
|
+
private dialogService;
|
|
12
|
+
private messageService;
|
|
13
|
+
private csvService;
|
|
14
|
+
constructor(buttonService: ButtonService, dialogService: DialogService, messageService: MessageService, csvService: CsvService);
|
|
9
15
|
ngOnInit(): void;
|
|
10
16
|
createButton: Button;
|
|
17
|
+
lastSearch: any;
|
|
11
18
|
config: TableConfig;
|
|
12
19
|
hideTitle: boolean;
|
|
13
20
|
tableDataSource: any;
|
|
@@ -15,17 +22,25 @@ export declare class TableHeaderComponent {
|
|
|
15
22
|
smallScreen: boolean;
|
|
16
23
|
tileReload: Subject<boolean>;
|
|
17
24
|
showFilterButton: boolean;
|
|
25
|
+
data: any;
|
|
26
|
+
tileData: any;
|
|
18
27
|
createClick: EventEmitter<void>;
|
|
19
28
|
customClick: EventEmitter<any>;
|
|
20
29
|
refreshClick: EventEmitter<void>;
|
|
21
30
|
tileClick: EventEmitter<string>;
|
|
31
|
+
tileUnClick: EventEmitter<string>;
|
|
32
|
+
uploadDetailsDialog: DetailsDialogConfig;
|
|
22
33
|
onButtonClick(button: Button): void;
|
|
34
|
+
onDownloadClick(): void;
|
|
35
|
+
onUploadClick(): void;
|
|
23
36
|
onRefreshClick(): void;
|
|
24
|
-
onTileClick(
|
|
37
|
+
onTileClick(tile: any): void;
|
|
38
|
+
onTileUnClick(tile: any): void;
|
|
25
39
|
getHeaderButtons(): Button[];
|
|
40
|
+
testVisibleHeaderButton(btn: any): boolean;
|
|
26
41
|
testVisible(button: Button): boolean;
|
|
27
42
|
testDisabled(button: Button): boolean;
|
|
28
43
|
getButtonColor(button: Button, row: any): string;
|
|
29
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; }, 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>;
|
|
31
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
|
}
|