tin-spa 2.6.7 → 2.6.8
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 +1 -1
- package/esm2020/lib/classes/TinCore.mjs +22 -22
- package/esm2020/lib/components/date/date.component.mjs +4 -4
- package/esm2020/lib/components/form/form.component.mjs +3 -3
- package/esm2020/lib/components/label/label.component.mjs +6 -3
- package/esm2020/lib/components/money/money.component.mjs +26 -9
- package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +3 -3
- package/esm2020/lib/components/number/number.component.mjs +23 -8
- package/esm2020/lib/components/select/select.component.mjs +2 -2
- package/esm2020/lib/components/select-internal/select-internal.component.mjs +2 -2
- package/esm2020/lib/components/suffix/suffix.component.mjs +1 -2
- package/esm2020/lib/components/table/table.component.mjs +6 -7
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +6 -7
- package/esm2020/lib/components/table-lite/table-lite.component.mjs +5 -6
- package/esm2020/lib/pages/customers/customers.component.mjs +8 -47
- package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
- package/esm2020/lib/pages/suppliers/suppliers.component.mjs +3 -31
- package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +1 -1
- package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
- package/esm2020/lib/services/datalib.service.mjs +61 -1
- package/fesm2015/tin-spa.mjs +163 -127
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +159 -127
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/classes/Classes.d.ts +1 -1
- package/lib/classes/TinCore.d.ts +0 -2
- package/lib/components/label/label.component.d.ts +2 -1
- package/lib/components/money/money.component.d.ts +8 -1
- package/lib/components/number/number.component.d.ts +7 -1
- package/lib/components/suffix/suffix.component.d.ts +1 -1
- package/lib/pages/customers/customers.component.d.ts +2 -8
- package/lib/pages/suppliers/suppliers.component.d.ts +1 -4
- package/lib/services/datalib.service.d.ts +4 -0
- package/package.json +1 -1
package/lib/classes/Classes.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface Field {
|
|
|
135
135
|
nullable?: boolean;
|
|
136
136
|
copyContent?: boolean;
|
|
137
137
|
clearContent?: boolean;
|
|
138
|
-
format?: 'text' | 'money' | 'date' | 'datetime';
|
|
138
|
+
format?: 'text' | 'money' | 'date' | 'datetime' | 'number';
|
|
139
139
|
hideOnCreate?: boolean;
|
|
140
140
|
hideOnExists?: boolean;
|
|
141
141
|
hiddenCondition?: (value: any) => boolean;
|
package/lib/classes/TinCore.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DetailsDialogConfig, Field, FormConfig } from "./Classes";
|
|
2
2
|
export declare class Core {
|
|
3
|
-
static deepClone(obj: any): any;
|
|
4
3
|
static camelToWords(value: string): string;
|
|
5
4
|
static generateObject(fields: Field[]): {};
|
|
6
5
|
static resetObject(fields: Field[], data: any): void;
|
|
@@ -9,7 +8,6 @@ export declare class Core {
|
|
|
9
8
|
static getVisibleSubfields(config: FormConfig, data: any, field: Field): Field[];
|
|
10
9
|
static validateObject(fields: Field[], data: any): string;
|
|
11
10
|
static getInitialValue(field: Field): any;
|
|
12
|
-
static getClone(x: any): any;
|
|
13
11
|
static getNumber(value: string): string | 0;
|
|
14
12
|
static getFirstDayOfMonth(): Date;
|
|
15
13
|
static emailIsValid(email: any): boolean;
|
|
@@ -6,6 +6,7 @@ export declare class LabelComponent implements OnInit {
|
|
|
6
6
|
display: string;
|
|
7
7
|
value: string;
|
|
8
8
|
format: string;
|
|
9
|
+
suffix: string;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "spa-label", never, { "display": "display"; "value": "value"; "format": "format"; }, {}, never, never, false>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "spa-label", never, { "display": "display"; "value": "value"; "format": "format"; "suffix": "suffix"; }, {}, never, never, false>;
|
|
11
12
|
}
|
|
@@ -22,12 +22,19 @@ export declare class MoneyComponent implements OnInit {
|
|
|
22
22
|
max: number;
|
|
23
23
|
infoMessage: string;
|
|
24
24
|
infoClick: EventEmitter<void>;
|
|
25
|
+
copyContent: boolean;
|
|
26
|
+
clearContent: boolean;
|
|
27
|
+
suffix: string;
|
|
28
|
+
isHovered: boolean;
|
|
29
|
+
onMouseEnter(): void;
|
|
30
|
+
onMouseLeave(): void;
|
|
25
31
|
onInfoClick(event: MouseEvent): void;
|
|
32
|
+
clear(): void;
|
|
26
33
|
changed(x: any): void;
|
|
27
34
|
leaved(): void;
|
|
28
35
|
enterPressed(): void;
|
|
29
36
|
control: FormControl<string>;
|
|
30
37
|
validate(control: FormControl): string;
|
|
31
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<MoneyComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MoneyComponent, "spa-money", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "width": "width"; "currency": "currency"; "required": "required"; "min": "min"; "max": "max"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MoneyComponent, "spa-money", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "width": "width"; "currency": "currency"; "required": "required"; "min": "min"; "max": "max"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "clearContent": "clearContent"; "suffix": "suffix"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
|
|
33
40
|
}
|
|
@@ -24,6 +24,12 @@ export declare class NumberComponent implements OnInit {
|
|
|
24
24
|
suffix: string;
|
|
25
25
|
infoMessage: string;
|
|
26
26
|
infoClick: EventEmitter<void>;
|
|
27
|
+
copyContent: boolean;
|
|
28
|
+
clearContent: boolean;
|
|
29
|
+
isHovered: boolean;
|
|
30
|
+
onMouseEnter(): void;
|
|
31
|
+
onMouseLeave(): void;
|
|
32
|
+
clear(): void;
|
|
27
33
|
onInfoClick(event: MouseEvent): void;
|
|
28
34
|
changed(): void;
|
|
29
35
|
leaved(): void;
|
|
@@ -31,5 +37,5 @@ export declare class NumberComponent implements OnInit {
|
|
|
31
37
|
control: FormControl<number>;
|
|
32
38
|
validate(control: FormControl): string;
|
|
33
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberComponent, "spa-number", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "width": "width"; "required": "required"; "min": "min"; "max": "max"; "step": "step"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberComponent, "spa-number", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "width": "width"; "required": "required"; "min": "min"; "max": "max"; "step": "step"; "suffix": "suffix"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "clearContent": "clearContent"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
|
|
35
41
|
}
|
|
@@ -10,7 +10,7 @@ export declare class SuffixComponent implements OnInit {
|
|
|
10
10
|
copyContent: boolean;
|
|
11
11
|
isHovered: boolean;
|
|
12
12
|
clearContent: boolean;
|
|
13
|
-
value:
|
|
13
|
+
value: any;
|
|
14
14
|
infoClick: EventEmitter<void>;
|
|
15
15
|
copyClick: EventEmitter<string>;
|
|
16
16
|
clearClick: EventEmitter<void>;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
|
-
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
4
|
-
import { MessageService } from '../../services/message.service';
|
|
5
3
|
import { AuthService } from '../../services/auth.service';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class CustomersComponent 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
|
-
loadTenants(): void;
|
|
14
|
-
formConfig: FormConfig;
|
|
15
|
-
config: TableConfig;
|
|
16
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomersComponent, never>;
|
|
17
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomersComponent, "spa-customers", never, {}, {}, never, never, false>;
|
|
18
12
|
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { DataServiceLib } from '../../services/datalib.service';
|
|
3
|
-
import { FormConfig, TableConfig } from '../../classes/Classes';
|
|
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 SuppliersComponent 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
|
-
suppliersTableConfig: TableConfig;
|
|
15
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuppliersComponent, never>;
|
|
16
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<SuppliersComponent, "spa-suppliers", never, {}, {}, never, never, false>;
|
|
17
14
|
}
|
|
@@ -52,6 +52,10 @@ export declare class DataServiceLib {
|
|
|
52
52
|
departmentFormConfig: FormConfig;
|
|
53
53
|
editDepartmentButton: Button;
|
|
54
54
|
departmentTableConfig: TableConfig;
|
|
55
|
+
customerFormConfig: FormConfig;
|
|
56
|
+
customersTableConfig: TableConfig;
|
|
57
|
+
supplierFormConfig: FormConfig;
|
|
58
|
+
suppliersTableConfig: TableConfig;
|
|
55
59
|
private listCache;
|
|
56
60
|
private cacheDuration;
|
|
57
61
|
private cacheTimestamps;
|