tin-spa 2.1.13 → 2.1.15
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/classes/Classes.mjs +20 -1
- package/esm2020/lib/components/accounts/accountDialog.component.mjs +55 -0
- package/esm2020/lib/components/accounts/accounts.component.mjs +62 -6
- package/esm2020/lib/components/filter/filter.component.mjs +7 -4
- package/esm2020/lib/components/form/form.component.mjs +3 -3
- package/esm2020/lib/components/inventory/inventory.component.mjs +1 -1
- package/esm2020/lib/components/login/login.component.mjs +6 -5
- package/esm2020/lib/components/logs/logs.component.mjs +1 -1
- package/esm2020/lib/components/membership/membership.component.mjs +2 -2
- package/esm2020/lib/components/table/table.component.mjs +17 -4
- package/esm2020/lib/components/tenant-settings/tenant-settings.component.mjs +3 -3
- package/esm2020/lib/components/transactions/transactDialog.component.mjs +81 -0
- package/esm2020/lib/components/transactions/transactions.component.mjs +91 -0
- package/esm2020/lib/components/users/users.component.mjs +1 -1
- package/esm2020/lib/modules/admin/admin-routing.module.mjs +3 -1
- package/esm2020/lib/services/data.service.mjs +22 -4
- package/esm2020/lib/tin-spa.module.mjs +10 -3
- package/fesm2015/tin-spa.mjs +325 -28
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +320 -28
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/classes/Classes.d.ts +22 -0
- package/lib/components/accounts/accountDialog.component.d.ts +25 -0
- package/lib/components/accounts/accounts.component.d.ts +18 -1
- package/lib/components/filter/filter.component.d.ts +2 -1
- package/lib/components/table/table.component.d.ts +2 -1
- package/lib/components/transactions/transactDialog.component.d.ts +24 -0
- package/lib/components/transactions/transactions.component.d.ts +30 -0
- package/lib/services/data.service.d.ts +7 -1
- package/lib/tin-spa.module.d.ts +9 -6
- package/package.json +1 -1
package/lib/classes/Classes.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export interface Column {
|
|
|
76
76
|
type?: 'text' | 'date' | 'datetime' | 'checkbox' | 'select' | 'money' | 'number' | 'chip' | 'icon' | 'spinner';
|
|
77
77
|
alias?: string;
|
|
78
78
|
icon?: Icon;
|
|
79
|
+
color?: Color;
|
|
79
80
|
icons?: Icon[];
|
|
80
81
|
options?: any[];
|
|
81
82
|
optionDisplay?: string;
|
|
@@ -87,6 +88,10 @@ export interface Icon {
|
|
|
87
88
|
tip?: string;
|
|
88
89
|
condition?: (value: any) => boolean;
|
|
89
90
|
}
|
|
91
|
+
export interface Color {
|
|
92
|
+
name: string;
|
|
93
|
+
condition?: (value: any) => boolean;
|
|
94
|
+
}
|
|
90
95
|
export declare class TileConfig {
|
|
91
96
|
tiles: Tile[];
|
|
92
97
|
loadAction?: Action;
|
|
@@ -170,6 +175,23 @@ export declare class ChangeUserPassword {
|
|
|
170
175
|
newPassword: string;
|
|
171
176
|
confirmPassword: string;
|
|
172
177
|
}
|
|
178
|
+
export declare class Transaction {
|
|
179
|
+
constructor();
|
|
180
|
+
transactionID: number;
|
|
181
|
+
reference: string;
|
|
182
|
+
amount: string;
|
|
183
|
+
type: number;
|
|
184
|
+
date: string;
|
|
185
|
+
accountID: number;
|
|
186
|
+
destinationID: number;
|
|
187
|
+
}
|
|
188
|
+
export declare class FinAccount {
|
|
189
|
+
constructor();
|
|
190
|
+
accountID: number;
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
currency: string;
|
|
194
|
+
}
|
|
173
195
|
export declare class Register {
|
|
174
196
|
constructor();
|
|
175
197
|
userName: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { DataServiceLib } from '../../services/data.service';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { FinAccount } from '../../classes/Classes';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class accountDialog implements OnInit {
|
|
8
|
+
private messageService;
|
|
9
|
+
private dataService;
|
|
10
|
+
private dialogRef;
|
|
11
|
+
data: any;
|
|
12
|
+
constructor(messageService: MessageService, dataService: DataServiceLib, dialogRef: MatDialogRef<accountDialog>, data: any);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
action: any;
|
|
15
|
+
account: FinAccount;
|
|
16
|
+
isLoadComplete: boolean;
|
|
17
|
+
isProcessing: boolean;
|
|
18
|
+
currencies: {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
submit(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<accountDialog, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<accountDialog, "app-quanityDiag", never, {}, {}, never, never, false>;
|
|
25
|
+
}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DataServiceLib } from '../../services/data.service';
|
|
3
|
+
import { MessageService } from '../../services/message.service';
|
|
4
|
+
import { AuthService } from '../../services/auth.service';
|
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
2
8
|
import * as i0 from "@angular/core";
|
|
3
9
|
export declare class AccountsComponent implements OnInit {
|
|
4
|
-
|
|
10
|
+
router: Router;
|
|
11
|
+
private dataService;
|
|
12
|
+
private messageService;
|
|
13
|
+
authService: AuthService;
|
|
14
|
+
dialog: MatDialog;
|
|
15
|
+
constructor(router: Router, dataService: DataServiceLib, messageService: MessageService, authService: AuthService, dialog: MatDialog);
|
|
5
16
|
ngOnInit(): void;
|
|
17
|
+
reload: Subject<boolean>;
|
|
18
|
+
accounts: any;
|
|
19
|
+
loadData(): void;
|
|
20
|
+
view(x: any): void;
|
|
21
|
+
open(x: any): void;
|
|
22
|
+
delete(row: any): void;
|
|
6
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccountsComponent, never>;
|
|
7
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccountsComponent, "spa-accounts", never, {}, {}, never, never, false>;
|
|
8
25
|
}
|
|
@@ -5,6 +5,7 @@ export declare class FilterComponent implements OnInit {
|
|
|
5
5
|
constructor();
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
ngOnChanges(): void;
|
|
8
|
+
showText: boolean;
|
|
8
9
|
showButton: boolean;
|
|
9
10
|
data: MatTableDataSource<unknown>;
|
|
10
11
|
refreshClick: EventEmitter<any>;
|
|
@@ -13,5 +14,5 @@ export declare class FilterComponent implements OnInit {
|
|
|
13
14
|
applyFilter(filterValue: string): void;
|
|
14
15
|
refreshClicked(): void;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "spa-filter", never, { "showButton": "showButton"; "data": "data"; }, { "refreshClick": "refreshClick"; }, never, never, false>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "spa-filter", never, { "showText": "showText"; "showButton": "showButton"; "data": "data"; }, { "refreshClick": "refreshClick"; }, never, never, false>;
|
|
17
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Action, Button, Column, Icon, TableConfig } from '../../classes/Classes';
|
|
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';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
@@ -45,6 +45,7 @@ export declare class TableComponent implements OnInit {
|
|
|
45
45
|
getOptions(column: any): Column;
|
|
46
46
|
getColor(v: any, options: any): any;
|
|
47
47
|
testIconCondition(value: any, icon: Icon): boolean;
|
|
48
|
+
testColorCondition(value: any, color: Color): boolean;
|
|
48
49
|
testDisabled(row: any, buttonName: string): boolean;
|
|
49
50
|
testVisible(row: any, buttonName: string): boolean;
|
|
50
51
|
loadData(action: Action, data: any): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { DataServiceLib } from '../../services/data.service';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { FormConfig, Transaction } from '../../classes/Classes';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class transactDialog implements OnInit {
|
|
8
|
+
private messageService;
|
|
9
|
+
private dataService;
|
|
10
|
+
private dialogRef;
|
|
11
|
+
data: any;
|
|
12
|
+
constructor(messageService: MessageService, dataService: DataServiceLib, dialogRef: MatDialogRef<transactDialog>, data: any);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
txn: Transaction;
|
|
15
|
+
action: any;
|
|
16
|
+
account: any;
|
|
17
|
+
accounts: any;
|
|
18
|
+
isLoadComplete: boolean;
|
|
19
|
+
isProcessing: boolean;
|
|
20
|
+
formConfig: FormConfig;
|
|
21
|
+
submit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<transactDialog, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<transactDialog, "app-quanityDiag", never, {}, {}, never, never, false>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DataServiceLib } from '../../services/data.service';
|
|
3
|
+
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
7
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TransactionsComponent implements OnInit {
|
|
10
|
+
private dataService;
|
|
11
|
+
private messageService;
|
|
12
|
+
private breakpointObserver;
|
|
13
|
+
dialog: MatDialog;
|
|
14
|
+
constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
actionClicked(x: any): void;
|
|
17
|
+
loadData(): void;
|
|
18
|
+
transact(x: any, data: any): void;
|
|
19
|
+
transfer(): void;
|
|
20
|
+
smallScreen: any;
|
|
21
|
+
account: any;
|
|
22
|
+
accounts: any[];
|
|
23
|
+
transactions: any[];
|
|
24
|
+
accountID: any;
|
|
25
|
+
reload: Subject<boolean>;
|
|
26
|
+
formConfig: FormConfig;
|
|
27
|
+
config: TableConfig;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionsComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TransactionsComponent, "spa-transactions", never, {}, {}, never, never, false>;
|
|
30
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Action, AppConfig, CapItem, User } from '../classes/Classes';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { HttpService } from './http.service';
|
|
4
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class DataServiceLib {
|
|
6
7
|
private httpService;
|
|
7
|
-
|
|
8
|
+
router: Router;
|
|
9
|
+
private route;
|
|
10
|
+
constructor(httpService: HttpService, router: Router, route: ActivatedRoute);
|
|
8
11
|
appConfig: AppConfig;
|
|
9
12
|
private appConfigSource;
|
|
10
13
|
appConfigObserv: Observable<AppConfig>;
|
|
@@ -26,6 +29,9 @@ export declare class DataServiceLib {
|
|
|
26
29
|
capSuppliers: CapItem;
|
|
27
30
|
tmpProfileuserName: string;
|
|
28
31
|
CallApi(action: Action, data: any): Observable<any>;
|
|
32
|
+
NavigateWithValue(path: string, value: string): void;
|
|
33
|
+
GetNavigationValue(): any;
|
|
34
|
+
tmpAccountID: any;
|
|
29
35
|
GetUser(): Observable<any>;
|
|
30
36
|
RegisterAccount(u: any): Observable<any>;
|
|
31
37
|
GetUserByID(val: string): Observable<any>;
|
package/lib/tin-spa.module.d.ts
CHANGED
|
@@ -34,13 +34,16 @@ import * as i32 from "./components/customers/customers.component";
|
|
|
34
34
|
import * as i33 from "./components/inventory/inventory.component";
|
|
35
35
|
import * as i34 from "./components/inventory/quantityDialog.component";
|
|
36
36
|
import * as i35 from "./components/accounts/accounts.component";
|
|
37
|
-
import * as i36 from "./components/
|
|
38
|
-
import * as i37 from "./
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "./components/
|
|
41
|
-
import * as i40 from "
|
|
37
|
+
import * as i36 from "./components/accounts/accountDialog.component";
|
|
38
|
+
import * as i37 from "./components/suppliers/suppliers.component";
|
|
39
|
+
import * as i38 from "./components/transactions/transactions.component";
|
|
40
|
+
import * as i39 from "./components/transactions/transactDialog.component";
|
|
41
|
+
import * as i40 from "./modules/spa-mat.module";
|
|
42
|
+
import * as i41 from "@angular/common/http";
|
|
43
|
+
import * as i42 from "./components/money/currency-input-mask.module";
|
|
44
|
+
import * as i43 from "ngx-doc-viewer";
|
|
42
45
|
export declare class TinSpaModule {
|
|
43
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<TinSpaModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TinSpaModule, [typeof i1.TinSpaComponent, typeof i2.TextComponent, typeof i3.CheckComponent, typeof i4.DateComponent, typeof i5.DatetimeComponent, typeof i6.LabelComponent, typeof i7.SelectComponent, typeof i8.ActivityComponent, typeof i9.FilterComponent, typeof i10.messageDialog, typeof i11.MoneyComponent, typeof i12.OptionComponent, typeof i13.TilesComponent, typeof i14.StepsComponent, typeof i15.AttachComponent, typeof i16.ChipsComponent, typeof i17.LoaderComponent, typeof i18.NavMenuComponent, typeof i19.TableComponent, typeof i20.detailsDialog, typeof i21.FormComponent, typeof i22.CamelToWordsPipe, typeof i23.NumberComponent, typeof i24.SearchComponent, typeof i25.ViewerComponent, typeof i26.viewerDialog, typeof i27.TenantSettingsComponent, typeof i28.TenantsComponent, typeof i29.BugComponent, typeof i30.MembershipComponent, typeof i31.PlansComponent, typeof i32.CustomersComponent, typeof i33.InventoryComponent, typeof i34.quantityDialog, typeof i35.AccountsComponent, typeof i36.SuppliersComponent], [typeof
|
|
47
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TinSpaModule, [typeof i1.TinSpaComponent, typeof i2.TextComponent, typeof i3.CheckComponent, typeof i4.DateComponent, typeof i5.DatetimeComponent, typeof i6.LabelComponent, typeof i7.SelectComponent, typeof i8.ActivityComponent, typeof i9.FilterComponent, typeof i10.messageDialog, typeof i11.MoneyComponent, typeof i12.OptionComponent, typeof i13.TilesComponent, typeof i14.StepsComponent, typeof i15.AttachComponent, typeof i16.ChipsComponent, typeof i17.LoaderComponent, typeof i18.NavMenuComponent, typeof i19.TableComponent, typeof i20.detailsDialog, typeof i21.FormComponent, typeof i22.CamelToWordsPipe, typeof i23.NumberComponent, typeof i24.SearchComponent, typeof i25.ViewerComponent, typeof i26.viewerDialog, typeof i27.TenantSettingsComponent, typeof i28.TenantsComponent, typeof i29.BugComponent, typeof i30.MembershipComponent, typeof i31.PlansComponent, typeof i32.CustomersComponent, typeof i33.InventoryComponent, typeof i34.quantityDialog, typeof i35.AccountsComponent, typeof i36.accountDialog, typeof i37.SuppliersComponent, typeof i38.TransactionsComponent, typeof i39.transactDialog], [typeof i40.SpaMatModule, typeof i41.HttpClientModule, typeof i42.CurrencyInputModule, typeof i43.NgxDocViewerModule], [typeof i1.TinSpaComponent, typeof i40.SpaMatModule, typeof i2.TextComponent, typeof i10.messageDialog, typeof i18.NavMenuComponent, typeof i17.LoaderComponent, typeof i13.TilesComponent, typeof i4.DateComponent, typeof i7.SelectComponent, typeof i5.DatetimeComponent, typeof i3.CheckComponent, typeof i15.AttachComponent, typeof i11.MoneyComponent, typeof i16.ChipsComponent, typeof i8.ActivityComponent, typeof i12.OptionComponent, typeof i6.LabelComponent, typeof i14.StepsComponent, typeof i9.FilterComponent, typeof i19.TableComponent, typeof i20.detailsDialog, typeof i21.FormComponent, typeof i23.NumberComponent, typeof i24.SearchComponent, typeof i25.ViewerComponent, typeof i26.viewerDialog]>;
|
|
45
48
|
static ɵinj: i0.ɵɵInjectorDeclaration<TinSpaModule>;
|
|
46
49
|
}
|