arco-support-request 0.0.65 → 0.0.68

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