tin-spa 14.10.2 → 14.13.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.
Files changed (29) hide show
  1. package/esm2020/lib/classes/Classes.mjs +1 -1
  2. package/esm2020/lib/components/capsules/capsules.component.mjs +3 -3
  3. package/esm2020/lib/components/cards/cards.component.mjs +3 -3
  4. package/esm2020/lib/components/form/form.component.mjs +3 -3
  5. package/esm2020/lib/components/html/html.component.mjs +3 -3
  6. package/esm2020/lib/components/label/label.component.mjs +6 -3
  7. package/esm2020/lib/components/notes/notes.component.mjs +3 -3
  8. package/esm2020/lib/components/select-common/select-common.component.mjs +28 -9
  9. package/esm2020/lib/components/table/table.component.mjs +1 -1
  10. package/esm2020/lib/components/table-header/table-header.component.mjs +3 -3
  11. package/esm2020/lib/components/table-internal/table-internal.component.mjs +1 -1
  12. package/esm2020/lib/components/table-lite/table-lite.component.mjs +1 -1
  13. package/esm2020/lib/components/tabs/tabs.component.mjs +83 -0
  14. package/esm2020/lib/pages/profile/profile.component.mjs +1 -1
  15. package/esm2020/lib/pages/settings/settings.component.mjs +4 -3
  16. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +1 -1
  17. package/esm2020/lib/tin-spa.module.mjs +6 -5
  18. package/esm2020/public-api.mjs +2 -1
  19. package/fesm2015/tin-spa.mjs +129 -31
  20. package/fesm2015/tin-spa.mjs.map +1 -1
  21. package/fesm2020/tin-spa.mjs +128 -31
  22. package/fesm2020/tin-spa.mjs.map +1 -1
  23. package/lib/classes/Classes.d.ts +2 -0
  24. package/lib/components/label/label.component.d.ts +2 -1
  25. package/lib/components/select-common/select-common.component.d.ts +3 -0
  26. package/lib/components/tabs/tabs.component.d.ts +32 -0
  27. package/lib/tin-spa.module.d.ts +6 -5
  28. package/package.json +1 -1
  29. package/public-api.d.ts +1 -0
@@ -213,6 +213,7 @@ export declare class TileConfig {
213
213
  loadAction?: Action;
214
214
  loadInit?: boolean;
215
215
  clickable?: boolean;
216
+ headerPosition?: 'top' | 'middle';
216
217
  }
217
218
  export declare class Step {
218
219
  name: string;
@@ -274,6 +275,7 @@ export declare class TableConfig {
274
275
  buttons?: Button[];
275
276
  minButtons?: string[];
276
277
  loadAction?: Action;
278
+ countAction?: Action;
277
279
  loadIDField?: string;
278
280
  loadCriteria?: string;
279
281
  lazyLoad?: boolean;
@@ -7,6 +7,7 @@ export declare class LabelComponent implements OnInit {
7
7
  value: string;
8
8
  format: string;
9
9
  suffix: string;
10
+ size: string;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "spa-label", never, { "display": "display"; "value": "value"; "format": "format"; "suffix": "suffix"; }, {}, never, never, false>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "spa-label", never, { "display": "display"; "value": "value"; "format": "format"; "suffix": "suffix"; "size": "size"; }, {}, never, never, false>;
12
13
  }
@@ -11,6 +11,7 @@ export declare class SelectCommonComponent implements OnInit, OnDestroy {
11
11
  ngOnChanges(): void;
12
12
  displayValue: any;
13
13
  isHovered: boolean;
14
+ selectedOptionHint: string;
14
15
  private subscription;
15
16
  width: string;
16
17
  readonly: boolean;
@@ -39,6 +40,8 @@ export declare class SelectCommonComponent implements OnInit, OnDestroy {
39
40
  hoverChange: EventEmitter<boolean>;
40
41
  setDefaultValue(): void;
41
42
  changed(): void;
43
+ private updateSelectedOptionHint;
44
+ get computedHint(): string;
42
45
  onMouseEnter(): void;
43
46
  onMouseLeave(): void;
44
47
  refresh(event: MouseEvent): void;
@@ -0,0 +1,32 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TableConfig } from '../../classes/Classes';
3
+ import { DataServiceLib } from '../../services/datalib.service';
4
+ import { Subject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TabsComponent implements OnInit {
7
+ private dataService;
8
+ constructor(dataService: DataServiceLib);
9
+ ngOnInit(): void;
10
+ tableConfigs: TableConfig[];
11
+ tabCounts: {
12
+ [index: number]: number;
13
+ };
14
+ activeTabsLoaded: {
15
+ [index: number]: boolean;
16
+ };
17
+ selectedTabIndex: number;
18
+ tableReloads: {
19
+ [index: number]: Subject<boolean>;
20
+ };
21
+ private loadAllCounts;
22
+ private loadTabCount;
23
+ onTabChange(event: any): void;
24
+ getTabCount(index: number): number | undefined;
25
+ shouldShowBadge(index: number): boolean;
26
+ getTabTitle(config: TableConfig): string;
27
+ shouldLoadTabData(index: number): boolean;
28
+ refreshTabCount(index: number): void;
29
+ onTableActionResponse(tabIndex: number, event: any): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "spa-tabs", never, { "tableConfigs": "tableConfigs"; }, {}, never, never, false>;
32
+ }
@@ -73,12 +73,13 @@ import * as i71 from "./components/html/html.component";
73
73
  import * as i72 from "./components/notes/notes.component";
74
74
  import * as i73 from "./components/capsules/capsules.component";
75
75
  import * as i74 from "./components/cards/cards.component";
76
- import * as i75 from "./modules/spa-mat.module";
77
- import * as i76 from "@angular/common/http";
78
- import * as i77 from "./components/money/currency-input-mask.module";
79
- import * as i78 from "ngx-doc-viewer";
76
+ import * as i75 from "./components/tabs/tabs.component";
77
+ import * as i76 from "./modules/spa-mat.module";
78
+ import * as i77 from "@angular/common/http";
79
+ import * as i78 from "./components/money/currency-input-mask.module";
80
+ import * as i79 from "ngx-doc-viewer";
80
81
  export declare class TinSpaModule {
81
82
  static ɵfac: i0.ɵɵFactoryDeclaration<TinSpaModule, never>;
82
- 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.TenantsComponent, typeof i31.BugComponent, typeof i32.MembershipComponent, typeof i33.PlansComponent, typeof i34.CustomersComponent, typeof i35.InventoryComponent, typeof i36.quantityDialog, typeof i37.AccountsComponent, typeof i38.accountDialog, typeof i39.SuppliersComponent, typeof i40.TransactionsComponent, typeof i41.transactDialog, typeof i42.ListDialogComponent, typeof i43.TasksComponent, typeof i44.DepartmentsComponent, typeof i45.EmployeesComponent, typeof i46.PositionsComponent, typeof i47.GradesComponent, typeof i48.WelcomeComponent, typeof i49.NotificationsComponent, typeof i50.InvitationsTableComponent, typeof i51.TableHeaderComponent, typeof i52.TableRowComponent, typeof i53.TableActionComponent, typeof i54.AlertComponent, typeof i55.EmailComponent, typeof i56.PageComponent, typeof i57.SelectCommonComponent, typeof i58.SelectInternalComponent, typeof i59.SuffixComponent, typeof i60.SelectContextDirective, typeof i61.SelectLiteComponent, typeof i62.TableLiteComponent, typeof i63.DetailsDialogLite, typeof i64.ApprovalsComponent, typeof i65.ApprovalsConfigComponent, typeof i66.MultiTextComponent, typeof i67.MultiSelectComponent, typeof i68.SelectBitwiseComponent, typeof i69.AppModelsComponent, typeof i70.NotificationsConfigComponent, typeof i71.HtmlComponent, typeof i72.NotesComponent, typeof i73.CapsulesComponent, typeof i74.CardsComponent], [typeof i75.SpaMatModule, typeof i76.HttpClientModule, typeof i77.CurrencyInputModule, typeof i78.NgxDocViewerModule], [typeof i1.TinSpaComponent, typeof i75.SpaMatModule, typeof i54.AlertComponent, typeof i2.TextComponent, typeof i66.MultiTextComponent, typeof i10.messageDialog, typeof i18.NavMenuComponent, typeof i17.LoaderComponent, typeof i13.TilesComponent, typeof i4.DateComponent, typeof i7.SelectComponent, typeof i68.SelectBitwiseComponent, typeof i67.MultiSelectComponent, 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 i42.ListDialogComponent, typeof i34.CustomersComponent, typeof i37.AccountsComponent, typeof i35.InventoryComponent, typeof i39.SuppliersComponent, typeof i40.TransactionsComponent, typeof i42.ListDialogComponent, typeof i43.TasksComponent, typeof i44.DepartmentsComponent, typeof i45.EmployeesComponent, typeof i46.PositionsComponent, typeof i47.GradesComponent, typeof i48.WelcomeComponent, typeof i55.EmailComponent, typeof i56.PageComponent, typeof i71.HtmlComponent, typeof i72.NotesComponent, typeof i73.CapsulesComponent]>;
83
+ 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.TenantsComponent, typeof i31.BugComponent, typeof i32.MembershipComponent, typeof i33.PlansComponent, typeof i34.CustomersComponent, typeof i35.InventoryComponent, typeof i36.quantityDialog, typeof i37.AccountsComponent, typeof i38.accountDialog, typeof i39.SuppliersComponent, typeof i40.TransactionsComponent, typeof i41.transactDialog, typeof i42.ListDialogComponent, typeof i43.TasksComponent, typeof i44.DepartmentsComponent, typeof i45.EmployeesComponent, typeof i46.PositionsComponent, typeof i47.GradesComponent, typeof i48.WelcomeComponent, typeof i49.NotificationsComponent, typeof i50.InvitationsTableComponent, typeof i51.TableHeaderComponent, typeof i52.TableRowComponent, typeof i53.TableActionComponent, typeof i54.AlertComponent, typeof i55.EmailComponent, typeof i56.PageComponent, typeof i57.SelectCommonComponent, typeof i58.SelectInternalComponent, typeof i59.SuffixComponent, typeof i60.SelectContextDirective, typeof i61.SelectLiteComponent, typeof i62.TableLiteComponent, typeof i63.DetailsDialogLite, typeof i64.ApprovalsComponent, typeof i65.ApprovalsConfigComponent, typeof i66.MultiTextComponent, typeof i67.MultiSelectComponent, typeof i68.SelectBitwiseComponent, typeof i69.AppModelsComponent, typeof i70.NotificationsConfigComponent, typeof i71.HtmlComponent, typeof i72.NotesComponent, typeof i73.CapsulesComponent, typeof i74.CardsComponent, typeof i75.TabsComponent], [typeof i76.SpaMatModule, typeof i77.HttpClientModule, typeof i78.CurrencyInputModule, typeof i79.NgxDocViewerModule], [typeof i1.TinSpaComponent, typeof i76.SpaMatModule, typeof i54.AlertComponent, typeof i2.TextComponent, typeof i66.MultiTextComponent, typeof i10.messageDialog, typeof i18.NavMenuComponent, typeof i17.LoaderComponent, typeof i13.TilesComponent, typeof i4.DateComponent, typeof i7.SelectComponent, typeof i68.SelectBitwiseComponent, typeof i67.MultiSelectComponent, 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 i42.ListDialogComponent, typeof i34.CustomersComponent, typeof i37.AccountsComponent, typeof i35.InventoryComponent, typeof i39.SuppliersComponent, typeof i40.TransactionsComponent, typeof i42.ListDialogComponent, typeof i43.TasksComponent, typeof i44.DepartmentsComponent, typeof i45.EmployeesComponent, typeof i46.PositionsComponent, typeof i47.GradesComponent, typeof i48.WelcomeComponent, typeof i55.EmailComponent, typeof i56.PageComponent, typeof i71.HtmlComponent, typeof i72.NotesComponent, typeof i73.CapsulesComponent, typeof i75.TabsComponent]>;
83
84
  static ɵinj: i0.ɵɵInjectorDeclaration<TinSpaModule>;
84
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tin-spa",
3
- "version": "14.10.2",
3
+ "version": "14.13.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"
package/public-api.d.ts CHANGED
@@ -53,6 +53,7 @@ export * from './lib/components/page/page.component';
53
53
  export * from './lib/components/html/html.component';
54
54
  export * from './lib/components/notes/notes.component';
55
55
  export * from './lib/components/capsules/capsules.component';
56
+ export * from './lib/components/tabs/tabs.component';
56
57
  export * from './lib/pages/transactions/transactions.component';
57
58
  export * from './lib/pages/tasks/tasks.component';
58
59
  export * from './lib/pages/departments/departments.component';