arco-support-request 0.0.89 → 0.0.90

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 (408) hide show
  1. package/arco-support-request.d.ts +32 -0
  2. package/arco-support-request.metadata.json +1 -0
  3. package/bundles/arco-support-request.umd.js +11762 -0
  4. package/bundles/arco-support-request.umd.js.map +1 -0
  5. package/bundles/arco-support-request.umd.min.js +2 -0
  6. package/bundles/arco-support-request.umd.min.js.map +1 -0
  7. package/esm2015/arco-support-request.js +33 -0
  8. package/esm2015/lib/Pipe/allpipe.pipe.js +110 -0
  9. package/esm2015/lib/Pipe/translate.pipe.js +31 -0
  10. package/esm2015/lib/arco-support-request.component.js +18 -0
  11. package/esm2015/lib/arco-support-request.module.js +20 -0
  12. package/esm2015/lib/arco-support-request.service.js +19 -0
  13. package/esm2015/lib/core/global.service.js +1813 -0
  14. package/esm2015/lib/core/handlebar-helper-register.js +217 -0
  15. package/esm2015/lib/core/static/jwt.js +8 -0
  16. package/esm2015/lib/entity-type-setup/activities-create/activities-create.component.js +128 -0
  17. package/esm2015/lib/entity-type-setup/activities-view/activities-view.component.js +49 -0
  18. package/esm2015/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.js +373 -0
  19. package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +867 -0
  20. package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.js +85 -0
  21. package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.js +1076 -0
  22. package/esm2015/lib/entity-type-setup/interface/entityTypeInterface.js +51 -0
  23. package/esm2015/lib/entity-type-setup/interface/eventEnum.js +84 -0
  24. package/esm2015/lib/entity-type-setup/page-form-instance.js +65 -0
  25. package/esm2015/lib/entity-type-setup/page.interface.classes.js +40 -0
  26. package/esm2015/lib/entity-type-setup/service/entity-type-setup.service.js +1894 -0
  27. package/esm2015/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.js +321 -0
  28. package/esm2015/lib/search.pipe.js +19 -0
  29. package/esm2015/lib/support-request/action/action.component.js +104 -0
  30. package/esm2015/lib/support-request/case-list/case-list.component.js +438 -0
  31. package/esm2015/lib/support-request/home/home.component.js +23 -0
  32. package/esm2015/lib/support-request/pagination/pagination.component.js +34 -0
  33. package/esm2015/lib/support-request/request-flow/request-flow.component.js +729 -0
  34. package/esm2015/lib/support-request/self-service-flow/self-service-flow.component.js +86 -0
  35. package/esm2015/lib/support-request/support-request-create/support-request-create.component.js +273 -0
  36. package/esm2015/lib/support-request/support-request-details/support-request-details.component.js +631 -0
  37. package/esm2015/lib/support-request/support-request-index/support-request-index.component.js +16 -0
  38. package/esm2015/lib/support-request/support-request-routing.module.js +22 -0
  39. package/esm2015/lib/support-request/support-request.module.js +98 -0
  40. package/esm2015/lib/support-request/support-request.service.js +107 -0
  41. package/esm2015/lib/support-request/supportRequestInterface.js +2 -0
  42. package/esm2015/lib/task/Interfaces/TaskInterface.js +7 -0
  43. package/esm2015/lib/task/Services/task.service.js +251 -0
  44. package/esm2015/lib/templates/attachmentsetup/attachment-interface.js +2 -0
  45. package/esm2015/lib/templates/attachmentsetup/attachment.service.js +196 -0
  46. package/esm2015/lib/templates/grid/grid-datatype/grid-datatype.component.js +37 -0
  47. package/esm2015/lib/templates/grid/grid-service.service.js +163 -0
  48. package/esm2015/lib/templates/grid/grid.component.js +604 -0
  49. package/esm2015/lib/templates/grid/inner-grid/inner-grid.component.js +15 -0
  50. package/esm2015/lib/templates/interface_enum/common-Interface.js +2 -0
  51. package/esm2015/lib/templates/interface_enum/common-enum.js +164 -0
  52. package/esm2015/lib/ticket/_interfaces/model.js +2 -0
  53. package/esm2015/lib/ticket/_ticket-services/ticket-api.service.js +232 -0
  54. package/esm2015/public-api.js +9 -0
  55. package/fesm2015/arco-support-request.js +11155 -0
  56. package/fesm2015/arco-support-request.js.map +1 -0
  57. package/lib/Pipe/allpipe.pipe.d.ts +19 -0
  58. package/lib/Pipe/translate.pipe.d.ts +7 -0
  59. package/lib/arco-support-request.component.d.ts +5 -0
  60. package/lib/arco-support-request.module.d.ts +2 -0
  61. package/lib/arco-support-request.service.d.ts +9 -0
  62. package/lib/core/global.service.d.ts +99 -0
  63. package/lib/core/handlebar-helper-register.d.ts +1 -0
  64. package/lib/core/static/jwt.d.ts +7 -0
  65. package/lib/entity-type-setup/activities-create/activities-create.component.d.ts +30 -0
  66. package/lib/entity-type-setup/activities-view/activities-view.component.d.ts +16 -0
  67. package/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.d.ts +67 -0
  68. package/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.d.ts +88 -0
  69. package/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.d.ts +11 -0
  70. package/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.d.ts +70 -0
  71. package/lib/entity-type-setup/interface/entityTypeInterface.d.ts +917 -0
  72. package/lib/entity-type-setup/interface/eventEnum.d.ts +161 -0
  73. package/lib/entity-type-setup/page-form-instance.d.ts +13 -0
  74. package/lib/entity-type-setup/page.interface.classes.d.ts +33 -0
  75. package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +616 -0
  76. package/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.d.ts +86 -0
  77. package/lib/search.pipe.d.ts +4 -0
  78. package/lib/support-request/action/action.component.d.ts +31 -0
  79. package/lib/support-request/case-list/case-list.component.d.ts +100 -0
  80. package/lib/support-request/home/home.component.d.ts +6 -0
  81. package/lib/support-request/pagination/pagination.component.d.ts +18 -0
  82. package/lib/support-request/request-flow/request-flow.component.d.ts +152 -0
  83. package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +32 -0
  84. package/lib/support-request/support-request-create/support-request-create.component.d.ts +55 -0
  85. package/lib/support-request/support-request-details/support-request-details.component.d.ts +138 -0
  86. package/lib/support-request/support-request-index/support-request-index.component.d.ts +5 -0
  87. package/lib/support-request/support-request-routing.module.d.ts +2 -0
  88. package/lib/support-request/support-request.module.d.ts +2 -0
  89. package/lib/support-request/support-request.service.d.ts +35 -0
  90. package/lib/support-request/supportRequestInterface.d.ts +6 -0
  91. package/lib/task/Interfaces/TaskInterface.d.ts +132 -0
  92. package/lib/task/Services/task.service.d.ts +75 -0
  93. package/lib/templates/attachmentsetup/attachment-interface.d.ts +90 -0
  94. package/lib/templates/attachmentsetup/attachment.service.d.ts +61 -0
  95. package/lib/templates/grid/grid-datatype/grid-datatype.component.d.ts +11 -0
  96. package/lib/templates/grid/grid-service.service.d.ts +46 -0
  97. package/lib/templates/grid/grid.component.d.ts +218 -0
  98. package/lib/templates/grid/inner-grid/inner-grid.component.d.ts +5 -0
  99. package/lib/templates/interface_enum/common-Interface.d.ts +97 -0
  100. package/lib/templates/interface_enum/common-enum.d.ts +134 -0
  101. package/lib/ticket/_interfaces/model.d.ts +192 -0
  102. package/lib/ticket/_ticket-services/ticket-api.service.d.ts +81 -0
  103. package/package.json +22 -11
  104. package/{src/public-api.ts → public-api.d.ts} +1 -6
  105. package/karma.conf.js +0 -44
  106. package/ng-package.json +0 -18
  107. package/src/lib/Pipe/allpipe.pipe.ts +0 -127
  108. package/src/lib/Pipe/handlebar-helper-register.ts +0 -249
  109. package/src/lib/Pipe/translate.pipe.ts +0 -32
  110. package/src/lib/all-routing.ts +0 -61
  111. package/src/lib/arco-support-request.component.spec.ts +0 -25
  112. package/src/lib/arco-support-request.component.ts +0 -20
  113. package/src/lib/arco-support-request.module.ts +0 -19
  114. package/src/lib/arco-support-request.service.spec.ts +0 -16
  115. package/src/lib/arco-support-request.service.ts +0 -16
  116. package/src/lib/commonstyles/new-style-rtl.css +0 -380
  117. package/src/lib/commonstyles/styles.scss +0 -4334
  118. package/src/lib/core/encodeurl.service.ts +0 -23
  119. package/src/lib/core/global.service.ts +0 -1859
  120. package/src/lib/core/handlebar-helper-register.ts +0 -247
  121. package/src/lib/core/httpcancel.service.ts +0 -21
  122. package/src/lib/core/loader.service.ts +0 -19
  123. package/src/lib/core/loading-provider.service.ts +0 -64
  124. package/src/lib/core/managehttp.interceptor.ts +0 -49
  125. package/src/lib/core/static/jwt.ts +0 -7
  126. package/src/lib/core/token.service.ts +0 -37
  127. package/src/lib/entity-type-setup/activities-create/activities-create.component.html +0 -69
  128. package/src/lib/entity-type-setup/activities-create/activities-create.component.scss +0 -13
  129. package/src/lib/entity-type-setup/activities-create/activities-create.component.spec.ts +0 -25
  130. package/src/lib/entity-type-setup/activities-create/activities-create.component.ts +0 -143
  131. package/src/lib/entity-type-setup/activities-view/activities-view.component.html +0 -19
  132. package/src/lib/entity-type-setup/activities-view/activities-view.component.scss +0 -3
  133. package/src/lib/entity-type-setup/activities-view/activities-view.component.spec.ts +0 -25
  134. package/src/lib/entity-type-setup/activities-view/activities-view.component.ts +0 -53
  135. package/src/lib/entity-type-setup/activity-template/activity-template.component.html +0 -73
  136. package/src/lib/entity-type-setup/activity-template/activity-template.component.scss +0 -0
  137. package/src/lib/entity-type-setup/activity-template/activity-template.component.spec.ts +0 -25
  138. package/src/lib/entity-type-setup/activity-template/activity-template.component.ts +0 -208
  139. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.html +0 -356
  140. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.scss +0 -50
  141. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.spec.ts +0 -25
  142. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.ts +0 -346
  143. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.html +0 -92
  144. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.scss +0 -90
  145. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.spec.ts +0 -25
  146. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.ts +0 -74
  147. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.html +0 -57
  148. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.scss +0 -16
  149. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.spec.ts +0 -25
  150. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.ts +0 -59
  151. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.html +0 -102
  152. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.scss +0 -3
  153. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.spec.ts +0 -25
  154. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.ts +0 -498
  155. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.html +0 -408
  156. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.scss +0 -123
  157. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.spec.ts +0 -25
  158. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.ts +0 -1073
  159. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.ts +0 -84
  160. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.html +0 -194
  161. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.scss +0 -81
  162. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.spec.ts +0 -25
  163. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.ts +0 -1526
  164. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.html +0 -137
  165. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.scss +0 -0
  166. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.spec.ts +0 -25
  167. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.ts +0 -1353
  168. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.html +0 -329
  169. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.scss +0 -0
  170. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.spec.ts +0 -25
  171. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.ts +0 -520
  172. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.html +0 -609
  173. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.scss +0 -99
  174. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.spec.ts +0 -25
  175. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.ts +0 -784
  176. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.html +0 -632
  177. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.scss +0 -261
  178. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.spec.ts +0 -25
  179. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.ts +0 -765
  180. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.html +0 -368
  181. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.scss +0 -0
  182. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.spec.ts +0 -25
  183. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.ts +0 -334
  184. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.html +0 -500
  185. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.scss +0 -0
  186. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.spec.ts +0 -25
  187. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.ts +0 -862
  188. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.html +0 -139
  189. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.scss +0 -14
  190. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.spec.ts +0 -25
  191. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.ts +0 -347
  192. package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.html +0 -150
  193. package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.scss +0 -27
  194. package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.ts +0 -384
  195. package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.html +0 -305
  196. package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.scss +0 -31
  197. package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.ts +0 -572
  198. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.html +0 -610
  199. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.scss +0 -50
  200. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.spec.ts +0 -25
  201. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.ts +0 -633
  202. package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.html +0 -609
  203. package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.scss +0 -4
  204. package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.ts +0 -702
  205. package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.html +0 -530
  206. package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.scss +0 -12
  207. package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.ts +0 -767
  208. package/src/lib/entity-type-setup/entity-type-setup-routing.module.ts +0 -92
  209. package/src/lib/entity-type-setup/entity-type-setup.module.ts +0 -114
  210. package/src/lib/entity-type-setup/events/events.component.html +0 -211
  211. package/src/lib/entity-type-setup/events/events.component.scss +0 -61
  212. package/src/lib/entity-type-setup/events/events.component.spec.ts +0 -25
  213. package/src/lib/entity-type-setup/events/events.component.ts +0 -517
  214. package/src/lib/entity-type-setup/field-type/field-type.component.html +0 -447
  215. package/src/lib/entity-type-setup/field-type/field-type.component.scss +0 -0
  216. package/src/lib/entity-type-setup/field-type/field-type.component.spec.ts +0 -25
  217. package/src/lib/entity-type-setup/field-type/field-type.component.ts +0 -531
  218. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.html +0 -152
  219. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.scss +0 -24
  220. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.spec.ts +0 -25
  221. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.ts +0 -35
  222. package/src/lib/entity-type-setup/instruction/instruction.component.html +0 -239
  223. package/src/lib/entity-type-setup/instruction/instruction.component.scss +0 -18
  224. package/src/lib/entity-type-setup/instruction/instruction.component.ts +0 -450
  225. package/src/lib/entity-type-setup/interface/entityTypeInterface.ts +0 -1046
  226. package/src/lib/entity-type-setup/interface/eventEnum.ts +0 -191
  227. package/src/lib/entity-type-setup/issue-group/issue-group.component.html +0 -77
  228. package/src/lib/entity-type-setup/issue-group/issue-group.component.scss +0 -0
  229. package/src/lib/entity-type-setup/issue-group/issue-group.component.ts +0 -221
  230. package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.html +0 -192
  231. package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.scss +0 -10
  232. package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.ts +0 -418
  233. package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.html +0 -42
  234. package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.scss +0 -8
  235. package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.ts +0 -52
  236. package/src/lib/entity-type-setup/my-task/my-task.component.html +0 -599
  237. package/src/lib/entity-type-setup/my-task/my-task.component.scss +0 -0
  238. package/src/lib/entity-type-setup/my-task/my-task.component.spec.ts +0 -25
  239. package/src/lib/entity-type-setup/my-task/my-task.component.ts +0 -770
  240. package/src/lib/entity-type-setup/page-form-instance.ts +0 -73
  241. package/src/lib/entity-type-setup/page.interface.classes.ts +0 -43
  242. package/src/lib/entity-type-setup/service/dropdown.directive.ts +0 -12
  243. package/src/lib/entity-type-setup/service/entity-type-setup.service.ts +0 -2901
  244. package/src/lib/entity-type-setup/task-crete/task-crete.component.html +0 -61
  245. package/src/lib/entity-type-setup/task-crete/task-crete.component.scss +0 -0
  246. package/src/lib/entity-type-setup/task-crete/task-crete.component.ts +0 -117
  247. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.html +0 -95
  248. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.scss +0 -23
  249. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.spec.ts +0 -25
  250. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.ts +0 -213
  251. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.html +0 -240
  252. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.scss +0 -14
  253. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.spec.ts +0 -25
  254. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.ts +0 -404
  255. package/src/lib/search.pipe.spec.ts +0 -8
  256. package/src/lib/search.pipe.ts +0 -21
  257. package/src/lib/support-request/action/action.component.html +0 -122
  258. package/src/lib/support-request/action/action.component.scss +0 -6
  259. package/src/lib/support-request/action/action.component.ts +0 -179
  260. package/src/lib/support-request/case-list/case-list.component.html +0 -280
  261. package/src/lib/support-request/case-list/case-list.component.scss +0 -187
  262. package/src/lib/support-request/case-list/case-list.component.ts +0 -519
  263. package/src/lib/support-request/home/home.component.html +0 -16
  264. package/src/lib/support-request/home/home.component.scss +0 -4
  265. package/src/lib/support-request/home/home.component.ts +0 -23
  266. package/src/lib/support-request/pagination/pagination.component.html +0 -71
  267. package/src/lib/support-request/pagination/pagination.component.scss +0 -77
  268. package/src/lib/support-request/pagination/pagination.component.ts +0 -29
  269. package/src/lib/support-request/request-flow/request-flow.component.html +0 -536
  270. package/src/lib/support-request/request-flow/request-flow.component.scss +0 -2
  271. package/src/lib/support-request/request-flow/request-flow.component.ts +0 -914
  272. package/src/lib/support-request/self-service-flow/self-service-flow.component.html +0 -64
  273. package/src/lib/support-request/self-service-flow/self-service-flow.component.scss +0 -2
  274. package/src/lib/support-request/self-service-flow/self-service-flow.component.ts +0 -105
  275. package/src/lib/support-request/support-request-create/support-request-create.component.html +0 -105
  276. package/src/lib/support-request/support-request-create/support-request-create.component.scss +0 -54
  277. package/src/lib/support-request/support-request-create/support-request-create.component.ts +0 -319
  278. package/src/lib/support-request/support-request-details/support-request-details.component.html +0 -553
  279. package/src/lib/support-request/support-request-details/support-request-details.component.scss +0 -338
  280. package/src/lib/support-request/support-request-details/support-request-details.component.ts +0 -849
  281. package/src/lib/support-request/support-request-index/support-request-index.component.html +0 -4
  282. package/src/lib/support-request/support-request-index/support-request-index.component.scss +0 -0
  283. package/src/lib/support-request/support-request-index/support-request-index.component.ts +0 -16
  284. package/src/lib/support-request/support-request-list/support-request-list.component.html +0 -455
  285. package/src/lib/support-request/support-request-list/support-request-list.component.scss +0 -0
  286. package/src/lib/support-request/support-request-list/support-request-list.component.ts +0 -869
  287. package/src/lib/support-request/support-request-routing.module.ts +0 -21
  288. package/src/lib/support-request/support-request.module.ts +0 -103
  289. package/src/lib/support-request/support-request.service.ts +0 -148
  290. package/src/lib/support-request/supportRequestInterface.ts +0 -6
  291. package/src/lib/task/Interfaces/TaskInterface.ts +0 -164
  292. package/src/lib/task/Services/task.service.spec.ts +0 -16
  293. package/src/lib/task/Services/task.service.ts +0 -354
  294. package/src/lib/task/task-routing.module.ts +0 -12
  295. package/src/lib/task/task.module.ts +0 -23
  296. package/src/lib/template/template.component.html +0 -22
  297. package/src/lib/template/template.component.scss +0 -0
  298. package/src/lib/template/template.component.spec.ts +0 -25
  299. package/src/lib/template/template.component.ts +0 -24
  300. package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.html +0 -83
  301. package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.scss +0 -0
  302. package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.ts +0 -120
  303. package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.html +0 -134
  304. package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.scss +0 -0
  305. package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.ts +0 -185
  306. package/src/lib/templates/attachmentsetup/attachment-api.ts +0 -55
  307. package/src/lib/templates/attachmentsetup/attachment-interface.ts +0 -100
  308. package/src/lib/templates/attachmentsetup/attachment.service.ts +0 -233
  309. package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.html +0 -97
  310. package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.scss +0 -10
  311. package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.ts +0 -367
  312. package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.html +0 -49
  313. package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.scss +0 -0
  314. package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.ts +0 -226
  315. package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.html +0 -140
  316. package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.scss +0 -8
  317. package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.ts +0 -176
  318. package/src/lib/templates/card/card.component.html +0 -56
  319. package/src/lib/templates/card/card.component.scss +0 -0
  320. package/src/lib/templates/card/card.component.spec.ts +0 -25
  321. package/src/lib/templates/card/card.component.ts +0 -306
  322. package/src/lib/templates/dashboard/dashboard.component.html +0 -333
  323. package/src/lib/templates/dashboard/dashboard.component.scss +0 -16
  324. package/src/lib/templates/dashboard/dashboard.component.ts +0 -2290
  325. package/src/lib/templates/details/details.component.html +0 -233
  326. package/src/lib/templates/details/details.component.scss +0 -0
  327. package/src/lib/templates/details/details.component.spec.ts +0 -25
  328. package/src/lib/templates/details/details.component.ts +0 -15
  329. package/src/lib/templates/detailstwo/detailstwo.component.html +0 -694
  330. package/src/lib/templates/detailstwo/detailstwo.component.scss +0 -0
  331. package/src/lib/templates/detailstwo/detailstwo.component.spec.ts +0 -25
  332. package/src/lib/templates/detailstwo/detailstwo.component.ts +0 -15
  333. package/src/lib/templates/dyanamic-page/dyanamic-page.component.html +0 -1
  334. package/src/lib/templates/dyanamic-page/dyanamic-page.component.scss +0 -0
  335. package/src/lib/templates/dyanamic-page/dyanamic-page.component.spec.ts +0 -25
  336. package/src/lib/templates/dyanamic-page/dyanamic-page.component.ts +0 -15
  337. package/src/lib/templates/grid/grid-datatype/grid-datatype.component.ts +0 -39
  338. package/src/lib/templates/grid/grid-service.service.ts +0 -236
  339. package/src/lib/templates/grid/grid.component.html +0 -358
  340. package/src/lib/templates/grid/grid.component.scss +0 -118
  341. package/src/lib/templates/grid/grid.component.spec.ts +0 -25
  342. package/src/lib/templates/grid/grid.component.ts +0 -638
  343. package/src/lib/templates/grid/inner-grid/inner-grid.component.html +0 -1
  344. package/src/lib/templates/grid/inner-grid/inner-grid.component.scss +0 -0
  345. package/src/lib/templates/grid/inner-grid/inner-grid.component.spec.ts +0 -25
  346. package/src/lib/templates/grid/inner-grid/inner-grid.component.ts +0 -15
  347. package/src/lib/templates/home/home.component.html +0 -251
  348. package/src/lib/templates/home/home.component.scss +0 -20
  349. package/src/lib/templates/home/home.component.spec.ts +0 -25
  350. package/src/lib/templates/home/home.component.ts +0 -15
  351. package/src/lib/templates/interface_enum/common-Interface.ts +0 -114
  352. package/src/lib/templates/interface_enum/common-enum.ts +0 -159
  353. package/src/lib/templates/interface_enum/icon-class.ts +0 -1149
  354. package/src/lib/templates/leftside/leftside.component.html +0 -77
  355. package/src/lib/templates/leftside/leftside.component.scss +0 -0
  356. package/src/lib/templates/leftside/leftside.component.spec.ts +0 -25
  357. package/src/lib/templates/leftside/leftside.component.ts +0 -238
  358. package/src/lib/templates/login/login.component.html +0 -93
  359. package/src/lib/templates/login/login.component.scss +0 -110
  360. package/src/lib/templates/login/login.component.spec.ts +0 -25
  361. package/src/lib/templates/login/login.component.ts +0 -142
  362. package/src/lib/templates/main-content/main-content.component.html +0 -31
  363. package/src/lib/templates/main-content/main-content.component.scss +0 -6
  364. package/src/lib/templates/main-content/main-content.component.spec.ts +0 -25
  365. package/src/lib/templates/main-content/main-content.component.ts +0 -24
  366. package/src/lib/templates/menu-item/child-menu/child-menu.component.html +0 -5
  367. package/src/lib/templates/menu-item/child-menu/child-menu.component.scss +0 -3
  368. package/src/lib/templates/menu-item/child-menu/child-menu.component.ts +0 -22
  369. package/src/lib/templates/menu-item/menu-item.component.html +0 -25
  370. package/src/lib/templates/menu-item/menu-item.component.scss +0 -11
  371. package/src/lib/templates/menu-item/menu-item.component.ts +0 -29
  372. package/src/lib/templates/pagination/pagination.component.html +0 -71
  373. package/src/lib/templates/pagination/pagination.component.scss +0 -73
  374. package/src/lib/templates/pagination/pagination.component.ts +0 -29
  375. package/src/lib/templates/pie-chart/pie-chart.component.html +0 -0
  376. package/src/lib/templates/pie-chart/pie-chart.component.scss +0 -0
  377. package/src/lib/templates/pie-chart/pie-chart.component.ts +0 -14
  378. package/src/lib/templates/pipe/multiple-search.pipe.ts +0 -28
  379. package/src/lib/templates/pipe/simple-search.pipe.ts +0 -18
  380. package/src/lib/templates/pipe/translate.pipe.ts +0 -31
  381. package/src/lib/templates/request-flow-dash/request-flow-dash.component.html +0 -16
  382. package/src/lib/templates/request-flow-dash/request-flow-dash.component.scss +0 -0
  383. package/src/lib/templates/request-flow-dash/request-flow-dash.component.spec.ts +0 -25
  384. package/src/lib/templates/request-flow-dash/request-flow-dash.component.ts +0 -59
  385. package/src/lib/templates/table/table.component.html +0 -310
  386. package/src/lib/templates/table/table.component.scss +0 -0
  387. package/src/lib/templates/table/table.component.spec.ts +0 -25
  388. package/src/lib/templates/table/table.component.ts +0 -52
  389. package/src/lib/templates/template.service.ts +0 -43
  390. package/src/lib/templates/templates-routing.module.ts +0 -21
  391. package/src/lib/templates/templates.module.ts +0 -80
  392. package/src/lib/templates/topnav/topnav.component.html +0 -172
  393. package/src/lib/templates/topnav/topnav.component.scss +0 -10
  394. package/src/lib/templates/topnav/topnav.component.spec.ts +0 -25
  395. package/src/lib/templates/topnav/topnav.component.ts +0 -59
  396. package/src/lib/ticket/_interfaces/master-models.ts +0 -66
  397. package/src/lib/ticket/_interfaces/model.ts +0 -252
  398. package/src/lib/ticket/_ticket-services/ticket-api.service.ts +0 -319
  399. package/src/lib/ticket/_ticket-services/ticket-master-api.service.ts +0 -169
  400. package/src/lib/ticket/_ticket-services/ticket-priority.service.ts +0 -86
  401. package/src/lib/ticket/_ticket-services/ticketchannel.service.ts +0 -107
  402. package/src/lib/ticket/ticket-routing.module.ts +0 -12
  403. package/src/lib/ticket/ticket.module.ts +0 -29
  404. package/src/test.ts +0 -26
  405. package/tsconfig.lib.json +0 -25
  406. package/tsconfig.lib.prod.json +0 -10
  407. package/tsconfig.spec.json +0 -17
  408. package/tslint.json +0 -17
@@ -1,1073 +0,0 @@
1
- import { Component, Input, OnInit, Output, EventEmitter, SimpleChanges } from '@angular/core';
2
- import {
3
- EntityTypeFieldVM,
4
- ILookUpJsonFieldData,
5
- } from '../../interface/entityTypeInterface';
6
- import { FormGroup, FormBuilder } from '@angular/forms';
7
- import { E_DataType } from '../../../templates/interface_enum/common-enum';
8
- import { EntityTypeSetupService } from '../../service/entity-type-setup.service';
9
- import { Observable } from 'rxjs';
10
- import { PageForm } from '../../page-form-instance';
11
- import {
12
- IRestConfig,
13
- ISearchCriteria } from '../../../templates/interface_enum/common-Interface';
14
- import Swal from 'sweetalert2';
15
- import { GlobalService } from '../../../core/global.service';
16
- import { TranslatePipe } from '../../../Pipe/translate.pipe';
17
- import { FilterPipe, UniqueFilterPipe } from '../../../Pipe/allpipe.pipe';
18
- import * as Handlebars from 'handlebars';
19
- declare var $: any;
20
-
21
- @Component({
22
- selector: 'app-entity-dynamic-field',
23
- templateUrl: './entity-dynamic-field.component.html',
24
- styleUrls: ['./entity-dynamic-field.component.scss'],
25
- })
26
- export class EntityDynamicFieldComponent implements OnInit {
27
- constructor(
28
- private entityTypeSetup: EntityTypeSetupService,
29
- public globalService: GlobalService,
30
- ) {}
31
-
32
- ngOnInit(): void {
33
-
34
- this.entityTypeSetup.onPlaceHolderSelect.subscribe((x) => {
35
- if (x && x.placeholder) this.clks(x.placeholder,x.Type);
36
- });
37
- this.OnSelectRequestorValue();
38
- // this.setDDLValueOnEditMode()
39
-
40
-
41
- this.getListFieldData()
42
- // this.generateDropDownFields()
43
- }
44
-
45
- ngOnChanges(changes: SimpleChanges) {
46
-
47
- if(changes && changes.fieldsList && changes.fieldsList.firstChange==false) {
48
-
49
- this.OnSelectRequestorValue("ngOnChanges");
50
- }
51
-
52
- }
53
-
54
- @Input() RequestorField: any = null;
55
- @Input() RequestorFieldValue: any = null;
56
-
57
- @Input() ParameterData:any=null;
58
-
59
- @Input() fieldsList: EntityTypeFieldVM[] = [];
60
- @Input() dynamicFormGroup: FormGroup;
61
- @Input() pageForm: PageForm;
62
- @Input() PageGroupValues: any = {};
63
- @Input() submitted: boolean;
64
- @Input() Type: string = 'Design';
65
- @Input() rowIndex: number;
66
- @Input() groupIndex: number;
67
- @Input() ActionType: any;
68
-
69
- @Input() EntityType: number;
70
-
71
- @Output() FieldChangeEvent: any = new EventEmitter<{
72
- FieldData: any;
73
- RestData: any;
74
- }>();
75
- @Output() deleteField: any = new EventEmitter<{
76
- fieldIndex: number;
77
- groupIndex: number;
78
- rowIndex: number;
79
- }>();
80
- @Output() downField: any = new EventEmitter<{
81
- fieldIndex: number;
82
- groupIndex: number;
83
- rowIndex: number;
84
- }>();
85
- @Output() upField: any = new EventEmitter<{
86
- fieldIndex: number;
87
- groupIndex: number;
88
- rowIndex: number;
89
- }>();
90
-
91
- _dataType = E_DataType;
92
-
93
- dropDown$ = Object.assign({});
94
- dropDownColumn$: any[] = [];
95
- generateDropDownFields() {
96
- for (const iterator of this.fieldsList) {
97
- if (iterator.DataType == E_DataType.dropdown) {
98
- this.dropDown$[iterator.Description] = new Observable((obx) => {
99
- if (iterator.FieldData) {
100
- var jsonItem = JSON.parse(iterator.FieldData);
101
- if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
102
- const url = jsonItem.api.url;
103
- this.entityTypeSetup.getDyamicUrl(url).subscribe((ress: any) => {
104
-
105
- let res = ress;
106
- if (ress && ress?.entities) res = ress.entities;
107
- if (ress && ress?.Data) res = ress.Data;
108
- if (ress && ress?.templates) res = ress.templates;
109
- if (ress && ress?.Data && ress?.Data?.Data) res = ress.Data.Data;
110
-
111
- if (res && Array.isArray(res) && res.length > 0) {
112
- obx.next(
113
- res.map((x) =>
114
- Object.assign({
115
- Id: x[jsonItem.api.valueField],
116
- Description: x[jsonItem.api.textField],
117
- })
118
- )
119
- );
120
- } else if (
121
- Object.keys(res).length > 0 &&
122
- Object.keys(res).includes('List')
123
- ) {
124
- obx.next(
125
- res['List'].map((x) =>
126
- Object.assign({
127
- Id: x[jsonItem.api.valueField],
128
- Description: x[jsonItem.api.textField],
129
- })
130
- )
131
- );
132
- } else obx.next([]);
133
- });
134
- } else {
135
- if (
136
- jsonItem.options &&
137
- Array.isArray(jsonItem.options) &&
138
- jsonItem.options.length > 0
139
- ) {
140
-
141
-
142
- obx.next(
143
- jsonItem.options.map((x) =>
144
- Object.assign({
145
- Id: x.value,
146
- Description: x.text,
147
- })
148
- )
149
- );
150
- } else obx.next([]);
151
- }
152
- }
153
- });
154
- }
155
- }
156
- }
157
-
158
- validationError(name: string, errorName: string) {
159
- if (name && errorName)
160
- return this.dynamicFormGroup.get(name).errors[errorName] ? true : false;
161
- else return this.dynamicFormGroup.get(name).errors ? true : false;
162
- }
163
-
164
- getType(_dataType: E_DataType | number) {
165
- switch (_dataType) {
166
- case E_DataType.int:
167
- case E_DataType.decimal:
168
- return 'number';
169
- case E_DataType.date:
170
- return 'date';
171
- case E_DataType.dateTime:
172
- return 'datetime-local';
173
- case E_DataType.timespan:
174
- return 'time';
175
- case E_DataType.bool:
176
- return 'checkbox';
177
- case E_DataType.string:
178
- return 'text';
179
- case E_DataType.image:
180
- return 'file';
181
-
182
- default:
183
- return 'text';
184
- }
185
- }
186
-
187
- changeTextEvent(event) {
188
-
189
- }
190
-
191
-
192
- setDDLValueOnEditMode() {
193
- if (this.PageGroupValues && this.PageGroupValues.RecId) {
194
- this.fieldsList.map((x) => {
195
- if (x.DataType == E_DataType.dropdown) {
196
-
197
-
198
- let _field=x.Description+"_Desc"
199
- if( _field in this.PageGroupValues) {
200
-
201
- x.showSelectedValues = this.PageGroupValues[_field];
202
- }
203
- else {
204
- x.showSelectedValues = this.PageGroupValues[x.Description];
205
- }
206
-
207
- }
208
-
209
- });
210
- alert("asa");
211
-
212
-
213
- }
214
- }
215
-
216
-
217
-
218
- datatype: any;
219
- changeFiledValue(event, item, SelectedObj?) {
220
- // alert("change")
221
-
222
- // let val = event.target.value;
223
- // let id= event.target.id;
224
- // let x =this.pageForm.form.get[id];
225
- this.FieldChangeEvent.emit({ FieldData: item, RestData: SelectedObj });
226
- }
227
-
228
- SelectedFiles: any = null;
229
- selectedFileItem: any = null;
230
-
231
- changeFile(event: any, item) {
232
- // alert("change");
233
-
234
- this.selectedFileItem = item;
235
- this.SelectedFiles = event.target.files;
236
- }
237
-
238
- _deleteField(fieldIndex) {
239
- this.deleteField.emit({
240
- fieldIndex: fieldIndex,
241
- groupIndex: this.groupIndex,
242
- rowIndex: this.rowIndex,
243
- });
244
- }
245
- _downField(fieldIndex) {
246
- this.downField.emit({
247
- fieldIndex: fieldIndex,
248
- groupIndex: this.groupIndex,
249
- rowIndex: this.rowIndex,
250
- });
251
- }
252
- _upField(fieldIndex) {
253
- this.upField.emit({
254
- fieldIndex: fieldIndex,
255
- groupIndex: this.groupIndex,
256
- rowIndex: this.rowIndex,
257
- });
258
- }
259
-
260
- getFiledKey(keyValue, lookup) {
261
- let key = keyValue;
262
- let lookupValue: ILookUpJsonFieldData = JSON.parse(lookup);
263
- if (lookupValue) key = lookupValue.IdDescription;
264
- return key;
265
- }
266
-
267
- tempFields: any;
268
-
269
- loadDropdown(
270
- field: EntityTypeFieldVM,
271
- searchCriteria?: any,
272
- RequestorField?:any,
273
- SearchText?:any
274
- ) {
275
-
276
- this.tempFields = field;
277
-
278
- if (field.DataType == E_DataType.dropdown) {
279
- // if(field.LookupData) {
280
- // let _lookdata = JSON.parse(field.LookupData);
281
- // let columns =_lookdata.IdField.split(",");
282
- // this.dropDownColumn$[field.Description] = columns;
283
- // }
284
-
285
- // dropDownColumn
286
-
287
- this.dropDown$[field.Description] = new Observable((obx) => {
288
- if (field.FieldData) {
289
- var jsonItem = JSON.parse(field.FieldData);
290
- if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
291
- let isDepandancyvalue = true;
292
- let _formvalue = this.pageForm.form.value;
293
-
294
- let restData: IRestConfig = jsonItem.rest;
295
-
296
- /* #region Column def */
297
- let columns: any[] = [];
298
- columns.push(restData.valueField);
299
- // columns.push(restData.textField)
300
-
301
- let _col = restData.textField.split(',');
302
- columns.push(..._col);
303
- this.dropDownColumn$[field.Description] = columns;
304
- /* #endregion */
305
-
306
- let _handleData:any={};
307
- if (this.ParameterData){
308
- _handleData.params = this.ParameterData;
309
- }
310
-
311
- restData.QueryStrings.forEach((query) => {
312
- if (query.Type == 'FieldValue') {
313
-
314
- if (!_formvalue[query.Value] && query.IsNullable != true) {
315
- // Swal.fire('please fill ' + query.Value, 'warning');
316
- Swal.fire({
317
- title: this.translatePipe.transform('please fill ' + query.Value),
318
- });
319
- isDepandancyvalue = false;
320
- return;
321
- }
322
- }
323
- else{
324
-
325
- query.Value = this.hanbleBarData(query.Value,_handleData);
326
- }
327
- });
328
-
329
- restData.Headers = restData.Headers.map(x => {
330
- x.Value = this.hanbleBarData(x.Value,_handleData);
331
- return x
332
- });
333
- restData.URL = this.hanbleBarData(restData.URL,_handleData);
334
- restData.Body = this.hanbleBarData(restData.Body,_handleData);
335
-
336
- if (!isDepandancyvalue) {
337
- return;
338
- }
339
-
340
- this.entityTypeSetup.dynamicAPi(restData, _formvalue, searchCriteria,SearchText,restData.Havecriteria)
341
- .subscribe((ress: any) => {
342
-
343
- let res = ress;
344
- if(restData.ResponseView) {
345
- let _rview = restData.ResponseView.split(".");
346
- _rview.forEach(x => {
347
- if (ress) {
348
- ress = ress[x];
349
- res = ress;
350
- }
351
- else
352
- res = "";
353
- });
354
- }
355
- else {
356
- if (ress.Data) {
357
- res = ress.Data;
358
- if (res.Data)
359
- res = res.Data
360
- }
361
- if (ress.content) res = ress.content;
362
-
363
- if (ress.entities) res = ress.entities;
364
- if (ress.templates) res = ress.templates;
365
-
366
- }
367
-
368
- if (RequestorField) {
369
- let _Sitem = res.filter((x) => x[restData.valueField] == this.RequestorFieldValue);
370
- this.fieldsList.map((x) => {
371
- if (x.Description == field.Description)
372
- x.showTable = false;
373
- });
374
- if (_Sitem && _Sitem.length > 0) {
375
- this.selectDropDownRow(_Sitem[0], field);
376
- }
377
- }
378
-
379
- if (res && Array.isArray(res) && res.length > 0) {
380
- obx.next(res);
381
- } else if (
382
- Object.keys(res).length > 0 &&
383
- Object.keys(res).includes('List')
384
- ) {
385
- obx.next(res['List']);
386
- } else obx.next([]);
387
- });
388
- } else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
389
- const url = jsonItem.api.url;
390
- this.entityTypeSetup.getDyamicUrl(url).subscribe((ress: any) => {
391
-
392
- let res = ress;
393
- if(jsonItem.api && jsonItem.api.ResponseView) {
394
- let _rview = jsonItem.api.ResponseView.split(".");
395
- _rview.forEach(x => {
396
- if (ress) {
397
- ress = ress[x];
398
- res = ress;
399
- }
400
- else
401
- res = "";
402
- });
403
- }
404
- else {
405
- if (ress.Data) {
406
- res = ress.Data;
407
- if (res.Data)
408
- res = res.Data
409
- }
410
- if (ress.content) res = ress.content;
411
-
412
- if (ress.entities) res = ress.entities;
413
- if (ress.templates) res = ress.templates;
414
-
415
- }
416
-
417
- if (res && Array.isArray(res) && res.length > 0) {
418
- obx.next(
419
- res.map((x) =>
420
- Object.assign({
421
- Id: x[jsonItem.api.valueField],
422
- Description: x[jsonItem.api.textField],
423
- })
424
- )
425
- );
426
- } else if (
427
- Object.keys(res).length > 0 &&
428
- Object.keys(res).includes('List')
429
- ) {
430
- obx.next(
431
- res['List'].map((x) =>
432
- Object.assign({
433
- Id: x[jsonItem.api.valueField],
434
- Description: x[jsonItem.api.textField],
435
- })
436
- )
437
- );
438
- } else obx.next([]);
439
- });
440
- } else {
441
- if (
442
- jsonItem.options &&
443
- Array.isArray(jsonItem.options) &&
444
- jsonItem.options.length > 0
445
- ) {
446
-
447
-
448
- /* #region Column def for json manual Item */
449
- let columns: any[] = ['value', 'text'];
450
- this.dropDownColumn$[field.Description] = columns;
451
- /* #endregion */
452
-
453
- if (RequestorField) {
454
- let _Sitem = jsonItem.options.filter(
455
- (x) => x.text == this.RequestorField
456
- );
457
- if (_Sitem && _Sitem.length > 0) {
458
- this.selectDropDownRow(_Sitem[0], field);
459
- }
460
- }
461
-
462
- obx.next(jsonItem.options);
463
- } else obx.next([]);
464
- }
465
- }
466
- });
467
- }
468
- }
469
-
470
- closeSearchBox: boolean = false;
471
- closesearch() {
472
- this.closeSearchBox = false;
473
- }
474
-
475
-
476
- showDetailsFormField(field: EntityTypeFieldVM) {
477
-
478
- let _ret: boolean = true;
479
-
480
- if (field.LookupData) {
481
- let _LookupData = JSON.parse(field.LookupData);
482
- // LookupData.LookupTable
483
- if (_LookupData && _LookupData.DetailsShowData && _LookupData.DetailsShowData.length > 0) {
484
- _LookupData.DetailsShowData.forEach(element => {
485
-
486
- if (element.Type == "All" ||
487
- (element.Type == "OnlyArabic" && this.globalService.CurrentLanguage == "Ar") ||
488
- (element.Type == "OnlyEnglish" && this.globalService.CurrentLanguage != "Ar"))
489
- _ret = true;
490
- else
491
- _ret = false;
492
- });
493
- }
494
-
495
- }
496
-
497
-
498
- return _ret
499
-
500
- }
501
-
502
-
503
- // -----------these no need once client side pagination done.
504
- pageStartFrom: number = 1;
505
- defineItemsPerPage: number = 10;
506
- //total: number = this.dropDownColumn$.length;
507
- // -----------these no need once client side pagination done.
508
- defineRecordCount(event) {
509
-
510
- this.defineItemsPerPage = event.target.value;
511
- this.pageStartFrom = 1;
512
- }
513
-
514
- autoSearchDropdown(event: any,field: EntityTypeFieldVM,searchValue?,RequestorField?) {
515
-
516
-
517
-
518
- this.tempFields = field;
519
-
520
- if (field.DataType == E_DataType.dropdown) {
521
- if (field.FieldData) {
522
- var jsonItem = JSON.parse(field.FieldData);
523
- if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
524
- let restData: IRestConfig = jsonItem.rest;
525
- let _Searchcriteria: ISearchCriteria = {
526
- Pagging: {
527
- PageNo: 1,
528
- PageSize: 100,
529
- },
530
- Where: [],
531
- SortOrder: 1,
532
- };
533
- if (!searchValue) searchValue = event.target.value;
534
- let filterobj = {
535
- Field: restData.valueField,
536
- Operator: 'Contains',
537
- TableAlias: '',
538
- Value: searchValue,
539
- };
540
-
541
- jsonItem.rest.QueryStrings.filter(x => x.Type == "SearchValue").map((y) => {
542
- let temp = ":" + y.Name;
543
- filterobj.Field += temp;
544
- });
545
-
546
- if (filterobj.Field)
547
- _Searchcriteria.Where.push(filterobj);
548
- this.loadDropdown(field, _Searchcriteria, RequestorField,searchValue);
549
- }
550
- }
551
- }
552
- }
553
-
554
- loadDropdownColumn(field: EntityTypeFieldVM) {
555
-
556
- let columns: string[] = ['value', 'text'];
557
- this.dropDownColumn$[field.Description] = columns;
558
- let jsonItem = JSON.parse(field.FieldData);
559
- if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
560
- let restData: IRestConfig = jsonItem.rest;
561
- columns = [];
562
- columns.push(restData.valueField);
563
- let _col = restData.textField.split(',');
564
- columns.push(..._col);
565
- this.dropDownColumn$[field.Description] = columns;
566
-
567
- if (jsonItem.rest.Havecriteria) {
568
- this.fieldsList.map((x) => {
569
- if (x.Description == field.Description) {
570
- x.showSearchBox = true;
571
- }
572
- });
573
- } else {
574
-
575
- let showSearchBox: boolean = false;
576
- let SearchValue = jsonItem.rest.QueryStrings.filter((x) => x.Type == "SearchValue");
577
- if (SearchValue.length > 0) {
578
- showSearchBox = true;
579
- }
580
- if(showSearchBox) {
581
- this.fieldsList.map((x) => {
582
- if (x.Description == field.Description) {
583
- x.showSearchBox = true;
584
- }
585
- });
586
- }
587
- }
588
- this.loadDropdown(field);
589
- } else {
590
- this.loadDropdown(field);
591
- }
592
- this.closesearch();
593
- }
594
-
595
- selectDropDownRow(row, field: EntityTypeFieldVM) {
596
-
597
- var jsonItem = JSON.parse(field.FieldData);
598
- let _fieldVal = null;
599
- if (jsonItem.isDynamic) _fieldVal = row[jsonItem.rest.valueField];
600
- else _fieldVal = row['value'];
601
-
602
- this.pageForm.form.get(field.Description).setValue(_fieldVal);
603
-
604
- let showValue = '';
605
- // this.dropDownColumn$[field.Description].forEach((col) => {
606
- // showValue = showValue + row[col] + ' | ';
607
- // });
608
- if (jsonItem && jsonItem.rest) {
609
- let _filedDropdown: IRestConfig = jsonItem.rest
610
- if (_filedDropdown.TextboxShowData && _filedDropdown.TextboxShowData.length > 0) {
611
-
612
- showValue = ''
613
- _filedDropdown.TextboxShowData.forEach(element => {
614
-
615
- if (element.Type == "All" ||
616
- (element.Type =="OnlyArabic" && this.globalService.CurrentLanguage=="Ar") ||
617
- (element.Type =="OnlyEnglish" && this.globalService.CurrentLanguage!="Ar"))
618
- showValue = showValue + row[element.Column] + "-";
619
- // else if(element.Type =="OnlyArabic" && this.globalService.CurrentLanguage=="Ar") {
620
- // showValue = showValue + row[element.Column] + " - ";
621
- // }
622
- // else if(element.Type =="OnlyEnglish" && this.globalService.CurrentLanguage!="Ar") {
623
- // showValue = showValue + row[element.Column] + " - ";
624
- // }
625
-
626
- });
627
- if(showValue){
628
- let value = showValue.charAt(showValue.length-1)
629
- if(value == "-"){
630
- showValue = showValue.substring(0, showValue.length - 1)
631
- }
632
-
633
- }
634
- }
635
- else
636
- showValue = row[this.dropDownColumn$[field.Description][1]]
637
- }
638
- else
639
- showValue = row[this.dropDownColumn$[field.Description][1]]
640
-
641
- this.fieldsList.map((x) => {
642
- if (x.Description == field.Description) x.showSelectedValues = showValue;
643
- });
644
-
645
- this.closesearch();
646
- this.changeFiledValue('', field, row);
647
- }
648
-
649
- showTable(item) {
650
- this.pageStartFrom = 1;
651
- this.defineItemsPerPage = 10;
652
- this.fieldsList.map((x) => {
653
- if (x.Description != item.Description) x.showTable = false;
654
- });
655
-
656
- item.showTable = !item.showTable;
657
- this.loadDropdownColumn(item);
658
- }
659
-
660
- activeInputId: any;
661
-
662
- clks(item,Type) {
663
-
664
- if (this.activeInputId){
665
- if(Type !="Event"){
666
- this.typeInTextarea($('#' + this.activeInputId), '@@' + item);
667
- }
668
- else{
669
- this.typeInTextarea($('#' + this.activeInputId), item);
670
- }
671
- }
672
-
673
- //'@@' +
674
- return false;
675
- }
676
-
677
- typeInTextarea(el, newText) {
678
- var start = el.prop('selectionStart');
679
- var end = el.prop('selectionEnd');
680
- var text = el.val();
681
- var before = text.substring(0, start);
682
- var after = text.substring(end, text.length);
683
- el.val(before + newText + after);
684
- el[0].selectionStart = el[0].selectionEnd = start + newText.length;
685
- el.focus();
686
-
687
- this.pageForm.form.get(this.activeInputId).setValue(el.val());
688
-
689
- let item = this.fieldsList.filter(
690
- (x) => x.Description == this.activeInputId
691
- )[0];
692
- this.changeFiledValue('', item);
693
-
694
- return false;
695
- }
696
-
697
- searchValue: any;
698
-
699
- customSearchFn(term: string, item: any) {
700
- // alert('a');
701
-
702
- // this.searchValue = term
703
- this.loadDropdown(this.tempFields, term);
704
- }
705
-
706
- OnSearch(field) {
707
- this.searchValue;
708
- // alert('b');
709
-
710
- // term = term.toLocaleLowerCase();
711
- // return item.code.toLocaleLowerCase().indexOf(term) > -1 ||
712
- // item.countryName.toLocaleLowerCase().indexOf(term) > -1;
713
-
714
- if (field.DataType == E_DataType.dropdown) {
715
- this.dropDown$[field.Description] = new Observable((obx) => {
716
- if (field.FieldData) {
717
- var jsonItem = JSON.parse(field.FieldData);
718
- if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
719
- let isDepandancyvalue = true;
720
- let _formvalue = this.pageForm.form.value;
721
-
722
- let restData: IRestConfig = jsonItem.rest;
723
- let _handleData:any={};
724
- if (this.ParameterData){
725
- _handleData.params = this.ParameterData;
726
- }
727
-
728
- restData.QueryStrings.forEach((query) => {
729
- if (query.Type == 'FieldValue') {
730
-
731
- if (!_formvalue[query.Value]) {
732
- // Swal.fire('please fill ' + query.Value, 'warning');
733
- Swal.fire({
734
- title: this.translatePipe.transform('please fill ' + query.Value),
735
- });
736
- isDepandancyvalue = false;
737
- return;
738
- }
739
- }
740
- });
741
-
742
- restData.Headers = restData.Headers.map(x => {
743
- x.Value = this.hanbleBarData(x.Value,_handleData);
744
- return x
745
- });
746
- restData.URL = this.hanbleBarData(restData.URL,_handleData);
747
- restData.Body = this.hanbleBarData(restData.Body,_handleData);
748
-
749
-
750
- if (!isDepandancyvalue) {
751
- return;
752
- }
753
-
754
- this.entityTypeSetup.dynamicAPi(restData, _formvalue)
755
- .subscribe((ress: any) => {
756
-
757
- let res = ress;
758
- if(restData.ResponseView) {
759
- let _rview = restData.ResponseView.split(".");
760
- _rview.forEach(x => {
761
- if (ress) {
762
- ress = ress[x];
763
- res = ress;
764
- }
765
- else
766
- res = "";
767
- });
768
- }
769
- else {
770
- if (ress.Data) {
771
- res = ress.Data;
772
- if (res.Data)
773
- res = res.Data
774
- }
775
- if (ress.content) res = ress.content;
776
-
777
- if (ress.entities) res = ress.entities;
778
- if (ress.templates) res = ress.templates;
779
-
780
- }
781
-
782
- if (res && Array.isArray(res) && res.length > 0) {
783
- obx.next(
784
- res.map((x) =>
785
- Object.assign({
786
- Id: x[jsonItem.rest.valueField],
787
- Description: x[jsonItem.rest.textField],
788
- })
789
- )
790
- );
791
- } else if (
792
- Object.keys(res).length > 0 &&
793
- Object.keys(res).includes('List')
794
- ) {
795
- obx.next(
796
- res['List'].map((x) =>
797
- Object.assign({
798
- Id: x[jsonItem.rest.valueField],
799
- Description: x[jsonItem.rest.textField],
800
- })
801
- )
802
- );
803
- } else obx.next([]);
804
- });
805
- } else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
806
- const url = jsonItem.api.url;
807
- this.entityTypeSetup.getDyamicUrl(url).subscribe((ress: any) => {
808
-
809
- let res = ress;
810
- if (jsonItem.api && jsonItem.api.ResponseView) {
811
- let _rview = jsonItem.api.ResponseView.split(".");
812
- _rview.forEach(x => {
813
- if (ress) {
814
- ress = ress[x];
815
- res = ress;
816
- }
817
- else
818
- res = "";
819
- });
820
- }
821
- else {
822
- if (ress.Data) {
823
- res = ress.Data;
824
- if (res.Data)
825
- res = res.Data
826
- }
827
- if (ress.content) res = ress.content;
828
-
829
- if (ress.entities) res = ress.entities;
830
- if (ress.templates) res = ress.templates;
831
-
832
- }
833
-
834
- if (res && Array.isArray(res) && res.length > 0) {
835
- obx.next(
836
- res.map((x) =>
837
- Object.assign({
838
- Id: x[jsonItem.api.valueField],
839
- Description: x[jsonItem.api.textField],
840
- })
841
- )
842
- );
843
- } else if (
844
- Object.keys(res).length > 0 &&
845
- Object.keys(res).includes('List')
846
- ) {
847
- obx.next(
848
- res['List'].map((x) =>
849
- Object.assign({
850
- Id: x[jsonItem.api.valueField],
851
- Description: x[jsonItem.api.textField],
852
- })
853
- )
854
- );
855
- } else obx.next([]);
856
- });
857
- } else {
858
- if (
859
- jsonItem.options &&
860
- Array.isArray(jsonItem.options) &&
861
- jsonItem.options.length > 0
862
- ) {
863
-
864
-
865
- obx.next(
866
- jsonItem.options.map((x) =>
867
- Object.assign({
868
- Id: x.value,
869
- Description: x.text,
870
- })
871
- )
872
- );
873
- } else obx.next([]);
874
- }
875
- }
876
- });
877
- }
878
- }
879
-
880
- OnSelectRequestorValue(Type?) {
881
-
882
- if (!this.RequestorField || !this.RequestorFieldValue) return;
883
-
884
- let _RequestorField = this.fieldsList.filter(
885
- (x) => x.Description == this.RequestorField
886
- );
887
- if (_RequestorField && _RequestorField.length > 0) {
888
- let _field = _RequestorField[0];
889
-
890
-
891
- this.fieldsList = this.fieldsList.map((x) => {
892
- if (x.Description == _field.Description) {
893
- x.showTable = true;
894
- x.IsReadonly = true;
895
- x.IsInactive = true;
896
- }
897
- return x
898
- });
899
-
900
- if (!Type) {
901
- if (this.pageForm.form && this.pageForm.form.get(this.RequestorField))
902
- this.pageForm.form.get(this.RequestorField).setValue(this.RequestorFieldValue, { onlySelf: true });
903
- if (_field.DataType == E_DataType.dropdown) {
904
- this.autoSearchDropdown(null,_field,this.RequestorFieldValue,this.RequestorField);
905
- } else {
906
- setTimeout(() => this.changeFiledValue('', _field), 1000);
907
- }
908
- }
909
-
910
-
911
- }
912
- }
913
-
914
- showshortcode:boolean = false;
915
- shortcode: any[]=[];
916
- shortcutkey: any = [];
917
- getShortCodeCannedResponse(event?) {
918
-
919
- // columns.push(...short);
920
- event = '';
921
- if (this.showshortcode && (!this.shortcode || this.shortcode.length < 1 )) {
922
-
923
- this.entityTypeSetup.getShortKeyCannedResponse(event).subscribe((res:any) => {
924
-
925
- this.shortcode = res;
926
- this.shortcutkey = res;
927
- });
928
- }
929
- }
930
-
931
- closeShortCanned: boolean = false;
932
- closeShortKey() {
933
- this.closeShortCanned = false;
934
- }
935
-
936
- shortkey: any;
937
- selectShortKey(item) {
938
-
939
-
940
- if (this.activeInputId)
941
- this.typeInTextarea($('#' + this.activeInputId), item.Message);
942
- return false;
943
-
944
- this.closeShortKey();
945
- // this.changeFiledValue('', field, row);
946
- }
947
-
948
- showShortKey(item) {
949
- this.shortkey.map((x) => {
950
- if (x.Message != item.Message) x.showshort = false;
951
- });
952
-
953
- item.showshort = !item.showshort;
954
- this.getShortCodeCannedResponse(item);
955
- }
956
-
957
- FiedlListData$ = Object.assign({});
958
- getListFieldData() {
959
- for (const field of this.fieldsList) {
960
- if (field.DataType == E_DataType.List) {
961
-
962
- this.FiedlListData$[field.Description] = [];
963
- let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
964
- if (fieldVal) {
965
- for (let key in fieldVal) {
966
- let temp = { key: key, value: fieldVal[key] };
967
- this.FiedlListData$[field.Description].push(temp);
968
- }
969
- }
970
- }
971
- }
972
- }
973
-
974
-
975
- addnewList(field: EntityTypeFieldVM) {
976
-
977
-
978
- if (!(this.FiedlListData$[field.Description] && this.FiedlListData$[field.Description].length > 0)) {
979
- this.FiedlListData$[field.Description] = [];
980
- let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
981
- if (fieldVal) {
982
- for (let key in fieldVal) {
983
- let temp = { key: key, value: fieldVal[key] };
984
- this.FiedlListData$[field.Description].push(temp);
985
- }
986
- }
987
- }
988
- this.FiedlListData$[field.Description].push({ key: null, value: null })
989
-
990
- let _fieldVal = {}
991
- this.FiedlListData$[field.Description].forEach(x => _fieldVal[x.key] = x.value)
992
- this.pageForm.form.get(field.Description).setValue(_fieldVal);
993
- this.changeFiledValue('', field);
994
- }
995
-
996
-
997
- removeList(field: EntityTypeFieldVM, index) {
998
-
999
- // this.FiedlListData$[field.Description] = [];
1000
- // let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
1001
- // if (fieldVal) {
1002
- // for (let key in fieldVal) {
1003
- // let temp = { key: key, value: fieldVal[key] };
1004
- // this.FiedlListData$[field.Description].push(temp);
1005
- // }
1006
- // }
1007
- this.FiedlListData$[field.Description].splice(index, 1)
1008
-
1009
- let _fieldVal = {}
1010
- this.FiedlListData$[field.Description].forEach(x => _fieldVal[x.key] = x.value);
1011
- this.pageForm.form.get(field.Description).setValue(_fieldVal);
1012
- this.changeFiledValue('', field);
1013
- }
1014
-
1015
- changeFiledList(field: EntityTypeFieldVM,item,index) {
1016
-
1017
- // this.FiedlListData$[field.Description] = [];
1018
- // let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
1019
- // if (fieldVal) {
1020
- // for (let key in fieldVal) {
1021
- // let temp = { key: key, value: fieldVal[key] };
1022
- // this.FiedlListData$[field.Description].push(temp);
1023
- // }
1024
- // }
1025
-
1026
- // this.FiedlListData$[field.Description][index]=item;
1027
-
1028
- let _fieldVal = {}
1029
- this.FiedlListData$[field.Description].forEach(x => _fieldVal[x.key] = x.value);
1030
- this.pageForm.form.get(field.Description).setValue(_fieldVal);
1031
- this.changeFiledValue('', field);
1032
- }
1033
-
1034
-
1035
-
1036
-
1037
-
1038
-
1039
-
1040
-
1041
- translatePipe = new TranslatePipe(this.globalService);
1042
- FilterPipe = new FilterPipe();
1043
- UniqueFilterPipe = new UniqueFilterPipe();
1044
-
1045
-
1046
- hanbleBarData(_code, data?) {
1047
- if (!data || (typeof data != 'object'))
1048
- data = {};
1049
- data.CurrentData = this;
1050
- data.Local = localStorage;
1051
- data.Cookies = this.Cookies;
1052
- data.System = this.globalService.SystemConfigs;
1053
- if (_code && data) {
1054
- let template = Handlebars.compile(_code);
1055
- let result = template(data);
1056
- return result
1057
- }
1058
- else {
1059
- return _code
1060
- }
1061
- }
1062
-
1063
- get Cookies() {
1064
- let cookies = document.cookie.split(';');
1065
- let cookie = {};
1066
- for (let i = 0; i < cookies.length; i++) {
1067
- let hash = (cookies[i].split('='));
1068
- let _key = hash[0].toString().replace(" ", "");
1069
- cookie[_key] = hash[1];
1070
- }
1071
- return cookie;
1072
- }
1073
- }