tin-spa 2.2.3 → 2.3.1
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/esm2020/lib/components/accounts/accountDialog.component.mjs +2 -2
- package/esm2020/lib/components/accounts/accounts.component.mjs +2 -2
- package/esm2020/lib/components/attach/attach.component.mjs +1 -20
- package/esm2020/lib/components/change-password/change-password.component.mjs +2 -2
- package/esm2020/lib/components/create-account/create-account.component.mjs +2 -2
- package/esm2020/lib/components/customers/customers.component.mjs +2 -2
- package/esm2020/lib/components/date/date.component.mjs +23 -16
- package/esm2020/lib/components/departments/departments.component.mjs +6 -26
- package/esm2020/lib/components/employees/employees.component.mjs +10 -53
- package/esm2020/lib/components/form/form.component.mjs +2 -2
- package/esm2020/lib/components/inventory/inventory.component.mjs +2 -2
- package/esm2020/lib/components/inventory/quantityDialog.component.mjs +2 -2
- package/esm2020/lib/components/invitations-table/invitations-table.component.mjs +2 -2
- package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +2 -2
- package/esm2020/lib/components/login/login.component.mjs +2 -2
- package/esm2020/lib/components/logs/logs.component.mjs +2 -2
- package/esm2020/lib/components/membership/membership.component.mjs +2 -2
- package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +2 -2
- package/esm2020/lib/components/plans/plans.component.mjs +2 -2
- package/esm2020/lib/components/positions/positions.component.mjs +13 -6
- package/esm2020/lib/components/profile/profile.component.mjs +2 -2
- package/esm2020/lib/components/recover-account/recover-account.component.mjs +2 -2
- package/esm2020/lib/components/roles/addRoleDialog.component.mjs +2 -2
- package/esm2020/lib/components/roles/roles.component.mjs +2 -2
- package/esm2020/lib/components/settings/settings.component.mjs +2 -2
- package/esm2020/lib/components/signup/signup.component.mjs +2 -2
- package/esm2020/lib/components/suppliers/suppliers.component.mjs +2 -2
- package/esm2020/lib/components/table/detailsDialog.component.mjs +72 -142
- package/esm2020/lib/components/table/table.component.mjs +151 -333
- package/esm2020/lib/components/table-action/table-action.component.mjs +46 -0
- package/esm2020/lib/components/table-header/table-header.component.mjs +52 -0
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +78 -139
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +153 -334
- package/esm2020/lib/components/table-row/table-row.component.mjs +58 -0
- package/esm2020/lib/components/tasks/tasks.component.mjs +2 -2
- package/esm2020/lib/components/tenant-settings/inviteDialog.component.mjs +2 -2
- package/esm2020/lib/components/tenant-settings/tenant-settings.component.mjs +2 -2
- package/esm2020/lib/components/tenants/tenants.component.mjs +2 -2
- package/esm2020/lib/components/tiles/tiles.component.mjs +2 -2
- package/esm2020/lib/components/transactions/transactDialog.component.mjs +2 -2
- package/esm2020/lib/components/transactions/transactions.component.mjs +2 -2
- package/esm2020/lib/components/users/users.component.mjs +2 -2
- package/esm2020/lib/components/viewer/viewer.component.mjs +2 -2
- package/esm2020/lib/components/welcome/welcome.component.mjs +2 -2
- package/esm2020/lib/services/button.service.mjs +100 -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 +38 -0
- package/esm2020/lib/services/table-config.service.mjs +26 -0
- package/esm2020/lib/tin-spa.module.mjs +6 -3
- package/esm2020/public-api.mjs +3 -2
- package/fesm2015/tin-spa.mjs +963 -1075
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +970 -1070
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/components/accounts/accountDialog.component.d.ts +1 -1
- package/lib/components/accounts/accounts.component.d.ts +1 -1
- package/lib/components/attach/attach.component.d.ts +0 -19
- package/lib/components/change-password/change-password.component.d.ts +1 -1
- package/lib/components/create-account/create-account.component.d.ts +1 -1
- package/lib/components/customers/customers.component.d.ts +1 -1
- package/lib/components/date/date.component.d.ts +10 -9
- package/lib/components/departments/departments.component.d.ts +2 -5
- package/lib/components/employees/employees.component.d.ts +3 -14
- package/lib/components/form/form.component.d.ts +1 -1
- package/lib/components/inventory/inventory.component.d.ts +1 -1
- package/lib/components/inventory/quantityDialog.component.d.ts +1 -1
- package/lib/components/invitations-table/invitations-table.component.d.ts +1 -1
- package/lib/components/list-dialog/list-dialog.component.d.ts +1 -1
- package/lib/components/login/login.component.d.ts +1 -1
- package/lib/components/logs/logs.component.d.ts +1 -1
- package/lib/components/membership/membership.component.d.ts +1 -1
- package/lib/components/nav-menu/nav-menu.component.d.ts +1 -1
- package/lib/components/plans/plans.component.d.ts +1 -1
- package/lib/components/positions/positions.component.d.ts +5 -1
- package/lib/components/profile/profile.component.d.ts +1 -1
- package/lib/components/recover-account/recover-account.component.d.ts +1 -1
- package/lib/components/roles/addRoleDialog.component.d.ts +1 -1
- package/lib/components/roles/roles.component.d.ts +1 -1
- package/lib/components/settings/settings.component.d.ts +1 -1
- package/lib/components/signup/signup.component.d.ts +1 -1
- package/lib/components/suppliers/suppliers.component.d.ts +1 -1
- package/lib/components/table/detailsDialog.component.d.ts +11 -4
- package/lib/components/table/table.component.d.ts +28 -15
- package/lib/components/table-action/table-action.component.d.ts +22 -0
- package/lib/components/table-header/table-header.component.d.ts +22 -0
- package/lib/components/table-internal/detailsDialog-internal.component.d.ts +16 -6
- package/lib/components/table-internal/table-internal.component.d.ts +28 -15
- package/lib/components/table-row/table-row.component.d.ts +28 -0
- package/lib/components/tasks/tasks.component.d.ts +1 -1
- package/lib/components/tenant-settings/inviteDialog.component.d.ts +1 -1
- package/lib/components/tenant-settings/tenant-settings.component.d.ts +1 -1
- package/lib/components/tenants/tenants.component.d.ts +1 -1
- package/lib/components/tiles/tiles.component.d.ts +1 -1
- package/lib/components/transactions/transactDialog.component.d.ts +1 -1
- package/lib/components/transactions/transactions.component.d.ts +1 -1
- package/lib/components/users/users.component.d.ts +1 -1
- package/lib/components/viewer/viewer.component.d.ts +1 -1
- package/lib/components/welcome/welcome.component.d.ts +1 -1
- package/lib/services/button.service.d.ts +27 -0
- package/lib/services/condition.service.d.ts +10 -0
- package/lib/services/{data.service.d.ts → datalib.service.d.ts} +15 -1
- package/lib/services/dialog.service.d.ts +18 -0
- package/lib/services/table-config.service.d.ts +8 -0
- package/lib/tin-spa.module.d.ts +8 -5
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/esm2020/lib/services/data.service.mjs +0 -236
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { DataServiceLib } from '../../services/
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { FinAccount } from '../../classes/Classes';
|
|
6
6
|
import { LoaderService } from '../../services/loader.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { MessageService } from '../../services/message.service';
|
|
4
4
|
import { AuthService } from '../../services/auth.service';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
@@ -8,32 +8,13 @@ export declare class AttachComponent implements OnInit {
|
|
|
8
8
|
filesChange: EventEmitter<any>;
|
|
9
9
|
upload: EventEmitter<any>;
|
|
10
10
|
enableUpload: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* on file drop handler
|
|
13
|
-
*/
|
|
14
11
|
onFileDropped($event: any): void;
|
|
15
|
-
/**
|
|
16
|
-
* handle file from browsing
|
|
17
|
-
*/
|
|
18
12
|
fileBrowseHandler(event: any): void;
|
|
19
|
-
/**
|
|
20
|
-
* Delete file from files list
|
|
21
|
-
* @param index (File index)
|
|
22
|
-
*/
|
|
23
13
|
deleteFile(index: number): void;
|
|
24
14
|
/**
|
|
25
15
|
* Simulate the upload process
|
|
26
16
|
*/
|
|
27
|
-
/**
|
|
28
|
-
* Convert Files list to normal array list
|
|
29
|
-
* @param files (Files List)
|
|
30
|
-
*/
|
|
31
17
|
prepareFilesList(files: Array<any>): void;
|
|
32
|
-
/**
|
|
33
|
-
* format bytes
|
|
34
|
-
* @param bytes (File size in bytes)
|
|
35
|
-
* @param decimals (Decimals point)
|
|
36
|
-
*/
|
|
37
18
|
formatBytes(bytes: any, decimals: any): string;
|
|
38
19
|
uploaded(): void;
|
|
39
20
|
filesChanged(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeUserPassword } from './../../classes/Classes';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { MessageService } from '../../services/message.service';
|
|
4
|
-
import { DataServiceLib } from '../../services/
|
|
4
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
6
6
|
import { Location } from '@angular/common';
|
|
7
7
|
import { HttpService } from '../../services/http.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataServiceLib } from '
|
|
1
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { MessageService } from '../../services/message.service';
|
|
4
4
|
import { AuthService } from '../../services/auth.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DateComponent implements OnInit {
|
|
5
|
-
constructor();
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
ngOnChanges(): void;
|
|
4
|
+
export declare class DateComponent implements OnInit, OnChanges {
|
|
8
5
|
required: boolean;
|
|
9
6
|
min: string;
|
|
10
7
|
max: string;
|
|
11
|
-
minDate: any;
|
|
12
|
-
maxDate: any;
|
|
13
8
|
readonly: boolean;
|
|
14
9
|
hint: string;
|
|
15
10
|
value: string;
|
|
16
11
|
display: string;
|
|
17
12
|
placeholder: string;
|
|
18
13
|
width: string;
|
|
19
|
-
valueChange: EventEmitter<
|
|
14
|
+
valueChange: EventEmitter<string>;
|
|
15
|
+
minDate: FormControl;
|
|
16
|
+
maxDate: FormControl;
|
|
17
|
+
control: FormControl;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
private initializeDateControls;
|
|
21
|
+
private updateControlState;
|
|
20
22
|
onChangeEvent(): void;
|
|
21
|
-
control: FormControl<Date>;
|
|
22
23
|
validate(control: FormControl): string;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
|
|
24
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "spa-date", never, { "required": "required"; "min": "min"; "max": "max"; "readonly": "readonly"; "hint": "hint"; "value": "value"; "display": "display"; "placeholder": "placeholder"; "width": "width"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
3
|
-
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
3
|
import { MessageService } from '../../services/message.service';
|
|
5
4
|
import { AuthService } from '../../services/auth.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class DepartmentsComponent implements OnInit {
|
|
8
|
-
|
|
7
|
+
dataService: DataServiceLib;
|
|
9
8
|
private messageService;
|
|
10
9
|
authService: AuthService;
|
|
11
10
|
constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
|
|
12
11
|
ngOnInit(): void;
|
|
13
|
-
formConfig: FormConfig;
|
|
14
|
-
config: TableConfig;
|
|
15
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentsComponent, never>;
|
|
16
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<DepartmentsComponent, "spa-departments", never, {}, {}, never, never, false>;
|
|
17
14
|
}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
3
|
-
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
|
-
import { MessageService } from '../../services/message.service';
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
3
|
import { AuthService } from '../../services/auth.service';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EmployeesComponent implements OnInit {
|
|
8
|
-
|
|
9
|
-
private messageService;
|
|
6
|
+
dataService: DataServiceLib;
|
|
10
7
|
authService: AuthService;
|
|
11
|
-
constructor(dataService: DataServiceLib,
|
|
8
|
+
constructor(dataService: DataServiceLib, authService: AuthService);
|
|
12
9
|
ngOnInit(): void;
|
|
13
|
-
loadMeta(): void;
|
|
14
|
-
genders: {
|
|
15
|
-
name: string;
|
|
16
|
-
value: number;
|
|
17
|
-
}[];
|
|
18
|
-
departments: any[];
|
|
19
|
-
formConfig: FormConfig;
|
|
20
|
-
config: TableConfig;
|
|
21
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmployeesComponent, never>;
|
|
22
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<EmployeesComponent, "spa-employees", never, {}, {}, never, never, false>;
|
|
23
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormConfig, Field, Button } from '../../classes/Classes';
|
|
3
3
|
import { MessageService } from '../../services/message.service';
|
|
4
|
-
import { DataServiceLib } from '../../services/
|
|
4
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FormComponent implements OnInit {
|
|
7
7
|
private messageService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { DataServiceLib } from '../../services/
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { LoaderService } from '../../services/loader.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TableConfig } from '../../classes/Classes';
|
|
3
|
-
import { DataServiceLib } from '../../services/
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormConfig, ListDialogConfig, TableConfig } from '../../classes/Classes';
|
|
3
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
-
import { DataServiceLib } from '../../services/
|
|
4
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ListDialogComponent implements OnInit {
|
|
@@ -3,7 +3,7 @@ import { StorageService } from "../../services/storage.service";
|
|
|
3
3
|
import { AuthService } from "../../services/auth.service";
|
|
4
4
|
import { OnInit } from "@angular/core";
|
|
5
5
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
6
|
-
import { DataServiceLib } from "../../services/
|
|
6
|
+
import { DataServiceLib } from "../../services/datalib.service";
|
|
7
7
|
import { LogService } from "./../../services/log.service";
|
|
8
8
|
import { User, AppConfig } from "../../classes/Classes";
|
|
9
9
|
import { HttpService } from "../../services/http.service";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from "../../services/
|
|
2
|
+
import { DataServiceLib } from "../../services/datalib.service";
|
|
3
3
|
import { MatPaginator } from '@angular/material/paginator';
|
|
4
4
|
import { AuthService } from '../../services/auth.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
@@ -3,7 +3,7 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { AuthService } from '../../services/auth.service';
|
|
4
4
|
import { StorageService } from '../../services/storage.service';
|
|
5
5
|
import { SocialAuthService } from '@abacritt/angularx-social-login';
|
|
6
|
-
import { DataServiceLib } from '../../services/
|
|
6
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
7
7
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class NavMenuComponent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthService } from '../../services/auth.service';
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class PositionsComponent implements OnInit {
|
|
4
|
-
|
|
6
|
+
dataService: DataServiceLib;
|
|
7
|
+
authService: AuthService;
|
|
8
|
+
constructor(dataService: DataServiceLib, authService: AuthService);
|
|
5
9
|
ngOnInit(): void;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<PositionsComponent, never>;
|
|
7
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<PositionsComponent, "spa-positions", never, {}, {}, never, never, false>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthService } from './../../services/auth.service';
|
|
2
2
|
import { MessageService } from './../../services/message.service';
|
|
3
|
-
import { DataServiceLib } from '
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
4
|
import { OnInit } from '@angular/core';
|
|
5
5
|
import { AppConfig, Profile } from '../../classes/Classes';
|
|
6
6
|
import { Router } from '@angular/router';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { AuthService } from '../../services/auth.service';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { Location } from '@angular/common';
|
|
@@ -2,7 +2,7 @@ import { MessageService } from '../../services/message.service';
|
|
|
2
2
|
import { AuthService } from '../../services/auth.service';
|
|
3
3
|
import { OnInit } from '@angular/core';
|
|
4
4
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import { DataServiceLib } from '../../services/
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
6
|
import { Role } from '../../classes/Classes';
|
|
7
7
|
import { LoaderService } from '../../services/loader.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppConfig } from './../../classes/Classes';
|
|
2
2
|
import { OnInit } from "@angular/core";
|
|
3
3
|
import { MatDialog } from "@angular/material/dialog";
|
|
4
|
-
import { DataServiceLib } from "../../services/
|
|
4
|
+
import { DataServiceLib } from "../../services/datalib.service";
|
|
5
5
|
import { Role } from "../../classes/Classes";
|
|
6
6
|
import { Router } from "@angular/router";
|
|
7
7
|
import { MessageService } from '../../services/message.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { MessageService } from '../../services/message.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SettingsComponent implements OnInit {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MessageService } from '../../services/message.service';
|
|
3
|
-
import { DataServiceLib } from '../../services/
|
|
3
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
4
4
|
import { AuthService } from '../../services/auth.service';
|
|
5
5
|
import { User, Profile, Account } from '../../classes/Classes';
|
|
6
6
|
import { HttpService } from '../../services/http.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataServiceLib } from '../../services/
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { AuthService } from '../../services/auth.service';
|
|
@@ -2,10 +2,12 @@ import { OnInit, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
|
-
import { DataServiceLib } from '../../services/
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
6
|
import { LoaderService } from '../../services/loader.service';
|
|
7
7
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
8
8
|
import { Subject } from 'rxjs';
|
|
9
|
+
import { ButtonService } from '../../services/button.service';
|
|
10
|
+
import { DialogService } from '../../services/dialog.service';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare class DetailsDialog implements OnInit {
|
|
11
13
|
private breakpointObserver;
|
|
@@ -14,7 +16,9 @@ export declare class DetailsDialog implements OnInit {
|
|
|
14
16
|
private messageService;
|
|
15
17
|
private dialogRef;
|
|
16
18
|
detailsConfig: DetailsDialogConfig;
|
|
17
|
-
|
|
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);
|
|
18
22
|
ngOnInit(): void;
|
|
19
23
|
titleAction: string;
|
|
20
24
|
loadByAction: boolean;
|
|
@@ -47,8 +51,11 @@ export declare class DetailsDialog implements OnInit {
|
|
|
47
51
|
edit(): void;
|
|
48
52
|
delete(): void;
|
|
49
53
|
custom(button: Button): void;
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
handleButtonAction(buttonName: string): void;
|
|
55
|
+
private validateForm;
|
|
56
|
+
private prepareActionData;
|
|
57
|
+
private executeAction;
|
|
58
|
+
private performApiCall;
|
|
52
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialog, never>;
|
|
53
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialog, "app-viewModel", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
54
61
|
}
|
|
@@ -4,21 +4,35 @@ import { MatPaginator } from '@angular/material/paginator';
|
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
7
|
-
import { DataServiceLib } from '../../services/
|
|
7
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
8
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';
|
|
9
13
|
import * as i0 from "@angular/core";
|
|
10
14
|
export declare class TableComponent implements OnInit {
|
|
11
15
|
private dataService;
|
|
12
16
|
private messageService;
|
|
13
17
|
private breakpointObserver;
|
|
14
18
|
dialog: MatDialog;
|
|
15
|
-
|
|
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);
|
|
16
24
|
ngOnInit(): void;
|
|
25
|
+
ngOnChanges(): void;
|
|
17
26
|
elevation: string;
|
|
18
27
|
actionsWidth: string;
|
|
19
28
|
showFilterButton: boolean;
|
|
20
29
|
tileReload: Subject<boolean>;
|
|
21
|
-
|
|
30
|
+
smallScreen: boolean;
|
|
31
|
+
createButton: Button;
|
|
32
|
+
tableDataSource: any;
|
|
33
|
+
dataSource: any[];
|
|
34
|
+
displayedColumns: any[];
|
|
35
|
+
displayedButtons: any[];
|
|
22
36
|
tablePaginator: MatPaginator;
|
|
23
37
|
hideTitle: boolean;
|
|
24
38
|
data: any;
|
|
@@ -30,13 +44,11 @@ export declare class TableComponent implements OnInit {
|
|
|
30
44
|
createClick: EventEmitter<any>;
|
|
31
45
|
actionClick: EventEmitter<any>;
|
|
32
46
|
inputChange: EventEmitter<any>;
|
|
47
|
+
private initializeComponent;
|
|
48
|
+
private updateTableConfiguration;
|
|
49
|
+
private setupDataLoading;
|
|
50
|
+
loadData(action: Action, data: any): void;
|
|
33
51
|
inputChanged(event: any): void;
|
|
34
|
-
smallScreen: boolean;
|
|
35
|
-
createButton: Button;
|
|
36
|
-
tableDataSource: any;
|
|
37
|
-
dataSource: any[];
|
|
38
|
-
displayedColumns: any[];
|
|
39
|
-
displayedButtons: any[];
|
|
40
52
|
formDefaults(): void;
|
|
41
53
|
setColumns(): void;
|
|
42
54
|
setButtons(): void;
|
|
@@ -44,26 +56,27 @@ export declare class TableComponent implements OnInit {
|
|
|
44
56
|
getIcon(buttonName: string): string;
|
|
45
57
|
getButtonColor(button: Button, row: any): string;
|
|
46
58
|
getOptions(column: any): Column;
|
|
47
|
-
getColor(
|
|
48
|
-
testIconCondition(
|
|
49
|
-
testColorCondition(
|
|
50
|
-
showBanner(message:
|
|
59
|
+
getColor(value: any, options: any[]): string;
|
|
60
|
+
testIconCondition(row: any, icon: Icon): boolean;
|
|
61
|
+
testColorCondition(row: any, color: Color): boolean;
|
|
62
|
+
showBanner(message: string): void;
|
|
51
63
|
testDisabled(row: any, buttonName: string): boolean;
|
|
52
64
|
testVisible(row: any, buttonName: string): boolean;
|
|
53
|
-
loadData(action: Action, data: any): void;
|
|
54
65
|
searchClicked(x: any): void;
|
|
55
66
|
refreshClicked(): void;
|
|
56
67
|
dataLoaded(x: any): void;
|
|
57
|
-
actionClicked(name:
|
|
68
|
+
actionClicked(name: string, row: any): void;
|
|
58
69
|
columnClicked(column: Column, row: any): void;
|
|
59
70
|
customModel(name: any, row: any): void;
|
|
60
71
|
actionClickedEmit(name: any, row: any): void;
|
|
61
72
|
viewModel(row: any): void;
|
|
62
73
|
newModel(): void;
|
|
63
74
|
editModel(row: any): void;
|
|
75
|
+
private openDetailsDialog;
|
|
64
76
|
deleteModel(row: any): void;
|
|
65
77
|
doAction(buttonName: string, row: any): void;
|
|
66
78
|
execAction(b: Button, row: any): void;
|
|
79
|
+
private getElevationClass;
|
|
67
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
68
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>;
|
|
69
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
|
+
displayedButtons: Button[];
|
|
8
|
+
config: TableConfig;
|
|
9
|
+
row: any;
|
|
10
|
+
actionClick: EventEmitter<{
|
|
11
|
+
name: string;
|
|
12
|
+
row: any;
|
|
13
|
+
}>;
|
|
14
|
+
constructor(buttonService: ButtonService);
|
|
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,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { TableConfig, Button, TileConfig } from '../../classes/Classes';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TableHeaderComponent {
|
|
6
|
+
config: TableConfig;
|
|
7
|
+
hideTitle: boolean;
|
|
8
|
+
tableDataSource: any;
|
|
9
|
+
createButton: Button;
|
|
10
|
+
tileConfig: TileConfig;
|
|
11
|
+
smallScreen: boolean;
|
|
12
|
+
tileReload: Subject<boolean>;
|
|
13
|
+
showFilterButton: boolean;
|
|
14
|
+
createClick: EventEmitter<void>;
|
|
15
|
+
refreshClick: EventEmitter<void>;
|
|
16
|
+
tileClick: EventEmitter<string>;
|
|
17
|
+
onCreateClick(): void;
|
|
18
|
+
onRefreshClick(): void;
|
|
19
|
+
onTileClick(tileName: string): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "createButton": "createButton"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; }, { "createClick": "createClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; }, never, never, false>;
|
|
22
|
+
}
|
|
@@ -2,9 +2,12 @@ import { OnInit, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } from '../../classes/Classes';
|
|
4
4
|
import { MessageService } from '../../services/message.service';
|
|
5
|
-
import { DataServiceLib } from '../../services/
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
6
6
|
import { LoaderService } from '../../services/loader.service';
|
|
7
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';
|
|
8
11
|
import * as i0 from "@angular/core";
|
|
9
12
|
export declare class DetailsDialogInternal implements OnInit {
|
|
10
13
|
private breakpointObserver;
|
|
@@ -13,7 +16,9 @@ export declare class DetailsDialogInternal implements OnInit {
|
|
|
13
16
|
private messageService;
|
|
14
17
|
private dialogRef;
|
|
15
18
|
detailsConfig: DetailsDialogConfig;
|
|
16
|
-
|
|
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);
|
|
17
22
|
ngOnInit(): void;
|
|
18
23
|
titleAction: string;
|
|
19
24
|
loadByAction: boolean;
|
|
@@ -24,6 +29,7 @@ export declare class DetailsDialogInternal implements OnInit {
|
|
|
24
29
|
deleteButton: Button;
|
|
25
30
|
fileField: Field;
|
|
26
31
|
files: any[];
|
|
32
|
+
tableReload: Subject<boolean>;
|
|
27
33
|
tableConfig: TableConfig;
|
|
28
34
|
tableConfigs: any;
|
|
29
35
|
details: any;
|
|
@@ -32,20 +38,24 @@ export declare class DetailsDialogInternal implements OnInit {
|
|
|
32
38
|
isLoadComplete: boolean;
|
|
33
39
|
isProcessing: boolean;
|
|
34
40
|
inputChange: EventEmitter<any>;
|
|
35
|
-
loadData(action: Action): void;
|
|
41
|
+
loadData(action: Action, reload: any): void;
|
|
36
42
|
inputChanged(event: any): void;
|
|
37
43
|
setMode(newMode: string): void;
|
|
38
44
|
setTitleAction(): void;
|
|
39
45
|
getButton(name: string): Button;
|
|
40
46
|
testDisabled(row: any, buttonName: string): boolean;
|
|
41
47
|
testVisible(row: any, buttonName: string): boolean;
|
|
48
|
+
testVisibleTab(tblConfig: TableConfig): boolean;
|
|
42
49
|
getButtonColor(button: Button, row: any): string;
|
|
43
50
|
create(): void;
|
|
44
51
|
edit(): void;
|
|
45
52
|
delete(): void;
|
|
46
53
|
custom(button: Button): void;
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
handleButtonAction(buttonName: string): void;
|
|
55
|
+
private validateForm;
|
|
56
|
+
private prepareActionData;
|
|
57
|
+
private executeAction;
|
|
58
|
+
private performApiCall;
|
|
49
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialogInternal, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "app-viewModel", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "app-viewModel-internal", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
|
|
51
61
|
}
|