tin-spa 2.4.1 → 2.4.2
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/components/filter/filter.component.mjs +7 -3
- package/esm2020/lib/components/form/form.component.mjs +3 -3
- package/esm2020/lib/components/option/option.component.mjs +1 -1
- package/esm2020/lib/components/select/select.component.mjs +13 -3
- package/esm2020/lib/components/table/table.component.mjs +13 -4
- package/esm2020/lib/components/table-header/table-header.component.mjs +11 -5
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +12 -3
- package/esm2020/lib/components/table-row/table-row.component.mjs +1 -1
- package/esm2020/lib/components/text/text.component.mjs +25 -15
- package/esm2020/lib/components/tiles/tiles.component.mjs +15 -9
- package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
- 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 +1 -1
- 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/tenant-settings/inviteDialog.component.mjs +1 -1
- 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/pages/welcome/welcome.component.mjs +1 -1
- package/fesm2015/tin-spa.mjs +99 -46
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +99 -46
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/lib/classes/Classes.d.ts +2 -0
- package/lib/components/filter/filter.component.d.ts +1 -0
- package/lib/components/select/select.component.d.ts +3 -1
- package/lib/components/table/table.component.d.ts +3 -0
- package/lib/components/table-header/table-header.component.d.ts +4 -2
- package/lib/components/table-internal/table-internal.component.d.ts +3 -0
- package/lib/components/text/text.component.d.ts +6 -2
- package/lib/components/tiles/tiles.component.d.ts +4 -2
- package/package.json +1 -1
package/lib/classes/Classes.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ export interface Field {
|
|
|
122
122
|
children?: ChildField[];
|
|
123
123
|
masterOptions?: any[];
|
|
124
124
|
nullable?: boolean;
|
|
125
|
+
copyContent?: boolean;
|
|
125
126
|
hideOnCreate?: boolean;
|
|
126
127
|
hideOnExists?: boolean;
|
|
127
128
|
hiddenCondition?: (value: any) => boolean;
|
|
@@ -219,6 +220,7 @@ export interface Tile {
|
|
|
219
220
|
info?: string;
|
|
220
221
|
prefix?: string;
|
|
221
222
|
suffix?: string;
|
|
223
|
+
action?: Action;
|
|
222
224
|
}
|
|
223
225
|
export declare class Step {
|
|
224
226
|
name: string;
|
|
@@ -14,6 +14,7 @@ export declare class FilterComponent implements OnInit {
|
|
|
14
14
|
keyUp(event: KeyboardEvent): void;
|
|
15
15
|
applyFilter(filterValue: string): void;
|
|
16
16
|
refreshClicked(): void;
|
|
17
|
+
clear(): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
18
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "spa-filter", never, { "flatButtons": "flatButtons"; "showText": "showText"; "showButton": "showButton"; "data": "data"; }, { "refreshClick": "refreshClick"; }, never, never, false>;
|
|
19
20
|
}
|
|
@@ -29,8 +29,10 @@ export declare class SelectComponent implements OnInit {
|
|
|
29
29
|
nullable: boolean;
|
|
30
30
|
peekConfig: PeekDialogConfig;
|
|
31
31
|
infoMessage: string;
|
|
32
|
+
copyContent: boolean;
|
|
32
33
|
valueChange: EventEmitter<any>;
|
|
33
34
|
infoClick: EventEmitter<void>;
|
|
35
|
+
copyText(event: MouseEvent): void;
|
|
34
36
|
changed(): void;
|
|
35
37
|
onMouseEnter(): void;
|
|
36
38
|
onMouseLeave(): void;
|
|
@@ -38,5 +40,5 @@ export declare class SelectComponent implements OnInit {
|
|
|
38
40
|
onViewClick(event: MouseEvent): void;
|
|
39
41
|
onInfoClick(event: MouseEvent): void;
|
|
40
42
|
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>;
|
|
43
|
+
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"; "copyContent": "copyContent"; }, { "valueChange": "valueChange"; "infoClick": "infoClick"; }, never, never, false>;
|
|
42
44
|
}
|
|
@@ -32,6 +32,7 @@ export declare class TableComponent implements OnInit {
|
|
|
32
32
|
dataSource: any[];
|
|
33
33
|
displayedColumns: any[];
|
|
34
34
|
displayedButtons: any[];
|
|
35
|
+
originalTableLoadAction: Action;
|
|
35
36
|
tablePaginator: MatPaginator;
|
|
36
37
|
hideTitle: boolean;
|
|
37
38
|
data: any;
|
|
@@ -62,6 +63,8 @@ export declare class TableComponent implements OnInit {
|
|
|
62
63
|
testDisabled(row: any, buttonName: string): boolean;
|
|
63
64
|
testVisible(row: any, buttonName: string): boolean;
|
|
64
65
|
searchClicked(x: any): void;
|
|
66
|
+
tileClicked(tile: any): void;
|
|
67
|
+
tileUnClicked(tile: any): void;
|
|
65
68
|
refreshClicked(): void;
|
|
66
69
|
dataLoaded(x: any): void;
|
|
67
70
|
actionClicked(name: string, row: any): void;
|
|
@@ -26,17 +26,19 @@ export declare class TableHeaderComponent {
|
|
|
26
26
|
customClick: EventEmitter<any>;
|
|
27
27
|
refreshClick: EventEmitter<void>;
|
|
28
28
|
tileClick: EventEmitter<string>;
|
|
29
|
+
tileUnClick: EventEmitter<string>;
|
|
29
30
|
uploadDetailsDialog: DetailsDialogConfig;
|
|
30
31
|
onButtonClick(button: Button): void;
|
|
31
32
|
onDownloadClick(): void;
|
|
32
33
|
onUploadClick(): void;
|
|
33
34
|
onRefreshClick(): void;
|
|
34
|
-
onTileClick(
|
|
35
|
+
onTileClick(tile: any): void;
|
|
36
|
+
onTileUnClick(tile: any): void;
|
|
35
37
|
getHeaderButtons(): Button[];
|
|
36
38
|
testVisibleHeaderButton(btn: any): boolean;
|
|
37
39
|
testVisible(button: Button): boolean;
|
|
38
40
|
testDisabled(button: Button): boolean;
|
|
39
41
|
getButtonColor(button: Button, row: any): string;
|
|
40
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; "data": "data"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; }, never, never, false>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; "data": "data"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
|
|
42
44
|
}
|
|
@@ -32,6 +32,7 @@ export declare class TableInternalComponent implements OnInit {
|
|
|
32
32
|
dataSource: any[];
|
|
33
33
|
displayedColumns: any[];
|
|
34
34
|
displayedButtons: any[];
|
|
35
|
+
originalTableLoadAction: Action;
|
|
35
36
|
tablePaginator: MatPaginator;
|
|
36
37
|
hideTitle: boolean;
|
|
37
38
|
data: any;
|
|
@@ -62,6 +63,8 @@ export declare class TableInternalComponent implements OnInit {
|
|
|
62
63
|
testDisabled(row: any, buttonName: string): boolean;
|
|
63
64
|
testVisible(row: any, buttonName: string): boolean;
|
|
64
65
|
searchClicked(x: any): void;
|
|
66
|
+
tileClicked(tile: any): void;
|
|
67
|
+
tileUnClicked(tile: any): void;
|
|
65
68
|
refreshClicked(): void;
|
|
66
69
|
dataLoaded(x: any): void;
|
|
67
70
|
actionClicked(name: string, row: any): void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { MessageService } from '../../services/message.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TextComponent implements OnInit {
|
|
6
|
-
|
|
7
|
+
private messageService;
|
|
8
|
+
constructor(messageService: MessageService);
|
|
7
9
|
ngOnInit(): void;
|
|
8
10
|
ngAfterViewInit(): void;
|
|
9
11
|
filteredOptions: Observable<string[]>;
|
|
@@ -22,6 +24,7 @@ export declare class TextComponent implements OnInit {
|
|
|
22
24
|
enterPress: EventEmitter<any>;
|
|
23
25
|
rows: number;
|
|
24
26
|
width: string;
|
|
27
|
+
copyContent: boolean;
|
|
25
28
|
options: any;
|
|
26
29
|
optionValue: string;
|
|
27
30
|
required: boolean;
|
|
@@ -34,6 +37,7 @@ export declare class TextComponent implements OnInit {
|
|
|
34
37
|
onInfoClick(event: MouseEvent): void;
|
|
35
38
|
private initFilter;
|
|
36
39
|
private _filter;
|
|
40
|
+
copyText(): void;
|
|
37
41
|
initControl(control: FormControl): void;
|
|
38
42
|
changed(): void;
|
|
39
43
|
leaved(): void;
|
|
@@ -42,5 +46,5 @@ export declare class TextComponent implements OnInit {
|
|
|
42
46
|
control: FormControl<string>;
|
|
43
47
|
validate(control: FormControl): string;
|
|
44
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
|
|
45
|
-
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"; "options": "options"; "optionValue": "optionValue"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
|
|
49
|
+
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"; "options": "options"; "optionValue": "optionValue"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
|
|
46
50
|
}
|
|
@@ -12,14 +12,16 @@ export declare class TilesComponent implements OnInit {
|
|
|
12
12
|
ngOnChanges(): void;
|
|
13
13
|
tiles: Tile[];
|
|
14
14
|
config: TileConfig;
|
|
15
|
+
tileActionSelected: EventEmitter<Action>;
|
|
15
16
|
data: any;
|
|
16
17
|
reload: Subject<boolean>;
|
|
17
18
|
tileClick: EventEmitter<any>;
|
|
19
|
+
tileUnClick: EventEmitter<any>;
|
|
18
20
|
selectedTile: string;
|
|
19
21
|
new: boolean;
|
|
20
|
-
clicked(
|
|
22
|
+
clicked(clickedTile: Tile): void;
|
|
21
23
|
pop(x: any): void;
|
|
22
24
|
loadData(action: Action, data: any): void;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<TilesComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "data": "data"; "reload": "reload"; }, { "tileClick": "tileClick"; }, never, never, false>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "data": "data"; "reload": "reload"; }, { "tileActionSelected": "tileActionSelected"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
|
|
25
27
|
}
|