tin-spa 2.5.0 → 2.6.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 (105) hide show
  1. package/esm2020/lib/classes/Classes.mjs +3 -1
  2. package/esm2020/lib/classes/TinCore.mjs +28 -15
  3. package/esm2020/lib/components/alert/alert.component.mjs +11 -6
  4. package/esm2020/lib/components/email/email.component.mjs +19 -17
  5. package/esm2020/lib/components/form/form.component.mjs +17 -17
  6. package/esm2020/lib/components/label/label.component.mjs +3 -3
  7. package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +1 -1
  8. package/esm2020/lib/components/option/option.component.mjs +4 -4
  9. package/esm2020/lib/components/page/page.component.mjs +1 -1
  10. package/esm2020/lib/components/search/search.component.mjs +3 -3
  11. package/esm2020/lib/components/select/select.component.mjs +33 -130
  12. package/esm2020/lib/components/select-common/select-common.component.mjs +135 -0
  13. package/esm2020/lib/components/select-internal/select-internal.component.mjs +47 -0
  14. package/esm2020/lib/components/select-lite/select-lite.component.mjs +13 -0
  15. package/esm2020/lib/components/steps/steps.component.mjs +33 -59
  16. package/esm2020/lib/components/suffix/suffix.component.mjs +71 -0
  17. package/esm2020/lib/components/table/detailsDialog.component.mjs +15 -11
  18. package/esm2020/lib/components/table/table.component.mjs +12 -55
  19. package/esm2020/lib/components/table-header/table-header.component.mjs +3 -3
  20. package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +18 -12
  21. package/esm2020/lib/components/table-internal/table-internal.component.mjs +13 -56
  22. package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +243 -0
  23. package/esm2020/lib/components/table-lite/table-lite.component.mjs +390 -0
  24. package/esm2020/lib/components/table-row/table-row.component.mjs +18 -4
  25. package/esm2020/lib/components/text/text.component.mjs +28 -35
  26. package/esm2020/lib/components/viewer/viewer.component.mjs +7 -3
  27. package/esm2020/lib/modules/admin/admin-routing.module.mjs +5 -1
  28. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
  29. package/esm2020/lib/pages/approvals/approvals.component.mjs +61 -0
  30. package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +89 -0
  31. package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
  32. package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
  33. package/esm2020/lib/pages/customers/customers.component.mjs +8 -8
  34. package/esm2020/lib/pages/departments/departments.component.mjs +1 -1
  35. package/esm2020/lib/pages/employees/employees.component.mjs +1 -1
  36. package/esm2020/lib/pages/inventory/inventory.component.mjs +1 -1
  37. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
  38. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +11 -10
  39. package/esm2020/lib/pages/login/login.component.mjs +1 -1
  40. package/esm2020/lib/pages/logs/logs.component.mjs +21 -22
  41. package/esm2020/lib/pages/membership/membership.component.mjs +15 -19
  42. package/esm2020/lib/pages/plans/plans.component.mjs +16 -19
  43. package/esm2020/lib/pages/positions/positions.component.mjs +3 -3
  44. package/esm2020/lib/pages/profile/profile.component.mjs +1 -1
  45. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
  46. package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +2 -2
  47. package/esm2020/lib/pages/roles/roles.component.mjs +2 -2
  48. package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
  49. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +9 -9
  50. package/esm2020/lib/pages/tasks/tasks.component.mjs +9 -9
  51. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +99 -71
  52. package/esm2020/lib/pages/tenants/tenants.component.mjs +8 -8
  53. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
  54. package/esm2020/lib/pages/transactions/transactions.component.mjs +1 -1
  55. package/esm2020/lib/pages/users/users.component.mjs +114 -92
  56. package/esm2020/lib/pages/welcome/welcome.component.mjs +8 -8
  57. package/esm2020/lib/select-context.directive.mjs +23 -0
  58. package/esm2020/lib/services/button.service.mjs +5 -6
  59. package/esm2020/lib/services/datalib.service.mjs +26 -15
  60. package/esm2020/lib/services/dialog.service.mjs +12 -1
  61. package/esm2020/lib/services/table-config.service.mjs +7 -3
  62. package/esm2020/lib/tin-spa.module.mjs +16 -9
  63. package/fesm2015/tin-spa.mjs +2900 -2074
  64. package/fesm2015/tin-spa.mjs.map +1 -1
  65. package/fesm2020/tin-spa.mjs +2598 -1761
  66. package/fesm2020/tin-spa.mjs.map +1 -1
  67. package/lib/classes/Classes.d.ts +17 -4
  68. package/lib/classes/TinCore.d.ts +1 -0
  69. package/lib/components/email/email.component.d.ts +4 -3
  70. package/lib/components/form/form.component.d.ts +4 -2
  71. package/lib/components/select/select.component.d.ts +9 -35
  72. package/lib/components/select-common/select-common.component.d.ts +42 -0
  73. package/lib/components/select-internal/select-internal.component.d.ts +17 -0
  74. package/lib/components/select-lite/select-lite.component.d.ts +6 -0
  75. package/lib/components/steps/steps.component.d.ts +9 -9
  76. package/lib/components/suffix/suffix.component.d.ts +23 -0
  77. package/lib/components/table/detailsDialog.component.d.ts +3 -2
  78. package/lib/components/table/table.component.d.ts +2 -2
  79. package/lib/components/table-internal/detailsDialog-internal.component.d.ts +3 -2
  80. package/lib/components/table-internal/table-internal.component.d.ts +2 -2
  81. package/lib/components/table-lite/detailsDialog-lite.component.d.ts +65 -0
  82. package/lib/components/table-lite/table-lite.component.d.ts +87 -0
  83. package/lib/components/table-row/table-row.component.d.ts +2 -0
  84. package/lib/components/text/text.component.d.ts +7 -6
  85. package/lib/pages/approvals/approvals.component.d.ts +11 -0
  86. package/lib/pages/approvals-config/approvals-config.component.d.ts +14 -0
  87. package/lib/pages/invitations-table/invitations-table.component.d.ts +1 -1
  88. package/lib/pages/logs/logs.component.d.ts +2 -6
  89. package/lib/pages/membership/membership.component.d.ts +2 -6
  90. package/lib/pages/plans/plans.component.d.ts +2 -6
  91. package/lib/pages/suppliers/suppliers.component.d.ts +1 -1
  92. package/lib/pages/tasks/tasks.component.d.ts +1 -1
  93. package/lib/pages/tenant-settings/tenant-settings.component.d.ts +10 -7
  94. package/lib/pages/tenants/tenants.component.d.ts +1 -1
  95. package/lib/pages/users/users.component.d.ts +8 -16
  96. package/lib/select-context.directive.d.ts +10 -0
  97. package/lib/services/button.service.d.ts +0 -1
  98. package/lib/services/datalib.service.d.ts +3 -1
  99. package/lib/services/table-config.service.d.ts +1 -1
  100. package/lib/tin-spa.module.d.ts +41 -34
  101. package/package.json +1 -1
  102. package/esm2020/lib/pages/invitations/invitations.component.mjs +0 -14
  103. package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +0 -60
  104. package/lib/pages/invitations/invitations.component.d.ts +0 -8
  105. package/lib/pages/tenant-settings/inviteDialog.component.d.ts +0 -28
@@ -21,6 +21,7 @@ export declare enum DetailsSource {
21
21
  Url = 1
22
22
  }
23
23
  export declare class DetailsDialogConfig {
24
+ stepConfig?: StepConfig;
24
25
  formConfig: FormConfig;
25
26
  tableConfig?: TableConfig;
26
27
  tableConfigs?: TableConfig[];
@@ -105,7 +106,7 @@ export declare class PageConfig {
105
106
  }
106
107
  export interface Field {
107
108
  name: string;
108
- type: 'text' | 'date' | 'datetime' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number' | 'section' | 'blank' | 'chip' | 'file' | 'file-view' | 'icon' | 'spinner' | 'button' | 'label' | 'email' | 'composite' | 'string';
109
+ type: 'text' | 'password' | 'date' | 'datetime' | 'datetimesec' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number' | 'section' | 'blank' | 'chip' | 'file' | 'file-view' | 'icon' | 'spinner' | 'button' | 'label' | 'email' | 'composite' | 'string';
109
110
  alias?: string;
110
111
  options?: any[];
111
112
  optionDisplay?: string;
@@ -122,7 +123,7 @@ export interface Field {
122
123
  readonly?: boolean;
123
124
  hidden?: boolean;
124
125
  path?: string;
125
- keyFiledName?: string;
126
+ keyField?: string;
126
127
  hint?: string;
127
128
  masterField?: string;
128
129
  child?: ChildField;
@@ -130,11 +131,14 @@ export interface Field {
130
131
  masterOptions?: any[];
131
132
  nullable?: boolean;
132
133
  copyContent?: boolean;
134
+ clearContent?: boolean;
135
+ format?: 'text' | 'money' | 'date' | 'datetime';
133
136
  hideOnCreate?: boolean;
134
137
  hideOnExists?: boolean;
135
138
  hiddenCondition?: (value: any) => boolean;
136
139
  readonlyCondition?: (value: any) => boolean;
137
140
  peekConfig?: PeekDialogConfig;
141
+ loadAction?: Action;
138
142
  infoMessage?: string;
139
143
  suffix?: string;
140
144
  subfields?: Field[];
@@ -161,6 +165,7 @@ export declare class TableConfig {
161
165
  formConfig?: FormConfig;
162
166
  searchConfig?: SearchConfig;
163
167
  tileConfig?: TileConfig;
168
+ stepConfig?: StepConfig;
164
169
  buttons?: Button[];
165
170
  minButtons?: string[];
166
171
  loadAction?: Action;
@@ -174,6 +179,7 @@ export declare class TableConfig {
174
179
  collapseButtons?: boolean;
175
180
  parentData?: any;
176
181
  pageSizes?: number[];
182
+ maxButtons?: number;
177
183
  hideTabCondition?: (value: any) => boolean;
178
184
  download?: {
179
185
  columns: string[];
@@ -188,8 +194,9 @@ export declare class TableConfig {
188
194
  }
189
195
  export interface Column {
190
196
  name: string;
191
- type?: 'text' | 'date' | 'datetime' | 'checkbox' | 'select' | 'money' | 'number' | 'chip' | 'icon' | 'spinner' | 'button';
197
+ type?: 'text' | 'date' | 'datetime' | 'datetimesec' | 'checkbox' | 'select' | 'money' | 'number' | 'chip' | 'icon' | 'spinner' | 'button';
192
198
  alias?: string;
199
+ max?: number;
193
200
  icon?: Icon;
194
201
  color?: Color;
195
202
  colors?: Color[];
@@ -230,9 +237,15 @@ export interface Tile {
230
237
  suffix?: string;
231
238
  action?: Action;
232
239
  }
240
+ export declare class StepConfig {
241
+ steps: Step[];
242
+ valueField?: string;
243
+ }
233
244
  export declare class Step {
234
245
  name: string;
235
- icon: string;
246
+ value?: any;
247
+ icon?: string;
248
+ hiddenCondition?: (value: any) => boolean;
236
249
  }
237
250
  export declare class ActionResponse {
238
251
  name: string;
@@ -30,6 +30,7 @@ export declare class DetailsDialogProcessor {
30
30
  tableConfig: import("./Classes").TableConfig;
31
31
  tableConfigs: import("./Classes").TableConfig[];
32
32
  formConfig: FormConfig;
33
+ stepConfig: import("./Classes").StepConfig;
33
34
  buttons: import("./Classes").Button[];
34
35
  };
35
36
  static setHeroValue(detailsConfig: DetailsDialogConfig, details: any): void;
@@ -16,7 +16,8 @@ export declare class EmailComponent implements OnInit {
16
16
  hint: string;
17
17
  suffix: string;
18
18
  infoMessage: string;
19
- infoClick: EventEmitter<void>;
19
+ copyContent: boolean;
20
+ clearContent: boolean;
20
21
  options: any[];
21
22
  optionValue: string;
22
23
  emails: string[];
@@ -30,10 +31,10 @@ export declare class EmailComponent implements OnInit {
30
31
  handlePaste(event: ClipboardEvent): void;
31
32
  extractEmails(text: string): string[];
32
33
  removeEmail(email: string): void;
34
+ clearEmails(): void;
33
35
  updateValue(): void;
34
- onInfoClick(event: MouseEvent): void;
35
36
  optionSelected(event: MatAutocompleteSelectedEvent): void;
36
37
  copyEmails(): void;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<EmailComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<EmailComponent, "spa-email", never, { "display": "display"; "value": "value"; "readonly": "readonly"; "required": "required"; "hint": "hint"; "suffix": "suffix"; "infoMessage": "infoMessage"; "options": "options"; "optionValue": "optionValue"; }, { "valueChange": "valueChange"; "infoClick": "infoClick"; }, never, never, false>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmailComponent, "spa-email", never, { "display": "display"; "value": "value"; "readonly": "readonly"; "required": "required"; "hint": "hint"; "suffix": "suffix"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "clearContent": "clearContent"; "options": "options"; "optionValue": "optionValue"; }, { "valueChange": "valueChange"; }, never, never, false>;
39
40
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
2
  import { FormConfig, Field, Button } from '../../classes/Classes';
3
3
  import { MessageService } from '../../services/message.service';
4
4
  import { DataServiceLib } from '../../services/datalib.service';
@@ -14,6 +14,7 @@ export declare class FormComponent implements OnInit {
14
14
  ngAfterViewInit(): void;
15
15
  getVisibleFields(): Field[];
16
16
  testReadOnly(f: Field): boolean;
17
+ dynamicSelectTemplate: TemplateRef<any>;
17
18
  fileNames: any;
18
19
  fileField: Field;
19
20
  fileViewField: Field;
@@ -27,11 +28,12 @@ export declare class FormComponent implements OnInit {
27
28
  config: FormConfig;
28
29
  buttonClick: EventEmitter<any>;
29
30
  inputChange: EventEmitter<any>;
31
+ selectChanged(field: Field): void;
30
32
  inputChanged(field: Field, value: any): void;
31
33
  updateChildOptions(masterField: Field): void;
32
34
  buttonClicked(): void;
33
35
  processCall(button: Button): void;
34
36
  processForm(): void;
35
37
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "spa-form", never, { "files": "files"; "data": "data"; "config": "config"; }, { "buttonClick": "buttonClick"; "inputChange": "inputChange"; }, never, never, false>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "spa-form", never, { "files": "files"; "data": "data"; "config": "config"; }, { "buttonClick": "buttonClick"; "inputChange": "inputChange"; }, ["dynamicSelectTemplate"], never, false>;
37
39
  }
@@ -1,43 +1,17 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
1
  import { PeekDialogConfig } from '../../classes/Classes';
3
2
  import { MessageService } from '../../services/message.service';
4
3
  import { DialogService } from '../../services/dialog.service';
4
+ import { SelectCommonComponent } from '../select-common/select-common.component';
5
+ import { DataServiceLib } from '../../services/datalib.service';
5
6
  import * as i0 from "@angular/core";
6
- export declare class SelectComponent implements OnInit {
7
- private messageService;
7
+ export declare class SelectComponent extends SelectCommonComponent {
8
+ protected messageService: MessageService;
9
+ protected dataService: DataServiceLib;
8
10
  private dialogService;
9
- constructor(messageService: MessageService, dialogService: DialogService);
10
- ngOnInit(): void;
11
- ngOnChanges(): void;
12
- displayValue: any;
13
- isHovered: boolean;
14
- width: string;
15
- readonly: boolean;
16
- required: boolean;
17
- defaultFirstValue: boolean;
18
- readonlyMode: string;
19
- hint: string;
20
- placeholder: string;
21
- multiple: boolean;
22
- display: string;
23
- value: any;
24
- options: any;
25
- masterOptions: any;
26
- optionValue: string;
27
- optionDisplay: string;
28
- optionDisplayExtra: string;
29
- nullable: boolean;
11
+ constructor(messageService: MessageService, dataService: DataServiceLib, dialogService: DialogService);
30
12
  peekConfig: PeekDialogConfig;
31
- infoMessage: string;
32
- copyContent: boolean;
33
- valueChange: EventEmitter<any>;
34
- copyText(event: MouseEvent): void;
35
- changed(): void;
36
- onMouseEnter(): void;
37
- onMouseLeave(): void;
38
- onAddClick(event: MouseEvent): void;
39
- onViewClick(event: MouseEvent): void;
40
- onInfoClick(event: MouseEvent): void;
13
+ onHoverChange(isHovered: boolean): void;
14
+ onPeekClick(event: MouseEvent, mode: 'create' | 'view'): void;
41
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
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>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "spa-select", never, { "peekConfig": "peekConfig"; }, {}, never, never, false>;
43
17
  }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MessageService } from '../../services/message.service';
3
+ import { Action } from '../../classes/Classes';
4
+ import { DataServiceLib } from '../../services/datalib.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SelectCommonComponent implements OnInit {
7
+ protected messageService: MessageService;
8
+ protected dataService: DataServiceLib;
9
+ constructor(messageService: MessageService, dataService: DataServiceLib);
10
+ ngOnInit(): void;
11
+ ngOnChanges(): void;
12
+ displayValue: any;
13
+ isHovered: boolean;
14
+ width: string;
15
+ readonly: boolean;
16
+ required: boolean;
17
+ defaultFirstValue: boolean;
18
+ readonlyMode: string;
19
+ hint: string;
20
+ placeholder: string;
21
+ multiple: boolean;
22
+ display: string;
23
+ value: any;
24
+ options: any;
25
+ masterOptions: any;
26
+ optionValue: string;
27
+ optionDisplay: string;
28
+ optionDisplayExtra: string;
29
+ nullable: boolean;
30
+ infoMessage: string;
31
+ copyContent: boolean;
32
+ loadAction: Action;
33
+ valueChange: EventEmitter<any>;
34
+ hoverChange: EventEmitter<boolean>;
35
+ changed(): void;
36
+ onMouseEnter(): void;
37
+ onMouseLeave(): void;
38
+ refresh(event: MouseEvent): void;
39
+ getData(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectCommonComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectCommonComponent, "spa-select-common", 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"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "loadAction": "loadAction"; }, { "valueChange": "valueChange"; "hoverChange": "hoverChange"; }, never, ["[additionalButtons]"], false>;
42
+ }
@@ -0,0 +1,17 @@
1
+ import { PeekDialogConfig } from '../../classes/Classes';
2
+ import { MessageService } from '../../services/message.service';
3
+ import { DialogService } from '../../services/dialog.service';
4
+ import { SelectCommonComponent } from '../select-common/select-common.component';
5
+ import { DataServiceLib } from '../../services/datalib.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SelectInternalComponent extends SelectCommonComponent {
8
+ protected messageService: MessageService;
9
+ protected dataService: DataServiceLib;
10
+ private dialogService;
11
+ constructor(messageService: MessageService, dataService: DataServiceLib, dialogService: DialogService);
12
+ peekConfig: PeekDialogConfig;
13
+ onHoverChange(isHovered: boolean): void;
14
+ onPeekClick(event: MouseEvent, mode: 'create' | 'view'): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectInternalComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectInternalComponent, "spa-select-internal", never, { "peekConfig": "peekConfig"; }, {}, never, never, false>;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { SelectCommonComponent } from '../select-common/select-common.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SelectLiteComponent extends SelectCommonComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectLiteComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectLiteComponent, "spa-select-lite", never, {}, {}, never, never, false>;
6
+ }
@@ -1,18 +1,18 @@
1
- import { AfterViewInit, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { MatStepper } from '@angular/material/stepper';
3
- import { Step } from '../../classes/Classes';
3
+ import { Step, StepConfig } from '../../classes/Classes';
4
4
  import * as i0 from "@angular/core";
5
- export declare class StepsComponent implements OnInit, AfterViewInit {
5
+ export declare class StepsComponent implements OnInit {
6
6
  constructor();
7
7
  ngOnInit(): void;
8
- ngAfterViewInit(): void;
9
8
  ngOnChanges(): void;
10
9
  stepper: MatStepper;
11
10
  value: string;
12
- steps: Step[];
13
- setStepper(): void;
14
- pushStepper(count: number): void;
15
- pushSteps(): void;
11
+ config: StepConfig;
12
+ data: any;
13
+ selectedIndex: number;
14
+ private updateSelectedStep;
15
+ getVisibleSteps(): Step[];
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<StepsComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "spa-steps", never, { "value": "value"; "steps": "steps"; }, {}, never, never, false>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "spa-steps", never, { "value": "value"; "config": "config"; "data": "data"; }, {}, never, never, false>;
18
18
  }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MessageService } from '../../services/message.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuffixComponent implements OnInit {
5
+ private messageService;
6
+ constructor(messageService: MessageService);
7
+ ngOnInit(): void;
8
+ label: string;
9
+ infoMessage: string;
10
+ copyContent: boolean;
11
+ isHovered: boolean;
12
+ clearContent: boolean;
13
+ value: string;
14
+ infoClick: EventEmitter<void>;
15
+ copyClick: EventEmitter<string>;
16
+ clearClick: EventEmitter<void>;
17
+ valueChange: EventEmitter<any>;
18
+ onInfoClick(event: MouseEvent): void;
19
+ onCopyClick(event: MouseEvent): void;
20
+ onClearClick(event: MouseEvent): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuffixComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuffixComponent, "spa-suffix", never, { "label": "label"; "infoMessage": "infoMessage"; "copyContent": "copyContent"; "isHovered": "isHovered"; "clearContent": "clearContent"; "value": "value"; }, { "infoClick": "infoClick"; "copyClick": "copyClick"; "clearClick": "clearClick"; "valueChange": "valueChange"; }, never, never, false>;
23
+ }
@@ -1,6 +1,6 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
- import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } from '../../classes/Classes';
3
+ import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } 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';
@@ -34,6 +34,7 @@ export declare class DetailsDialog implements OnInit {
34
34
  tableConfigs: any;
35
35
  details: any;
36
36
  formConfig: FormConfig;
37
+ stepConfig: StepConfig;
37
38
  smallScreen: boolean;
38
39
  isLoadComplete: boolean;
39
40
  isProcessing: boolean;
@@ -60,5 +61,5 @@ export declare class DetailsDialog implements OnInit {
60
61
  private executeAction;
61
62
  private performApiCall;
62
63
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialog, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialog, "app-viewModel", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialog, "spa-detailsDialog", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
64
65
  }
@@ -45,6 +45,7 @@ export declare class TableComponent implements OnInit {
45
45
  createClick: EventEmitter<any>;
46
46
  actionClick: EventEmitter<any>;
47
47
  inputChange: EventEmitter<any>;
48
+ actionResponse: EventEmitter<any>;
48
49
  private initializeComponent;
49
50
  private updateTableConfiguration;
50
51
  private setupDataLoading;
@@ -77,11 +78,10 @@ export declare class TableComponent implements OnInit {
77
78
  newModel(): void;
78
79
  editModel(row: any): void;
79
80
  private open;
80
- private openDetailsDialog;
81
81
  deleteModel(row: any): void;
82
82
  doAction(buttonName: string, row: any): void;
83
83
  execAction(b: Button, row: any): void;
84
84
  private getElevationClass;
85
85
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
86
- 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>;
86
+ 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"; "actionResponse": "actionResponse"; }, never, never, false>;
87
87
  }
@@ -1,6 +1,6 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
- import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action } from '../../classes/Classes';
3
+ import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } 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';
@@ -34,6 +34,7 @@ export declare class DetailsDialogInternal implements OnInit {
34
34
  tableConfigs: any;
35
35
  details: any;
36
36
  formConfig: FormConfig;
37
+ stepConfig: StepConfig;
37
38
  smallScreen: boolean;
38
39
  isLoadComplete: boolean;
39
40
  isProcessing: boolean;
@@ -60,5 +61,5 @@ export declare class DetailsDialogInternal implements OnInit {
60
61
  private executeAction;
61
62
  private performApiCall;
62
63
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialogInternal, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "app-viewModel-internal", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogInternal, "spa-detailsDialog-internal", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
64
65
  }
@@ -45,6 +45,7 @@ export declare class TableInternalComponent implements OnInit {
45
45
  createClick: EventEmitter<any>;
46
46
  actionClick: EventEmitter<any>;
47
47
  inputChange: EventEmitter<any>;
48
+ actionResponse: EventEmitter<any>;
48
49
  private initializeComponent;
49
50
  private updateTableConfiguration;
50
51
  private setupDataLoading;
@@ -77,11 +78,10 @@ export declare class TableInternalComponent implements OnInit {
77
78
  newModel(): void;
78
79
  editModel(row: any): void;
79
80
  private open;
80
- private openDetailsDialog;
81
81
  deleteModel(row: any): void;
82
82
  doAction(buttonName: string, row: any): void;
83
83
  execAction(b: Button, row: any): void;
84
84
  private getElevationClass;
85
85
  static ɵfac: i0.ɵɵFactoryDeclaration<TableInternalComponent, never>;
86
- 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>;
86
+ 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"; "actionResponse": "actionResponse"; }, never, never, false>;
87
87
  }
@@ -0,0 +1,65 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { FormConfig, Field, TableConfig, Button, DetailsDialogConfig, Action, StepConfig } from '../../classes/Classes';
4
+ import { MessageService } from '../../services/message.service';
5
+ import { DataServiceLib } from '../../services/datalib.service';
6
+ import { LoaderService } from '../../services/loader.service';
7
+ import { BreakpointObserver } from '@angular/cdk/layout';
8
+ import { DialogService } from '../../services/dialog.service';
9
+ import { ButtonService } from '../../services/button.service';
10
+ import { Subject } from 'rxjs';
11
+ import * as i0 from "@angular/core";
12
+ export declare class DetailsDialogLite implements OnInit {
13
+ private breakpointObserver;
14
+ private loaderService;
15
+ dataService: DataServiceLib;
16
+ private messageService;
17
+ private dialogRef;
18
+ detailsConfig: DetailsDialogConfig;
19
+ private buttonService;
20
+ private dialogService;
21
+ constructor(breakpointObserver: BreakpointObserver, loaderService: LoaderService, dataService: DataServiceLib, messageService: MessageService, dialogRef: MatDialogRef<DetailsDialogLite>, detailsConfig: DetailsDialogConfig, buttonService: ButtonService, dialogService: DialogService);
22
+ ngOnInit(): void;
23
+ titleAction: string;
24
+ loadByAction: boolean;
25
+ extraButtons: Button[];
26
+ buttons: Button[];
27
+ createButton: Button;
28
+ editButton: Button;
29
+ deleteButton: Button;
30
+ fileField: Field;
31
+ files: any[];
32
+ tableReload: Subject<boolean>;
33
+ tableConfig: TableConfig;
34
+ tableConfigs: any;
35
+ details: any;
36
+ formConfig: FormConfig;
37
+ stepConfig: StepConfig;
38
+ smallScreen: boolean;
39
+ isLoadComplete: boolean;
40
+ isProcessing: boolean;
41
+ inputChange: EventEmitter<any>;
42
+ loadData(action: Action, reload: any): void;
43
+ inputChanged(event: any): void;
44
+ setMode(newMode: any): void;
45
+ setTitleAction(): void;
46
+ getButton(name: string): Button;
47
+ testDisabled(row: any, buttonName: string): boolean;
48
+ testVisible(row: any, buttonName: string): boolean;
49
+ testVisibleTab(tblConfig: TableConfig): boolean;
50
+ getButtonColor(button: Button, row: any): string;
51
+ getVisibleFields(): Field[];
52
+ create(): void;
53
+ edit(): void;
54
+ delete(): void;
55
+ custom(button: Button): void;
56
+ private openNestedDetailsDialog;
57
+ private refreshData;
58
+ handleButtonAction(buttonName: string): void;
59
+ private validateForm;
60
+ private prepareActionData;
61
+ private executeAction;
62
+ private performApiCall;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<DetailsDialogLite, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsDialogLite, "spa-detailsDialog-lite", never, {}, { "inputChange": "inputChange"; }, never, never, false>;
65
+ }
@@ -0,0 +1,87 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { Action, Button, Color, Column, Icon, TableConfig } from '../../classes/Classes';
3
+ import { MatPaginator } from '@angular/material/paginator';
4
+ import { MessageService } from '../../services/message.service';
5
+ import { MatDialog } from '@angular/material/dialog';
6
+ import { BreakpointObserver } from '@angular/cdk/layout';
7
+ import { DataServiceLib } from '../../services/datalib.service';
8
+ import { Subject } from 'rxjs';
9
+ import { ButtonService } from '../../services/button.service';
10
+ import { DialogService } from '../../services/dialog.service';
11
+ import { TableConfigService } from '../../services/table-config.service';
12
+ import { ConditionService } from '../../services/condition.service';
13
+ import * as i0 from "@angular/core";
14
+ export declare class TableLiteComponent implements OnInit {
15
+ private dataService;
16
+ private messageService;
17
+ private breakpointObserver;
18
+ dialog: MatDialog;
19
+ private buttonService;
20
+ private dialogService;
21
+ private tableConfigService;
22
+ private conditionService;
23
+ constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService);
24
+ ngOnInit(): void;
25
+ ngOnChanges(): void;
26
+ elevation: string;
27
+ actionsWidth: string;
28
+ showFilterButton: boolean;
29
+ tileReload: Subject<boolean>;
30
+ smallScreen: boolean;
31
+ tableDataSource: any;
32
+ dataSource: any[];
33
+ displayedColumns: any[];
34
+ displayedButtons: any[];
35
+ originalTableLoadAction: Action;
36
+ tablePaginator: MatPaginator;
37
+ hideTitle: boolean;
38
+ data: any;
39
+ tileData: any;
40
+ config: TableConfig;
41
+ reload: Subject<boolean>;
42
+ dataLoad: EventEmitter<any>;
43
+ refreshClick: EventEmitter<any>;
44
+ searchClick: EventEmitter<any>;
45
+ createClick: EventEmitter<any>;
46
+ actionClick: EventEmitter<any>;
47
+ inputChange: EventEmitter<any>;
48
+ actionResponse: EventEmitter<any>;
49
+ private initializeComponent;
50
+ private updateTableConfiguration;
51
+ private setupDataLoading;
52
+ loadData(action: Action, data: any): void;
53
+ inputChanged(event: any): void;
54
+ formDefaults(): void;
55
+ setColumns(): void;
56
+ setButtons(): void;
57
+ getButton(name: string): Button;
58
+ getIcon(buttonName: string): string;
59
+ getButtonColor(button: Button, row: any): string;
60
+ getOptions(column: any): Column;
61
+ getColor(value: any, options: any[]): string;
62
+ testIconCondition(row: any, icon: Icon): boolean;
63
+ testColorCondition(row: any, color: Color): boolean;
64
+ showBanner(message: string): void;
65
+ testDisabled(row: any, buttonName: string): boolean;
66
+ testVisible(row: any, buttonName: string): boolean;
67
+ lastSearch: any;
68
+ searchClicked(x: any): void;
69
+ tileClicked(tile: any): void;
70
+ tileUnClicked(tile: any): void;
71
+ refreshClicked(): void;
72
+ dataLoaded(x: any): void;
73
+ actionClicked(name: string, row: any): void;
74
+ columnClicked(column: Column, row: any): void;
75
+ customModel(name: any, row: any): void;
76
+ actionClickedEmit(name: any, row: any): void;
77
+ viewModel(row: any): void;
78
+ newModel(): void;
79
+ editModel(row: any): void;
80
+ private open;
81
+ deleteModel(row: any): void;
82
+ doAction(buttonName: string, row: any): void;
83
+ execAction(b: Button, row: any): void;
84
+ private getElevationClass;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableLiteComponent, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableLiteComponent, "spa-table-lite", never, { "hideTitle": "hideTitle"; "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; "actionResponse": "actionResponse"; }, never, never, false>;
87
+ }
@@ -23,6 +23,8 @@ export declare class TableRowComponent {
23
23
  onActionClick(name: string, row: any): void;
24
24
  onColumnClick(column: Column, row: any): void;
25
25
  showBanner(message: string): void;
26
+ textDisplayed(row: any, column: Column): any;
27
+ textTruncated(row: any, column: Column): boolean;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowComponent, never>;
27
29
  static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent, "app-table-row", never, { "column": "column"; "row": "row"; "config": "config"; }, { "actionClick": "actionClick"; "columnClick": "columnClick"; "showBannerEvent": "showBannerEvent"; }, never, never, false>;
28
30
  }
@@ -1,11 +1,9 @@
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';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class TextComponent implements OnInit {
7
- private messageService;
8
- constructor(messageService: MessageService);
6
+ constructor();
9
7
  ngOnInit(): void;
10
8
  ngAfterViewInit(): void;
11
9
  filteredOptions: Observable<string[]>;
@@ -25,6 +23,7 @@ export declare class TextComponent implements OnInit {
25
23
  rows: number;
26
24
  width: string;
27
25
  copyContent: boolean;
26
+ clearContent: boolean;
28
27
  options: any;
29
28
  optionValue: string;
30
29
  required: boolean;
@@ -33,17 +32,19 @@ export declare class TextComponent implements OnInit {
33
32
  regex: string;
34
33
  suffix: string;
35
34
  infoMessage: string;
36
- onInfoClick(event: MouseEvent): void;
35
+ isHovered: boolean;
36
+ onMouseEnter(): void;
37
+ onMouseLeave(): void;
37
38
  private initFilter;
38
39
  private _filter;
39
- copyText(): void;
40
40
  initControl(control: FormControl): void;
41
41
  changed(): void;
42
42
  leaved(): void;
43
+ clear(): void;
43
44
  enterPressed(): void;
44
45
  myControl: FormControl<string>;
45
46
  control: FormControl<string>;
46
47
  validate(control: FormControl): string;
47
48
  static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
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>;
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"; "clearContent": "clearContent"; "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>;
49
50
  }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PageConfig, TableConfig } from '../../classes/Classes';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ApprovalsComponent implements OnInit {
5
+ constructor();
6
+ ngOnInit(): void;
7
+ approvalsTableConfig: TableConfig;
8
+ pageConfig: PageConfig;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsComponent, "spa-approvals", never, {}, {}, never, never, false>;
11
+ }