tin-spa 2.0.0 → 2.1.1

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 (242) hide show
  1. package/README.md +2 -2
  2. package/esm2020/lib/classes/Classes.mjs +214 -0
  3. package/esm2020/lib/classes/TinCore.mjs +213 -0
  4. package/esm2020/lib/components/activity/activity.component.mjs +24 -0
  5. package/esm2020/lib/components/attach/attach.component.mjs +105 -0
  6. package/esm2020/lib/components/change-password/change-password.component.mjs +92 -0
  7. package/esm2020/lib/components/check/check.component.mjs +56 -0
  8. package/esm2020/lib/components/chips/chips.component.mjs +58 -0
  9. package/esm2020/lib/components/create-account/create-account.component.mjs +72 -0
  10. package/esm2020/lib/components/date/date.component.mjs +82 -0
  11. package/esm2020/lib/components/datetime/datetime.component.mjs +39 -0
  12. package/esm2020/lib/components/filter/filter.component.mjs +46 -0
  13. package/esm2020/lib/components/form/form.component.mjs +107 -0
  14. package/esm2020/lib/components/label/label.component.mjs +25 -0
  15. package/esm2020/lib/components/loader/loader.component.mjs +24 -0
  16. package/esm2020/lib/components/login/login.component.mjs +113 -0
  17. package/esm2020/lib/components/logs/logs.component.mjs +37 -0
  18. package/esm2020/lib/components/message/messageDialog.component.mjs +32 -0
  19. package/esm2020/lib/components/money/currency-input-mask.directive.mjs +185 -0
  20. package/esm2020/lib/components/money/currency-input-mask.module.mjs +28 -0
  21. package/esm2020/lib/components/money/money.component.mjs +108 -0
  22. package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +49 -0
  23. package/esm2020/lib/components/number/number.component.mjs +102 -0
  24. package/esm2020/lib/components/option/option.component.mjs +59 -0
  25. package/esm2020/lib/components/profile/profile.component.mjs +93 -0
  26. package/esm2020/lib/components/recover-account/recover-account.component.mjs +46 -0
  27. package/esm2020/lib/components/roles/addRoleDialog.component.mjs +61 -0
  28. package/esm2020/lib/components/roles/roles.component.mjs +91 -0
  29. package/esm2020/lib/components/select/select.component.mjs +71 -0
  30. package/esm2020/lib/components/settings/settings.component.mjs +63 -0
  31. package/esm2020/lib/components/signup/signup.component.mjs +50 -0
  32. package/esm2020/lib/components/steps/steps.component.mjs +90 -0
  33. package/esm2020/lib/components/table/detailsDialog.component.mjs +137 -0
  34. package/esm2020/lib/components/table/table.component.mjs +350 -0
  35. package/esm2020/lib/components/text/text.component.mjs +166 -0
  36. package/esm2020/lib/components/tiles/tiles.component.mjs +41 -0
  37. package/esm2020/lib/components/tin-spa.component.mjs +19 -0
  38. package/esm2020/lib/components/users/users.component.mjs +119 -0
  39. package/esm2020/lib/modules/admin/admin-routing.module.mjs +29 -0
  40. package/esm2020/lib/modules/admin/admin.module.mjs +26 -0
  41. package/esm2020/lib/modules/index/index-routing.module.mjs +27 -0
  42. package/esm2020/lib/modules/index/index.module.mjs +26 -0
  43. package/esm2020/lib/modules/spa-admin.module.mjs +73 -0
  44. package/esm2020/lib/modules/spa-index.module.mjs +52 -0
  45. package/esm2020/lib/modules/spa-mat.module.mjs +67 -0
  46. package/esm2020/lib/modules/spa-user.module.mjs +49 -0
  47. package/esm2020/lib/modules/user/user-routing.module.mjs +23 -0
  48. package/esm2020/lib/modules/user/user.module.mjs +26 -0
  49. package/esm2020/lib/pipes/camelToWords.pipe.mjs +23 -0
  50. package/esm2020/lib/services/auth.service.mjs +142 -0
  51. package/esm2020/lib/services/data.service.mjs +125 -0
  52. package/esm2020/lib/services/export.service.mjs +16 -0
  53. package/esm2020/lib/services/http.service.mjs +79 -0
  54. package/esm2020/lib/services/loader-interceptor.service.mjs +77 -0
  55. package/esm2020/lib/services/loader.service.mjs +17 -0
  56. package/esm2020/lib/services/log.service.mjs +77 -0
  57. package/esm2020/lib/services/message.service.mjs +52 -0
  58. package/esm2020/lib/services/storage.service.mjs +34 -0
  59. package/esm2020/lib/services/tin-spa.service.mjs +14 -0
  60. package/esm2020/lib/tin-spa.module.mjs +114 -0
  61. package/esm2020/public-api.mjs +62 -0
  62. package/esm2020/tin-spa.mjs +5 -0
  63. package/fesm2015/tin-spa.mjs +4026 -0
  64. package/fesm2015/tin-spa.mjs.map +1 -0
  65. package/fesm2020/tin-spa.mjs +4008 -0
  66. package/fesm2020/tin-spa.mjs.map +1 -0
  67. package/index.d.ts +5 -0
  68. package/lib/classes/Classes.d.ts +69 -62
  69. package/lib/classes/TinCore.d.ts +6 -0
  70. package/lib/components/activity/activity.component.d.ts +3 -0
  71. package/lib/components/attach/attach.component.d.ts +4 -1
  72. package/lib/components/change-password/change-password.component.d.ts +3 -0
  73. package/lib/components/check/check.component.d.ts +3 -0
  74. package/lib/components/chips/chips.component.d.ts +3 -0
  75. package/lib/components/create-account/create-account.component.d.ts +3 -0
  76. package/lib/components/date/date.component.d.ts +19 -7
  77. package/lib/components/datetime/datetime.component.d.ts +3 -0
  78. package/lib/components/filter/filter.component.d.ts +4 -0
  79. package/lib/components/form/form.component.d.ts +23 -0
  80. package/lib/components/label/label.component.d.ts +3 -0
  81. package/lib/components/loader/loader.component.d.ts +3 -0
  82. package/lib/components/login/login.component.d.ts +6 -0
  83. package/lib/components/logs/logs.component.d.ts +3 -0
  84. package/lib/components/message/messageDialog.component.d.ts +3 -0
  85. package/lib/components/money/currency-input-mask.directive.d.ts +41 -0
  86. package/lib/components/money/currency-input-mask.module.d.ts +9 -0
  87. package/lib/components/money/money.component.d.ts +19 -3
  88. package/lib/components/nav-menu/nav-menu.component.d.ts +3 -0
  89. package/lib/components/number/number.component.d.ts +31 -0
  90. package/lib/components/option/option.component.d.ts +3 -0
  91. package/lib/components/profile/profile.component.d.ts +6 -2
  92. package/lib/components/recover-account/recover-account.component.d.ts +3 -0
  93. package/lib/components/roles/addRoleDialog.component.d.ts +3 -0
  94. package/lib/components/roles/roles.component.d.ts +3 -0
  95. package/lib/components/select/select.component.d.ts +5 -1
  96. package/lib/components/settings/settings.component.d.ts +3 -0
  97. package/lib/components/signup/signup.component.d.ts +3 -0
  98. package/lib/components/steps/steps.component.d.ts +3 -0
  99. package/lib/components/table/detailsDialog.component.d.ts +26 -0
  100. package/lib/components/table/table.component.d.ts +57 -17
  101. package/lib/components/text/text.component.d.ts +14 -10
  102. package/lib/components/tiles/tiles.component.d.ts +3 -0
  103. package/lib/components/tin-spa.component.d.ts +4 -4
  104. package/lib/components/users/users.component.d.ts +4 -0
  105. package/lib/modules/admin/admin-routing.module.d.ts +7 -0
  106. package/lib/modules/admin/admin.module.d.ts +9 -0
  107. package/lib/modules/index/index-routing.module.d.ts +7 -0
  108. package/lib/modules/index/index.module.d.ts +9 -0
  109. package/lib/modules/spa-admin.module.d.ts +13 -0
  110. package/lib/modules/spa-index.module.d.ts +10 -0
  111. package/lib/modules/spa-mat.module.d.ts +31 -0
  112. package/lib/modules/spa-user.module.d.ts +9 -0
  113. package/lib/modules/user/user-routing.module.d.ts +7 -0
  114. package/lib/modules/user/user.module.d.ts +9 -0
  115. package/lib/pipes/camelToWords.pipe.d.ts +7 -0
  116. package/lib/services/auth.service.d.ts +3 -0
  117. package/lib/services/data.service.d.ts +5 -1
  118. package/lib/services/export.service.d.ts +3 -4
  119. package/lib/services/http.service.d.ts +3 -0
  120. package/lib/services/loader-interceptor.service.d.ts +3 -0
  121. package/lib/services/loader.service.d.ts +3 -0
  122. package/lib/services/log.service.d.ts +3 -0
  123. package/lib/services/message.service.d.ts +3 -0
  124. package/lib/services/storage.service.d.ts +3 -0
  125. package/lib/services/tin-spa.service.d.ts +3 -0
  126. package/lib/tin-spa.module.d.ts +30 -0
  127. package/package.json +24 -23
  128. package/public-api.d.ts +7 -2
  129. package/bundles/tin-spa.umd.js +0 -3672
  130. package/bundles/tin-spa.umd.js.map +0 -1
  131. package/bundles/tin-spa.umd.min.js +0 -16
  132. package/bundles/tin-spa.umd.min.js.map +0 -1
  133. package/esm2015/lib/classes/Classes.js +0 -254
  134. package/esm2015/lib/classes/TinCore.js +0 -139
  135. package/esm2015/lib/components/activity/activity.component.js +0 -26
  136. package/esm2015/lib/components/attach/attach.component.js +0 -107
  137. package/esm2015/lib/components/change-password/change-password.component.js +0 -102
  138. package/esm2015/lib/components/check/check.component.js +0 -63
  139. package/esm2015/lib/components/chips/chips.component.js +0 -66
  140. package/esm2015/lib/components/create-account/create-account.component.js +0 -78
  141. package/esm2015/lib/components/date/date.component.js +0 -45
  142. package/esm2015/lib/components/datetime/datetime.component.js +0 -44
  143. package/esm2015/lib/components/filter/filter.component.js +0 -40
  144. package/esm2015/lib/components/label/label.component.js +0 -29
  145. package/esm2015/lib/components/loader/loader.component.js +0 -29
  146. package/esm2015/lib/components/login/login.component.js +0 -114
  147. package/esm2015/lib/components/logs/logs.component.js +0 -39
  148. package/esm2015/lib/components/message/messageDialog.component.js +0 -31
  149. package/esm2015/lib/components/money/money.component.js +0 -52
  150. package/esm2015/lib/components/nav-menu/nav-menu.component.js +0 -51
  151. package/esm2015/lib/components/option/option.component.js +0 -63
  152. package/esm2015/lib/components/profile/profile.component.js +0 -98
  153. package/esm2015/lib/components/recover-account/recover-account.component.js +0 -53
  154. package/esm2015/lib/components/roles/addRoleDialog.component.js +0 -61
  155. package/esm2015/lib/components/roles/roles.component.js +0 -94
  156. package/esm2015/lib/components/select/select.component.js +0 -77
  157. package/esm2015/lib/components/settings/settings.component.js +0 -63
  158. package/esm2015/lib/components/signup/signup.component.js +0 -57
  159. package/esm2015/lib/components/steps/steps.component.js +0 -93
  160. package/esm2015/lib/components/table/table.component.js +0 -107
  161. package/esm2015/lib/components/text/text.component.js +0 -165
  162. package/esm2015/lib/components/tiles/tiles.component.js +0 -41
  163. package/esm2015/lib/components/timeout/timeout.component.js +0 -90
  164. package/esm2015/lib/components/tin-spa.component.js +0 -19
  165. package/esm2015/lib/components/users/users.component.js +0 -120
  166. package/esm2015/lib/dnd.directive.js +0 -51
  167. package/esm2015/lib/modules/spa-admin.module.js +0 -50
  168. package/esm2015/lib/modules/spa-index.module.js +0 -35
  169. package/esm2015/lib/modules/spa-mat.module.js +0 -53
  170. package/esm2015/lib/modules/spa-user.module.js +0 -33
  171. package/esm2015/lib/services/auth.service.js +0 -155
  172. package/esm2015/lib/services/data.service.js +0 -115
  173. package/esm2015/lib/services/export.service.js +0 -29
  174. package/esm2015/lib/services/http.service.js +0 -84
  175. package/esm2015/lib/services/loader-interceptor.service.js +0 -83
  176. package/esm2015/lib/services/loader.service.js +0 -17
  177. package/esm2015/lib/services/log.service.js +0 -76
  178. package/esm2015/lib/services/message.service.js +0 -58
  179. package/esm2015/lib/services/storage.service.js +0 -42
  180. package/esm2015/lib/services/tin-spa.service.js +0 -14
  181. package/esm2015/lib/tin-spa.module.js +0 -91
  182. package/esm2015/public-api.js +0 -56
  183. package/esm2015/tin-spa.js +0 -8
  184. package/esm5/lib/classes/Classes.js +0 -313
  185. package/esm5/lib/classes/TinCore.js +0 -166
  186. package/esm5/lib/components/activity/activity.component.js +0 -27
  187. package/esm5/lib/components/attach/attach.component.js +0 -119
  188. package/esm5/lib/components/change-password/change-password.component.js +0 -104
  189. package/esm5/lib/components/check/check.component.js +0 -64
  190. package/esm5/lib/components/chips/chips.component.js +0 -68
  191. package/esm5/lib/components/create-account/create-account.component.js +0 -80
  192. package/esm5/lib/components/date/date.component.js +0 -46
  193. package/esm5/lib/components/datetime/datetime.component.js +0 -45
  194. package/esm5/lib/components/filter/filter.component.js +0 -41
  195. package/esm5/lib/components/label/label.component.js +0 -30
  196. package/esm5/lib/components/loader/loader.component.js +0 -31
  197. package/esm5/lib/components/login/login.component.js +0 -117
  198. package/esm5/lib/components/logs/logs.component.js +0 -41
  199. package/esm5/lib/components/message/messageDialog.component.js +0 -32
  200. package/esm5/lib/components/money/money.component.js +0 -53
  201. package/esm5/lib/components/nav-menu/nav-menu.component.js +0 -53
  202. package/esm5/lib/components/option/option.component.js +0 -64
  203. package/esm5/lib/components/profile/profile.component.js +0 -102
  204. package/esm5/lib/components/recover-account/recover-account.component.js +0 -55
  205. package/esm5/lib/components/roles/addRoleDialog.component.js +0 -63
  206. package/esm5/lib/components/roles/roles.component.js +0 -100
  207. package/esm5/lib/components/select/select.component.js +0 -79
  208. package/esm5/lib/components/settings/settings.component.js +0 -66
  209. package/esm5/lib/components/signup/signup.component.js +0 -59
  210. package/esm5/lib/components/steps/steps.component.js +0 -105
  211. package/esm5/lib/components/table/table.component.js +0 -109
  212. package/esm5/lib/components/text/text.component.js +0 -168
  213. package/esm5/lib/components/tiles/tiles.component.js +0 -42
  214. package/esm5/lib/components/timeout/timeout.component.js +0 -92
  215. package/esm5/lib/components/tin-spa.component.js +0 -17
  216. package/esm5/lib/components/users/users.component.js +0 -126
  217. package/esm5/lib/dnd.directive.js +0 -52
  218. package/esm5/lib/modules/spa-admin.module.js +0 -53
  219. package/esm5/lib/modules/spa-index.module.js +0 -38
  220. package/esm5/lib/modules/spa-mat.module.js +0 -56
  221. package/esm5/lib/modules/spa-user.module.js +0 -36
  222. package/esm5/lib/services/auth.service.js +0 -157
  223. package/esm5/lib/services/data.service.js +0 -116
  224. package/esm5/lib/services/export.service.js +0 -30
  225. package/esm5/lib/services/http.service.js +0 -85
  226. package/esm5/lib/services/loader-interceptor.service.js +0 -85
  227. package/esm5/lib/services/loader.service.js +0 -18
  228. package/esm5/lib/services/log.service.js +0 -112
  229. package/esm5/lib/services/message.service.js +0 -59
  230. package/esm5/lib/services/storage.service.js +0 -74
  231. package/esm5/lib/services/tin-spa.service.js +0 -16
  232. package/esm5/lib/tin-spa.module.js +0 -94
  233. package/esm5/public-api.js +0 -56
  234. package/esm5/tin-spa.js +0 -8
  235. package/fesm2015/tin-spa.js +0 -3184
  236. package/fesm2015/tin-spa.js.map +0 -1
  237. package/fesm5/tin-spa.js +0 -3422
  238. package/fesm5/tin-spa.js.map +0 -1
  239. package/lib/components/timeout/timeout.component.d.ts +0 -21
  240. package/lib/dnd.directive.d.ts +0 -8
  241. package/tin-spa.d.ts +0 -7
  242. package/tin-spa.metadata.json +0 -1
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="tin-spa" />
5
+ export * from './public-api';
@@ -1,80 +1,78 @@
1
- export declare enum LogLevel {
2
- All = 0,
3
- Debug = 1,
4
- Info = 2,
5
- Warn = 3,
6
- Error = 4,
7
- Fatal = 5,
8
- Off = 6
1
+ export declare class Action {
2
+ method?: 'get' | 'post';
3
+ url: string;
4
+ params?: any[];
5
+ successMessage?: string;
9
6
  }
10
- export declare class Tile {
11
- tileName: string;
12
- tileValue: string;
13
- tileColor: string;
14
- selected: string;
15
- visible?: boolean;
16
- info?: string;
7
+ export declare class FormConfig {
8
+ fields: Field[];
9
+ mode?: string;
10
+ button?: Button;
11
+ multiColumn?: boolean;
12
+ reset?: boolean;
17
13
  }
18
- export declare class Step {
19
- name: string;
20
- icon: string;
14
+ export interface Button {
15
+ name: 'create' | 'view' | 'edit' | 'delete' | 'custom1' | 'custom2' | 'custom3';
16
+ visible?: (value: any) => boolean;
17
+ display?: string;
18
+ icon?: Icon;
19
+ disabled?: (value: any) => boolean;
20
+ color?: string;
21
+ tip?: string;
22
+ dialog?: boolean;
23
+ action?: Action;
24
+ confirm?: Confirm;
21
25
  }
22
- export declare class TableConfig {
23
- enableFilter: boolean;
24
- create: TableCreate;
25
- columns: TableColumn[];
26
- actions: TableAction[];
27
- greyout: Condition;
26
+ export interface Confirm {
27
+ message: string;
28
28
  }
29
- export declare class TableCreate {
30
- enabled: boolean;
31
- display: string;
29
+ export interface Condition {
30
+ condition?: (value: any) => boolean;
32
31
  }
33
- export declare class TableColumn {
34
- constructor();
32
+ export interface Field {
35
33
  name: string;
36
- display: string;
37
- type?: TableColumnType;
38
- icons?: Icon[];
39
- color?: Color;
34
+ type: 'text' | 'date' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number';
35
+ options?: any[];
36
+ optionDisplay?: string;
37
+ optionValue?: string;
38
+ defaultValue?: any;
39
+ required?: boolean;
40
+ min?: any;
41
+ max?: any;
42
+ rows?: number;
43
+ span?: boolean;
40
44
  }
41
- export declare enum TableColumnType {
42
- String = 0,
43
- Date = 1,
44
- DateTime = 2,
45
- Image = 3,
46
- Icon = 4,
47
- TextIcon = 5,
48
- Chip = 6
49
- }
50
- export declare class Condition {
51
- constructor();
52
- field: string;
53
- operator: Operator;
54
- value: string;
55
- }
56
- export declare enum Operator {
57
- Equal = 0,
58
- Less = 1,
59
- Greater = 2,
60
- NotEqual = 3
45
+ export declare class TableConfig {
46
+ columns?: Column[];
47
+ showFilter?: boolean;
48
+ formConfig?: FormConfig;
49
+ minColumns?: string[];
50
+ buttons?: Button[];
51
+ loadAction?: Action;
61
52
  }
62
- export declare class Color extends Condition {
53
+ export interface Column {
63
54
  name: string;
55
+ type?: 'text' | 'date' | 'checkbox' | 'select' | 'multi-select' | 'money' | 'number';
56
+ alias?: string;
57
+ icon?: Icon;
64
58
  }
65
- export declare class Icon extends Condition {
59
+ export interface Icon {
66
60
  name: string;
67
- hint?: string;
68
61
  color?: string;
62
+ tip?: string;
63
+ condition?: (value: any) => boolean;
64
+ }
65
+ export declare class Tile {
66
+ tileName: string;
67
+ tileValue: string;
68
+ tileColor: string;
69
+ selected: string;
70
+ visible?: boolean;
71
+ info?: string;
69
72
  }
70
- export declare class TableAction {
73
+ export declare class Step {
71
74
  name: string;
72
- show?: boolean;
73
75
  icon: string;
74
- color?: string;
75
- hint?: string;
76
- disappear?: Condition;
77
- disable?: Condition;
78
76
  }
79
77
  export declare class ActionResponse {
80
78
  name: string;
@@ -266,3 +264,12 @@ export declare class Role {
266
264
  cap99: boolean;
267
265
  cap100: boolean;
268
266
  }
267
+ export declare enum LogLevel {
268
+ All = 0,
269
+ Debug = 1,
270
+ Info = 2,
271
+ Warn = 3,
272
+ Error = 4,
273
+ Fatal = 5,
274
+ Off = 6
275
+ }
@@ -1,4 +1,9 @@
1
+ import { Field } from "./Classes";
1
2
  export declare class Core {
3
+ static generateObject(fields: Field[]): {};
4
+ static resetObject(fields: Field[], data: any): void;
5
+ static validateObject(fields: Field[], data: any): string;
6
+ private static getInitialValue;
2
7
  static getClone(x: any): any;
3
8
  static getNumber(value: string): string | 0;
4
9
  static getFirstDayOfMonth(): Date;
@@ -11,6 +16,7 @@ export declare class Core {
11
16
  static getDiff(startDate: any, endDate?: string): string;
12
17
  static nowDate(NoTime?: boolean): string;
13
18
  static getFormatedDate(dateString: string, NoTime?: boolean): string;
19
+ static getFormatedDate2(d: Date, NoTime?: boolean): string;
14
20
  static getBusinessDatesCount(startDate: string, endDate: string): number;
15
21
  }
16
22
  export declare class ApiResponse {
@@ -1,8 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class ActivityComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
5
6
  notes: any[];
6
7
  notesMessage: string;
7
8
  title: string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActivityComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActivityComponent, "spa-activity", never, { "notes": "notes"; "title": "title"; }, {}, never, never, false>;
8
11
  }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AttachComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
@@ -14,7 +15,7 @@ export declare class AttachComponent implements OnInit {
14
15
  /**
15
16
  * handle file from browsing
16
17
  */
17
- fileBrowseHandler(files: any): void;
18
+ fileBrowseHandler(event: any): void;
18
19
  /**
19
20
  * Delete file from files list
20
21
  * @param index (File index)
@@ -36,4 +37,6 @@ export declare class AttachComponent implements OnInit {
36
37
  formatBytes(bytes: any, decimals: any): string;
37
38
  uploaded(): void;
38
39
  filesChanged(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<AttachComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttachComponent, "spa-attach", never, { "message": "message"; "files": "files"; "enableUpload": "enableUpload"; }, { "filesChange": "filesChange"; "upload": "upload"; }, never, never, false>;
39
42
  }
@@ -6,6 +6,7 @@ import { AuthService } from '../../services/auth.service';
6
6
  import { Location } from '@angular/common';
7
7
  import { HttpService } from '../../services/http.service';
8
8
  import { ActivatedRoute, Router } from '@angular/router';
9
+ import * as i0 from "@angular/core";
9
10
  export declare class ChangePasswordComponent implements OnInit {
10
11
  router: Router;
11
12
  private location;
@@ -21,4 +22,6 @@ export declare class ChangePasswordComponent implements OnInit {
21
22
  isProcessing: boolean;
22
23
  changePassword: ChangeUserPassword;
23
24
  change(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChangePasswordComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChangePasswordComponent, "spa-change-password", never, {}, {}, never, never, false>;
24
27
  }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class CheckComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
@@ -13,4 +14,6 @@ export declare class CheckComponent implements OnInit {
13
14
  clicked(): void;
14
15
  checked(): void;
15
16
  unchecked(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckComponent, "spa-check", never, { "readonly": "readonly"; "display": "display"; "value": "value"; }, { "valueChange": "valueChange"; "click": "click"; "check": "check"; "uncheck": "uncheck"; }, never, never, false>;
16
19
  }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { MessageService } from '../../services/message.service';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class ChipsComponent implements OnInit {
4
5
  private messageService;
5
6
  constructor(messageService: MessageService);
@@ -12,4 +13,6 @@ export declare class ChipsComponent implements OnInit {
12
13
  remove: EventEmitter<any>;
13
14
  clicked(chip: string): void;
14
15
  removed(chip: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipsComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "spa-chips", never, { "icon": "icon"; "removable": "removable"; "addable": "addable"; "chips": "chips"; }, { "click": "click"; "remove": "remove"; }, never, never, false>;
15
18
  }
@@ -5,6 +5,7 @@ import { AuthService } from '../../services/auth.service';
5
5
  import { AppConfig, Register } from '../../classes/Classes';
6
6
  import { Router } from '@angular/router';
7
7
  import { HttpService } from '../../services/http.service';
8
+ import * as i0 from "@angular/core";
8
9
  export declare class CreateAccountComponent implements OnInit {
9
10
  private httpService;
10
11
  private messageService;
@@ -24,4 +25,6 @@ export declare class CreateAccountComponent implements OnInit {
24
25
  }[];
25
26
  create(): void;
26
27
  viewProfile(userName: string): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreateAccountComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateAccountComponent, "spa-create-account", never, { "appConfig": "appConfig"; }, {}, never, never, false>;
27
30
  }
@@ -1,13 +1,25 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class DateComponent implements OnInit {
4
5
  constructor();
5
6
  ngOnInit(): void;
6
- date: FormControl;
7
- display: string;
7
+ ngOnChanges(): void;
8
+ required: boolean;
9
+ min: string;
10
+ max: string;
11
+ minDate: any;
12
+ maxDate: any;
8
13
  readonly: boolean;
9
- currentYear: number;
10
- min: FormControl;
11
- max: FormControl;
12
- onChangeEvent(d: any): void;
14
+ hint: string;
15
+ value: string;
16
+ display: string;
17
+ placeholder: string;
18
+ width: string;
19
+ valueChange: EventEmitter<any>;
20
+ onChangeEvent(): void;
21
+ control: FormControl<Date>;
22
+ validate(control: FormControl): string;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "spa-date", never, { "required": "required"; "min": "min"; "max": "max"; "readonly": "readonly"; "hint": "hint"; "value": "value"; "display": "display"; "placeholder": "placeholder"; "width": "width"; }, { "valueChange": "valueChange"; }, never, never, false>;
13
25
  }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class DatetimeComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
@@ -9,4 +10,6 @@ export declare class DatetimeComponent implements OnInit {
9
10
  min: string;
10
11
  max: string;
11
12
  changed(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatetimeComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatetimeComponent, "spa-datetime", never, { "display": "display"; "value": "value"; "readonly": "readonly"; "min": "min"; "max": "max"; }, { "valueChange": "valueChange"; }, never, never, false>;
12
15
  }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { MatTableDataSource } from '@angular/material/table';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class FilterComponent implements OnInit {
4
5
  constructor();
5
6
  ngOnInit(): void;
@@ -7,6 +8,9 @@ export declare class FilterComponent implements OnInit {
7
8
  data: MatTableDataSource<unknown>;
8
9
  refreshClick: EventEmitter<any>;
9
10
  _filterText: string;
11
+ keyUp(event: KeyboardEvent): void;
10
12
  applyFilter(filterValue: string): void;
11
13
  refreshClicked(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "spa-filter", never, { "data": "data"; }, { "refreshClick": "refreshClick"; }, never, never, false>;
12
16
  }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormConfig, Field, Button } from '../../classes/Classes';
3
+ import { MessageService } from '../../services/message.service';
4
+ import { DataServiceLib } from '../../services/data.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormComponent implements OnInit {
7
+ private messageService;
8
+ private dataService;
9
+ constructor(messageService: MessageService, dataService: DataServiceLib);
10
+ ngOnInit(): void;
11
+ ngOnChanges(): void;
12
+ fields: Field[];
13
+ buttonDisplay: string;
14
+ isProcessing: boolean;
15
+ multiColumn: boolean;
16
+ data: any;
17
+ config: FormConfig;
18
+ buttonClick: EventEmitter<any>;
19
+ buttonClicked(): void;
20
+ processCall(button: Button): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "spa-form", never, { "data": "data"; "config": "config"; }, { "buttonClick": "buttonClick"; }, never, never, false>;
23
+ }
@@ -1,8 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class LabelComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
5
6
  display: string;
6
7
  value: string;
7
8
  format: string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "spa-label", never, { "display": "display"; "value": "value"; "format": "format"; }, {}, never, never, false>;
8
11
  }
@@ -1,9 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { LoaderService } from '../../services/loader.service';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class LoaderComponent implements OnInit {
4
5
  private loaderService;
5
6
  constructor(loaderService: LoaderService);
6
7
  ngOnInit(): void;
7
8
  logo: string;
8
9
  loading: boolean;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "spa-loader", never, { "logo": "logo"; }, {}, never, never, false>;
9
12
  }
@@ -7,6 +7,7 @@ import { DataServiceLib } from "../../services/data.service";
7
7
  import { LogService } from "./../../services/log.service";
8
8
  import { User, AppConfig } from "../../classes/Classes";
9
9
  import { HttpService } from "../../services/http.service";
10
+ import * as i0 from "@angular/core";
10
11
  export declare class LoginComponent implements OnInit {
11
12
  private httpService;
12
13
  private storageService;
@@ -18,6 +19,9 @@ export declare class LoginComponent implements OnInit {
18
19
  private route;
19
20
  constructor(httpService: HttpService, storageService: StorageService, router: Router, messageService: MessageService, dataService: DataServiceLib, authService: AuthService, logService: LogService, route: ActivatedRoute);
20
21
  ngOnInit(): void;
22
+ style: string;
23
+ email: string;
24
+ password: string;
21
25
  redirectPath: any;
22
26
  user: User;
23
27
  hide: boolean;
@@ -26,4 +30,6 @@ export declare class LoginComponent implements OnInit {
26
30
  signup(): void;
27
31
  recoverAccount(): void;
28
32
  login(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "spa-login", never, {}, {}, never, never, false>;
29
35
  }
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { DataServiceLib } from "../../services/data.service";
3
3
  import { MatPaginator } from '@angular/material/paginator';
4
4
  import { AuthService } from '../../services/auth.service';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class LogsComponent implements OnInit {
6
7
  private authService;
7
8
  private dataService;
@@ -12,4 +13,6 @@ export declare class LogsComponent implements OnInit {
12
13
  logs: any;
13
14
  displayedColumns: string[];
14
15
  loadLogs(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<LogsComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<LogsComponent, "spa-logs", never, {}, {}, never, never, false>;
15
18
  }
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class messageDialog implements OnInit {
4
5
  private dialogRef;
5
6
  data: any;
@@ -9,4 +10,6 @@ export declare class messageDialog implements OnInit {
9
10
  _messageSubject: any;
10
11
  _messageDetails: any;
11
12
  response(resp: string): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<messageDialog, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<messageDialog, "lib-app-message", never, {}, {}, never, never, false>;
12
15
  }
@@ -0,0 +1,41 @@
1
+ import { OnInit, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { DecimalPipe } from '@angular/common';
4
+ import * as i0 from "@angular/core";
5
+ export declare const CURRENCY_INPUT_MASK_DIRECTIVE_VALUE_ACCESSOR: any;
6
+ export declare class CurrencyInputMaskDirective implements ControlValueAccessor, OnInit {
7
+ private elementRef;
8
+ private decimalPipe;
9
+ private el;
10
+ private onModelChange;
11
+ private onModelTouched;
12
+ private lastNumVal;
13
+ private DECIMAL_MARK;
14
+ constructor(elementRef: ElementRef, decimalPipe: DecimalPipe);
15
+ ngOnInit(): void;
16
+ handleFocus(event: any): void;
17
+ handleCut(event: any): void;
18
+ handleKeypress(event: any): void;
19
+ handleInput(event: any): void;
20
+ handlePaste(event: any): void;
21
+ handleBlur(event: any): void;
22
+ registerOnChange(callbackFunction: Function): void;
23
+ registerOnTouched(callbackFunction: Function): void;
24
+ setDisabledState(value: boolean): void;
25
+ writeValue(numValue: number): void;
26
+ private maskInput;
27
+ private inputUpdated;
28
+ private restrictDecimalValue;
29
+ private transformWithPipe;
30
+ private getUnmaskedValue;
31
+ private updateInputValue;
32
+ private getInputValue;
33
+ private convertStrToDecimal;
34
+ private convertDecimalToStr;
35
+ private isNumeric;
36
+ private saveCursorPosition;
37
+ private setCursorPosition;
38
+ private isIdxBetweenSelection;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyInputMaskDirective, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CurrencyInputMaskDirective, "[appCurrencyInputMask]", never, {}, {}, never, never, false>;
41
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./currency-input-mask.directive";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ export declare class CurrencyInputModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyInputModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CurrencyInputModule, [typeof i1.CurrencyInputMaskDirective], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CurrencyInputMaskDirective]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<CurrencyInputModule>;
9
+ }
@@ -1,14 +1,30 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
2
4
  export declare class MoneyComponent implements OnInit {
3
5
  constructor();
4
6
  ngOnInit(): void;
5
7
  ngOnChanges(): void;
8
+ ngAfterViewInit(): void;
9
+ initControl(control: FormControl): void;
6
10
  readonly: boolean;
11
+ hint: string;
7
12
  display: string;
13
+ placeholder: string;
8
14
  value: string;
9
- valueChange: EventEmitter<any>;
10
15
  width: string;
11
- hint: string;
12
16
  currency: string;
13
- changed(): void;
17
+ valueChange: EventEmitter<any>;
18
+ leave: EventEmitter<any>;
19
+ enterPress: EventEmitter<any>;
20
+ required: boolean;
21
+ min: number;
22
+ max: number;
23
+ changed(x: any): void;
24
+ leaved(): void;
25
+ enterPressed(): void;
26
+ control: FormControl<string>;
27
+ validate(control: FormControl): string;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<MoneyComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<MoneyComponent, "spa-money", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "width": "width"; "currency": "currency"; "required": "required"; "min": "min"; "max": "max"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; }, never, never, false>;
14
30
  }
@@ -1,6 +1,7 @@
1
1
  import { AppConfig } from './../../classes/Classes';
2
2
  import { Router } from '@angular/router';
3
3
  import { AuthService } from '../../services/auth.service';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class NavMenuComponent {
5
6
  router: Router;
6
7
  authService: AuthService;
@@ -14,4 +15,6 @@ export declare class NavMenuComponent {
14
15
  collapse(): void;
15
16
  toggle(): void;
16
17
  redirectTo(link: string): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavMenuComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavMenuComponent, "spa-nav-menu", never, { "appConfig": "appConfig"; }, {}, never, never, false>;
17
20
  }
@@ -0,0 +1,31 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NumberComponent implements OnInit {
5
+ constructor();
6
+ ngOnInit(): void;
7
+ ngAfterViewInit(): void;
8
+ initControl(control: FormControl): void;
9
+ hideRequiredControl: FormControl<boolean>;
10
+ hide: boolean;
11
+ readonly: boolean;
12
+ hint: string;
13
+ display: string;
14
+ placeholder: string;
15
+ value: number;
16
+ width: string;
17
+ valueChange: EventEmitter<any>;
18
+ leave: EventEmitter<any>;
19
+ enterPress: EventEmitter<any>;
20
+ required: boolean;
21
+ min: number;
22
+ max: number;
23
+ step: number;
24
+ changed(): void;
25
+ leaved(): void;
26
+ enterPressed(): void;
27
+ control: FormControl<number>;
28
+ validate(control: FormControl): string;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberComponent, "spa-number", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "width": "width"; "required": "required"; "min": "min"; "max": "max"; "step": "step"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; }, never, never, false>;
31
+ }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class OptionComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
@@ -15,4 +16,6 @@ export declare class OptionComponent implements OnInit {
15
16
  changed(): void;
16
17
  enterPressed(): void;
17
18
  resetValue(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "spa-option", never, { "options": "options"; "optionValue": "optionValue"; "optionDisplay": "optionDisplay"; "readonly": "readonly"; "value": "value"; "display": "display"; "show": "show"; }, { "valueChange": "valueChange"; "enterPress": "enterPress"; }, never, never, false>;
18
21
  }
@@ -2,9 +2,10 @@ import { AuthService } from './../../services/auth.service';
2
2
  import { MessageService } from './../../services/message.service';
3
3
  import { DataServiceLib } from './../../services/data.service';
4
4
  import { OnInit } from '@angular/core';
5
- import { AppConfig, Profile } from '../../classes/Classes';
5
+ import { AppConfig } from '../../classes/Classes';
6
6
  import { Router } from '@angular/router';
7
7
  import { HttpService } from '../../services/http.service';
8
+ import * as i0 from "@angular/core";
8
9
  export declare class ProfileComponent implements OnInit {
9
10
  dataService: DataServiceLib;
10
11
  private messageService;
@@ -15,9 +16,10 @@ export declare class ProfileComponent implements OnInit {
15
16
  ngOnInit(): void;
16
17
  isProcessing: boolean;
17
18
  myRole: any;
19
+ initials: string;
18
20
  appConfig: AppConfig;
19
21
  selfProfile: boolean;
20
- profile: Profile;
22
+ profile: any;
21
23
  roles: any;
22
24
  approvalRoles: any;
23
25
  employees: any;
@@ -27,4 +29,6 @@ export declare class ProfileComponent implements OnInit {
27
29
  gotoUsers(): void;
28
30
  update(): void;
29
31
  updateProfile(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComponent, "spa-profile", never, { "appConfig": "appConfig"; }, {}, never, never, false>;
30
34
  }
@@ -3,6 +3,7 @@ import { DataServiceLib } from '../../services/data.service';
3
3
  import { AuthService } from '../../services/auth.service';
4
4
  import { MessageService } from '../../services/message.service';
5
5
  import { Location } from '@angular/common';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class RecoverAccountComponent implements OnInit {
7
8
  private location;
8
9
  private dataService;
@@ -12,4 +13,6 @@ export declare class RecoverAccountComponent implements OnInit {
12
13
  ngOnInit(): void;
13
14
  userName: string;
14
15
  recover(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<RecoverAccountComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<RecoverAccountComponent, "spa-recover-account", never, {}, {}, never, never, false>;
15
18
  }