tin-spa 2.4.2 → 2.4.3

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 (37) hide show
  1. package/esm2020/lib/classes/Classes.mjs +1 -1
  2. package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +1 -1
  3. package/esm2020/lib/components/option/option.component.mjs +3 -3
  4. package/esm2020/lib/components/page/page.component.mjs +73 -0
  5. package/esm2020/lib/components/table/detailsDialog.component.mjs +1 -1
  6. package/esm2020/lib/components/table/table.component.mjs +6 -3
  7. package/esm2020/lib/components/table-header/table-header.component.mjs +6 -3
  8. package/esm2020/lib/components/table-internal/table-internal.component.mjs +6 -3
  9. package/esm2020/lib/components/tiles/tiles.component.mjs +20 -22
  10. package/esm2020/lib/pages/customers/customers.component.mjs +1 -1
  11. package/esm2020/lib/pages/departments/departments.component.mjs +1 -1
  12. package/esm2020/lib/pages/employees/employees.component.mjs +1 -1
  13. package/esm2020/lib/pages/inventory/inventory.component.mjs +1 -1
  14. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +1 -1
  15. package/esm2020/lib/pages/membership/membership.component.mjs +1 -1
  16. package/esm2020/lib/pages/plans/plans.component.mjs +1 -1
  17. package/esm2020/lib/pages/positions/positions.component.mjs +1 -1
  18. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +1 -1
  19. package/esm2020/lib/pages/tasks/tasks.component.mjs +1 -1
  20. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +1 -1
  21. package/esm2020/lib/pages/tenants/tenants.component.mjs +1 -1
  22. package/esm2020/lib/pages/transactions/transactions.component.mjs +1 -1
  23. package/esm2020/lib/tin-spa.module.mjs +6 -5
  24. package/esm2020/public-api.mjs +2 -1
  25. package/fesm2015/tin-spa.mjs +99 -43
  26. package/fesm2015/tin-spa.mjs.map +1 -1
  27. package/fesm2020/tin-spa.mjs +115 -43
  28. package/fesm2020/tin-spa.mjs.map +1 -1
  29. package/lib/classes/Classes.d.ts +8 -0
  30. package/lib/components/page/page.component.d.ts +25 -0
  31. package/lib/components/table/table.component.d.ts +2 -1
  32. package/lib/components/table-header/table-header.component.d.ts +2 -1
  33. package/lib/components/table-internal/table-internal.component.d.ts +2 -1
  34. package/lib/components/tiles/tiles.component.d.ts +1 -2
  35. package/lib/tin-spa.module.d.ts +6 -5
  36. package/package.json +1 -1
  37. package/public-api.d.ts +1 -0
@@ -47,6 +47,8 @@ export declare class Action {
47
47
  export declare class SearchConfig {
48
48
  fields: SearchField[];
49
49
  searchAction?: Action;
50
+ emailResults?: boolean;
51
+ tileConfig?: TileConfig;
50
52
  }
51
53
  export interface SearchField extends Field {
52
54
  show?: boolean;
@@ -96,6 +98,12 @@ export interface Confirm {
96
98
  export interface Condition {
97
99
  condition?: (value: any) => boolean;
98
100
  }
101
+ export interface PageConfig {
102
+ title?: string;
103
+ searchConfig?: SearchConfig;
104
+ tableConfig?: TableConfig;
105
+ searchTableConfig?: TableConfig;
106
+ }
99
107
  export interface Field {
100
108
  name: string;
101
109
  type: 'text' | 'date' | 'datetime' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number' | 'section' | 'blank' | 'chip' | 'file' | 'file-view' | 'icon' | 'spinner' | 'button' | 'label' | 'email' | 'composite' | 'string';
@@ -0,0 +1,25 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { PageConfig, TableConfig } from '../../classes/Classes';
3
+ import { MessageService } from '../../services/message.service';
4
+ import { DataServiceLib } from '../../services/datalib.service';
5
+ import { Subject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class PageComponent implements OnInit {
8
+ private messageService;
9
+ dataServiceLib: DataServiceLib;
10
+ constructor(messageService: MessageService, dataServiceLib: DataServiceLib);
11
+ ngOnInit(): void;
12
+ config: PageConfig;
13
+ searchModeActivated: EventEmitter<any>;
14
+ tableReload: Subject<boolean>;
15
+ searchMode: boolean;
16
+ searchTileData: any;
17
+ lastSearch: any;
18
+ searchTableData: any[];
19
+ searchClicked(data: any, sendEmail: boolean): void;
20
+ toggleSearch(): void;
21
+ getNormalTableConfig(): TableConfig;
22
+ getSearchTableConfig(): TableConfig;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "spa-page", never, { "config": "config"; }, { "searchModeActivated": "searchModeActivated"; }, never, never, false>;
25
+ }
@@ -36,6 +36,7 @@ export declare class TableComponent implements OnInit {
36
36
  tablePaginator: MatPaginator;
37
37
  hideTitle: boolean;
38
38
  data: any;
39
+ tileData: any;
39
40
  config: TableConfig;
40
41
  reload: Subject<boolean>;
41
42
  dataLoad: EventEmitter<any>;
@@ -81,5 +82,5 @@ export declare class TableComponent implements OnInit {
81
82
  execAction(b: Button, row: any): void;
82
83
  private getElevationClass;
83
84
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "spa-table", never, { "hideTitle": "hideTitle"; "data": "data"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "spa-table", never, { "hideTitle": "hideTitle"; "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
85
86
  }
@@ -22,6 +22,7 @@ export declare class TableHeaderComponent {
22
22
  tileReload: Subject<boolean>;
23
23
  showFilterButton: boolean;
24
24
  data: any;
25
+ tileData: any;
25
26
  createClick: EventEmitter<void>;
26
27
  customClick: EventEmitter<any>;
27
28
  refreshClick: EventEmitter<void>;
@@ -40,5 +41,5 @@ export declare class TableHeaderComponent {
40
41
  testDisabled(button: Button): boolean;
41
42
  getButtonColor(button: Button, row: any): string;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
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>;
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>;
44
45
  }
@@ -36,6 +36,7 @@ export declare class TableInternalComponent implements OnInit {
36
36
  tablePaginator: MatPaginator;
37
37
  hideTitle: boolean;
38
38
  data: any;
39
+ tileData: any;
39
40
  config: TableConfig;
40
41
  reload: Subject<boolean>;
41
42
  dataLoad: EventEmitter<any>;
@@ -81,5 +82,5 @@ export declare class TableInternalComponent implements OnInit {
81
82
  execAction(b: Button, row: any): void;
82
83
  private getElevationClass;
83
84
  static ɵfac: i0.ɵɵFactoryDeclaration<TableInternalComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "hideTitle": "hideTitle"; "data": "data"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "hideTitle": "hideTitle"; "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
85
86
  }
@@ -18,10 +18,9 @@ export declare class TilesComponent implements OnInit {
18
18
  tileClick: EventEmitter<any>;
19
19
  tileUnClick: EventEmitter<any>;
20
20
  selectedTile: string;
21
- new: boolean;
21
+ loadData(action: Action, data: any): void;
22
22
  clicked(clickedTile: Tile): void;
23
23
  pop(x: any): void;
24
- loadData(action: Action, data: any): void;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<TilesComponent, never>;
26
25
  static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "data": "data"; "reload": "reload"; }, { "tileActionSelected": "tileActionSelected"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
27
26
  }
@@ -56,12 +56,13 @@ import * as i54 from "./components/table-row/table-row.component";
56
56
  import * as i55 from "./components/table-action/table-action.component";
57
57
  import * as i56 from "./components/alert/alert.component";
58
58
  import * as i57 from "./components/email/email.component";
59
- import * as i58 from "./modules/spa-mat.module";
60
- import * as i59 from "@angular/common/http";
61
- import * as i60 from "./components/money/currency-input-mask.module";
62
- import * as i61 from "ngx-doc-viewer";
59
+ import * as i58 from "./components/page/page.component";
60
+ import * as i59 from "./modules/spa-mat.module";
61
+ import * as i60 from "@angular/common/http";
62
+ import * as i61 from "./components/money/currency-input-mask.module";
63
+ import * as i62 from "ngx-doc-viewer";
63
64
  export declare class TinSpaModule {
64
65
  static ɵfac: i0.ɵɵFactoryDeclaration<TinSpaModule, never>;
65
- 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.TableInternalComponent, typeof i21.DetailsDialog, typeof i22.DetailsDialogInternal, typeof i23.FormComponent, typeof i24.CamelToWordsPipe, typeof i25.NumberComponent, typeof i26.SearchComponent, typeof i27.ViewerComponent, typeof i28.viewerDialog, typeof i29.TenantSettingsComponent, typeof i30.inviteDialog, typeof i31.TenantsComponent, typeof i32.BugComponent, typeof i33.MembershipComponent, typeof i34.PlansComponent, typeof i35.CustomersComponent, typeof i36.InventoryComponent, typeof i37.quantityDialog, typeof i38.AccountsComponent, typeof i39.accountDialog, typeof i40.SuppliersComponent, typeof i41.TransactionsComponent, typeof i42.transactDialog, typeof i43.ListDialogComponent, typeof i44.TasksComponent, typeof i45.DepartmentsComponent, typeof i46.EmployeesComponent, typeof i47.PositionsComponent, typeof i48.GradesComponent, typeof i49.WelcomeComponent, typeof i50.InvitationsComponent, typeof i51.NotificationsComponent, typeof i52.InvitationsTableComponent, typeof i53.TableHeaderComponent, typeof i54.TableRowComponent, typeof i55.TableActionComponent, typeof i56.AlertComponent, typeof i57.EmailComponent], [typeof i58.SpaMatModule, typeof i59.HttpClientModule, typeof i60.CurrencyInputModule, typeof i61.NgxDocViewerModule], [typeof i1.TinSpaComponent, typeof i58.SpaMatModule, typeof i56.AlertComponent, 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 i21.DetailsDialog, typeof i23.FormComponent, typeof i25.NumberComponent, typeof i26.SearchComponent, typeof i27.ViewerComponent, typeof i28.viewerDialog, typeof i43.ListDialogComponent, typeof i35.CustomersComponent, typeof i38.AccountsComponent, typeof i36.InventoryComponent, typeof i40.SuppliersComponent, typeof i41.TransactionsComponent, typeof i43.ListDialogComponent, typeof i44.TasksComponent, typeof i45.DepartmentsComponent, typeof i46.EmployeesComponent, typeof i47.PositionsComponent, typeof i48.GradesComponent, typeof i49.WelcomeComponent, typeof i57.EmailComponent]>;
66
+ 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.TableInternalComponent, typeof i21.DetailsDialog, typeof i22.DetailsDialogInternal, typeof i23.FormComponent, typeof i24.CamelToWordsPipe, typeof i25.NumberComponent, typeof i26.SearchComponent, typeof i27.ViewerComponent, typeof i28.viewerDialog, typeof i29.TenantSettingsComponent, typeof i30.inviteDialog, typeof i31.TenantsComponent, typeof i32.BugComponent, typeof i33.MembershipComponent, typeof i34.PlansComponent, typeof i35.CustomersComponent, typeof i36.InventoryComponent, typeof i37.quantityDialog, typeof i38.AccountsComponent, typeof i39.accountDialog, typeof i40.SuppliersComponent, typeof i41.TransactionsComponent, typeof i42.transactDialog, typeof i43.ListDialogComponent, typeof i44.TasksComponent, typeof i45.DepartmentsComponent, typeof i46.EmployeesComponent, typeof i47.PositionsComponent, typeof i48.GradesComponent, typeof i49.WelcomeComponent, typeof i50.InvitationsComponent, typeof i51.NotificationsComponent, typeof i52.InvitationsTableComponent, typeof i53.TableHeaderComponent, typeof i54.TableRowComponent, typeof i55.TableActionComponent, typeof i56.AlertComponent, typeof i57.EmailComponent, typeof i58.PageComponent], [typeof i59.SpaMatModule, typeof i60.HttpClientModule, typeof i61.CurrencyInputModule, typeof i62.NgxDocViewerModule], [typeof i1.TinSpaComponent, typeof i59.SpaMatModule, typeof i56.AlertComponent, 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 i21.DetailsDialog, typeof i23.FormComponent, typeof i25.NumberComponent, typeof i26.SearchComponent, typeof i27.ViewerComponent, typeof i28.viewerDialog, typeof i43.ListDialogComponent, typeof i35.CustomersComponent, typeof i38.AccountsComponent, typeof i36.InventoryComponent, typeof i40.SuppliersComponent, typeof i41.TransactionsComponent, typeof i43.ListDialogComponent, typeof i44.TasksComponent, typeof i45.DepartmentsComponent, typeof i46.EmployeesComponent, typeof i47.PositionsComponent, typeof i48.GradesComponent, typeof i49.WelcomeComponent, typeof i57.EmailComponent, typeof i58.PageComponent]>;
66
67
  static ɵinj: i0.ɵɵInjectorDeclaration<TinSpaModule>;
67
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tin-spa",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"
package/public-api.d.ts CHANGED
@@ -46,6 +46,7 @@ export * from './lib/components/viewer/viewerDialog.component';
46
46
  export * from './lib/components/nav-menu/nav-menu.component';
47
47
  export * from './lib/components/list-dialog/list-dialog.component';
48
48
  export * from './lib/components/email/email.component';
49
+ export * from './lib/components/page/page.component';
49
50
  export * from './lib/pages/transactions/transactions.component';
50
51
  export * from './lib/pages/tasks/tasks.component';
51
52
  export * from './lib/pages/departments/departments.component';