tin-spa 14.0.1 → 14.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/README.md +24 -24
  2. package/esm2020/lib/classes/Classes.mjs +32 -57
  3. package/esm2020/lib/classes/LibClasses.mjs +1 -2
  4. package/esm2020/lib/classes/TinCore.mjs +48 -206
  5. package/esm2020/lib/components/alert/alert.component.mjs +7 -21
  6. package/esm2020/lib/components/attach/attach.component.mjs +33 -49
  7. package/esm2020/lib/components/date/date.component.mjs +6 -8
  8. package/esm2020/lib/components/email/email.component.mjs +17 -19
  9. package/esm2020/lib/components/form/form.component.mjs +56 -144
  10. package/esm2020/lib/components/label/label.component.mjs +3 -9
  11. package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +3 -3
  12. package/esm2020/lib/components/money/money.component.mjs +9 -26
  13. package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +27 -31
  14. package/esm2020/lib/components/number/number.component.mjs +8 -23
  15. package/esm2020/lib/components/option/option.component.mjs +14 -36
  16. package/esm2020/lib/components/search/search.component.mjs +5 -10
  17. package/esm2020/lib/components/select/select.component.mjs +129 -56
  18. package/esm2020/lib/components/steps/steps.component.mjs +61 -83
  19. package/esm2020/lib/components/table/detailsDialog.component.mjs +41 -205
  20. package/esm2020/lib/components/table/table.component.mjs +111 -136
  21. package/esm2020/lib/components/table-action/table-action.component.mjs +8 -42
  22. package/esm2020/lib/components/table-header/table-header.component.mjs +10 -14
  23. package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +39 -205
  24. package/esm2020/lib/components/table-internal/table-internal.component.mjs +112 -138
  25. package/esm2020/lib/components/table-row/table-row.component.mjs +4 -23
  26. package/esm2020/lib/components/text/text.component.mjs +46 -110
  27. package/esm2020/lib/components/tiles/tiles.component.mjs +20 -32
  28. package/esm2020/lib/components/viewer/viewer.component.mjs +3 -7
  29. package/esm2020/lib/components/viewer/viewerDialog.component.mjs +13 -20
  30. package/esm2020/lib/modules/admin/admin-routing.module.mjs +1 -11
  31. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
  32. package/esm2020/lib/pages/bug/bug.component.mjs +3 -3
  33. package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
  34. package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
  35. package/esm2020/lib/pages/customers/customers.component.mjs +48 -9
  36. package/esm2020/lib/pages/departments/departments.component.mjs +4 -2
  37. package/esm2020/lib/pages/employees/employees.component.mjs +4 -3
  38. package/esm2020/lib/pages/grades/grades.component.mjs +3 -3
  39. package/esm2020/lib/pages/inventory/inventory.component.mjs +3 -3
  40. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
  41. package/esm2020/lib/pages/invitations/invitations.component.mjs +14 -0
  42. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +10 -11
  43. package/esm2020/lib/pages/login/login.component.mjs +14 -52
  44. package/esm2020/lib/pages/logs/logs.component.mjs +22 -27
  45. package/esm2020/lib/pages/membership/membership.component.mjs +19 -15
  46. package/esm2020/lib/pages/notifications/notifications.component.mjs +6 -82
  47. package/esm2020/lib/pages/plans/plans.component.mjs +19 -16
  48. package/esm2020/lib/pages/positions/positions.component.mjs +4 -4
  49. package/esm2020/lib/pages/profile/profile.component.mjs +3 -4
  50. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
  51. package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +2 -2
  52. package/esm2020/lib/pages/roles/roles.component.mjs +17 -77
  53. package/esm2020/lib/pages/settings/settings.component.mjs +13 -5
  54. package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
  55. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +31 -3
  56. package/esm2020/lib/pages/tasks/tasks.component.mjs +9 -9
  57. package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +60 -0
  58. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +72 -145
  59. package/esm2020/lib/pages/tenants/tenants.component.mjs +10 -10
  60. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
  61. package/esm2020/lib/pages/transactions/transactions.component.mjs +3 -3
  62. package/esm2020/lib/pages/users/users.component.mjs +92 -141
  63. package/esm2020/lib/pages/welcome/welcome.component.mjs +9 -9
  64. package/esm2020/lib/services/button.service.mjs +32 -92
  65. package/esm2020/lib/services/csv.service.mjs +1 -1
  66. package/esm2020/lib/services/datalib.service.mjs +78 -551
  67. package/esm2020/lib/services/dialog.service.mjs +7 -51
  68. package/esm2020/lib/services/table-config.service.mjs +7 -55
  69. package/esm2020/lib/tin-spa.module.mjs +11 -48
  70. package/esm2020/public-api.mjs +1 -10
  71. package/fesm2015/tin-spa.mjs +2605 -6538
  72. package/fesm2015/tin-spa.mjs.map +1 -1
  73. package/fesm2020/tin-spa.mjs +2501 -6482
  74. package/fesm2020/tin-spa.mjs.map +1 -1
  75. package/lib/classes/Classes.d.ts +129 -267
  76. package/lib/classes/LibClasses.d.ts +0 -1
  77. package/lib/classes/TinCore.d.ts +4 -13
  78. package/lib/components/alert/alert.component.d.ts +3 -4
  79. package/lib/components/attach/attach.component.d.ts +6 -13
  80. package/lib/components/date/date.component.d.ts +1 -1
  81. package/lib/components/email/email.component.d.ts +3 -4
  82. package/lib/components/form/form.component.d.ts +11 -20
  83. package/lib/components/label/label.component.d.ts +1 -3
  84. package/lib/components/money/money.component.d.ts +1 -8
  85. package/lib/components/nav-menu/nav-menu.component.d.ts +2 -6
  86. package/lib/components/number/number.component.d.ts +1 -7
  87. package/lib/components/option/option.component.d.ts +2 -10
  88. package/lib/components/search/search.component.d.ts +1 -3
  89. package/lib/components/select/select.component.d.ts +37 -16
  90. package/lib/components/steps/steps.component.d.ts +9 -18
  91. package/lib/components/table/detailsDialog.component.d.ts +7 -29
  92. package/lib/components/table/table.component.d.ts +9 -15
  93. package/lib/components/table-action/table-action.component.d.ts +1 -4
  94. package/lib/components/table-header/table-header.component.d.ts +1 -3
  95. package/lib/components/table-internal/detailsDialog-internal.component.d.ts +7 -29
  96. package/lib/components/table-internal/table-internal.component.d.ts +9 -15
  97. package/lib/components/table-row/table-row.component.d.ts +1 -4
  98. package/lib/components/text/text.component.d.ts +8 -21
  99. package/lib/components/tiles/tiles.component.d.ts +3 -4
  100. package/lib/components/viewer/viewerDialog.component.d.ts +1 -3
  101. package/lib/pages/customers/customers.component.d.ts +8 -2
  102. package/lib/pages/invitations/invitations.component.d.ts +8 -0
  103. package/lib/pages/invitations-table/invitations-table.component.d.ts +1 -1
  104. package/lib/pages/login/login.component.d.ts +1 -7
  105. package/lib/pages/logs/logs.component.d.ts +6 -2
  106. package/lib/pages/membership/membership.component.d.ts +6 -2
  107. package/lib/pages/notifications/notifications.component.d.ts +1 -9
  108. package/lib/pages/plans/plans.component.d.ts +6 -2
  109. package/lib/pages/roles/roles.component.d.ts +2 -14
  110. package/lib/pages/suppliers/suppliers.component.d.ts +4 -1
  111. package/lib/pages/tasks/tasks.component.d.ts +1 -1
  112. package/lib/pages/tenant-settings/inviteDialog.component.d.ts +28 -0
  113. package/lib/pages/tenant-settings/tenant-settings.component.d.ts +7 -12
  114. package/lib/pages/tenants/tenants.component.d.ts +2 -2
  115. package/lib/pages/users/users.component.d.ts +16 -8
  116. package/lib/services/button.service.d.ts +8 -11
  117. package/lib/services/datalib.service.d.ts +10 -57
  118. package/lib/services/dialog.service.d.ts +2 -3
  119. package/lib/services/table-config.service.d.ts +1 -9
  120. package/lib/tin-spa.module.d.ts +33 -52
  121. package/package.json +1 -1
  122. package/public-api.d.ts +0 -9
  123. package/esm2020/lib/components/capsules/capsules.component.mjs +0 -63
  124. package/esm2020/lib/components/cards/cards.component.mjs +0 -103
  125. package/esm2020/lib/components/html/html.component.mjs +0 -34
  126. package/esm2020/lib/components/multi-select/multi-select.component.mjs +0 -165
  127. package/esm2020/lib/components/multi-text/multi-text.component.mjs +0 -208
  128. package/esm2020/lib/components/notes/notes.component.mjs +0 -62
  129. package/esm2020/lib/components/page/page.component.mjs +0 -101
  130. package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +0 -87
  131. package/esm2020/lib/components/select-common/select-common.component.mjs +0 -206
  132. package/esm2020/lib/components/select-internal/select-internal.component.mjs +0 -75
  133. package/esm2020/lib/components/select-lite/select-lite.component.mjs +0 -18
  134. package/esm2020/lib/components/statuses/statuses.component.mjs +0 -44
  135. package/esm2020/lib/components/suffix/suffix.component.mjs +0 -70
  136. package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +0 -404
  137. package/esm2020/lib/components/table-lite/table-lite.component.mjs +0 -441
  138. package/esm2020/lib/components/tabs/tabs.component.mjs +0 -74
  139. package/esm2020/lib/pages/app-models/app-models.component.mjs +0 -56
  140. package/esm2020/lib/pages/approvals/approvals.component.mjs +0 -19
  141. package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +0 -165
  142. package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +0 -113
  143. package/esm2020/lib/select-context.directive.mjs +0 -23
  144. package/esm2020/lib/services/notifications.service.mjs +0 -33
  145. package/lib/components/capsules/capsules.component.d.ts +0 -26
  146. package/lib/components/cards/cards.component.d.ts +0 -39
  147. package/lib/components/html/html.component.d.ts +0 -16
  148. package/lib/components/multi-select/multi-select.component.d.ts +0 -47
  149. package/lib/components/multi-text/multi-text.component.d.ts +0 -56
  150. package/lib/components/notes/notes.component.d.ts +0 -19
  151. package/lib/components/page/page.component.d.ts +0 -38
  152. package/lib/components/select-bitwise/select-bitwise.component.d.ts +0 -31
  153. package/lib/components/select-common/select-common.component.d.ts +0 -53
  154. package/lib/components/select-internal/select-internal.component.d.ts +0 -23
  155. package/lib/components/select-lite/select-lite.component.d.ts +0 -8
  156. package/lib/components/statuses/statuses.component.d.ts +0 -12
  157. package/lib/components/suffix/suffix.component.d.ts +0 -23
  158. package/lib/components/table-lite/detailsDialog-lite.component.d.ts +0 -86
  159. package/lib/components/table-lite/table-lite.component.d.ts +0 -91
  160. package/lib/components/tabs/tabs.component.d.ts +0 -32
  161. package/lib/pages/app-models/app-models.component.d.ts +0 -15
  162. package/lib/pages/approvals/approvals.component.d.ts +0 -10
  163. package/lib/pages/approvals-config/approvals-config.component.d.ts +0 -24
  164. package/lib/pages/notifications-config/notifications-config.component.d.ts +0 -17
  165. package/lib/select-context.directive.d.ts +0 -10
  166. package/lib/services/notifications.service.d.ts +0 -12
@@ -1,32 +1,26 @@
1
- import { BehaviorSubject } from "rxjs";
2
- export interface BitwiseOption {
3
- name?: string;
4
- value: number;
5
- selected: boolean;
6
- icon?: Icon;
1
+ export declare class ApiResponse {
2
+ success: boolean;
3
+ message: string;
4
+ data: any;
5
+ }
6
+ export declare class Constants {
7
+ static readonly AUTH_USER = "a";
8
+ static readonly AUTH_NAME = "b";
9
+ static readonly AUTH_ROLES = "c";
10
+ static readonly AUTH_TOKEN = "d";
11
+ static readonly AUTH_TOKEN_EXPIRE = "e";
12
+ static readonly AUTH_TENANT_NAME = "f";
7
13
  }
8
- export declare enum RoleAccess {
9
- None = 0,
10
- View = 1,
11
- Edit = 2,
12
- Create = 3,
13
- Full = 4
14
+ export declare class ListDialogConfig {
15
+ name: string;
16
+ title: string;
17
+ listName: string;
14
18
  }
15
19
  export declare enum DetailsSource {
16
20
  Row = 0,
17
21
  Url = 1
18
22
  }
19
- export declare class dialogOptions {
20
- width?: string;
21
- height?: string;
22
- }
23
- export interface CloseOptions {
24
- position?: 'top' | 'bottom';
25
- text?: string;
26
- }
27
23
  export declare class DetailsDialogConfig {
28
- stepConfig?: StepConfig;
29
- statusConfig?: StatusConfig;
30
24
  formConfig: FormConfig;
31
25
  tableConfig?: TableConfig;
32
26
  tableConfigs?: TableConfig[];
@@ -35,12 +29,13 @@ export declare class DetailsDialogConfig {
35
29
  heroField?: any;
36
30
  heroValue?: any;
37
31
  mode?: 'create' | 'edit' | 'view';
32
+ width?: string;
38
33
  detailsSource?: DetailsSource;
39
34
  options?: dialogOptions;
40
- autoRefreshConfig?: AutoRefreshConfig;
41
- refreshOnClose?: boolean;
42
- causeTableRefresh?: boolean;
43
- closeOptions?: CloseOptions;
35
+ }
36
+ export declare class dialogOptions {
37
+ width?: string;
38
+ height?: string;
44
39
  }
45
40
  export declare class Action {
46
41
  method?: 'get' | 'post';
@@ -48,146 +43,36 @@ export declare class Action {
48
43
  params?: any[];
49
44
  successMessage?: string;
50
45
  isFormData?: boolean;
51
- skipCache?: boolean;
52
- cacheDurationMinutes?: number;
53
- }
54
- export interface SearchField extends Field {
55
- show?: boolean;
56
46
  }
57
47
  export declare class SearchConfig {
58
48
  fields: SearchField[];
59
49
  searchAction?: Action;
60
- emailResults?: boolean;
61
- tileConfig?: TileConfig;
62
- }
63
- export declare class SecurityConfig {
64
- allow?: CapItem[];
65
- deny?: CapItem[];
66
50
  }
67
- export interface ChildField {
68
- childField?: string;
69
- childValueField?: string;
70
- }
71
- export interface AutoRefreshConfig {
72
- interval?: number;
73
- stopCondition?: (data: any) => boolean;
74
- defaultOn?: boolean;
75
- }
76
- export interface Field {
77
- securityConfig?: SecurityConfig;
78
- name: string;
79
- type: 'text' | 'multi-text' | 'password' | 'date' | 'datetime' | 'datetimesec' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number' | 'section' | 'blank' | 'chip' | 'file' | 'file-view' | 'icon' | 'spinner' | 'button' | 'label' | 'email' | 'composite' | 'string' | 'html';
80
- alias?: string;
81
- options?: any[];
82
- optionDisplay?: string;
83
- optionValue?: string;
84
- masterOptionValue?: string;
85
- defaultValue?: any;
86
- defaultFirstValue?: boolean;
87
- required?: boolean;
88
- requiredCondition?: (value: any) => boolean;
89
- min?: any;
90
- max?: any;
91
- rows?: number;
92
- span?: boolean;
93
- width?: string;
94
- size?: string;
95
- readonly?: boolean;
96
- hidden?: boolean;
97
- strict?: boolean;
98
- path?: string;
99
- keyField?: string;
100
- hint?: string;
101
- masterField?: string;
102
- children?: ChildField[];
103
- masterOptions?: any[];
104
- nullable?: boolean;
105
- copyContent?: boolean;
106
- clearContent?: boolean;
107
- format?: 'text' | 'money' | 'date' | 'datetime' | 'number';
108
- hideOnCreate?: boolean;
109
- hideOnExists?: boolean;
110
- hiddenCondition?: (value: any) => boolean;
111
- readonlyCondition?: (value: any) => boolean;
112
- detailsConfig?: DetailsDialogConfig;
113
- loadAction?: Action;
114
- loadIDField?: string;
115
- infoMessage?: string;
116
- suffix?: string;
117
- subfields?: Field[];
118
- optionsSubject?: BehaviorSubject<any[]>;
119
- section?: string;
120
- fileOptions?: {
121
- allowedExtensions?: string[];
122
- maxSizeMB?: number;
123
- compressImages?: boolean;
124
- };
125
- collapsed?: boolean;
126
- collapsedCondition?: (value: any) => boolean;
127
- maxHeight?: string;
128
- valueCalculation?: (value: any) => any;
129
- regex?: {
130
- pattern: string;
131
- message: string;
132
- };
133
- onSelectChange?: (value: any, data: any) => void;
134
- }
135
- export interface StatusState {
136
- condition: (data: any) => boolean;
137
- icon: string;
138
- color: string;
139
- }
140
- export interface StatusItem {
141
- name: string;
142
- hiddenCondition?: (data: any) => boolean;
143
- states: StatusState[];
51
+ export interface SearchField extends Field {
52
+ show?: boolean;
144
53
  }
145
- export interface StatusConfig {
146
- items: StatusItem[];
147
- sticky?: boolean;
148
- hiddenCondition?: (data: any) => boolean;
54
+ export declare class AlertMessages {
55
+ subject?: string;
56
+ messages: AlertMessage[];
149
57
  }
150
58
  export declare class AlertMessage {
151
59
  type?: 'success' | 'info' | 'warn' | 'critical';
152
- content?: string;
153
- contentField?: string;
60
+ content: string;
154
61
  hiddenCondition?: (value: any) => boolean;
155
- showCondition?: (value: any) => boolean;
156
- }
157
- export declare class AlertConfig {
158
- subject?: string;
159
- compact?: boolean;
160
- sticky?: boolean;
161
- messages: AlertMessage[];
162
- }
163
- export declare class NotesConfig {
164
- title?: string;
165
- loadAction?: Action;
166
- loadIDField?: string;
167
- notes?: any[];
168
- nameField?: string;
169
- dateField?: string;
170
- commentField?: string;
171
62
  }
172
63
  export declare class FormConfig {
173
64
  title?: string;
174
65
  fixedTitle?: boolean;
175
- alertConfig?: AlertConfig;
66
+ alertMessages?: AlertMessages;
176
67
  fields: Field[];
177
68
  mode?: 'create' | 'edit' | 'view';
178
69
  button?: Button;
179
70
  multiColumn?: boolean;
180
71
  reset?: boolean;
72
+ fileAction?: Action;
181
73
  loadAction?: Action;
182
74
  heroField?: any;
183
75
  heroValue?: any;
184
- security?: SecurityConfig;
185
- includeAudit?: boolean;
186
- notesConfig?: NotesConfig;
187
- }
188
- export interface Confirm {
189
- message?: string;
190
- func?: (data: any) => string;
191
76
  }
192
77
  export interface Button {
193
78
  name: string;
@@ -204,114 +89,75 @@ export interface Button {
204
89
  inHeader?: boolean;
205
90
  detailsConfig?: DetailsDialogConfig;
206
91
  setHeroField?: boolean;
207
- ignorePendingApproval?: boolean;
208
- keepOpen?: boolean;
209
- onSuccess?: (response: ApiResponse, details: any) => void;
210
- onClick?: (details: any) => void;
211
- editOnSuccess?: boolean;
212
- onSuccessButton?: Button;
213
- skipValidation?: boolean;
214
- }
215
- export interface CapsuleConfig {
216
- displayField: string;
217
- leftIcons?: Icon[];
218
- rightIcons?: Icon[];
219
- loadAction?: Action;
220
- }
221
- export interface CardConfig {
222
- imageField?: string;
223
- titleField: string;
224
- subtitleField?: string;
225
- contentFields: string[];
226
- columns?: number;
227
- elevation?: 'low' | 'medium' | 'high';
228
- }
229
- export interface Tile {
230
- name: string;
231
- alias?: string;
232
- value?: string;
233
- color?: string;
234
- selectedTile?: string;
235
- hidden?: boolean;
236
- info?: string;
237
- prefix?: string;
238
- suffix?: string;
239
- action?: Action;
240
- hiddenCondition?: (value: any) => boolean;
241
92
  }
242
- export declare class TileConfig {
243
- tiles: Tile[];
244
- loadAction?: Action;
245
- loadInit?: boolean;
246
- clickable?: boolean;
247
- headerPosition?: 'top' | 'middle';
248
- }
249
- export declare class Step {
250
- name: string;
251
- value?: any;
252
- icon?: string;
253
- hiddenCondition?: (value: any) => boolean;
254
- }
255
- export declare class StepConfig {
256
- steps: Step[];
257
- valueField?: string;
258
- loadAction?: Action;
259
- loadIDField?: string;
260
- sticky?: boolean;
261
- }
262
- export interface Icon {
263
- name: string;
264
- color?: string;
265
- tip?: string;
266
- tipField?: string;
267
- bannerField?: string;
268
- condition?: (value: any) => boolean;
93
+ export interface Confirm {
94
+ message: string;
269
95
  }
270
- export interface Color {
271
- name: string;
96
+ export interface Condition {
272
97
  condition?: (value: any) => boolean;
273
98
  }
274
- export interface Column {
99
+ export interface Field {
275
100
  name: string;
276
- type?: 'text' | 'date' | 'datetime' | 'datetimesec' | 'checkbox' | 'select' | 'money' | 'number' | 'chip' | 'icon' | 'spinner' | 'button';
101
+ type: 'text' | 'date' | 'datetime' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number' | 'section' | 'blank' | 'chip' | 'file' | 'file-view' | 'icon' | 'spinner' | 'button' | 'label' | 'email' | 'composite' | 'string';
277
102
  alias?: string;
278
- maxLength?: number;
279
- icon?: Icon;
280
- color?: Color;
281
- colors?: Color[];
282
- icons?: Icon[];
283
103
  options?: any[];
284
104
  optionDisplay?: string;
285
105
  optionValue?: string;
286
- detailsConfig?: DetailsDialogConfig;
287
- hiddenCondition?: (parentData: any) => boolean;
106
+ defaultValue?: any;
107
+ defaultFirstValue?: boolean;
108
+ required?: boolean;
109
+ min?: any;
110
+ max?: any;
111
+ rows?: number;
112
+ span?: boolean;
113
+ width?: string;
114
+ size?: string;
115
+ readonly?: boolean;
116
+ hidden?: boolean;
117
+ path?: string;
118
+ keyFiledName?: string;
119
+ hint?: string;
120
+ masterField?: string;
121
+ child?: ChildField;
122
+ children?: ChildField[];
123
+ masterOptions?: any[];
124
+ nullable?: boolean;
125
+ copyContent?: boolean;
126
+ hideOnCreate?: boolean;
127
+ hideOnExists?: boolean;
128
+ hiddenCondition?: (value: any) => boolean;
129
+ readonlyCondition?: (value: any) => boolean;
130
+ peekConfig?: PeekDialogConfig;
131
+ infoMessage?: string;
132
+ suffix?: string;
133
+ subfields?: Field[];
134
+ }
135
+ export interface PeekDialogConfig {
136
+ detailsConfig: DetailsDialogConfig;
137
+ create?: boolean;
138
+ view?: boolean;
139
+ }
140
+ export interface ChildField {
141
+ childField?: string;
142
+ childValueField?: string;
288
143
  }
289
- export declare type TableViewType = 'table' | 'capsule' | 'card';
290
144
  export declare class TableConfig {
291
- viewType?: TableViewType;
292
- capsuleConfig?: CapsuleConfig;
293
- cardConfig?: CardConfig;
294
- tabTitle?: string;
145
+ title?: string;
295
146
  noDataMessage?: string;
296
147
  columns?: Column[];
297
148
  minColumns?: string[];
298
149
  showFilter?: boolean;
299
- showFilterButton?: boolean;
300
150
  holdFilterSpace?: boolean;
301
151
  holdHeaderButtonSpace?: boolean;
302
152
  elevation?: 'none' | 'low' | 'medium' | 'high';
303
153
  formConfig?: FormConfig;
304
154
  searchConfig?: SearchConfig;
305
155
  tileConfig?: TileConfig;
306
- stepConfig?: StepConfig;
307
156
  buttons?: Button[];
308
157
  minButtons?: string[];
309
158
  loadAction?: Action;
310
- countAction?: Action;
311
159
  loadIDField?: string;
312
160
  loadCriteria?: string;
313
- lazyLoad?: boolean;
314
- causeFormRefresh?: boolean;
315
161
  logResponse?: boolean;
316
162
  flatButtons?: boolean;
317
163
  greyOut?: (value: any) => boolean;
@@ -320,7 +166,6 @@ export declare class TableConfig {
320
166
  collapseButtons?: boolean;
321
167
  parentData?: any;
322
168
  pageSizes?: number[];
323
- maxButtonsCount?: number;
324
169
  hideTabCondition?: (value: any) => boolean;
325
170
  download?: {
326
171
  columns: string[];
@@ -333,43 +178,57 @@ export declare class TableConfig {
333
178
  hiddenCondition?: (value: any) => boolean;
334
179
  };
335
180
  }
336
- export declare class PageConfig {
337
- title?: string;
338
- tableConfig?: TableConfig;
339
- searchTableConfig?: TableConfig;
181
+ export interface Column {
182
+ name: string;
183
+ type?: 'text' | 'date' | 'datetime' | 'checkbox' | 'select' | 'money' | 'number' | 'chip' | 'icon' | 'spinner' | 'button';
184
+ alias?: string;
185
+ icon?: Icon;
186
+ color?: Color;
187
+ colors?: Color[];
188
+ icons?: Icon[];
189
+ options?: any[];
190
+ optionDisplay?: string;
191
+ optionValue?: string;
192
+ detailsConfig?: DetailsDialogConfig;
193
+ hiddenCondition?: (parentData: any) => boolean;
340
194
  }
341
- export declare class ApiResponse {
342
- success: boolean;
343
- message: string;
344
- data: any;
195
+ export interface Icon {
196
+ name: string;
197
+ color?: string;
198
+ tip?: string;
199
+ tipField?: string;
200
+ bannerField?: string;
201
+ condition?: (value: any) => boolean;
345
202
  }
346
- export declare class Constants {
347
- static readonly AUTH_USER = "a";
348
- static readonly AUTH_NAME = "b";
349
- static readonly AUTH_ROLES = "c";
350
- static readonly AUTH_TOKEN = "d";
351
- static readonly AUTH_TOKEN_EXPIRE = "e";
352
- static readonly AUTH_TENANT_NAME = "f";
203
+ export interface Color {
204
+ name: string;
205
+ condition?: (value: any) => boolean;
353
206
  }
354
- export declare class ListDialogConfig {
207
+ export declare class TileConfig {
208
+ tiles: Tile[];
209
+ loadAction?: Action;
210
+ loadInit?: boolean;
211
+ clickable?: boolean;
212
+ }
213
+ export interface Tile {
355
214
  name: string;
356
- title: string;
357
- listName: string;
215
+ alias?: string;
216
+ value?: string;
217
+ color?: string;
218
+ selectedTile?: string;
219
+ hidden?: boolean;
220
+ info?: string;
221
+ prefix?: string;
222
+ suffix?: string;
223
+ action?: Action;
358
224
  }
359
- export declare class CapItem {
360
- constructor();
225
+ export declare class Step {
361
226
  name: string;
362
- display: string;
363
- enabled: boolean;
364
- showMenu: boolean;
365
- ignoreSubsDisplay: boolean;
366
- type: string;
367
- newLine: boolean;
368
- link: string;
369
227
  icon: string;
370
- capSubItems: CapItem[];
371
- color: string;
372
- isBool: boolean;
228
+ }
229
+ export declare class ActionResponse {
230
+ name: string;
231
+ value: any;
373
232
  }
374
233
  export declare class AppConfig {
375
234
  constructor();
@@ -379,21 +238,24 @@ export declare class AppConfig {
379
238
  ADAuth: boolean;
380
239
  localAuth: boolean;
381
240
  googleAuth: boolean;
382
- microsoftAuth: boolean;
383
- microsoftAuthMessage: string;
384
241
  selfService: boolean;
385
242
  capItems: CapItem[];
386
243
  multitenant: boolean;
387
244
  navigation: 'top' | 'side';
388
245
  progressLine: boolean;
389
- docsBaseUrl: string;
390
- loginStyle: string;
391
- loginTitle: string;
392
- loginMessage: string;
393
- termsUrl: string;
394
- privacyUrl: string;
395
- siteUrl: string;
396
- navWidth: string;
246
+ }
247
+ export declare class CapItem {
248
+ constructor();
249
+ name: string;
250
+ display: string;
251
+ enabled: boolean;
252
+ showMenu: boolean;
253
+ ignoreSubsDisplay: boolean;
254
+ type: string;
255
+ newLine: boolean;
256
+ link: string;
257
+ icon: string;
258
+ capSubItems: CapItem[];
397
259
  }
398
260
  export declare class Transaction {
399
261
  constructor();
@@ -55,7 +55,6 @@ export declare class Profile {
55
55
  authType: string;
56
56
  password: string;
57
57
  role: Role;
58
- code: string;
59
58
  }
60
59
  export declare class Role {
61
60
  constructor();
@@ -1,20 +1,13 @@
1
- import { DetailsDialogConfig, Field, FormConfig, RoleAccess, SecurityConfig } from "./Classes";
1
+ import { DetailsDialogConfig, Field, FormConfig } from "./Classes";
2
2
  export declare class Core {
3
3
  static deepClone(obj: any): any;
4
- static deepClone2(obj: any): any;
5
4
  static camelToWords(value: string): string;
6
5
  static generateObject(fields: Field[]): {};
7
6
  static resetObject(fields: Field[], data: any): void;
8
- static checkSecurity(security: SecurityConfig, currentRole: any): boolean;
9
- static hasFormAccess(formConfig: FormConfig, currentRole: any): boolean;
10
- static getFormAccess(formConfig: FormConfig, currentRole: any): RoleAccess;
11
- private static getRoleAccess;
12
- static testVisible(config: FormConfig, data: any, field: Field, currentRole: any): boolean;
13
- static testReadOnly(config: FormConfig, data: any, field: Field): boolean;
7
+ static testVisible(config: FormConfig, data: any, f: Field): boolean;
14
8
  static testVisibleHeaderButton(data: any, btn: any): boolean;
15
- static getVisibleSubfields(config: FormConfig, data: any, field: Field, currentRole: any): Field[];
9
+ static getVisibleSubfields(config: FormConfig, data: any, field: Field): Field[];
16
10
  static validateObject(fields: Field[], data: any): string;
17
- static testRequired(config: FormConfig, data: any, field: Field): boolean;
18
11
  static getInitialValue(field: Field): any;
19
12
  static getClone(x: any): any;
20
13
  static getNumber(value: string): string | 0;
@@ -37,8 +30,6 @@ export declare class DetailsDialogProcessor {
37
30
  tableConfig: import("./Classes").TableConfig;
38
31
  tableConfigs: import("./Classes").TableConfig[];
39
32
  formConfig: FormConfig;
40
- stepConfig: import("./Classes").StepConfig;
41
- statusConfig: import("./Classes").StatusConfig;
42
33
  buttons: import("./Classes").Button[];
43
34
  };
44
35
  static setHeroValue(detailsConfig: DetailsDialogConfig, details: any): void;
@@ -50,7 +41,7 @@ export declare class DetailsDialogProcessor {
50
41
  private static loadDetailsData;
51
42
  private static loadDetailsFromUrl;
52
43
  static setFileField(formConfig: FormConfig): Field;
53
- static setupButtons(buttons: any): {
44
+ static setupButtons(formConfig: FormConfig, buttons: any): {
54
45
  extraButtons: any;
55
46
  createButton: any;
56
47
  editButton: any;
@@ -1,15 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { AlertMessage, AlertConfig } from '../../classes/Classes';
2
+ import { AlertMessage, AlertMessages } from '../../classes/Classes';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AlertComponent implements OnInit {
5
5
  constructor();
6
6
  ngOnInit(): void;
7
- config: AlertConfig;
7
+ alertMessages: AlertMessages;
8
8
  data: any;
9
9
  getAlertMessages(type?: any): AlertMessage[];
10
10
  hasAlertMessages(type?: any): boolean;
11
11
  testVisible(msg: AlertMessage): boolean;
12
- getMessageContent(msg: AlertMessage): string;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "spa-alert", never, { "config": "config"; "data": "data"; }, {}, never, never, false>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "spa-alert", never, { "alertMessages": "alertMessages"; "data": "data"; }, {}, never, never, false>;
15
14
  }
@@ -1,16 +1,8 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { MessageService } from '../../services/message.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class AttachComponent implements OnInit {
5
- private messageService;
6
- constructor(messageService: MessageService);
4
+ constructor();
7
5
  ngOnInit(): void;
8
- fileOptions: {
9
- allowedExtensions?: string[];
10
- maxSizeMB?: number;
11
- compressImages?: boolean;
12
- };
13
- private readonly imageExtensions;
14
6
  message: string;
15
7
  files: any[];
16
8
  filesChange: EventEmitter<any>;
@@ -19,12 +11,13 @@ export declare class AttachComponent implements OnInit {
19
11
  onFileDropped($event: any): void;
20
12
  fileBrowseHandler(event: any): void;
21
13
  deleteFile(index: number): void;
22
- prepareFilesList(files: Array<any>): Promise<void>;
23
- private getFileExtension;
24
- private isImage;
14
+ /**
15
+ * Simulate the upload process
16
+ */
17
+ prepareFilesList(files: Array<any>): void;
25
18
  formatBytes(bytes: any, decimals: any): string;
26
19
  uploaded(): void;
27
20
  filesChanged(): void;
28
21
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<AttachComponent, "spa-attach", never, { "fileOptions": "fileOptions"; "message": "message"; "files": "files"; "enableUpload": "enableUpload"; }, { "filesChange": "filesChange"; "upload": "upload"; }, never, never, false>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttachComponent, "spa-attach", never, { "message": "message"; "files": "files"; "enableUpload": "enableUpload"; }, { "filesChange": "filesChange"; "upload": "upload"; }, never, never, false>;
30
23
  }
@@ -7,7 +7,7 @@ export declare class DateComponent implements OnInit, OnChanges {
7
7
  max: string;
8
8
  readonly: boolean;
9
9
  hint: string;
10
- value: string | null;
10
+ value: string;
11
11
  display: string;
12
12
  placeholder: string;
13
13
  width: string;
@@ -16,8 +16,7 @@ export declare class EmailComponent implements OnInit {
16
16
  hint: string;
17
17
  suffix: string;
18
18
  infoMessage: string;
19
- copyContent: boolean;
20
- clearContent: boolean;
19
+ infoClick: EventEmitter<void>;
21
20
  options: any[];
22
21
  optionValue: string;
23
22
  emails: string[];
@@ -31,10 +30,10 @@ export declare class EmailComponent implements OnInit {
31
30
  handlePaste(event: ClipboardEvent): void;
32
31
  extractEmails(text: string): string[];
33
32
  removeEmail(email: string): void;
34
- clearEmails(): void;
35
33
  updateValue(): void;
34
+ onInfoClick(event: MouseEvent): void;
36
35
  optionSelected(event: MatAutocompleteSelectedEvent): void;
37
36
  copyEmails(): void;
38
37
  static ɵfac: i0.ɵɵFactoryDeclaration<EmailComponent, never>;
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>;
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>;
40
39
  }