tin-spa 2.7.0 → 2.8.0
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 +7 -1
- package/esm2020/lib/classes/TinCore.mjs +16 -2
- package/esm2020/lib/components/form/form.component.mjs +1 -1
- package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +7 -10
- package/esm2020/lib/components/option/option.component.mjs +1 -1
- package/esm2020/lib/components/select/select.component.mjs +5 -3
- package/esm2020/lib/components/select-internal/select-internal.component.mjs +4 -2
- package/esm2020/lib/components/steps/steps.component.mjs +46 -13
- package/esm2020/lib/components/table/detailsDialog.component.mjs +4 -4
- package/esm2020/lib/components/table/table.component.mjs +28 -20
- package/esm2020/lib/components/table-action/table-action.component.mjs +26 -6
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +4 -4
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +29 -20
- package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +4 -4
- package/esm2020/lib/components/table-lite/table-lite.component.mjs +29 -20
- package/esm2020/lib/components/text/text.component.mjs +7 -4
- package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
- package/esm2020/lib/pages/approvals/approvals.component.mjs +10 -100
- package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +14 -9
- package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
- package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
- package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
- package/esm2020/lib/pages/login/login.component.mjs +6 -4
- package/esm2020/lib/pages/profile/profile.component.mjs +1 -1
- package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
- package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
- package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
- package/esm2020/lib/pages/welcome/welcome.component.mjs +1 -1
- package/esm2020/lib/services/button.service.mjs +3 -16
- package/esm2020/lib/services/datalib.service.mjs +180 -4
- package/esm2020/lib/services/dialog.service.mjs +12 -8
- package/esm2020/lib/services/notifications.service.mjs +2 -2
- package/esm2020/lib/services/table-config.service.mjs +24 -6
- package/fesm2015/tin-spa.mjs +426 -258
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +445 -246
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/classes/Classes.d.ts +11 -1
- package/lib/components/steps/steps.component.d.ts +5 -1
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/components/table-action/table-action.component.d.ts +4 -1
- package/lib/components/table-internal/table-internal.component.d.ts +0 -1
- package/lib/components/table-lite/table-lite.component.d.ts +0 -1
- package/lib/components/text/text.component.d.ts +2 -1
- package/lib/pages/approvals/approvals.component.d.ts +3 -7
- package/lib/pages/approvals-config/approvals-config.component.d.ts +4 -0
- package/lib/services/button.service.d.ts +0 -2
- package/lib/services/datalib.service.d.ts +13 -0
- package/lib/services/dialog.service.d.ts +2 -2
- package/lib/services/table-config.service.d.ts +4 -0
- package/package.json +1 -1
package/lib/classes/Classes.d.ts
CHANGED
|
@@ -164,6 +164,8 @@ export declare class Step {
|
|
|
164
164
|
export declare class StepConfig {
|
|
165
165
|
steps: Step[];
|
|
166
166
|
valueField?: string;
|
|
167
|
+
loadAction?: Action;
|
|
168
|
+
loadIDField?: string;
|
|
167
169
|
}
|
|
168
170
|
export interface Icon {
|
|
169
171
|
name: string;
|
|
@@ -219,7 +221,7 @@ export declare class TableConfig {
|
|
|
219
221
|
collapseButtons?: boolean;
|
|
220
222
|
parentData?: any;
|
|
221
223
|
pageSizes?: number[];
|
|
222
|
-
|
|
224
|
+
maxButtonsCount?: number;
|
|
223
225
|
hideTabCondition?: (value: any) => boolean;
|
|
224
226
|
download?: {
|
|
225
227
|
columns: string[];
|
|
@@ -267,6 +269,7 @@ export declare class CapItem {
|
|
|
267
269
|
link: string;
|
|
268
270
|
icon: string;
|
|
269
271
|
capSubItems: CapItem[];
|
|
272
|
+
color: string;
|
|
270
273
|
}
|
|
271
274
|
export declare class AppConfig {
|
|
272
275
|
constructor();
|
|
@@ -282,6 +285,13 @@ export declare class AppConfig {
|
|
|
282
285
|
navigation: 'top' | 'side';
|
|
283
286
|
progressLine: boolean;
|
|
284
287
|
docsBaseUrl: string;
|
|
288
|
+
loginStyle: string;
|
|
289
|
+
loginTitle: string;
|
|
290
|
+
loginMessage: string;
|
|
291
|
+
termsUrl: string;
|
|
292
|
+
privacyUrl: string;
|
|
293
|
+
siteUrl: string;
|
|
294
|
+
navWidth: string;
|
|
285
295
|
}
|
|
286
296
|
export declare class Transaction {
|
|
287
297
|
constructor();
|
|
@@ -2,10 +2,12 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { MatStepper } from '@angular/material/stepper';
|
|
3
3
|
import { Step, StepConfig } from '../../classes/Classes';
|
|
4
4
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class StepsComponent implements OnInit {
|
|
7
8
|
private breakpointObserver;
|
|
8
|
-
|
|
9
|
+
private dataService;
|
|
10
|
+
constructor(breakpointObserver: BreakpointObserver, dataService: DataServiceLib);
|
|
9
11
|
ngOnInit(): void;
|
|
10
12
|
ngOnChanges(): void;
|
|
11
13
|
private observeScreenSize;
|
|
@@ -15,6 +17,8 @@ export declare class StepsComponent implements OnInit {
|
|
|
15
17
|
data: any;
|
|
16
18
|
selectedIndex: number;
|
|
17
19
|
smallScreen: boolean;
|
|
20
|
+
steps: Step[];
|
|
21
|
+
private loadSteps;
|
|
18
22
|
private updateSelectedStep;
|
|
19
23
|
get shouldShowLabels(): boolean;
|
|
20
24
|
getVisibleSteps(): Step[];
|
|
@@ -54,7 +54,6 @@ export declare class TableComponent implements OnInit {
|
|
|
54
54
|
loadData(action: Action, data: any): void;
|
|
55
55
|
inputChanged(event: any): void;
|
|
56
56
|
formDefaults(): void;
|
|
57
|
-
setColumns(): void;
|
|
58
57
|
setButtons(): void;
|
|
59
58
|
getButton(name: string): Button;
|
|
60
59
|
getIcon(buttonName: string): string;
|
|
@@ -8,6 +8,7 @@ export declare class TableActionComponent {
|
|
|
8
8
|
displayedButtons: Button[];
|
|
9
9
|
config: TableConfig;
|
|
10
10
|
row: any;
|
|
11
|
+
smallScreen: boolean;
|
|
11
12
|
actionClick: EventEmitter<{
|
|
12
13
|
name: string;
|
|
13
14
|
row: any;
|
|
@@ -17,6 +18,8 @@ export declare class TableActionComponent {
|
|
|
17
18
|
getButtonColor(button: Button, row: any): string;
|
|
18
19
|
getIcon(buttonName: string): string;
|
|
19
20
|
onActionClick(buttonName: string, row: any): void;
|
|
21
|
+
get visibleButtons(): Button[];
|
|
22
|
+
get overflowButtons(): Button[];
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableActionComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "app-table-action", never, { "displayedButtons": "displayedButtons"; "config": "config"; "row": "row"; }, { "actionClick": "actionClick"; }, never, never, false>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "app-table-action", never, { "displayedButtons": "displayedButtons"; "config": "config"; "row": "row"; "smallScreen": "smallScreen"; }, { "actionClick": "actionClick"; }, never, never, false>;
|
|
22
25
|
}
|
|
@@ -54,7 +54,6 @@ export declare class TableInternalComponent implements OnInit {
|
|
|
54
54
|
loadData(action: Action, data: any): void;
|
|
55
55
|
inputChanged(event: any): void;
|
|
56
56
|
formDefaults(): void;
|
|
57
|
-
setColumns(): void;
|
|
58
57
|
setButtons(): void;
|
|
59
58
|
getButton(name: string): Button;
|
|
60
59
|
getIcon(buttonName: string): string;
|
|
@@ -54,7 +54,6 @@ export declare class TableLiteComponent implements OnInit {
|
|
|
54
54
|
loadData(action: Action, data: any): void;
|
|
55
55
|
inputChanged(event: any): void;
|
|
56
56
|
formDefaults(): void;
|
|
57
|
-
setColumns(): void;
|
|
58
57
|
setButtons(): void;
|
|
59
58
|
getButton(name: string): Button;
|
|
60
59
|
getIcon(buttonName: string): string;
|
|
@@ -13,6 +13,7 @@ export declare class TextComponent implements OnInit {
|
|
|
13
13
|
multiDimension: boolean;
|
|
14
14
|
hideRequiredControl: FormControl<boolean>;
|
|
15
15
|
hide: boolean;
|
|
16
|
+
appearance: 'legacy' | 'standard' | 'fill' | 'outline';
|
|
16
17
|
readonly: boolean;
|
|
17
18
|
hint: string;
|
|
18
19
|
display: string;
|
|
@@ -54,5 +55,5 @@ export declare class TextComponent implements OnInit {
|
|
|
54
55
|
control: FormControl<string>;
|
|
55
56
|
validate(control: FormControl): string;
|
|
56
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "spa-text", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "format": "format"; "type": "type"; "rows": "rows"; "width": "width"; "copyContent": "copyContent"; "clearContent": "clearContent"; "options": "options"; "optionDisplay": "optionDisplay"; "optionValue": "optionValue"; "loadAction": "loadAction"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; }, never, never, false>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "spa-text", never, { "appearance": "appearance"; "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "format": "format"; "type": "type"; "rows": "rows"; "width": "width"; "copyContent": "copyContent"; "clearContent": "clearContent"; "options": "options"; "optionDisplay": "optionDisplay"; "optionValue": "optionValue"; "loadAction": "loadAction"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; }, never, never, false>;
|
|
58
59
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ApprovalsComponent implements OnInit {
|
|
5
|
-
|
|
5
|
+
dataService: DataServiceLib;
|
|
6
|
+
constructor(dataService: DataServiceLib);
|
|
6
7
|
ngOnInit(): void;
|
|
7
|
-
approvalHistoryTableConfig: TableConfig;
|
|
8
|
-
approvalFormConfig: FormConfig;
|
|
9
|
-
approvalDetailsConfig: DetailsDialogConfig;
|
|
10
|
-
approvalsTableConfig: TableConfig;
|
|
11
|
-
pageConfig: PageConfig;
|
|
12
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsComponent, never>;
|
|
13
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsComponent, "spa-approvals", never, {}, {}, never, never, false>;
|
|
14
10
|
}
|
|
@@ -8,6 +8,10 @@ export declare class ApprovalsConfigComponent implements OnInit {
|
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
approvalRoleFormConfig: FormConfig;
|
|
10
10
|
approvalRolesTableConfig: TableConfig;
|
|
11
|
+
approvalLevelOptions: {
|
|
12
|
+
name: number;
|
|
13
|
+
value: number;
|
|
14
|
+
}[];
|
|
11
15
|
approvalLevelFormConfig: FormConfig;
|
|
12
16
|
approvalLevelDetailsConfig: DetailsDialogConfig;
|
|
13
17
|
approvalLevelsTableConfig: TableConfig;
|
|
@@ -22,8 +22,6 @@ export declare class ButtonService {
|
|
|
22
22
|
private getDefaultColor;
|
|
23
23
|
private getDefaultIcon;
|
|
24
24
|
getCreateButton(buttons: Button[]): Button | undefined;
|
|
25
|
-
getDisplayedButtons(buttons: Button[], isSmallScreen: boolean, minButtons?: string[]): Button[];
|
|
26
|
-
getActionsWidth(buttons: Button[]): string;
|
|
27
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonService, never>;
|
|
28
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<ButtonService>;
|
|
29
27
|
}
|
|
@@ -36,6 +36,7 @@ export declare class DataServiceLib {
|
|
|
36
36
|
capGrades: CapItem;
|
|
37
37
|
capApprovals: CapItem;
|
|
38
38
|
capApprovalsConfig: CapItem;
|
|
39
|
+
capNotifications: CapItem;
|
|
39
40
|
tmpProfileuserName: string;
|
|
40
41
|
isProcessing: boolean;
|
|
41
42
|
departmentFormConfig: FormConfig;
|
|
@@ -66,6 +67,18 @@ export declare class DataServiceLib {
|
|
|
66
67
|
name: string;
|
|
67
68
|
value: number;
|
|
68
69
|
}[];
|
|
70
|
+
approvalHistoryTableConfig: TableConfig;
|
|
71
|
+
approvalFormConfig: FormConfig;
|
|
72
|
+
approvalDetailsConfig: DetailsDialogConfig;
|
|
73
|
+
approvalActionFormConfig: FormConfig;
|
|
74
|
+
approveActionDetailsConfig: DetailsDialogConfig;
|
|
75
|
+
declineActionDetailsConfig: DetailsDialogConfig;
|
|
76
|
+
viewApprovalButton: Button;
|
|
77
|
+
approveButton: Button;
|
|
78
|
+
declineButton: Button;
|
|
79
|
+
cancelButton: Button;
|
|
80
|
+
receivedApprovalsTableConfig: TableConfig;
|
|
81
|
+
sentApprovalsTableConfig: TableConfig;
|
|
69
82
|
private listCache;
|
|
70
83
|
private cacheDuration;
|
|
71
84
|
private cacheTimestamps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { Button, DetailsDialogConfig } from '../classes/Classes';
|
|
4
4
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DialogService {
|
|
@@ -13,7 +13,7 @@ export declare class DialogService {
|
|
|
13
13
|
inputChange: Observable<any>;
|
|
14
14
|
dialogRef: MatDialogRef<T>;
|
|
15
15
|
};
|
|
16
|
-
openConfiguredDetailsDialog<T>(
|
|
16
|
+
openConfiguredDetailsDialog<T>(button: Button, row: any, dialogComponent: new (...args: any[]) => T): Observable<any>;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
18
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
19
19
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Button, Column, TableConfig } from '../classes/Classes';
|
|
2
|
+
import { DataServiceLib } from './datalib.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TableConfigService {
|
|
5
|
+
private dataService;
|
|
6
|
+
constructor(dataService: DataServiceLib);
|
|
4
7
|
setColumns(config: TableConfig, smallScreen: boolean): string[];
|
|
5
8
|
getVisibleColumns(config: TableConfig): Column[];
|
|
6
9
|
getActionsWidth(buttons: Button[], config: TableConfig): string;
|
|
10
|
+
getDisplayedButtons(buttons: Button[], isSmallScreen: boolean, config: TableConfig): Button[];
|
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableConfigService, never>;
|
|
8
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableConfigService>;
|
|
9
13
|
}
|