@falcon-ng/tailwind 0.0.2 → 0.0.3

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 (206) hide show
  1. package/esm2020/falcon-ng-tailwind.mjs +5 -0
  2. package/esm2020/lib/base-control.mjs +50 -0
  3. package/esm2020/lib/base-form-component.mjs +234 -0
  4. package/esm2020/lib/component/auto-complete/auto-complete.component.mjs +33 -0
  5. package/esm2020/lib/component/bottom-sheet/bottom-sheet.component.mjs +29 -0
  6. package/esm2020/lib/component/button/button.component.mjs +27 -0
  7. package/esm2020/lib/component/button-toggle/button-toggle.component.mjs +32 -0
  8. package/esm2020/lib/component/checkbox/checkbox.component.mjs +18 -0
  9. package/esm2020/lib/component/chips/chip.component.mjs +109 -0
  10. package/esm2020/lib/component/date-picker/date-picker.component.mjs +17 -0
  11. package/esm2020/lib/component/dialog/dialog.component.mjs +21 -0
  12. package/esm2020/lib/component/pagination/pagination.component.mjs +95 -0
  13. package/esm2020/lib/component/progress-bar/progress-bar.component.mjs +20 -0
  14. package/esm2020/lib/component/progress-spinner/progress-spinner.component.mjs +26 -0
  15. package/esm2020/lib/component/radio/radio.component.mjs +31 -0
  16. package/esm2020/lib/component/rich-text-editor/rich-text-editor.component.mjs +15 -0
  17. package/esm2020/lib/component/select/select.component.mjs +35 -0
  18. package/esm2020/lib/component/slide-toggle/slide-toggle.component.mjs +14 -0
  19. package/esm2020/lib/component/slider/slider.component.mjs +15 -0
  20. package/esm2020/lib/component/snack-bar/snack-bar.component.mjs +11 -0
  21. package/esm2020/lib/component/table/table.component.mjs +74 -0
  22. package/esm2020/lib/component/textarea/textarea.component.mjs +16 -0
  23. package/esm2020/lib/component/textbox/textbox.component.mjs +17 -0
  24. package/esm2020/lib/control-builder/control-builder.component.mjs +18 -0
  25. package/esm2020/lib/control-type/select.mjs +8 -0
  26. package/esm2020/lib/control-type/textarea.mjs +8 -0
  27. package/esm2020/lib/control-type/textbox.mjs +8 -0
  28. package/esm2020/lib/falcon-core.module.mjs +232 -0
  29. package/esm2020/lib/model/constant.mjs +32 -0
  30. package/esm2020/lib/model/enum.mjs +2 -0
  31. package/esm2020/lib/model/environments.mjs +3 -0
  32. package/esm2020/lib/model/interface.mjs +2 -0
  33. package/esm2020/lib/model/ivalidator.mjs +2 -0
  34. package/esm2020/lib/module/angularmaterial.module.mjs +189 -0
  35. package/esm2020/lib/reactive-field.directive.mjs +28 -0
  36. package/esm2020/lib/service/appsetting.service.mjs +55 -0
  37. package/esm2020/lib/service/http/generic-http-client.mjs +197 -0
  38. package/esm2020/lib/service/http/igeneric-http-client.mjs +10 -0
  39. package/esm2020/lib/service/logger.service.mjs +78 -0
  40. package/esm2020/lib/service/open-id/TokenHelperService.mjs +71 -0
  41. package/esm2020/lib/service/open-id/auth-guard.service.mjs +30 -0
  42. package/esm2020/lib/service/open-id/auth.service.mjs +154 -0
  43. package/esm2020/public-api.mjs +50 -0
  44. package/fesm2015/falcon-ng-tailwind.mjs +1906 -0
  45. package/fesm2015/falcon-ng-tailwind.mjs.map +1 -0
  46. package/fesm2020/falcon-ng-tailwind.mjs +1880 -0
  47. package/fesm2020/falcon-ng-tailwind.mjs.map +1 -0
  48. package/index.d.ts +5 -0
  49. package/lib/base-control.d.ts +104 -0
  50. package/lib/base-form-component.d.ts +169 -0
  51. package/lib/component/auto-complete/auto-complete.component.d.ts +17 -0
  52. package/lib/component/bottom-sheet/bottom-sheet.component.d.ts +11 -0
  53. package/lib/component/button/button.component.d.ts +12 -0
  54. package/lib/component/button-toggle/button-toggle.component.d.ts +14 -0
  55. package/lib/component/checkbox/checkbox.component.d.ts +10 -0
  56. package/lib/component/chips/chip.component.d.ts +35 -0
  57. package/lib/component/date-picker/date-picker.component.d.ts +9 -0
  58. package/lib/component/dialog/dialog.component.d.ts +8 -0
  59. package/lib/component/pagination/pagination.component.d.ts +20 -0
  60. package/lib/component/progress-bar/progress-bar.component.d.ts +11 -0
  61. package/lib/component/progress-spinner/progress-spinner.component.d.ts +12 -0
  62. package/lib/component/radio/radio.component.d.ts +14 -0
  63. package/lib/component/rich-text-editor/rich-text-editor.component.d.ts +9 -0
  64. package/lib/component/select/select.component.d.ts +15 -0
  65. package/lib/component/slide-toggle/slide-toggle.component.d.ts +9 -0
  66. package/lib/component/slider/slider.component.d.ts +9 -0
  67. package/lib/component/snack-bar/snack-bar.component.d.ts +5 -0
  68. package/lib/component/table/table.component.d.ts +21 -0
  69. package/lib/component/textarea/textarea.component.d.ts +9 -0
  70. package/lib/component/textbox/textbox.component.d.ts +9 -0
  71. package/lib/control-builder/control-builder.component.d.ts +9 -0
  72. package/{src/lib/control-type/Chip.ts → lib/control-type/select.d.ts} +2 -3
  73. package/{src/lib/control-type/Radio.ts → lib/control-type/textarea.d.ts} +2 -3
  74. package/lib/control-type/textbox.d.ts +5 -0
  75. package/lib/falcon-core.module.d.ts +35 -0
  76. package/lib/model/constant.d.ts +5 -0
  77. package/lib/model/enum.d.ts +144 -0
  78. package/{src/lib/model/environments.ts → lib/model/environments.d.ts} +5 -7
  79. package/{src/lib/model/interface.ts → lib/model/interface.d.ts} +80 -91
  80. package/{src/lib/model/ivalidator.ts → lib/model/ivalidator.d.ts} +3 -3
  81. package/lib/module/angularmaterial.module.d.ts +49 -0
  82. package/lib/reactive-field.directive.d.ts +14 -0
  83. package/lib/service/appsetting.service.d.ts +22 -0
  84. package/lib/service/http/generic-http-client.d.ts +121 -0
  85. package/lib/service/http/igeneric-http-client.d.ts +92 -0
  86. package/lib/service/logger.service.d.ts +18 -0
  87. package/lib/service/open-id/TokenHelperService.d.ts +11 -0
  88. package/lib/service/open-id/auth-guard.service.d.ts +11 -0
  89. package/lib/service/open-id/auth.service.d.ts +36 -0
  90. package/package.json +22 -2
  91. package/{src/public-api.ts → public-api.d.ts} +8 -6
  92. package/ng-package.json +0 -7
  93. package/src/lib/base-control.ts +0 -142
  94. package/src/lib/base-form-component.ts +0 -363
  95. package/src/lib/component/auto-complete/auto-complete.component.html +0 -39
  96. package/src/lib/component/auto-complete/auto-complete.component.scss +0 -0
  97. package/src/lib/component/auto-complete/auto-complete.component.spec.ts +0 -23
  98. package/src/lib/component/auto-complete/auto-complete.component.ts +0 -31
  99. package/src/lib/component/bottom-sheet/bottom-sheet.component.html +0 -9
  100. package/src/lib/component/bottom-sheet/bottom-sheet.component.scss +0 -0
  101. package/src/lib/component/bottom-sheet/bottom-sheet.component.spec.ts +0 -23
  102. package/src/lib/component/bottom-sheet/bottom-sheet.component.ts +0 -19
  103. package/src/lib/component/button/button.component.css +0 -0
  104. package/src/lib/component/button/button.component.html +0 -54
  105. package/src/lib/component/button/button.component.spec.ts +0 -23
  106. package/src/lib/component/button/button.component.ts +0 -17
  107. package/src/lib/component/button-toggle/button-toggle.component.html +0 -21
  108. package/src/lib/component/button-toggle/button-toggle.component.scss +0 -0
  109. package/src/lib/component/button-toggle/button-toggle.component.spec.ts +0 -23
  110. package/src/lib/component/button-toggle/button-toggle.component.ts +0 -26
  111. package/src/lib/component/checkbox/checkbox.component.html +0 -6
  112. package/src/lib/component/checkbox/checkbox.component.scss +0 -0
  113. package/src/lib/component/checkbox/checkbox.component.spec.ts +0 -23
  114. package/src/lib/component/checkbox/checkbox.component.ts +0 -17
  115. package/src/lib/component/chips/chip.component.html +0 -75
  116. package/src/lib/component/chips/chip.component.scss +0 -3
  117. package/src/lib/component/chips/chip.component.spec.ts +0 -23
  118. package/src/lib/component/chips/chip.component.ts +0 -125
  119. package/src/lib/component/date-picker/date-picker.component.html +0 -18
  120. package/src/lib/component/date-picker/date-picker.component.scss +0 -0
  121. package/src/lib/component/date-picker/date-picker.component.spec.ts +0 -23
  122. package/src/lib/component/date-picker/date-picker.component.ts +0 -13
  123. package/src/lib/component/dialog/dialog.component.html +0 -12
  124. package/src/lib/component/dialog/dialog.component.scss +0 -3
  125. package/src/lib/component/dialog/dialog.component.spec.ts +0 -23
  126. package/src/lib/component/dialog/dialog.component.ts +0 -12
  127. package/src/lib/component/pagination/pagination.component.html +0 -10
  128. package/src/lib/component/pagination/pagination.component.scss +0 -0
  129. package/src/lib/component/pagination/pagination.component.spec.ts +0 -23
  130. package/src/lib/component/pagination/pagination.component.ts +0 -86
  131. package/src/lib/component/progress-bar/progress-bar.component.html +0 -1
  132. package/src/lib/component/progress-bar/progress-bar.component.scss +0 -0
  133. package/src/lib/component/progress-bar/progress-bar.component.spec.ts +0 -23
  134. package/src/lib/component/progress-bar/progress-bar.component.ts +0 -15
  135. package/src/lib/component/progress-spinner/progress-spinner.component.html +0 -7
  136. package/src/lib/component/progress-spinner/progress-spinner.component.scss +0 -0
  137. package/src/lib/component/progress-spinner/progress-spinner.component.spec.ts +0 -23
  138. package/src/lib/component/progress-spinner/progress-spinner.component.ts +0 -16
  139. package/src/lib/component/radio/radio.component.html +0 -13
  140. package/src/lib/component/radio/radio.component.scss +0 -14
  141. package/src/lib/component/radio/radio.component.spec.ts +0 -23
  142. package/src/lib/component/radio/radio.component.ts +0 -29
  143. package/src/lib/component/rich-text-editor/rich-text-editor.component.html +0 -10
  144. package/src/lib/component/rich-text-editor/rich-text-editor.component.scss +0 -0
  145. package/src/lib/component/rich-text-editor/rich-text-editor.component.spec.ts +0 -23
  146. package/src/lib/component/rich-text-editor/rich-text-editor.component.ts +0 -13
  147. package/src/lib/component/select/select.component.html +0 -25
  148. package/src/lib/component/select/select.component.scss +0 -0
  149. package/src/lib/component/select/select.component.spec.ts +0 -23
  150. package/src/lib/component/select/select.component.ts +0 -32
  151. package/src/lib/component/slide-toggle/slide-toggle.component.html +0 -7
  152. package/src/lib/component/slide-toggle/slide-toggle.component.scss +0 -0
  153. package/src/lib/component/slide-toggle/slide-toggle.component.spec.ts +0 -23
  154. package/src/lib/component/slide-toggle/slide-toggle.component.ts +0 -13
  155. package/src/lib/component/slider/slider.component.html +0 -11
  156. package/src/lib/component/slider/slider.component.scss +0 -0
  157. package/src/lib/component/slider/slider.component.spec.ts +0 -23
  158. package/src/lib/component/slider/slider.component.ts +0 -13
  159. package/src/lib/component/snack-bar/snack-bar.component.html +0 -1
  160. package/src/lib/component/snack-bar/snack-bar.component.scss +0 -0
  161. package/src/lib/component/snack-bar/snack-bar.component.spec.ts +0 -23
  162. package/src/lib/component/snack-bar/snack-bar.component.ts +0 -10
  163. package/src/lib/component/table/table.component.html +0 -82
  164. package/src/lib/component/table/table.component.scss +0 -17
  165. package/src/lib/component/table/table.component.spec.ts +0 -23
  166. package/src/lib/component/table/table.component.ts +0 -54
  167. package/src/lib/component/textarea/textarea.component.html +0 -22
  168. package/src/lib/component/textarea/textarea.component.scss +0 -3
  169. package/src/lib/component/textarea/textarea.component.spec.ts +0 -23
  170. package/src/lib/component/textarea/textarea.component.ts +0 -13
  171. package/src/lib/component/textbox/textbox.component.html +0 -27
  172. package/src/lib/component/textbox/textbox.component.scss +0 -3
  173. package/src/lib/component/textbox/textbox.component.spec.ts +0 -23
  174. package/src/lib/component/textbox/textbox.component.ts +0 -13
  175. package/src/lib/control-builder/control-builder.component.html +0 -5
  176. package/src/lib/control-builder/control-builder.component.scss +0 -0
  177. package/src/lib/control-builder/control-builder.component.ts +0 -14
  178. package/src/lib/control-type/AutoComplete.ts +0 -6
  179. package/src/lib/control-type/Button.ts +0 -6
  180. package/src/lib/control-type/ButtonToggle.ts +0 -6
  181. package/src/lib/control-type/CheckBox.ts +0 -6
  182. package/src/lib/control-type/DatePicker.ts +0 -6
  183. package/src/lib/control-type/Divider.ts +0 -6
  184. package/src/lib/control-type/Editor.ts +0 -6
  185. package/src/lib/control-type/RichTextEditor.ts +0 -6
  186. package/src/lib/control-type/SlideToggle.ts +0 -6
  187. package/src/lib/control-type/Slider.ts +0 -6
  188. package/src/lib/control-type/select.ts +0 -6
  189. package/src/lib/control-type/textarea.ts +0 -6
  190. package/src/lib/control-type/textbox.ts +0 -6
  191. package/src/lib/falcon-core.module.ts +0 -141
  192. package/src/lib/model/constant.ts +0 -32
  193. package/src/lib/model/enum.ts +0 -151
  194. package/src/lib/module/angularmaterial.module.ts +0 -98
  195. package/src/lib/reactive-field.directive.ts +0 -24
  196. package/src/lib/service/appsetting.service.ts +0 -57
  197. package/src/lib/service/http/generic-http-client.ts +0 -205
  198. package/src/lib/service/http/httpInterceptor.ts +0 -36
  199. package/src/lib/service/http/igeneric-http-client.ts +0 -110
  200. package/src/lib/service/logger.service.ts +0 -75
  201. package/src/lib/service/open-id/TokenHelperService.ts +0 -76
  202. package/src/lib/service/open-id/auth-guard.service.ts +0 -25
  203. package/src/lib/service/open-id/auth.service.ts +0 -179
  204. package/tsconfig.lib.json +0 -15
  205. package/tsconfig.lib.prod.json +0 -10
  206. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,144 @@
1
+ /**
2
+ * @description
3
+ * Enum use for setting the form control Types.
4
+ * @usageNotes
5
+ * ```ts
6
+ * export class Textbox extends BaseControl<string>{
7
+ * override controlType = ControlType.Select;
8
+ * }
9
+ * ```
10
+ */
11
+ export declare const enum ControlType {
12
+ TextBox = 0,
13
+ TextArea = 1,
14
+ Select = 2,
15
+ DatePicker = 3,
16
+ Radio = 4,
17
+ Checkbox = 5,
18
+ Button = 6,
19
+ SlideToggle = 7,
20
+ Slider = 8,
21
+ ButtonToggle = 9,
22
+ AutoComplete = 10,
23
+ Chip = 11,
24
+ Editor = 12,
25
+ Divider = 13
26
+ }
27
+ /**
28
+ * @description
29
+ * Enum use for Appearance of the control.
30
+ * @usageNotes
31
+ * Before and After property should be only use for Checkbox and Radio button
32
+ * ```ts
33
+ * if (componentType == ComponentType.Radio && componentType == ComponentType.Checkbox) THEN
34
+ * only use Appearance Before and After
35
+ * ```
36
+ */
37
+ export declare const enum Appearance {
38
+ /**
39
+ * @usageNotes Should be only use for input, textbox, and select
40
+ */
41
+ Plain = "plain",
42
+ Legacy = "legacy",
43
+ Standard = "standard",
44
+ Fill = "fill",
45
+ Outline = "outline",
46
+ /**
47
+ * @usageNotes Should be only use for label position
48
+ */
49
+ Before = "before",
50
+ After = "after",
51
+ /**
52
+ * @usageNotes Should be only use for select
53
+ */
54
+ Multiple = "true",
55
+ /**
56
+ * @usageNotes Should be only use for Buttom
57
+ */
58
+ Basic = 0,
59
+ Raised = 1,
60
+ Stroked = 2,
61
+ Flat = 3,
62
+ Icon = 4,
63
+ FAB = 5,
64
+ MiniFAB = 6,
65
+ routeLink = 7,
66
+ routeHref = 8
67
+ }
68
+ /**
69
+ * @description
70
+ * Enum use for setting the attribute Types.
71
+ * @usageNotes
72
+ * ```ts
73
+ * componentProperty: {
74
+ * attrType: InputTypes.Text
75
+ * }
76
+ * ```
77
+ */
78
+ export declare const enum InputTypes {
79
+ Color = "color",
80
+ Date = "date",
81
+ DatetimeLocal = "datetime-local",
82
+ Email = "email",
83
+ Month = "month",
84
+ Number = "number",
85
+ Password = "password",
86
+ Search = "search",
87
+ Tel = "tel",
88
+ Text = "text",
89
+ Time = "time",
90
+ Url = "url",
91
+ Week = "week",
92
+ /**
93
+ * @usageNotes Should be only use for Buttom
94
+ */
95
+ Button = "button",
96
+ Submit = "submit",
97
+ DragDrop = "dragDrop"
98
+ }
99
+ /**
100
+ * @description
101
+ * Enum use for setting HTTP method.
102
+ * @usageNotes
103
+ * ```ts
104
+ * this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {}, error => {});
105
+ * ```
106
+ */
107
+ export declare const enum HttpMethod {
108
+ Get = "GET",
109
+ Post = "POST",
110
+ Put = "PUT",
111
+ Patch = "PATCH",
112
+ Delete = "DELETE"
113
+ }
114
+ /**
115
+ * @description
116
+ * Enum use for Table actions
117
+ */
118
+ export declare const enum TableAction {
119
+ View = 0,
120
+ Edit = 1,
121
+ Delete = 2,
122
+ RightArrow = 3
123
+ }
124
+ /**
125
+ * @description
126
+ * Enum use for setting the Floating label.
127
+ * @usageNotes
128
+ * ```ts
129
+ * componentProperty: {
130
+ * floatLabel: Floatinglabel.Always
131
+ * }
132
+ * ```
133
+ */
134
+ export declare const enum Floatinglabel {
135
+ Auto = "auto",
136
+ Always = "always"
137
+ }
138
+ export declare const enum LoggingLevel {
139
+ None = "None",
140
+ Verbose = "Verbose",
141
+ Info = "Info",
142
+ Warnings = "Warnings",
143
+ Errors = "Errors"
144
+ }
@@ -1,11 +1,9 @@
1
- export abstract class EnvironmentViewModel {
1
+ export declare abstract class EnvironmentViewModel {
2
2
  abstract readonly production: boolean;
3
3
  abstract readonly openID?: IOpenIdViewModel;
4
4
  abstract readonly baseUrl?: string;
5
- abstract readonly snackBarEnable?: boolean
5
+ abstract readonly snackBarEnable?: boolean;
6
6
  }
7
-
8
-
9
7
  /**
10
8
  * @description
11
9
  * Interface use for an app setting configuration for Open Id Client setting.
@@ -18,11 +16,11 @@ export declare interface IOpenIdViewModel {
18
16
  scope?: string;
19
17
  silent_redirect_uri?: string;
20
18
  post_logout_redirect_uri?: string;
21
- filterProtocolClaims?: boolean
22
- loadUserInfo?: boolean
19
+ filterProtocolClaims?: boolean;
20
+ loadUserInfo?: boolean;
23
21
  automaticSilentRenew?: boolean;
24
22
  monitorSession?: boolean;
25
23
  accessTokenExpiringNotificationTime?: number;
26
24
  checkSessionInterval?: number;
27
25
  silentRequestTimeout?: number;
28
- }
26
+ }
@@ -18,15 +18,18 @@ import { EventEmitter } from '@angular/core';
18
18
  * ```
19
19
  */
20
20
  export declare interface IRequestOptions {
21
- headers?: HttpHeaders | { [header: string]: string | string[] };
22
- observe?: 'body' | 'events' | 'response';
23
- params?: HttpParams | { [param: string]: string | string[] };
24
- reportProgress?: boolean;
25
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
26
- withCredentials?: boolean;
27
- body?: any;
21
+ headers?: HttpHeaders | {
22
+ [header: string]: string | string[];
23
+ };
24
+ observe?: 'body' | 'events' | 'response';
25
+ params?: HttpParams | {
26
+ [param: string]: string | string[];
27
+ };
28
+ reportProgress?: boolean;
29
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
30
+ withCredentials?: boolean;
31
+ body?: any;
28
32
  }
29
-
30
33
  /**
31
34
  * @description
32
35
  * Interface use for mat table header and column.
@@ -42,12 +45,11 @@ export declare interface IRequestOptions {
42
45
  * ```
43
46
  */
44
47
  export declare interface MatTable {
45
- columnDef?: string;
46
- header?: string;
47
- cell?: any;
48
- link?: IRouteLink;
48
+ columnDef?: string;
49
+ header?: string;
50
+ cell?: any;
51
+ link?: IRouteLink;
49
52
  }
50
-
51
53
  /**
52
54
  * @description
53
55
  * Interface use for mat table configuration.
@@ -64,31 +66,29 @@ export declare interface MatTable {
64
66
  * ```
65
67
  */
66
68
  export declare interface MatTableConfig {
67
- columns?: MatTable[];
68
- dataSource?: any;
69
- filter?: boolean;
70
- paginationConfig?: MatTablePaginationConfig;
71
- progressBar?: boolean;
72
- action?: ITableAction;
73
- property?: IMatTableStyle;
69
+ columns?: MatTable[];
70
+ dataSource?: any;
71
+ filter?: boolean;
72
+ paginationConfig?: MatTablePaginationConfig;
73
+ progressBar?: boolean;
74
+ action?: ITableAction;
75
+ property?: IMatTableStyle;
74
76
  }
75
-
76
77
  /**
77
78
  * @description
78
79
  * Interface use for mat table style
79
80
  */
80
81
  export declare interface IMatTableStyle {
81
- css?: string;
82
- style?: string;
82
+ css?: string;
83
+ style?: string;
83
84
  }
84
-
85
85
  /**
86
86
  * @description
87
87
  * Interface use for mat table pagination configuration.
88
88
  */
89
89
  export declare interface MatTablePaginationConfig {
90
- pagination?: boolean;
91
- pageSizeOptions?: number[];
90
+ pagination?: boolean;
91
+ pageSizeOptions?: number[];
92
92
  }
93
93
  /**
94
94
  * @description
@@ -99,55 +99,51 @@ export declare interface MatTablePaginationConfig {
99
99
  * menu - context menu for more action
100
100
  */
101
101
  export declare interface ITableAction {
102
- view?: boolean;
103
- edit?: boolean;
104
- delete?: boolean;
105
- arrowRight?: boolean;
106
- isMenu: boolean;
107
- menu?: IMatHint[];
102
+ view?: boolean;
103
+ edit?: boolean;
104
+ delete?: boolean;
105
+ arrowRight?: boolean;
106
+ isMenu: boolean;
107
+ menu?: IMatHint[];
108
108
  }
109
-
110
109
  /**
111
110
  * @description
112
111
  * Interface use for material hint component.
113
112
  */
114
113
  export declare interface IMatHint {
115
- isIcon: boolean;
116
- icon?: IIcon;
117
- text?: string;
118
- link?: IRouteLink;
119
- disabled?: boolean;
120
- show?: boolean;
114
+ isIcon: boolean;
115
+ icon?: IIcon;
116
+ text?: string;
117
+ link?: IRouteLink;
118
+ disabled?: boolean;
119
+ show?: boolean;
121
120
  }
122
-
123
121
  /**
124
122
  * @description
125
123
  * Interface for icons
126
124
  */
127
125
  export declare interface IIcon {
128
- iconText?: string;
129
- iconColor?: string;
126
+ iconText?: string;
127
+ iconColor?: string;
130
128
  }
131
-
132
129
  /**
133
130
  * @description
134
131
  * Interface for routerLink
135
132
  */
136
133
  export declare interface IRouteLink {
137
- routerLink: string | any;
138
- queryParams?: string;
139
- isLink?: boolean;
134
+ routerLink: string | any;
135
+ queryParams?: string;
136
+ isLink?: boolean;
140
137
  }
141
-
142
138
  /**
143
139
  * @description
144
140
  * Interface for Dialog Data
145
141
  */
146
142
  export declare interface IDialogData {
147
- title: string;
148
- cancelBtnText: string;
149
- mainbtnText?: string;
150
- bodyMessage?: string;
143
+ title: string;
144
+ cancelBtnText: string;
145
+ mainbtnText?: string;
146
+ bodyMessage?: string;
151
147
  }
152
148
  /**
153
149
  * @description
@@ -171,28 +167,25 @@ export declare interface IDialogData {
171
167
  * ```
172
168
  */
173
169
  export declare interface ISuffixPrefixConfig {
174
- isIcon?: boolean;
175
- text?: string;
176
- toolTipText?: string;
170
+ isIcon?: boolean;
171
+ text?: string;
172
+ toolTipText?: string;
177
173
  }
178
-
179
174
  /**
180
175
  * @description
181
176
  * Interface use for an app setting configuration.
182
177
  */
183
178
  export declare interface IAppSettingViewModel {
184
- baseUrl?: string;
185
- loggingLevel?: LoggingLevel;
179
+ baseUrl?: string;
180
+ loggingLevel?: LoggingLevel;
186
181
  }
187
-
188
182
  /**
189
183
  * View model for snack bar Message and Action Text
190
184
  */
191
185
  export interface SnackbarModel {
192
- messageText: string;
193
- actionText: string;
186
+ messageText: string;
187
+ actionText: string;
194
188
  }
195
-
196
189
  /**
197
190
  * @description
198
191
  * Interface use for setting the TextArea Property.
@@ -210,13 +203,12 @@ export interface SnackbarModel {
210
203
  * ```
211
204
  */
212
205
  export declare interface ITextAreaProperty {
213
- cdkTextareaAutosize?: boolean;
214
- cdkAutosizeMinRows?: number;
215
- cdkAutosizeMaxRows?: number;
216
- rows?: number;
217
- cols?: number;
206
+ cdkTextareaAutosize?: boolean;
207
+ cdkAutosizeMinRows?: number;
208
+ cdkAutosizeMaxRows?: number;
209
+ rows?: number;
210
+ cols?: number;
218
211
  }
219
-
220
212
  /**
221
213
  * @description
222
214
  * Interface use for setting the options meta for select control.
@@ -228,10 +220,9 @@ export declare interface ITextAreaProperty {
228
220
  * ```
229
221
  */
230
222
  export declare interface ISelectOptions {
231
- single?: boolean;
232
- multiple?: boolean;
223
+ single?: boolean;
224
+ multiple?: boolean;
233
225
  }
234
-
235
226
  /**
236
227
  * @description
237
228
  * Interface use for setting the options meta.
@@ -244,13 +235,12 @@ export declare interface ISelectOptions {
244
235
  * ```
245
236
  */
246
237
  export declare interface IOptions {
247
- key?: any;
248
- value?: any;
249
- icon?: string;
250
- class?: string;
251
- disabled?: boolean;
238
+ key?: any;
239
+ value?: any;
240
+ icon?: string;
241
+ class?: string;
242
+ disabled?: boolean;
252
243
  }
253
-
254
244
  /**
255
245
  * @description
256
246
  * @param change change event for the control
@@ -258,9 +248,9 @@ export declare interface IOptions {
258
248
  * Events for controls
259
249
  */
260
250
  export declare interface IComponentEvent<T> {
261
- change?: EventEmitter<T>;
262
- click?: EventEmitter<T>;
263
- keyboardEnter?: EventEmitter<T>;
251
+ change?: EventEmitter<T>;
252
+ click?: EventEmitter<T>;
253
+ keyboardEnter?: EventEmitter<T>;
264
254
  }
265
255
  /**
266
256
  * @description
@@ -279,15 +269,14 @@ export declare interface IComponentEvent<T> {
279
269
  * ```
280
270
  */
281
271
  export declare interface ISliderProperty {
282
- invert?: boolean;
283
- thumbLabel?: boolean;
284
- vertical?: boolean;
285
- min?: number;
286
- max?: number;
287
- step?: number;
288
- tickInterval?: string | number;
272
+ invert?: boolean;
273
+ thumbLabel?: boolean;
274
+ vertical?: boolean;
275
+ min?: number;
276
+ max?: number;
277
+ step?: number;
278
+ tickInterval?: string | number;
289
279
  }
290
-
291
280
  /**
292
281
  * @description
293
282
  * Interface use for mat table header and column.
@@ -303,8 +292,8 @@ export declare interface ISliderProperty {
303
292
  * ```
304
293
  */
305
294
  export declare interface MatTable {
306
- columnDef?: string;
307
- header?: string;
308
- cell?: any;
309
- link?: IRouteLink;
295
+ columnDef?: string;
296
+ header?: string;
297
+ cell?: any;
298
+ link?: IRouteLink;
310
299
  }
@@ -12,7 +12,7 @@
12
12
  * ```
13
13
  */
14
14
  export declare interface IValidator {
15
- name: string;
16
- validator: any;
17
- message: string;
15
+ name: string;
16
+ validator: any;
17
+ message: string;
18
18
  }
@@ -0,0 +1,49 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/a11y";
3
+ import * as i2 from "@angular/cdk/clipboard";
4
+ import * as i3 from "@angular/cdk/stepper";
5
+ import * as i4 from "@angular/cdk/table";
6
+ import * as i5 from "@angular/cdk/tree";
7
+ import * as i6 from "@angular/cdk/drag-drop";
8
+ import * as i7 from "@angular/material/autocomplete";
9
+ import * as i8 from "@angular/material/badge";
10
+ import * as i9 from "@angular/material/bottom-sheet";
11
+ import * as i10 from "@angular/material/button";
12
+ import * as i11 from "@angular/material/button-toggle";
13
+ import * as i12 from "@angular/material/card";
14
+ import * as i13 from "@angular/material/checkbox";
15
+ import * as i14 from "@angular/material/chips";
16
+ import * as i15 from "@angular/material/stepper";
17
+ import * as i16 from "@angular/material/datepicker";
18
+ import * as i17 from "@angular/material/dialog";
19
+ import * as i18 from "@angular/material/divider";
20
+ import * as i19 from "@angular/material/expansion";
21
+ import * as i20 from "@angular/material/grid-list";
22
+ import * as i21 from "@angular/material/icon";
23
+ import * as i22 from "@angular/material/input";
24
+ import * as i23 from "@angular/material/list";
25
+ import * as i24 from "@angular/material/menu";
26
+ import * as i25 from "@angular/material/core";
27
+ import * as i26 from "@angular/material/paginator";
28
+ import * as i27 from "@angular/material/progress-bar";
29
+ import * as i28 from "@angular/material/progress-spinner";
30
+ import * as i29 from "@angular/material/radio";
31
+ import * as i30 from "@angular/material/select";
32
+ import * as i31 from "@angular/material/sidenav";
33
+ import * as i32 from "@angular/material/slider";
34
+ import * as i33 from "@angular/material/slide-toggle";
35
+ import * as i34 from "@angular/material/snack-bar";
36
+ import * as i35 from "@angular/material/sort";
37
+ import * as i36 from "@angular/material/table";
38
+ import * as i37 from "@angular/material/tabs";
39
+ import * as i38 from "@angular/material/toolbar";
40
+ import * as i39 from "@angular/material/tooltip";
41
+ import * as i40 from "@angular/material/tree";
42
+ import * as i41 from "@angular/cdk/overlay";
43
+ import * as i42 from "@angular/cdk/portal";
44
+ import * as i43 from "@angular/cdk/scrolling";
45
+ export declare class AngularmaterialModule {
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularmaterialModule, never>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularmaterialModule, never, never, [typeof i1.A11yModule, typeof i2.ClipboardModule, typeof i3.CdkStepperModule, typeof i4.CdkTableModule, typeof i5.CdkTreeModule, typeof i6.DragDropModule, typeof i7.MatAutocompleteModule, typeof i8.MatBadgeModule, typeof i9.MatBottomSheetModule, typeof i10.MatButtonModule, typeof i11.MatButtonToggleModule, typeof i12.MatCardModule, typeof i13.MatCheckboxModule, typeof i14.MatChipsModule, typeof i15.MatStepperModule, typeof i16.MatDatepickerModule, typeof i17.MatDialogModule, typeof i18.MatDividerModule, typeof i19.MatExpansionModule, typeof i20.MatGridListModule, typeof i21.MatIconModule, typeof i22.MatInputModule, typeof i23.MatListModule, typeof i24.MatMenuModule, typeof i25.MatNativeDateModule, typeof i26.MatPaginatorModule, typeof i27.MatProgressBarModule, typeof i28.MatProgressSpinnerModule, typeof i29.MatRadioModule, typeof i25.MatRippleModule, typeof i30.MatSelectModule, typeof i31.MatSidenavModule, typeof i32.MatSliderModule, typeof i33.MatSlideToggleModule, typeof i34.MatSnackBarModule, typeof i35.MatSortModule, typeof i36.MatTableModule, typeof i37.MatTabsModule, typeof i38.MatToolbarModule, typeof i39.MatTooltipModule, typeof i40.MatTreeModule, typeof i41.OverlayModule, typeof i42.PortalModule, typeof i43.ScrollingModule]>;
48
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularmaterialModule>;
49
+ }
@@ -0,0 +1,14 @@
1
+ import { OnInit, ViewContainerRef } from '@angular/core';
2
+ import { BaseControl } from "./base-control";
3
+ import { FormGroup } from "@angular/forms";
4
+ import * as i0 from "@angular/core";
5
+ export declare class ReactiveFieldDirective implements OnInit {
6
+ private viewContainerRef;
7
+ control: BaseControl<string>;
8
+ formGroup: FormGroup;
9
+ private componentRef;
10
+ constructor(viewContainerRef: ViewContainerRef);
11
+ ngOnInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveFieldDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ReactiveFieldDirective, "[reactiveField]", never, { "control": "control"; "formGroup": "formGroup"; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,22 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Subject } from 'rxjs';
3
+ import { LoggerService } from './logger.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AppSettingService {
6
+ private http;
7
+ private logger;
8
+ static APP_SETTINGS_LOADED: string;
9
+ private listeners;
10
+ initialized: boolean;
11
+ private eventsSubject;
12
+ isServiceReady: Subject<boolean>;
13
+ private events;
14
+ private appSettings;
15
+ constructor(http: HttpClient, logger: LoggerService);
16
+ load(): Promise<void>;
17
+ on(name: any, listener: any): void;
18
+ getAppsettingValue<T>(): T | null;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppSettingService>;
21
+ }
22
+ export declare function appSettingsFactory(appSettings: AppSettingService): () => Promise<void>;
@@ -0,0 +1,121 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IGenericHttpClient } from './igeneric-http-client';
4
+ import { IRequestOptions } from '../../model/interface';
5
+ import { LoggerService } from '../logger.service';
6
+ import { EnvironmentViewModel } from "../../model/environments";
7
+ import { MatSnackBar } from "@angular/material/snack-bar";
8
+ import * as i0 from "@angular/core";
9
+ export declare class GenericHttpClient<T> implements IGenericHttpClient<T> {
10
+ private httpClient;
11
+ private environment;
12
+ private _snackBar;
13
+ private logger;
14
+ private snackBarViewModel;
15
+ private isHttpError;
16
+ constructor(httpClient: HttpClient, environment: EnvironmentViewModel, _snackBar: MatSnackBar, logger: LoggerService);
17
+ /**
18
+ * @description
19
+ * Generic Http GET method to Get the response and bind to the view model
20
+ * @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
21
+ * @param {IRequestOptions} options options of the request like headers, body, etc.
22
+ * @returns {Observable<T>}
23
+ * @usageNotes
24
+ * The following snippet shows how to use this method
25
+ * ```ts
26
+ * this.genericHttpService.Get("get_url").subscribe(data => {
27
+ * console.log('success');
28
+ * }, error => {
29
+ * console.log(error);
30
+ * });
31
+ * ```
32
+ */
33
+ get(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
34
+ /**
35
+ * @description
36
+ * Generic Http post method to post the view model and bind the return view model
37
+ * @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
38
+ * @param {IRequestOptions} options options of the request like headers, body, etc.
39
+ * @returns {Observable<T>}
40
+ * @usageNotes
41
+ * The following snippet shows how to use this method
42
+ * ```ts
43
+ * this.genericHttpClientService.Post(post-url,post-view-model).subscribe(item => {
44
+ * console.log(item);
45
+ * },
46
+ * err => {
47
+ * console.log(err);
48
+ * });
49
+ * ```
50
+ */
51
+ post(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
52
+ /**
53
+ * @description
54
+ * Generic Http Put method to post the view model and bind the return view model
55
+ * @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
56
+ * @param {IRequestOptions} options options of the request like headers, body, etc.
57
+ * @returns {Observable<T>}
58
+ * @usageNotes
59
+ * The following snippet shows how to use this method
60
+ * ```ts
61
+ * this.genericHttpClientService.Put(post-url, post-view-model).subscribe(item => {
62
+ * console.log(item);
63
+ * },
64
+ * err => {
65
+ * console.log(err);
66
+ * });
67
+ * ```
68
+ */
69
+ put(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
70
+ /**
71
+ * @description
72
+ * Generic Http post method to post the view model and bind the return view model
73
+ * @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
74
+ * @param {IRequestOptions} options options of the request like headers, body, etc.
75
+ * @returns {Observable<T>}
76
+ * @usageNotes
77
+ * The following snippet shows how to use this method
78
+ * ```ts
79
+ * this.genericHttpClientService.Post(post-url,post-view-model).subscribe(item => {
80
+ * console.log(item);
81
+ * },
82
+ * err => {
83
+ * console.log(err);
84
+ * });
85
+ * ```
86
+ */
87
+ patch(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
88
+ /**
89
+ * @description
90
+ * Generic Http Delete method to Delete the item and bind the return view model
91
+ * @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
92
+ * @param {IRequestOptions} options options of the request like headers, body, etc.
93
+ * @returns {Observable<T>}
94
+ * @usageNotes
95
+ * The following snippet shows how to use this method
96
+ * ```ts
97
+ * this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {
98
+ * console.log('success');
99
+ * }, error => {
100
+ * console.log(error);
101
+ * });
102
+ * ```
103
+ */
104
+ delete(destinationUrl: string, options?: IRequestOptions | any): Observable<T>;
105
+ /**
106
+ * @description
107
+ * Http request method to accept different method type and params
108
+ * @param {string} method Http methods - GET, POST, PUT, DELETE.
109
+ * @param {string} destinationUrl endPoint it doesn't need / in front of the end point.
110
+ * @param {IRequestOptions} options options of the request like headers, body, etc.
111
+ * @returns {Observable<T>}
112
+ * @usageNotes
113
+ * The following snippet shows how to use this method
114
+ * ```ts
115
+ * this.request<T>(HttpMethod.Delete, destinationUrl, options);
116
+ * ```
117
+ */
118
+ private request;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericHttpClient<any>, never>;
120
+ static ɵprov: i0.ɵɵInjectableDeclaration<GenericHttpClient<any>>;
121
+ }