tin-spa 2.4.5 → 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 (111) hide show
  1. package/esm2020/lib/classes/Classes.mjs +5 -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 +32 -14
  9. package/esm2020/lib/components/page/page.component.mjs +9 -36
  10. package/esm2020/lib/components/search/search.component.mjs +10 -5
  11. package/esm2020/lib/components/select/select.component.mjs +33 -134
  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 +27 -62
  19. package/esm2020/lib/components/table-header/table-header.component.mjs +8 -6
  20. package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +18 -12
  21. package/esm2020/lib/components/table-internal/table-internal.component.mjs +31 -63
  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 -36
  26. package/esm2020/lib/components/tiles/tiles.component.mjs +7 -2
  27. package/esm2020/lib/components/viewer/viewer.component.mjs +7 -3
  28. package/esm2020/lib/modules/admin/admin-routing.module.mjs +5 -1
  29. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
  30. package/esm2020/lib/pages/approvals/approvals.component.mjs +61 -0
  31. package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +89 -0
  32. package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
  33. package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
  34. package/esm2020/lib/pages/customers/customers.component.mjs +8 -8
  35. package/esm2020/lib/pages/departments/departments.component.mjs +1 -1
  36. package/esm2020/lib/pages/employees/employees.component.mjs +1 -1
  37. package/esm2020/lib/pages/inventory/inventory.component.mjs +1 -1
  38. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
  39. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +11 -10
  40. package/esm2020/lib/pages/login/login.component.mjs +1 -1
  41. package/esm2020/lib/pages/logs/logs.component.mjs +21 -22
  42. package/esm2020/lib/pages/membership/membership.component.mjs +15 -19
  43. package/esm2020/lib/pages/plans/plans.component.mjs +16 -19
  44. package/esm2020/lib/pages/positions/positions.component.mjs +3 -3
  45. package/esm2020/lib/pages/profile/profile.component.mjs +1 -1
  46. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
  47. package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +2 -2
  48. package/esm2020/lib/pages/roles/roles.component.mjs +2 -2
  49. package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
  50. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +9 -9
  51. package/esm2020/lib/pages/tasks/tasks.component.mjs +9 -9
  52. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +99 -71
  53. package/esm2020/lib/pages/tenants/tenants.component.mjs +8 -8
  54. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
  55. package/esm2020/lib/pages/transactions/transactions.component.mjs +1 -1
  56. package/esm2020/lib/pages/users/users.component.mjs +114 -92
  57. package/esm2020/lib/pages/welcome/welcome.component.mjs +8 -8
  58. package/esm2020/lib/select-context.directive.mjs +23 -0
  59. package/esm2020/lib/services/button.service.mjs +5 -6
  60. package/esm2020/lib/services/datalib.service.mjs +26 -15
  61. package/esm2020/lib/services/dialog.service.mjs +12 -1
  62. package/esm2020/lib/services/table-config.service.mjs +7 -3
  63. package/esm2020/lib/tin-spa.module.mjs +16 -9
  64. package/fesm2015/tin-spa.mjs +2867 -2017
  65. package/fesm2015/tin-spa.mjs.map +1 -1
  66. package/fesm2020/tin-spa.mjs +2881 -2030
  67. package/fesm2020/tin-spa.mjs.map +1 -1
  68. package/lib/classes/Classes.d.ts +18 -6
  69. package/lib/classes/TinCore.d.ts +1 -0
  70. package/lib/components/email/email.component.d.ts +4 -3
  71. package/lib/components/form/form.component.d.ts +4 -3
  72. package/lib/components/option/option.component.d.ts +8 -2
  73. package/lib/components/page/page.component.d.ts +2 -4
  74. package/lib/components/search/search.component.d.ts +3 -1
  75. package/lib/components/select/select.component.d.ts +9 -36
  76. package/lib/components/select-common/select-common.component.d.ts +42 -0
  77. package/lib/components/select-internal/select-internal.component.d.ts +17 -0
  78. package/lib/components/select-lite/select-lite.component.d.ts +6 -0
  79. package/lib/components/steps/steps.component.d.ts +9 -9
  80. package/lib/components/suffix/suffix.component.d.ts +23 -0
  81. package/lib/components/table/detailsDialog.component.d.ts +3 -2
  82. package/lib/components/table/table.component.d.ts +3 -2
  83. package/lib/components/table-header/table-header.component.d.ts +2 -1
  84. package/lib/components/table-internal/detailsDialog-internal.component.d.ts +3 -2
  85. package/lib/components/table-internal/table-internal.component.d.ts +3 -2
  86. package/lib/components/table-lite/detailsDialog-lite.component.d.ts +65 -0
  87. package/lib/components/table-lite/table-lite.component.d.ts +87 -0
  88. package/lib/components/table-row/table-row.component.d.ts +2 -0
  89. package/lib/components/text/text.component.d.ts +7 -7
  90. package/lib/components/tiles/tiles.component.d.ts +2 -1
  91. package/lib/pages/approvals/approvals.component.d.ts +11 -0
  92. package/lib/pages/approvals-config/approvals-config.component.d.ts +14 -0
  93. package/lib/pages/invitations-table/invitations-table.component.d.ts +1 -1
  94. package/lib/pages/logs/logs.component.d.ts +2 -6
  95. package/lib/pages/membership/membership.component.d.ts +2 -6
  96. package/lib/pages/plans/plans.component.d.ts +2 -6
  97. package/lib/pages/suppliers/suppliers.component.d.ts +1 -1
  98. package/lib/pages/tasks/tasks.component.d.ts +1 -1
  99. package/lib/pages/tenant-settings/tenant-settings.component.d.ts +10 -7
  100. package/lib/pages/tenants/tenants.component.d.ts +1 -1
  101. package/lib/pages/users/users.component.d.ts +8 -16
  102. package/lib/select-context.directive.d.ts +10 -0
  103. package/lib/services/button.service.d.ts +0 -1
  104. package/lib/services/datalib.service.d.ts +3 -1
  105. package/lib/services/table-config.service.d.ts +1 -1
  106. package/lib/tin-spa.module.d.ts +41 -34
  107. package/package.json +1 -1
  108. package/esm2020/lib/pages/invitations/invitations.component.mjs +0 -14
  109. package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +0 -60
  110. package/lib/pages/invitations/invitations.component.d.ts +0 -8
  111. 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[];
@@ -98,15 +99,14 @@ export interface Confirm {
98
99
  export interface Condition {
99
100
  condition?: (value: any) => boolean;
100
101
  }
101
- export interface PageConfig {
102
+ export declare class PageConfig {
102
103
  title?: string;
103
- searchConfig?: SearchConfig;
104
104
  tableConfig?: TableConfig;
105
105
  searchTableConfig?: TableConfig;
106
106
  }
107
107
  export interface Field {
108
108
  name: string;
109
- 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';
110
110
  alias?: string;
111
111
  options?: any[];
112
112
  optionDisplay?: string;
@@ -123,7 +123,7 @@ export interface Field {
123
123
  readonly?: boolean;
124
124
  hidden?: boolean;
125
125
  path?: string;
126
- keyFiledName?: string;
126
+ keyField?: string;
127
127
  hint?: string;
128
128
  masterField?: string;
129
129
  child?: ChildField;
@@ -131,11 +131,14 @@ export interface Field {
131
131
  masterOptions?: any[];
132
132
  nullable?: boolean;
133
133
  copyContent?: boolean;
134
+ clearContent?: boolean;
135
+ format?: 'text' | 'money' | 'date' | 'datetime';
134
136
  hideOnCreate?: boolean;
135
137
  hideOnExists?: boolean;
136
138
  hiddenCondition?: (value: any) => boolean;
137
139
  readonlyCondition?: (value: any) => boolean;
138
140
  peekConfig?: PeekDialogConfig;
141
+ loadAction?: Action;
139
142
  infoMessage?: string;
140
143
  suffix?: string;
141
144
  subfields?: Field[];
@@ -162,6 +165,7 @@ export declare class TableConfig {
162
165
  formConfig?: FormConfig;
163
166
  searchConfig?: SearchConfig;
164
167
  tileConfig?: TileConfig;
168
+ stepConfig?: StepConfig;
165
169
  buttons?: Button[];
166
170
  minButtons?: string[];
167
171
  loadAction?: Action;
@@ -175,6 +179,7 @@ export declare class TableConfig {
175
179
  collapseButtons?: boolean;
176
180
  parentData?: any;
177
181
  pageSizes?: number[];
182
+ maxButtons?: number;
178
183
  hideTabCondition?: (value: any) => boolean;
179
184
  download?: {
180
185
  columns: string[];
@@ -189,8 +194,9 @@ export declare class TableConfig {
189
194
  }
190
195
  export interface Column {
191
196
  name: string;
192
- 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';
193
198
  alias?: string;
199
+ max?: number;
194
200
  icon?: Icon;
195
201
  color?: Color;
196
202
  colors?: Color[];
@@ -231,9 +237,15 @@ export interface Tile {
231
237
  suffix?: string;
232
238
  action?: Action;
233
239
  }
240
+ export declare class StepConfig {
241
+ steps: Step[];
242
+ valueField?: string;
243
+ }
234
244
  export declare class Step {
235
245
  name: string;
236
- icon: string;
246
+ value?: any;
247
+ icon?: string;
248
+ hiddenCondition?: (value: any) => boolean;
237
249
  }
238
250
  export declare class ActionResponse {
239
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,12 +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
- handleInfoClick(field: Field): void;
33
34
  buttonClicked(): void;
34
35
  processCall(button: Button): void;
35
36
  processForm(): void;
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
37
- 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>;
38
39
  }
@@ -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
  }
@@ -15,10 +15,8 @@ export declare class PageComponent implements OnInit {
15
15
  refreshClick: EventEmitter<any>;
16
16
  tableReload: Subject<boolean>;
17
17
  searchMode: boolean;
18
- searchTileData: any[];
19
- lastSearch: any;
20
- searchTableData: any[];
21
- searchClicked(data: any, sendEmail: boolean): void;
18
+ normalTableConfig: TableConfig;
19
+ searchTableConfig: TableConfig;
22
20
  toggleSearch(): void;
23
21
  getNormalTableConfig(): TableConfig;
24
22
  getSearchTableConfig(): TableConfig;
@@ -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
  }
@@ -1,44 +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
- infoClick: EventEmitter<void>;
35
- copyText(event: MouseEvent): void;
36
- changed(): void;
37
- onMouseEnter(): void;
38
- onMouseLeave(): void;
39
- onAddClick(event: MouseEvent): void;
40
- onViewClick(event: MouseEvent): void;
41
- onInfoClick(event: MouseEvent): void;
13
+ onHoverChange(isHovered: boolean): void;
14
+ onPeekClick(event: MouseEvent, mode: 'create' | 'view'): void;
42
15
  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>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "spa-select", never, { "peekConfig": "peekConfig"; }, {}, never, never, false>;
44
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;
@@ -63,6 +64,7 @@ export declare class TableComponent implements OnInit {
63
64
  showBanner(message: string): void;
64
65
  testDisabled(row: any, buttonName: string): boolean;
65
66
  testVisible(row: any, buttonName: string): boolean;
67
+ lastSearch: any;
66
68
  searchClicked(x: any): void;
67
69
  tileClicked(tile: any): void;
68
70
  tileUnClicked(tile: any): void;
@@ -76,11 +78,10 @@ export declare class TableComponent implements OnInit {
76
78
  newModel(): void;
77
79
  editModel(row: any): void;
78
80
  private open;
79
- private openDetailsDialog;
80
81
  deleteModel(row: any): void;
81
82
  doAction(buttonName: string, row: any): void;
82
83
  execAction(b: Button, row: any): void;
83
84
  private getElevationClass;
84
85
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
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>;
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>;
86
87
  }
@@ -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
  }
@@ -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;
@@ -63,6 +64,7 @@ export declare class TableInternalComponent implements OnInit {
63
64
  showBanner(message: string): void;
64
65
  testDisabled(row: any, buttonName: string): boolean;
65
66
  testVisible(row: any, buttonName: string): boolean;
67
+ lastSearch: any;
66
68
  searchClicked(x: any): void;
67
69
  tileClicked(tile: any): void;
68
70
  tileUnClicked(tile: any): void;
@@ -76,11 +78,10 @@ export declare class TableInternalComponent implements OnInit {
76
78
  newModel(): void;
77
79
  editModel(row: any): void;
78
80
  private open;
79
- private openDetailsDialog;
80
81
  deleteModel(row: any): void;
81
82
  doAction(buttonName: string, row: any): void;
82
83
  execAction(b: Button, row: any): void;
83
84
  private getElevationClass;
84
85
  static ɵfac: i0.ɵɵFactoryDeclaration<TableInternalComponent, never>;
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>;
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>;
86
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
+ }