tin-spa 2.4.4 → 2.5.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.
Files changed (40) hide show
  1. package/esm2020/lib/classes/Classes.mjs +3 -1
  2. package/esm2020/lib/components/form/form.component.mjs +8 -8
  3. package/esm2020/lib/components/option/option.component.mjs +32 -14
  4. package/esm2020/lib/components/page/page.component.mjs +23 -34
  5. package/esm2020/lib/components/search/search.component.mjs +10 -5
  6. package/esm2020/lib/components/select/select.component.mjs +2 -6
  7. package/esm2020/lib/components/table/table.component.mjs +27 -11
  8. package/esm2020/lib/components/table-header/table-header.component.mjs +6 -4
  9. package/esm2020/lib/components/table-internal/table-internal.component.mjs +27 -11
  10. package/esm2020/lib/components/table-row/table-row.component.mjs +1 -1
  11. package/esm2020/lib/components/text/text.component.mjs +5 -6
  12. package/esm2020/lib/components/tiles/tiles.component.mjs +8 -3
  13. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
  14. package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
  15. package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
  16. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
  17. package/esm2020/lib/pages/login/login.component.mjs +1 -1
  18. package/esm2020/lib/pages/profile/profile.component.mjs +1 -1
  19. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
  20. package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
  21. package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +1 -1
  22. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +1 -1
  23. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
  24. package/esm2020/lib/pages/welcome/welcome.component.mjs +1 -1
  25. package/fesm2015/tin-spa.mjs +203 -153
  26. package/fesm2015/tin-spa.mjs.map +1 -1
  27. package/fesm2020/tin-spa.mjs +204 -162
  28. package/fesm2020/tin-spa.mjs.map +1 -1
  29. package/lib/classes/Classes.d.ts +2 -2
  30. package/lib/components/form/form.component.d.ts +0 -1
  31. package/lib/components/option/option.component.d.ts +8 -2
  32. package/lib/components/page/page.component.d.ts +7 -6
  33. package/lib/components/search/search.component.d.ts +3 -1
  34. package/lib/components/select/select.component.d.ts +1 -2
  35. package/lib/components/table/table.component.d.ts +1 -0
  36. package/lib/components/table-header/table-header.component.d.ts +2 -1
  37. package/lib/components/table-internal/table-internal.component.d.ts +1 -0
  38. package/lib/components/text/text.component.d.ts +1 -2
  39. package/lib/components/tiles/tiles.component.d.ts +2 -1
  40. package/package.json +1 -1
@@ -98,9 +98,8 @@ export interface Confirm {
98
98
  export interface Condition {
99
99
  condition?: (value: any) => boolean;
100
100
  }
101
- export interface PageConfig {
101
+ export declare class PageConfig {
102
102
  title?: string;
103
- searchConfig?: SearchConfig;
104
103
  tableConfig?: TableConfig;
105
104
  searchTableConfig?: TableConfig;
106
105
  }
@@ -155,6 +154,7 @@ export declare class TableConfig {
155
154
  columns?: Column[];
156
155
  minColumns?: string[];
157
156
  showFilter?: boolean;
157
+ showFilterButton?: boolean;
158
158
  holdFilterSpace?: boolean;
159
159
  holdHeaderButtonSpace?: boolean;
160
160
  elevation?: 'none' | 'low' | 'medium' | 'high';
@@ -29,7 +29,6 @@ export declare class FormComponent implements OnInit {
29
29
  inputChange: EventEmitter<any>;
30
30
  inputChanged(field: Field, value: any): void;
31
31
  updateChildOptions(masterField: Field): void;
32
- handleInfoClick(field: Field): void;
33
32
  buttonClicked(): void;
34
33
  processCall(button: Button): void;
35
34
  processForm(): void;
@@ -1,7 +1,9 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MessageService } from '../../services/message.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class OptionComponent implements OnInit {
4
- constructor();
5
+ private messageService;
6
+ constructor(messageService: MessageService);
5
7
  ngOnInit(): void;
6
8
  OGValue: any;
7
9
  options: any;
@@ -13,12 +15,16 @@ export declare class OptionComponent implements OnInit {
13
15
  display: string;
14
16
  show: boolean;
15
17
  required: boolean;
18
+ infoMessage: string;
19
+ copyContent: boolean;
20
+ suffix: string;
16
21
  valueChange: EventEmitter<any>;
17
22
  enterPress: EventEmitter<any>;
18
23
  changed(): void;
19
24
  dateChanged(x: any): void;
20
25
  enterPressed(): void;
21
26
  resetValue(): void;
27
+ onInfoClick(event: MouseEvent): void;
22
28
  static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "spa-option", never, { "options": "options"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "readonly": "readonly"; "type": "type"; "value": "value"; "display": "display"; "show": "show"; "required": "required"; }, { "valueChange": "valueChange"; "enterPress": "enterPress"; }, never, never, false>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "spa-option", never, { "options": "options"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "readonly": "readonly"; "type": "type"; "value": "value"; "display": "display"; "show": "show"; "required": "required"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "suffix": "suffix"; }, { "valueChange": "valueChange"; "enterPress": "enterPress"; }, never, never, false>;
24
30
  }
@@ -2,24 +2,25 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { PageConfig, TableConfig } from '../../classes/Classes';
3
3
  import { DataServiceLib } from '../../services/datalib.service';
4
4
  import { Subject } from 'rxjs';
5
+ import { MessageService } from '../../services/message.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class PageComponent implements OnInit {
7
8
  dataServiceLib: DataServiceLib;
8
- constructor(dataServiceLib: DataServiceLib);
9
+ private messageService;
10
+ constructor(dataServiceLib: DataServiceLib, messageService: MessageService);
9
11
  ngOnInit(): void;
10
12
  config: PageConfig;
11
13
  searchModeActivated: EventEmitter<any>;
14
+ searchModeDeactivated: EventEmitter<any>;
12
15
  refreshClick: EventEmitter<any>;
13
16
  tableReload: Subject<boolean>;
14
17
  searchMode: boolean;
15
- searchTileData: any;
16
- lastSearch: any;
17
- searchTableData: any[];
18
- searchClicked(data: any, sendEmail: boolean): void;
18
+ normalTableConfig: TableConfig;
19
+ searchTableConfig: TableConfig;
19
20
  toggleSearch(): void;
20
21
  getNormalTableConfig(): TableConfig;
21
22
  getSearchTableConfig(): TableConfig;
22
23
  refreshClicked(): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "spa-page", never, { "config": "config"; }, { "searchModeActivated": "searchModeActivated"; "refreshClick": "refreshClick"; }, never, never, false>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "spa-page", never, { "config": "config"; }, { "searchModeActivated": "searchModeActivated"; "searchModeDeactivated": "searchModeDeactivated"; "refreshClick": "refreshClick"; }, never, never, false>;
25
26
  }
@@ -7,7 +7,9 @@ export declare class SearchComponent implements OnInit {
7
7
  data: any;
8
8
  config: SearchConfig;
9
9
  searchClick: EventEmitter<any>;
10
+ smallScreen: boolean;
11
+ tableDataSource: any;
10
12
  search(): void;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "spa-search", never, { "config": "config"; }, { "searchClick": "searchClick"; }, never, never, false>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "spa-search", never, { "config": "config"; "smallScreen": "smallScreen"; "tableDataSource": "tableDataSource"; }, { "searchClick": "searchClick"; }, never, never, false>;
13
15
  }
@@ -31,7 +31,6 @@ export declare class SelectComponent implements OnInit {
31
31
  infoMessage: string;
32
32
  copyContent: boolean;
33
33
  valueChange: EventEmitter<any>;
34
- infoClick: EventEmitter<void>;
35
34
  copyText(event: MouseEvent): void;
36
35
  changed(): void;
37
36
  onMouseEnter(): void;
@@ -40,5 +39,5 @@ export declare class SelectComponent implements OnInit {
40
39
  onViewClick(event: MouseEvent): void;
41
40
  onInfoClick(event: MouseEvent): void;
42
41
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
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
+ 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"; }, never, never, false>;
44
43
  }
@@ -63,6 +63,7 @@ export declare class TableComponent implements OnInit {
63
63
  showBanner(message: string): void;
64
64
  testDisabled(row: any, buttonName: string): boolean;
65
65
  testVisible(row: any, buttonName: string): boolean;
66
+ lastSearch: any;
66
67
  searchClicked(x: any): void;
67
68
  tileClicked(tile: any): void;
68
69
  tileUnClicked(tile: any): void;
@@ -14,6 +14,7 @@ export declare class TableHeaderComponent {
14
14
  constructor(buttonService: ButtonService, dialogService: DialogService, messageService: MessageService, csvService: CsvService);
15
15
  ngOnInit(): void;
16
16
  createButton: Button;
17
+ lastSearch: any;
17
18
  config: TableConfig;
18
19
  hideTitle: boolean;
19
20
  tableDataSource: any;
@@ -41,5 +42,5 @@ export declare class TableHeaderComponent {
41
42
  testDisabled(button: Button): boolean;
42
43
  getButtonColor(button: Button, row: any): string;
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
44
- 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"; "tileData": "tileData"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "app-table-header", never, { "lastSearch": "lastSearch"; "config": "config"; "hideTitle": "hideTitle"; "tableDataSource": "tableDataSource"; "tileConfig": "tileConfig"; "smallScreen": "smallScreen"; "tileReload": "tileReload"; "showFilterButton": "showFilterButton"; "data": "data"; "tileData": "tileData"; }, { "createClick": "createClick"; "customClick": "customClick"; "refreshClick": "refreshClick"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
45
46
  }
@@ -63,6 +63,7 @@ export declare class TableInternalComponent implements OnInit {
63
63
  showBanner(message: string): void;
64
64
  testDisabled(row: any, buttonName: string): boolean;
65
65
  testVisible(row: any, buttonName: string): boolean;
66
+ lastSearch: any;
66
67
  searchClicked(x: any): void;
67
68
  tileClicked(tile: any): void;
68
69
  tileUnClicked(tile: any): void;
@@ -33,7 +33,6 @@ export declare class TextComponent implements OnInit {
33
33
  regex: string;
34
34
  suffix: string;
35
35
  infoMessage: string;
36
- infoClick: EventEmitter<void>;
37
36
  onInfoClick(event: MouseEvent): void;
38
37
  private initFilter;
39
38
  private _filter;
@@ -46,5 +45,5 @@ export declare class TextComponent implements OnInit {
46
45
  control: FormControl<string>;
47
46
  validate(control: FormControl): string;
48
47
  static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
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>;
48
+ 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"; }, never, never, false>;
50
49
  }
@@ -13,6 +13,7 @@ export declare class TilesComponent implements OnInit {
13
13
  tiles: Tile[];
14
14
  config: TileConfig;
15
15
  tileActionSelected: EventEmitter<Action>;
16
+ lastSearch: any;
16
17
  data: any;
17
18
  reload: Subject<boolean>;
18
19
  tileClick: EventEmitter<any>;
@@ -22,5 +23,5 @@ export declare class TilesComponent implements OnInit {
22
23
  clicked(clickedTile: Tile): void;
23
24
  pop(x: any): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TilesComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "data": "data"; "reload": "reload"; }, { "tileActionSelected": "tileActionSelected"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "lastSearch": "lastSearch"; "data": "data"; "reload": "reload"; }, { "tileActionSelected": "tileActionSelected"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tin-spa",
3
- "version": "2.4.4",
3
+ "version": "2.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"