tin-spa 2.13.2 → 2.13.4

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.
@@ -22,6 +22,7 @@ export declare class dialogOptions {
22
22
  }
23
23
  export declare class DetailsDialogConfig {
24
24
  stepConfig?: StepConfig;
25
+ statusConfig?: StatusConfig;
25
26
  formConfig: FormConfig;
26
27
  tableConfig?: TableConfig;
27
28
  tableConfigs?: TableConfig[];
@@ -120,6 +121,21 @@ export interface Field {
120
121
  maxHeight?: string;
121
122
  valueCalculation?: (value: any) => any;
122
123
  }
124
+ export interface StatusState {
125
+ condition: (value: any) => boolean;
126
+ icon: string;
127
+ color: string;
128
+ }
129
+ export interface StatusItem {
130
+ name: string;
131
+ field: string;
132
+ hiddenCondition?: (data: any) => boolean;
133
+ states: StatusState[];
134
+ }
135
+ export interface StatusConfig {
136
+ items: StatusItem[];
137
+ hiddenCondition?: (data: any) => boolean;
138
+ }
123
139
  export declare class AlertMessage {
124
140
  type?: 'success' | 'info' | 'warn' | 'critical';
125
141
  content: string;
@@ -128,6 +144,7 @@ export declare class AlertMessage {
128
144
  }
129
145
  export declare class AlertMessages {
130
146
  subject?: string;
147
+ compact?: boolean;
131
148
  messages: AlertMessage[];
132
149
  }
133
150
  export declare class NotesConfig {
@@ -38,6 +38,7 @@ export declare class DetailsDialogProcessor {
38
38
  tableConfigs: import("./Classes").TableConfig[];
39
39
  formConfig: FormConfig;
40
40
  stepConfig: import("./Classes").StepConfig;
41
+ statusConfig: import("./Classes").StatusConfig;
41
42
  buttons: import("./Classes").Button[];
42
43
  };
43
44
  static setHeroValue(detailsConfig: DetailsDialogConfig, details: any): void;
@@ -0,0 +1,12 @@
1
+ import { StatusConfig, StatusItem } from '../../classes/Classes';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StatusesComponent {
4
+ config: StatusConfig;
5
+ data: any;
6
+ isComponentVisible(): boolean;
7
+ isItemVisible(item: StatusItem): boolean;
8
+ getIcon(item: StatusItem): string;
9
+ getIconColor(item: StatusItem): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatusesComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusesComponent, "spa-statuses", never, { "config": "config"; "data": "data"; }, {}, never, never, false>;
12
+ }
@@ -1,6 +1,6 @@
1
1
  import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
- import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
3
+ import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig, StatusConfig } from '../../classes/Classes';
4
4
  import { MessageService } from '../../services/message.service';
5
5
  import { DataServiceLib } from '../../services/datalib.service';
6
6
  import { LoaderService } from '../../services/loader.service';
@@ -43,6 +43,7 @@ export declare class DetailsDialog implements OnInit, OnDestroy {
43
43
  details: any;
44
44
  formConfig: FormConfig;
45
45
  stepConfig: StepConfig;
46
+ statusConfig: StatusConfig;
46
47
  smallScreen: boolean;
47
48
  isLoadComplete: boolean;
48
49
  isProcessing: boolean;
@@ -1,6 +1,6 @@
1
1
  import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
- import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
3
+ import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig, StatusConfig } from '../../classes/Classes';
4
4
  import { MessageService } from '../../services/message.service';
5
5
  import { DataServiceLib } from '../../services/datalib.service';
6
6
  import { LoaderService } from '../../services/loader.service';
@@ -43,6 +43,7 @@ export declare class DetailsDialogInternal implements OnInit, OnDestroy {
43
43
  details: any;
44
44
  formConfig: FormConfig;
45
45
  stepConfig: StepConfig;
46
+ statusConfig: StatusConfig;
46
47
  smallScreen: boolean;
47
48
  isLoadComplete: boolean;
48
49
  isProcessing: boolean;
@@ -1,6 +1,6 @@
1
1
  import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
- import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
3
+ import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig, StatusConfig } from '../../classes/Classes';
4
4
  import { MessageService } from '../../services/message.service';
5
5
  import { DataServiceLib } from '../../services/datalib.service';
6
6
  import { LoaderService } from '../../services/loader.service';
@@ -43,6 +43,7 @@ export declare class DetailsDialogLite implements OnInit, OnDestroy {
43
43
  details: any;
44
44
  formConfig: FormConfig;
45
45
  stepConfig: StepConfig;
46
+ statusConfig: StatusConfig;
46
47
  smallScreen: boolean;
47
48
  isLoadComplete: boolean;
48
49
  isProcessing: boolean;
@@ -74,12 +74,13 @@ 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
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";
77
+ import * as i76 from "./components/statuses/statuses.component";
78
+ import * as i77 from "./modules/spa-mat.module";
79
+ import * as i78 from "@angular/common/http";
80
+ import * as i79 from "./components/money/currency-input-mask.module";
81
+ import * as i80 from "ngx-doc-viewer";
81
82
  export declare class TinSpaModule {
82
83
  static ɵfac: i0.ɵɵFactoryDeclaration<TinSpaModule, never>;
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]>;
84
+ 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.StatusesComponent], [typeof i77.SpaMatModule, typeof i78.HttpClientModule, typeof i79.CurrencyInputModule, typeof i80.NgxDocViewerModule], [typeof i1.TinSpaComponent, typeof i77.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, typeof i76.StatusesComponent]>;
84
85
  static ɵinj: i0.ɵɵInjectorDeclaration<TinSpaModule>;
85
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tin-spa",
3
- "version": "2.13.2",
3
+ "version": "2.13.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"
package/public-api.d.ts CHANGED
@@ -54,6 +54,7 @@ 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
56
  export * from './lib/components/tabs/tabs.component';
57
+ export * from './lib/components/statuses/statuses.component';
57
58
  export * from './lib/pages/transactions/transactions.component';
58
59
  export * from './lib/pages/tasks/tasks.component';
59
60
  export * from './lib/pages/departments/departments.component';