tin-spa 10.0.0 → 14.3.11
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 +265 -0
- package/esm2020/lib/classes/TinCore.mjs +401 -0
- package/esm2020/lib/components/accounts/accountDialog.component.mjs +56 -0
- package/esm2020/lib/components/accounts/accounts.component.mjs +70 -0
- package/esm2020/lib/components/activity/activity.component.mjs +24 -0
- package/esm2020/lib/components/alert/alert.component.mjs +29 -0
- package/esm2020/lib/components/attach/attach.component.mjs +86 -0
- package/esm2020/lib/components/bug/bug.component.mjs +14 -0
- package/esm2020/lib/components/change-password/change-password.component.mjs +92 -0
- package/esm2020/lib/components/check/check.component.mjs +67 -0
- package/esm2020/lib/components/chips/chips.component.mjs +58 -0
- package/esm2020/lib/components/create-account/create-account.component.mjs +109 -0
- package/esm2020/lib/components/customers/customers.component.mjs +60 -0
- package/esm2020/lib/components/date/date.component.mjs +101 -0
- package/esm2020/lib/components/datetime/datetime.component.mjs +52 -0
- package/esm2020/lib/components/departments/departments.component.mjs +24 -0
- package/esm2020/lib/components/employees/employees.component.mjs +21 -0
- package/esm2020/lib/components/filter/filter.component.mjs +54 -0
- package/esm2020/lib/components/form/form.component.mjs +191 -0
- package/esm2020/lib/components/grades/grades.component.mjs +14 -0
- package/esm2020/lib/components/inventory/inventory.component.mjs +99 -0
- package/esm2020/lib/components/inventory/quantityDialog.component.mjs +53 -0
- package/esm2020/lib/components/invitations/invitations.component.mjs +14 -0
- package/esm2020/lib/components/invitations-table/invitations-table.component.mjs +70 -0
- package/esm2020/lib/components/label/label.component.mjs +25 -0
- package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +68 -0
- package/esm2020/lib/components/loader/loader.component.mjs +25 -0
- package/esm2020/lib/components/login/login.component.mjs +127 -0
- package/esm2020/lib/components/logs/logs.component.mjs +37 -0
- package/esm2020/lib/components/membership/membership.component.mjs +48 -0
- package/esm2020/lib/components/message/messageDialog.component.mjs +33 -0
- package/esm2020/lib/components/money/currency-input-mask.directive.mjs +185 -0
- package/esm2020/lib/components/money/currency-input-mask.module.mjs +28 -0
- package/esm2020/lib/components/money/money.component.mjs +120 -0
- package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +84 -0
- package/esm2020/lib/components/notifications/notifications.component.mjs +14 -0
- package/esm2020/lib/components/number/number.component.mjs +116 -0
- package/esm2020/lib/components/option/option.component.mjs +67 -0
- package/esm2020/lib/components/plans/plans.component.mjs +47 -0
- package/esm2020/lib/components/positions/positions.component.mjs +21 -0
- package/esm2020/lib/components/profile/profile.component.mjs +92 -0
- package/esm2020/lib/components/recover-account/recover-account.component.mjs +46 -0
- package/esm2020/lib/components/roles/addRoleDialog.component.mjs +60 -0
- package/esm2020/lib/components/roles/roles.component.mjs +91 -0
- package/esm2020/lib/components/search/search.component.mjs +31 -0
- package/esm2020/lib/components/select/select.component.mjs +138 -0
- package/esm2020/lib/components/settings/settings.component.mjs +62 -0
- package/esm2020/lib/components/signup/signup.component.mjs +50 -0
- package/esm2020/lib/components/steps/steps.component.mjs +90 -0
- package/esm2020/lib/components/suppliers/suppliers.component.mjs +50 -0
- package/esm2020/lib/components/table/detailsDialog.component.mjs +232 -0
- package/esm2020/lib/components/table/table.component.mjs +406 -0
- package/esm2020/lib/components/table-action/table-action.component.mjs +46 -0
- package/esm2020/lib/components/table-header/table-header.component.mjs +76 -0
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +226 -0
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +406 -0
- package/esm2020/lib/components/table-row/table-row.component.mjs +58 -0
- package/esm2020/lib/components/tasks/tasks.component.mjs +86 -0
- package/esm2020/lib/components/tenant-settings/inviteDialog.component.mjs +60 -0
- package/esm2020/lib/components/tenant-settings/tenant-settings.component.mjs +155 -0
- package/esm2020/lib/components/tenants/tenants.component.mjs +47 -0
- package/esm2020/lib/components/text/text.component.mjs +181 -0
- package/esm2020/lib/components/tiles/tiles.component.mjs +81 -0
- package/esm2020/lib/components/tin-spa.component.mjs +19 -0
- package/esm2020/lib/components/transactions/transactDialog.component.mjs +80 -0
- package/esm2020/lib/components/transactions/transactions.component.mjs +101 -0
- package/esm2020/lib/components/users/users.component.mjs +118 -0
- package/esm2020/lib/components/viewer/viewer.component.mjs +79 -0
- package/esm2020/lib/components/viewer/viewerDialog.component.mjs +88 -0
- package/esm2020/lib/components/welcome/welcome.component.mjs +86 -0
- package/esm2020/lib/modules/admin/admin-routing.module.mjs +61 -0
- package/esm2020/lib/modules/admin/admin.module.mjs +26 -0
- package/esm2020/lib/modules/index/index-routing.module.mjs +27 -0
- package/esm2020/lib/modules/index/index.module.mjs +26 -0
- package/esm2020/lib/modules/spa-admin.module.mjs +71 -0
- package/esm2020/lib/modules/spa-index.module.mjs +54 -0
- package/esm2020/lib/modules/spa-mat.module.mjs +84 -0
- package/esm2020/lib/modules/spa-user.module.mjs +47 -0
- package/esm2020/lib/modules/user/user-routing.module.mjs +23 -0
- package/esm2020/lib/modules/user/user.module.mjs +26 -0
- package/esm2020/lib/pipes/camelToWords.pipe.mjs +17 -0
- package/esm2020/lib/services/auth.service.mjs +174 -0
- package/esm2020/lib/services/button.service.mjs +102 -0
- package/esm2020/lib/services/condition.service.mjs +32 -0
- package/esm2020/lib/services/datalib.service.mjs +387 -0
- package/esm2020/lib/services/dialog.service.mjs +81 -0
- package/esm2020/lib/services/export.service.mjs +16 -0
- package/esm2020/lib/services/http.service.mjs +79 -0
- package/esm2020/lib/services/loader-interceptor.service.mjs +86 -0
- package/esm2020/lib/services/loader.service.mjs +17 -0
- package/esm2020/lib/services/log.service.mjs +77 -0
- package/esm2020/lib/services/message.service.mjs +59 -0
- package/esm2020/lib/services/storage.service.mjs +34 -0
- package/esm2020/lib/services/table-config.service.mjs +30 -0
- package/esm2020/lib/services/tin-spa.service.mjs +14 -0
- package/esm2020/lib/tin-spa.module.mjs +183 -0
- package/esm2020/public-api.mjs +80 -0
- package/esm2020/tin-spa.mjs +5 -0
- package/fesm2015/tin-spa.mjs +7454 -0
- package/fesm2015/tin-spa.mjs.map +1 -0
- package/fesm2020/tin-spa.mjs +7410 -0
- package/fesm2020/tin-spa.mjs.map +1 -0
- package/index.d.ts +5 -3408
- package/lib/classes/Classes.d.ts +431 -0
- package/lib/classes/TinCore.d.ts +48 -0
- package/lib/components/accounts/accountDialog.component.d.ts +27 -0
- package/lib/components/accounts/accounts.component.d.ts +25 -0
- package/lib/components/activity/activity.component.d.ts +11 -0
- package/lib/components/alert/alert.component.d.ts +14 -0
- package/lib/components/attach/attach.component.d.ts +23 -0
- package/lib/components/bug/bug.component.d.ts +8 -0
- package/lib/components/change-password/change-password.component.d.ts +27 -0
- package/lib/components/check/check.component.d.ts +24 -0
- package/lib/components/chips/chips.component.d.ts +18 -0
- package/lib/components/create-account/create-account.component.d.ts +33 -0
- package/lib/components/customers/customers.component.d.ts +18 -0
- package/lib/components/date/date.component.d.ts +29 -0
- package/lib/components/datetime/datetime.component.d.ts +18 -0
- package/lib/components/departments/departments.component.d.ts +14 -0
- package/lib/components/employees/employees.component.d.ts +12 -0
- package/lib/components/filter/filter.component.d.ts +19 -0
- package/lib/components/form/form.component.d.ts +36 -0
- package/lib/components/grades/grades.component.d.ts +8 -0
- package/lib/components/inventory/inventory.component.d.ts +25 -0
- package/lib/components/inventory/quantityDialog.component.d.ts +23 -0
- package/lib/components/invitations/invitations.component.d.ts +8 -0
- package/lib/components/invitations-table/invitations-table.component.d.ts +19 -0
- package/lib/components/label/label.component.d.ts +11 -0
- package/lib/components/list-dialog/list-dialog.component.d.ts +23 -0
- package/lib/components/loader/loader.component.d.ts +12 -0
- package/lib/components/login/login.component.d.ts +39 -0
- package/lib/components/logs/logs.component.d.ts +18 -0
- package/lib/components/membership/membership.component.d.ts +17 -0
- package/lib/components/message/messageDialog.component.d.ts +15 -0
- package/lib/components/money/currency-input-mask.directive.d.ts +41 -0
- package/lib/components/money/currency-input-mask.module.d.ts +9 -0
- package/lib/components/money/money.component.d.ts +33 -0
- package/lib/components/nav-menu/nav-menu.component.d.ts +34 -0
- package/lib/components/notifications/notifications.component.d.ts +8 -0
- package/lib/components/number/number.component.d.ts +35 -0
- package/lib/components/option/option.component.d.ts +23 -0
- package/lib/components/plans/plans.component.d.ts +17 -0
- package/lib/components/positions/positions.component.d.ts +12 -0
- package/lib/components/profile/profile.component.d.ts +34 -0
- package/lib/components/recover-account/recover-account.component.d.ts +18 -0
- package/lib/components/roles/addRoleDialog.component.d.ts +24 -0
- package/lib/components/roles/roles.component.d.ts +30 -0
- package/lib/components/search/search.component.d.ts +13 -0
- package/lib/components/select/select.component.d.ts +42 -0
- package/lib/components/settings/settings.component.d.ts +19 -0
- package/lib/components/signup/signup.component.d.ts +23 -0
- package/lib/components/steps/steps.component.d.ts +18 -0
- package/lib/components/suppliers/suppliers.component.d.ts +17 -0
- package/lib/components/table/detailsDialog.component.d.ts +64 -0
- package/lib/components/table/table.component.d.ts +82 -0
- package/lib/components/table-action/table-action.component.d.ts +22 -0
- package/lib/components/table-header/table-header.component.d.ts +31 -0
- package/lib/components/table-internal/detailsDialog-internal.component.d.ts +64 -0
- package/lib/components/table-internal/table-internal.component.d.ts +82 -0
- package/lib/components/table-row/table-row.component.d.ts +28 -0
- package/lib/components/tasks/tasks.component.d.ts +27 -0
- package/lib/components/tenant-settings/inviteDialog.component.d.ts +28 -0
- package/lib/components/tenant-settings/tenant-settings.component.d.ts +42 -0
- package/lib/components/tenants/tenants.component.d.ts +17 -0
- package/lib/components/text/text.component.d.ts +46 -0
- package/lib/components/tiles/tiles.component.d.ts +25 -0
- package/lib/components/tin-spa.component.d.ts +5 -0
- package/lib/components/transactions/transactDialog.component.d.ts +26 -0
- package/lib/components/transactions/transactions.component.d.ts +31 -0
- package/lib/components/users/users.component.d.ts +36 -0
- package/lib/components/viewer/viewer.component.d.ts +25 -0
- package/lib/components/viewer/viewerDialog.component.d.ts +22 -0
- package/lib/components/welcome/welcome.component.d.ts +25 -0
- package/lib/modules/admin/admin-routing.module.d.ts +7 -0
- package/lib/modules/admin/admin.module.d.ts +9 -0
- package/lib/modules/index/index-routing.module.d.ts +7 -0
- package/lib/modules/index/index.module.d.ts +9 -0
- package/lib/modules/spa-admin.module.d.ts +15 -0
- package/lib/modules/spa-index.module.d.ts +13 -0
- package/lib/modules/spa-mat.module.d.ts +38 -0
- package/lib/modules/spa-user.module.d.ts +11 -0
- package/lib/modules/user/user-routing.module.d.ts +7 -0
- package/lib/modules/user/user.module.d.ts +9 -0
- package/lib/pipes/camelToWords.pipe.d.ts +7 -0
- package/lib/services/auth.service.d.ts +61 -0
- package/lib/services/button.service.d.ts +27 -0
- package/lib/services/condition.service.d.ts +10 -0
- package/lib/services/datalib.service.d.ts +77 -0
- package/lib/services/dialog.service.d.ts +19 -0
- package/lib/services/export.service.d.ts +6 -0
- package/lib/services/http.service.d.ts +22 -0
- package/lib/services/loader-interceptor.service.d.ts +22 -0
- package/lib/services/loader.service.d.ts +8 -0
- package/lib/services/log.service.d.ts +19 -0
- package/lib/services/message.service.d.ts +16 -0
- package/lib/services/storage.service.d.ts +10 -0
- package/lib/services/table-config.service.d.ts +9 -0
- package/lib/services/tin-spa.service.d.ts +6 -0
- package/lib/tin-spa.module.d.ts +66 -0
- package/package.json +13 -8
- package/public-api.d.ts +69 -0
- package/fesm2022/tin-spa.mjs +0 -12474
- package/fesm2022/tin-spa.mjs.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthService } from '../../services/auth.service';
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PositionsComponent implements OnInit {
|
|
6
|
+
dataService: DataServiceLib;
|
|
7
|
+
authService: AuthService;
|
|
8
|
+
constructor(dataService: DataServiceLib, authService: AuthService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PositionsComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PositionsComponent, "spa-positions", never, {}, {}, never, never, false>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AuthService } from './../../services/auth.service';
|
|
2
|
+
import { MessageService } from './../../services/message.service';
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
|
+
import { OnInit } from '@angular/core';
|
|
5
|
+
import { AppConfig, Profile } from '../../classes/Classes';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
7
|
+
import { HttpService } from '../../services/http.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ProfileComponent implements OnInit {
|
|
10
|
+
dataService: DataServiceLib;
|
|
11
|
+
private messageService;
|
|
12
|
+
private httpService;
|
|
13
|
+
private router;
|
|
14
|
+
private authService;
|
|
15
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, httpService: HttpService, router: Router, authService: AuthService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
isProcessing: boolean;
|
|
18
|
+
myRole: any;
|
|
19
|
+
initials: string;
|
|
20
|
+
appConfig: AppConfig;
|
|
21
|
+
selfProfile: boolean;
|
|
22
|
+
profile: Profile;
|
|
23
|
+
roles: any;
|
|
24
|
+
approvalRoles: any;
|
|
25
|
+
employees: any;
|
|
26
|
+
loadProfile(userName: string): void;
|
|
27
|
+
loadRoles(): void;
|
|
28
|
+
changePassword(): void;
|
|
29
|
+
gotoUsers(): void;
|
|
30
|
+
update(): void;
|
|
31
|
+
updateProfile(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComponent, "spa-profile", never, { "appConfig": "appConfig"; }, {}, never, never, false>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
|
+
import { AuthService } from '../../services/auth.service';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { Location } from '@angular/common';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RecoverAccountComponent implements OnInit {
|
|
8
|
+
private location;
|
|
9
|
+
private dataService;
|
|
10
|
+
authService: AuthService;
|
|
11
|
+
private messageService;
|
|
12
|
+
constructor(location: Location, dataService: DataServiceLib, authService: AuthService, messageService: MessageService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
userName: string;
|
|
15
|
+
recover(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecoverAccountComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecoverAccountComponent, "spa-recover-account", never, {}, {}, never, never, false>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MessageService } from '../../services/message.service';
|
|
2
|
+
import { AuthService } from '../../services/auth.service';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
4
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
|
+
import { Role } from '../../classes/Classes';
|
|
7
|
+
import { LoaderService } from '../../services/loader.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class addRoleDialog implements OnInit {
|
|
10
|
+
private loaderService;
|
|
11
|
+
private messageService;
|
|
12
|
+
private dataService;
|
|
13
|
+
private authService;
|
|
14
|
+
private dialogRef;
|
|
15
|
+
data: any;
|
|
16
|
+
constructor(loaderService: LoaderService, messageService: MessageService, dataService: DataServiceLib, authService: AuthService, dialogRef: MatDialogRef<addRoleDialog>, data: any);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
capItems: any;
|
|
19
|
+
isProcessing: boolean;
|
|
20
|
+
role: Role;
|
|
21
|
+
submit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<addRoleDialog, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<addRoleDialog, "app-addRole", never, {}, {}, never, never, false>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AppConfig } from './../../classes/Classes';
|
|
2
|
+
import { OnInit } from "@angular/core";
|
|
3
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
4
|
+
import { DataServiceLib } from "../../services/datalib.service";
|
|
5
|
+
import { Role } from "../../classes/Classes";
|
|
6
|
+
import { Router } from "@angular/router";
|
|
7
|
+
import { MessageService } from '../../services/message.service';
|
|
8
|
+
import { AuthService } from '../../services/auth.service';
|
|
9
|
+
import { HttpService } from '../../services/http.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class RolesComponent implements OnInit {
|
|
12
|
+
private httpService;
|
|
13
|
+
private router;
|
|
14
|
+
private authService;
|
|
15
|
+
private dataService;
|
|
16
|
+
dialog: MatDialog;
|
|
17
|
+
private messageService;
|
|
18
|
+
constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialog: MatDialog, messageService: MessageService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
isProcessing: boolean;
|
|
21
|
+
roles: Role[];
|
|
22
|
+
appConfig: AppConfig;
|
|
23
|
+
loadRoles(): void;
|
|
24
|
+
refresh(): void;
|
|
25
|
+
addRole(): void;
|
|
26
|
+
updateRole(role: Role): void;
|
|
27
|
+
deleteRole(role: Role): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RolesComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolesComponent, "spa-roles", never, {}, {}, never, never, false>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { SearchConfig } from '../../classes/Classes';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SearchComponent implements OnInit {
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
data: any;
|
|
8
|
+
config: SearchConfig;
|
|
9
|
+
searchClick: EventEmitter<any>;
|
|
10
|
+
search(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "spa-search", never, { "config": "config"; }, { "searchClick": "searchClick"; }, never, never, false>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { PeekDialogConfig } from '../../classes/Classes';
|
|
3
|
+
import { MessageService } from '../../services/message.service';
|
|
4
|
+
import { DialogService } from '../../services/dialog.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SelectComponent implements OnInit {
|
|
7
|
+
private messageService;
|
|
8
|
+
private dialogService;
|
|
9
|
+
constructor(messageService: MessageService, dialogService: DialogService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
displayValue: any;
|
|
13
|
+
isHovered: boolean;
|
|
14
|
+
width: string;
|
|
15
|
+
readonly: boolean;
|
|
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;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "spa-select", 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"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "optionDisplayExtra": "optionDisplayExtra"; "nullable": "nullable"; "peekConfig": "peekConfig"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "infoClick": "infoClick"; }, never, never, false>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
|
+
import { MessageService } from '../../services/message.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SettingsComponent implements OnInit {
|
|
6
|
+
private dataService;
|
|
7
|
+
private messageService;
|
|
8
|
+
constructor(dataService: DataServiceLib, messageService: MessageService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
_filterText: string;
|
|
11
|
+
settings: any;
|
|
12
|
+
isProcessing: boolean;
|
|
13
|
+
applyFilter(filterValue: string): void;
|
|
14
|
+
loadSettings(): void;
|
|
15
|
+
updateSetting(setting: any): void;
|
|
16
|
+
addSetting(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "spa-settings", never, {}, {}, never, never, false>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MessageService } from '../../services/message.service';
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
|
+
import { AuthService } from '../../services/auth.service';
|
|
5
|
+
import { User, Profile, Account } from '../../classes/Classes';
|
|
6
|
+
import { HttpService } from '../../services/http.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SignupComponent implements OnInit {
|
|
9
|
+
private httpService;
|
|
10
|
+
private messageService;
|
|
11
|
+
private dataService;
|
|
12
|
+
private authService;
|
|
13
|
+
constructor(httpService: HttpService, messageService: MessageService, dataService: DataServiceLib, authService: AuthService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
isProcessing: boolean;
|
|
16
|
+
user: User;
|
|
17
|
+
profile: Profile;
|
|
18
|
+
account: Account;
|
|
19
|
+
confirmPassword: string;
|
|
20
|
+
create(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignupComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SignupComponent, "spa-signup", never, {}, {}, never, never, false>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import { MatStepper } from '@angular/material/stepper';
|
|
3
|
+
import { Step } from '../../classes/Classes';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class StepsComponent implements OnInit, AfterViewInit {
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
stepper: MatStepper;
|
|
11
|
+
value: string;
|
|
12
|
+
steps: Step[];
|
|
13
|
+
setStepper(): void;
|
|
14
|
+
pushStepper(count: number): void;
|
|
15
|
+
pushSteps(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepsComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "spa-steps", never, { "value": "value"; "steps": "steps"; }, {}, never, never, false>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
|
+
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { AuthService } from '../../services/auth.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SuppliersComponent implements OnInit {
|
|
8
|
+
private dataService;
|
|
9
|
+
private messageService;
|
|
10
|
+
authService: AuthService;
|
|
11
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
formConfig: FormConfig;
|
|
14
|
+
config: TableConfig;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuppliersComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuppliersComponent, "spa-suppliers", never, {}, {}, never, never, false>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } 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 { Subject } from 'rxjs';
|
|
9
|
+
import { ButtonService } from '../../services/button.service';
|
|
10
|
+
import { DialogService } from '../../services/dialog.service';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class DetailsDialog implements OnInit {
|
|
13
|
+
private breakpointObserver;
|
|
14
|
+
private loaderService;
|
|
15
|
+
dataService: DataServiceLib;
|
|
16
|
+
private messageService;
|
|
17
|
+
private dialogRef;
|
|
18
|
+
detailsConfig: DetailsDialogConfig;
|
|
19
|
+
private buttonService;
|
|
20
|
+
private dialogService;
|
|
21
|
+
constructor(breakpointObserver: BreakpointObserver, loaderService: LoaderService, dataService: DataServiceLib, messageService: MessageService, dialogRef: MatDialogRef<DetailsDialog>, detailsConfig: DetailsDialogConfig, buttonService: ButtonService, dialogService: DialogService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
titleAction: string;
|
|
24
|
+
loadByAction: boolean;
|
|
25
|
+
extraButtons: Button[];
|
|
26
|
+
buttons: Button[];
|
|
27
|
+
createButton: Button;
|
|
28
|
+
editButton: Button;
|
|
29
|
+
deleteButton: Button;
|
|
30
|
+
fileField: Field;
|
|
31
|
+
files: any[];
|
|
32
|
+
tableReload: Subject<boolean>;
|
|
33
|
+
tableConfig: TableConfig;
|
|
34
|
+
tableConfigs: any;
|
|
35
|
+
details: any;
|
|
36
|
+
formConfig: FormConfig;
|
|
37
|
+
smallScreen: boolean;
|
|
38
|
+
isLoadComplete: boolean;
|
|
39
|
+
isProcessing: boolean;
|
|
40
|
+
inputChange: EventEmitter<any>;
|
|
41
|
+
loadData(action: Action, reload: any): void;
|
|
42
|
+
inputChanged(event: any): void;
|
|
43
|
+
setMode(newMode: any): void;
|
|
44
|
+
setTitleAction(): void;
|
|
45
|
+
getButton(name: string): Button;
|
|
46
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
47
|
+
testVisible(row: any, buttonName: string): boolean;
|
|
48
|
+
testVisibleTab(tblConfig: TableConfig): boolean;
|
|
49
|
+
getButtonColor(button: Button, row: any): string;
|
|
50
|
+
getVisibleFields(): Field[];
|
|
51
|
+
create(): void;
|
|
52
|
+
edit(): void;
|
|
53
|
+
delete(): void;
|
|
54
|
+
custom(button: Button): void;
|
|
55
|
+
private openNestedDetailsDialog;
|
|
56
|
+
private refreshData;
|
|
57
|
+
handleButtonAction(buttonName: string): void;
|
|
58
|
+
private validateForm;
|
|
59
|
+
private prepareActionData;
|
|
60
|
+
private executeAction;
|
|
61
|
+
private performApiCall;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialog, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialog, "app-viewModel", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } 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 * as i0 from "@angular/core";
|
|
14
|
+
export declare class TableComponent implements OnInit {
|
|
15
|
+
private dataService;
|
|
16
|
+
private messageService;
|
|
17
|
+
private breakpointObserver;
|
|
18
|
+
dialog: MatDialog;
|
|
19
|
+
private buttonService;
|
|
20
|
+
private dialogService;
|
|
21
|
+
private tableConfigService;
|
|
22
|
+
private conditionService;
|
|
23
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnChanges(): void;
|
|
26
|
+
elevation: string;
|
|
27
|
+
actionsWidth: string;
|
|
28
|
+
showFilterButton: boolean;
|
|
29
|
+
tileReload: Subject<boolean>;
|
|
30
|
+
smallScreen: boolean;
|
|
31
|
+
tableDataSource: any;
|
|
32
|
+
dataSource: any[];
|
|
33
|
+
displayedColumns: any[];
|
|
34
|
+
displayedButtons: any[];
|
|
35
|
+
tablePaginator: MatPaginator;
|
|
36
|
+
hideTitle: boolean;
|
|
37
|
+
data: any;
|
|
38
|
+
config: TableConfig;
|
|
39
|
+
reload: Subject<boolean>;
|
|
40
|
+
dataLoad: EventEmitter<any>;
|
|
41
|
+
refreshClick: EventEmitter<any>;
|
|
42
|
+
searchClick: EventEmitter<any>;
|
|
43
|
+
createClick: EventEmitter<any>;
|
|
44
|
+
actionClick: EventEmitter<any>;
|
|
45
|
+
inputChange: EventEmitter<any>;
|
|
46
|
+
private initializeComponent;
|
|
47
|
+
private updateTableConfiguration;
|
|
48
|
+
private setupDataLoading;
|
|
49
|
+
loadData(action: Action, data: any): void;
|
|
50
|
+
inputChanged(event: any): void;
|
|
51
|
+
formDefaults(): void;
|
|
52
|
+
setColumns(): void;
|
|
53
|
+
setButtons(): void;
|
|
54
|
+
getButton(name: string): Button;
|
|
55
|
+
getIcon(buttonName: string): string;
|
|
56
|
+
getButtonColor(button: Button, row: any): string;
|
|
57
|
+
getOptions(column: any): Column;
|
|
58
|
+
getColor(value: any, options: any[]): string;
|
|
59
|
+
testIconCondition(row: any, icon: Icon): boolean;
|
|
60
|
+
testColorCondition(row: any, color: Color): boolean;
|
|
61
|
+
showBanner(message: string): void;
|
|
62
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
63
|
+
testVisible(row: any, buttonName: string): boolean;
|
|
64
|
+
searchClicked(x: any): void;
|
|
65
|
+
refreshClicked(): void;
|
|
66
|
+
dataLoaded(x: any): void;
|
|
67
|
+
actionClicked(name: string, row: any): void;
|
|
68
|
+
columnClicked(column: Column, row: any): void;
|
|
69
|
+
customModel(name: any, row: any): void;
|
|
70
|
+
actionClickedEmit(name: any, row: any): void;
|
|
71
|
+
viewModel(row: any): void;
|
|
72
|
+
newModel(): void;
|
|
73
|
+
editModel(row: any): void;
|
|
74
|
+
private open;
|
|
75
|
+
private openDetailsDialog;
|
|
76
|
+
deleteModel(row: any): void;
|
|
77
|
+
doAction(buttonName: string, row: any): void;
|
|
78
|
+
execAction(b: Button, row: any): void;
|
|
79
|
+
private getElevationClass;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "spa-table", never, { "hideTitle": "hideTitle"; "data": "data"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Button, TableConfig } from '../../classes/Classes';
|
|
3
|
+
import { ButtonService } from '../../services/button.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TableActionComponent {
|
|
6
|
+
private buttonService;
|
|
7
|
+
constructor(buttonService: ButtonService);
|
|
8
|
+
displayedButtons: Button[];
|
|
9
|
+
config: TableConfig;
|
|
10
|
+
row: any;
|
|
11
|
+
actionClick: EventEmitter<{
|
|
12
|
+
name: string;
|
|
13
|
+
row: any;
|
|
14
|
+
}>;
|
|
15
|
+
testVisible(row: any, buttonName: string): boolean;
|
|
16
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
17
|
+
getButtonColor(button: Button, row: any): string;
|
|
18
|
+
getIcon(buttonName: string): string;
|
|
19
|
+
onActionClick(buttonName: string, row: any): void;
|
|
20
|
+
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>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { TableConfig, Button, TileConfig } from '../../classes/Classes';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { ButtonService } from '../../services/button.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TableHeaderComponent {
|
|
7
|
+
private buttonService;
|
|
8
|
+
constructor(buttonService: ButtonService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
createButton: Button;
|
|
11
|
+
config: TableConfig;
|
|
12
|
+
hideTitle: boolean;
|
|
13
|
+
tableDataSource: any;
|
|
14
|
+
tileConfig: TileConfig;
|
|
15
|
+
smallScreen: boolean;
|
|
16
|
+
tileReload: Subject<boolean>;
|
|
17
|
+
showFilterButton: boolean;
|
|
18
|
+
createClick: EventEmitter<void>;
|
|
19
|
+
customClick: EventEmitter<any>;
|
|
20
|
+
refreshClick: EventEmitter<void>;
|
|
21
|
+
tileClick: EventEmitter<string>;
|
|
22
|
+
onButtonClick(button: Button): void;
|
|
23
|
+
onRefreshClick(): void;
|
|
24
|
+
onTileClick(tileName: string): void;
|
|
25
|
+
getHeaderButtons(): Button[];
|
|
26
|
+
testVisible(button: Button): boolean;
|
|
27
|
+
testDisabled(button: Button): boolean;
|
|
28
|
+
getButtonColor(button: Button, row: any): string;
|
|
29
|
+
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>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } 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 * as i0 from "@angular/core";
|
|
12
|
+
export declare class DetailsDialogInternal implements OnInit {
|
|
13
|
+
private breakpointObserver;
|
|
14
|
+
private loaderService;
|
|
15
|
+
dataService: DataServiceLib;
|
|
16
|
+
private messageService;
|
|
17
|
+
private dialogRef;
|
|
18
|
+
detailsConfig: DetailsDialogConfig;
|
|
19
|
+
private buttonService;
|
|
20
|
+
private dialogService;
|
|
21
|
+
constructor(breakpointObserver: BreakpointObserver, loaderService: LoaderService, dataService: DataServiceLib, messageService: MessageService, dialogRef: MatDialogRef<DetailsDialogInternal>, detailsConfig: DetailsDialogConfig, buttonService: ButtonService, dialogService: DialogService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
titleAction: string;
|
|
24
|
+
loadByAction: boolean;
|
|
25
|
+
extraButtons: Button[];
|
|
26
|
+
buttons: Button[];
|
|
27
|
+
createButton: Button;
|
|
28
|
+
editButton: Button;
|
|
29
|
+
deleteButton: Button;
|
|
30
|
+
fileField: Field;
|
|
31
|
+
files: any[];
|
|
32
|
+
tableReload: Subject<boolean>;
|
|
33
|
+
tableConfig: TableConfig;
|
|
34
|
+
tableConfigs: any;
|
|
35
|
+
details: any;
|
|
36
|
+
formConfig: FormConfig;
|
|
37
|
+
smallScreen: boolean;
|
|
38
|
+
isLoadComplete: boolean;
|
|
39
|
+
isProcessing: boolean;
|
|
40
|
+
inputChange: EventEmitter<any>;
|
|
41
|
+
loadData(action: Action, reload: any): void;
|
|
42
|
+
inputChanged(event: any): void;
|
|
43
|
+
setMode(newMode: any): void;
|
|
44
|
+
setTitleAction(): void;
|
|
45
|
+
getButton(name: string): Button;
|
|
46
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
47
|
+
testVisible(row: any, buttonName: string): boolean;
|
|
48
|
+
testVisibleTab(tblConfig: TableConfig): boolean;
|
|
49
|
+
getButtonColor(button: Button, row: any): string;
|
|
50
|
+
getVisibleFields(): Field[];
|
|
51
|
+
create(): void;
|
|
52
|
+
edit(): void;
|
|
53
|
+
delete(): void;
|
|
54
|
+
custom(button: Button): void;
|
|
55
|
+
private openNestedDetailsDialog;
|
|
56
|
+
private refreshData;
|
|
57
|
+
handleButtonAction(buttonName: string): void;
|
|
58
|
+
private validateForm;
|
|
59
|
+
private prepareActionData;
|
|
60
|
+
private executeAction;
|
|
61
|
+
private performApiCall;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialogInternal, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "app-viewModel-internal", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } 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 * as i0 from "@angular/core";
|
|
14
|
+
export declare class TableInternalComponent implements OnInit {
|
|
15
|
+
private dataService;
|
|
16
|
+
private messageService;
|
|
17
|
+
private breakpointObserver;
|
|
18
|
+
dialog: MatDialog;
|
|
19
|
+
private buttonService;
|
|
20
|
+
private dialogService;
|
|
21
|
+
private tableConfigService;
|
|
22
|
+
private conditionService;
|
|
23
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnChanges(): void;
|
|
26
|
+
elevation: string;
|
|
27
|
+
actionsWidth: string;
|
|
28
|
+
showFilterButton: boolean;
|
|
29
|
+
tileReload: Subject<boolean>;
|
|
30
|
+
smallScreen: boolean;
|
|
31
|
+
tableDataSource: any;
|
|
32
|
+
dataSource: any[];
|
|
33
|
+
displayedColumns: any[];
|
|
34
|
+
displayedButtons: any[];
|
|
35
|
+
tablePaginator: MatPaginator;
|
|
36
|
+
hideTitle: boolean;
|
|
37
|
+
data: any;
|
|
38
|
+
config: TableConfig;
|
|
39
|
+
reload: Subject<boolean>;
|
|
40
|
+
dataLoad: EventEmitter<any>;
|
|
41
|
+
refreshClick: EventEmitter<any>;
|
|
42
|
+
searchClick: EventEmitter<any>;
|
|
43
|
+
createClick: EventEmitter<any>;
|
|
44
|
+
actionClick: EventEmitter<any>;
|
|
45
|
+
inputChange: EventEmitter<any>;
|
|
46
|
+
private initializeComponent;
|
|
47
|
+
private updateTableConfiguration;
|
|
48
|
+
private setupDataLoading;
|
|
49
|
+
loadData(action: Action, data: any): void;
|
|
50
|
+
inputChanged(event: any): void;
|
|
51
|
+
formDefaults(): void;
|
|
52
|
+
setColumns(): void;
|
|
53
|
+
setButtons(): void;
|
|
54
|
+
getButton(name: string): Button;
|
|
55
|
+
getIcon(buttonName: string): string;
|
|
56
|
+
getButtonColor(button: Button, row: any): string;
|
|
57
|
+
getOptions(column: any): Column;
|
|
58
|
+
getColor(value: any, options: any[]): string;
|
|
59
|
+
testIconCondition(row: any, icon: Icon): boolean;
|
|
60
|
+
testColorCondition(row: any, color: Color): boolean;
|
|
61
|
+
showBanner(message: string): void;
|
|
62
|
+
testDisabled(row: any, buttonName: string): boolean;
|
|
63
|
+
testVisible(row: any, buttonName: string): boolean;
|
|
64
|
+
searchClicked(x: any): void;
|
|
65
|
+
refreshClicked(): void;
|
|
66
|
+
dataLoaded(x: any): void;
|
|
67
|
+
actionClicked(name: string, row: any): void;
|
|
68
|
+
columnClicked(column: Column, row: any): void;
|
|
69
|
+
customModel(name: any, row: any): void;
|
|
70
|
+
actionClickedEmit(name: any, row: any): void;
|
|
71
|
+
viewModel(row: any): void;
|
|
72
|
+
newModel(): void;
|
|
73
|
+
editModel(row: any): void;
|
|
74
|
+
private open;
|
|
75
|
+
private openDetailsDialog;
|
|
76
|
+
deleteModel(row: any): void;
|
|
77
|
+
doAction(buttonName: string, row: any): void;
|
|
78
|
+
execAction(b: Button, row: any): void;
|
|
79
|
+
private getElevationClass;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableInternalComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "hideTitle": "hideTitle"; "data": "data"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Column, TableConfig, Icon } from '../../classes/Classes';
|
|
3
|
+
import { ButtonService } from '../../services/button.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TableRowComponent {
|
|
6
|
+
private buttonService;
|
|
7
|
+
column: Column;
|
|
8
|
+
row: any;
|
|
9
|
+
config: TableConfig;
|
|
10
|
+
actionClick: EventEmitter<{
|
|
11
|
+
name: string;
|
|
12
|
+
row: any;
|
|
13
|
+
}>;
|
|
14
|
+
columnClick: EventEmitter<{
|
|
15
|
+
column: Column;
|
|
16
|
+
row: any;
|
|
17
|
+
}>;
|
|
18
|
+
showBannerEvent: EventEmitter<string>;
|
|
19
|
+
constructor(buttonService: ButtonService);
|
|
20
|
+
testIconCondition(row: any, icon: Icon): boolean;
|
|
21
|
+
testColorCondition(row: any, color: any): boolean;
|
|
22
|
+
getColor(value: any, options: any[]): string;
|
|
23
|
+
onActionClick(name: string, row: any): void;
|
|
24
|
+
onColumnClick(column: Column, row: any): void;
|
|
25
|
+
showBanner(message: string): void;
|
|
26
|
+
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>;
|
|
28
|
+
}
|