ngx-techlify-core 11.5.0 → 11.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (628) hide show
  1. package/README.md +24 -24
  2. package/karma.conf.js +44 -0
  3. package/ng-package.json +27 -0
  4. package/package.json +29 -37
  5. package/src/lib/action-popup/action-popup.component.html +21 -0
  6. package/src/lib/action-popup/action-popup.component.scss +0 -0
  7. package/src/lib/action-popup/action-popup.component.spec.ts +25 -0
  8. package/src/lib/action-popup/action-popup.component.ts +31 -0
  9. package/{lib/action-popup/action-popup.model.d.ts → src/lib/action-popup/action-popup.model.ts} +5 -5
  10. package/src/lib/action-popup/action-popup.module.ts +23 -0
  11. package/{lib/action-popup/index.d.ts → src/lib/action-popup/index.ts} +2 -2
  12. package/src/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.ts +10 -0
  13. package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.html +9 -0
  14. package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.scss +0 -0
  15. package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.spec.ts +25 -0
  16. package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.ts +49 -0
  17. package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.module.ts +24 -0
  18. package/src/lib/audit-log/audit-log-list/audit-log-list-routing.module.ts +10 -0
  19. package/src/lib/audit-log/audit-log-list/audit-log-list.component.html +92 -0
  20. package/src/lib/audit-log/audit-log-list/audit-log-list.component.scss +21 -0
  21. package/src/lib/audit-log/audit-log-list/audit-log-list.component.spec.ts +25 -0
  22. package/src/lib/audit-log/audit-log-list/audit-log-list.component.ts +138 -0
  23. package/src/lib/audit-log/audit-log-list/audit-log-list.module.ts +28 -0
  24. package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.ts +10 -0
  25. package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.html +49 -0
  26. package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.scss +0 -0
  27. package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.spec.ts +26 -0
  28. package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.ts +74 -0
  29. package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.ts +24 -0
  30. package/src/lib/audit-log/audit-log-routing.module.ts +18 -0
  31. package/src/lib/audit-log/audit-log-view/audit-log-view-routing.module.ts +10 -0
  32. package/src/lib/audit-log/audit-log-view/audit-log-view.component.html +46 -0
  33. package/src/lib/audit-log/audit-log-view/audit-log-view.component.scss +0 -0
  34. package/src/lib/audit-log/audit-log-view/audit-log-view.component.spec.ts +25 -0
  35. package/src/lib/audit-log/audit-log-view/audit-log-view.component.ts +54 -0
  36. package/src/lib/audit-log/audit-log-view/audit-log-view.module.ts +20 -0
  37. package/src/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.ts +10 -0
  38. package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.html +38 -0
  39. package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.scss +4 -0
  40. package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.spec.ts +25 -0
  41. package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.ts +53 -0
  42. package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.module.ts +20 -0
  43. package/src/lib/audit-log/audit-log.module.ts +20 -0
  44. package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.ts +10 -0
  45. package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.html +4 -0
  46. package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.scss +4 -0
  47. package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.spec.ts +25 -0
  48. package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.ts +28 -0
  49. package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.ts +20 -0
  50. package/src/lib/base-model/index.ts +3 -0
  51. package/src/lib/base-model/techlify-form-component.class.ts +60 -0
  52. package/src/lib/base-model/techlify-listing-component.class.ts +67 -0
  53. package/src/lib/base-model/techlify-service.class.ts +73 -0
  54. package/src/lib/core/alert.service.ts +32 -0
  55. package/src/lib/core/api-prefix.interceptor.ts +22 -0
  56. package/src/lib/core/authentication.guard.ts +34 -0
  57. package/src/lib/core/authentication.service.ts +53 -0
  58. package/src/lib/core/cache.interceptor.ts +59 -0
  59. package/src/lib/core/config.service.ts +52 -0
  60. package/src/lib/core/core.module.ts +44 -0
  61. package/src/lib/core/credentials.service.ts +91 -0
  62. package/{lib/core/dataManager.service.d.ts → src/lib/core/dataManager.service.ts} +124 -70
  63. package/src/lib/core/error-handler.interceptor.ts +43 -0
  64. package/src/lib/core/error-handler.service.ts +61 -0
  65. package/src/lib/core/filter.service.ts +42 -0
  66. package/src/lib/core/form-validator.service.ts +23 -0
  67. package/src/lib/core/header.interceptor.ts +22 -0
  68. package/src/lib/core/http-cache.service.ts +122 -0
  69. package/src/lib/core/http.service.ts +137 -0
  70. package/{lib/core/index.d.ts → src/lib/core/index.ts} +22 -20
  71. package/src/lib/core/logger.service.ts +113 -0
  72. package/src/lib/core/route-reusable-strategy.ts +36 -0
  73. package/src/lib/core/snack/error-snack.html +8 -0
  74. package/src/lib/core/snack/snack.component.ts +19 -0
  75. package/src/lib/core/snack/snack.module.ts +22 -0
  76. package/src/lib/core/snack/snack.scss +18 -0
  77. package/src/lib/core/snack/success-snack.html +8 -0
  78. package/src/lib/core/storage.service.ts +38 -0
  79. package/src/lib/core/techlify-config.model.ts +32 -0
  80. package/src/lib/core/token.interceptor.ts +25 -0
  81. package/src/lib/data-table/data-table.component.html +139 -0
  82. package/src/lib/data-table/data-table.component.scss +54 -0
  83. package/src/lib/data-table/data-table.component.spec.ts +25 -0
  84. package/src/lib/data-table/data-table.component.ts +232 -0
  85. package/{lib/data-table/data-table.model.d.ts → src/lib/data-table/data-table.model.ts} +49 -46
  86. package/src/lib/data-table/data-table.module.ts +23 -0
  87. package/{lib/data-table/index.d.ts → src/lib/data-table/index.ts} +2 -2
  88. package/src/lib/date-validator.ts +12 -0
  89. package/src/lib/document-viewer/document-viewer.component.css +5 -0
  90. package/src/lib/document-viewer/document-viewer.component.html +19 -0
  91. package/src/lib/document-viewer/document-viewer.component.ts +66 -0
  92. package/src/lib/document-viewer/document-viewer.module.ts +22 -0
  93. package/{lib/document-viewer/index.d.ts → src/lib/document-viewer/index.ts} +2 -2
  94. package/src/lib/document-viewer/viewer-config.model.ts +5 -0
  95. package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.ts +25 -0
  96. package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.html +23 -0
  97. package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.scss +4 -0
  98. package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.spec.ts +25 -0
  99. package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.ts +74 -0
  100. package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.ts +22 -0
  101. package/{lib/email-subscription/email-subscription-for-user/index.d.ts → src/lib/email-subscription/email-subscription-for-user/index.ts} +1 -1
  102. package/src/lib/email-subscription/email-subscription-routing.module.ts +10 -0
  103. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.ts +10 -0
  104. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.html +47 -0
  105. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.scss +0 -0
  106. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.spec.ts +25 -0
  107. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.ts +113 -0
  108. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.ts +28 -0
  109. package/{lib/email-subscription/email-subscription-type/email-subscription-type-form/index.d.ts → src/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.ts} +1 -1
  110. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.ts +29 -0
  111. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.html +76 -0
  112. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.scss +4 -0
  113. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.spec.ts +25 -0
  114. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.ts +170 -0
  115. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.ts +26 -0
  116. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.ts +1 -0
  117. package/src/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.ts +11 -0
  118. package/src/lib/email-subscription/email-subscription-type/email-subscription-type.module.ts +14 -0
  119. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.ts +10 -0
  120. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.html +38 -0
  121. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.scss +0 -0
  122. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.spec.ts +25 -0
  123. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.ts +113 -0
  124. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.ts +26 -0
  125. package/{lib/email-subscription/email-subscription-user/email-subscription-user-form/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.ts} +1 -1
  126. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.ts +27 -0
  127. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.html +74 -0
  128. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.scss +5 -0
  129. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.spec.ts +25 -0
  130. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.ts +174 -0
  131. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.ts +28 -0
  132. package/{lib/email-subscription/email-subscription-user/email-subscription-user-list/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.ts} +1 -1
  133. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.ts +10 -0
  134. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.html +21 -0
  135. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.scss +0 -0
  136. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.spec.ts +25 -0
  137. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.ts +56 -0
  138. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.ts +24 -0
  139. package/{lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.ts} +1 -1
  140. package/src/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.ts +11 -0
  141. package/src/lib/email-subscription/email-subscription-user/email-subscription-user.module.ts +14 -0
  142. package/src/lib/email-subscription/email-subscription.module.ts +15 -0
  143. package/src/lib/entity-files/entity-file-form/entity-file-form.component.css +0 -0
  144. package/src/lib/entity-files/entity-file-form/entity-file-form.component.html +45 -0
  145. package/src/lib/entity-files/entity-file-form/entity-file-form.component.ts +172 -0
  146. package/src/lib/entity-files/entity-file.service.ts +46 -0
  147. package/src/lib/entity-files/entity-files-view-all.component.css +0 -0
  148. package/src/lib/entity-files/entity-files-view-all.component.html +236 -0
  149. package/src/lib/entity-files/entity-files-view-all.component.ts +325 -0
  150. package/src/lib/entity-files/entity-files-view-all.module.ts +38 -0
  151. package/src/lib/entity-files/index.ts +2 -0
  152. package/src/lib/export-excel/export-excel-button/export-excel-button.component.html +1 -0
  153. package/src/lib/export-excel/export-excel-button/export-excel-button.component.scss +0 -0
  154. package/src/lib/export-excel/export-excel-button/export-excel-button.component.spec.ts +25 -0
  155. package/src/lib/export-excel/export-excel-button/export-excel-button.component.ts +31 -0
  156. package/src/lib/export-excel/export-excel.module.ts +16 -0
  157. package/src/lib/file-dropper/file-dropper.component.html +41 -0
  158. package/src/lib/file-dropper/file-dropper.component.scss +8 -0
  159. package/src/lib/file-dropper/file-dropper.component.ts +139 -0
  160. package/src/lib/file-dropper/file-dropper.model.ts +10 -0
  161. package/src/lib/file-dropper/file-dropper.module.ts +18 -0
  162. package/{lib/file-dropper/index.d.ts → src/lib/file-dropper/index.ts} +2 -2
  163. package/src/lib/import-csv/data-import/data-import.component.html +11 -0
  164. package/src/lib/import-csv/data-import/data-import.component.scss +0 -0
  165. package/src/lib/import-csv/data-import/data-import.component.spec.ts +28 -0
  166. package/src/lib/import-csv/data-import/data-import.component.ts +16 -0
  167. package/src/lib/import-csv/failed-items-list/failed-items-list.component.html +61 -0
  168. package/src/lib/import-csv/failed-items-list/failed-items-list.component.scss +0 -0
  169. package/src/lib/import-csv/failed-items-list/failed-items-list.component.spec.ts +28 -0
  170. package/src/lib/import-csv/failed-items-list/failed-items-list.component.ts +30 -0
  171. package/src/lib/import-csv/field-mapping/field-mapping.component.html +70 -0
  172. package/src/lib/import-csv/field-mapping/field-mapping.component.scss +15 -0
  173. package/src/lib/import-csv/field-mapping/field-mapping.component.ts +161 -0
  174. package/src/lib/import-csv/import-csv-config.ts +17 -0
  175. package/src/lib/import-csv/import-csv.component.html +71 -0
  176. package/src/lib/import-csv/import-csv.component.scss +15 -0
  177. package/src/lib/import-csv/import-csv.component.spec.ts +28 -0
  178. package/src/lib/import-csv/import-csv.component.ts +198 -0
  179. package/src/lib/import-csv/import-csv.module.ts +43 -0
  180. package/src/lib/import-csv/import-history-list/import-history-list.component.html +43 -0
  181. package/src/lib/import-csv/import-history-list/import-history-list.component.scss +0 -0
  182. package/src/lib/import-csv/import-history-list/import-history-list.component.spec.ts +28 -0
  183. package/src/lib/import-csv/import-history-list/import-history-list.component.ts +74 -0
  184. package/src/lib/import-csv/import-success/import-success.component.html +22 -0
  185. package/src/lib/import-csv/import-success/import-success.component.scss +0 -0
  186. package/src/lib/import-csv/import-success/import-success.component.spec.ts +28 -0
  187. package/src/lib/import-csv/import-success/import-success.component.ts +17 -0
  188. package/{lib/loader/index.d.ts → src/lib/loader/index.ts} +1 -1
  189. package/src/lib/loader/loader.component.html +4 -0
  190. package/src/lib/loader/loader.component.scss +8 -0
  191. package/src/lib/loader/loader.component.spec.ts +73 -0
  192. package/src/lib/loader/loader.component.ts +18 -0
  193. package/src/lib/loader/loader.module.ts +18 -0
  194. package/src/lib/login-history-for-user/login-history-for-user-routing.module.ts +18 -0
  195. package/src/lib/login-history-for-user/login-history-for-user.component.html +31 -0
  196. package/src/lib/login-history-for-user/login-history-for-user.component.scss +4 -0
  197. package/src/lib/login-history-for-user/login-history-for-user.component.spec.ts +25 -0
  198. package/src/lib/login-history-for-user/login-history-for-user.component.ts +94 -0
  199. package/src/lib/login-history-for-user/login-history-for-user.module.ts +26 -0
  200. package/src/lib/material.module.ts +68 -0
  201. package/src/lib/note/comment-form/comment-form.component.html +45 -0
  202. package/src/lib/note/comment-form/comment-form.component.scss +7 -0
  203. package/src/lib/note/comment-form/comment-form.component.spec.ts +24 -0
  204. package/src/lib/note/comment-form/comment-form.component.ts +84 -0
  205. package/{lib/note/index.d.ts → src/lib/note/index.ts} +3 -3
  206. package/src/lib/note/note-form/note-form.component.css +0 -0
  207. package/src/lib/note/note-form/note-form.component.html +26 -0
  208. package/src/lib/note/note-form/note-form.component.spec.ts +25 -0
  209. package/src/lib/note/note-form/note-form.component.ts +93 -0
  210. package/src/lib/note/note-list/note-list.component.css +4 -0
  211. package/src/lib/note/note-list/note-list.component.html +58 -0
  212. package/src/lib/note/note-list/note-list.component.spec.ts +25 -0
  213. package/src/lib/note/note-list/note-list.component.ts +156 -0
  214. package/src/lib/note/note.module.ts +33 -0
  215. package/src/lib/note/note.service.spec.ts +16 -0
  216. package/src/lib/note/note.service.ts +26 -0
  217. package/src/lib/read-more/read-more.component.html +3 -0
  218. package/src/lib/read-more/read-more.component.scss +8 -0
  219. package/src/lib/read-more/read-more.component.spec.ts +24 -0
  220. package/src/lib/read-more/read-more.component.ts +41 -0
  221. package/src/lib/read-more/read-more.module.ts +18 -0
  222. package/src/lib/request-helper/request-helper.service.ts +92 -0
  223. package/src/lib/searchable-selector/index.ts +2 -0
  224. package/src/lib/searchable-selector/mat-select-infinite-scroll.directive.ts +89 -0
  225. package/src/lib/searchable-selector/searchable-selector.component.html +21 -0
  226. package/src/lib/searchable-selector/searchable-selector.component.scss +8 -0
  227. package/src/lib/searchable-selector/searchable-selector.component.spec.ts +25 -0
  228. package/src/lib/searchable-selector/searchable-selector.component.ts +337 -0
  229. package/src/lib/searchable-selector/searchable-selector.module.ts +25 -0
  230. package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.html +4 -0
  231. package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.scss +0 -0
  232. package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.spec.ts +28 -0
  233. package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.ts +25 -0
  234. package/src/lib/techlify-feature/techlify-feature-enabled.directive.ts +71 -0
  235. package/src/lib/techlify-feature/techlify-feature-listing.component.html +65 -0
  236. package/src/lib/techlify-feature/techlify-feature-listing.component.scss +0 -0
  237. package/src/lib/techlify-feature/techlify-feature-listing.component.ts +174 -0
  238. package/src/lib/techlify-feature/techlify-feature.module.ts +28 -0
  239. package/src/lib/techlify-feature/techlify-feature.routing.ts +13 -0
  240. package/src/lib/techlify-feature/techlify-feature.service.ts +23 -0
  241. package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.ts +25 -0
  242. package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.html +18 -0
  243. package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.scss +6 -0
  244. package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.spec.ts +25 -0
  245. package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.ts +308 -0
  246. package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.ts +24 -0
  247. package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.html +8 -0
  248. package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.scss +0 -0
  249. package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.spec.ts +25 -0
  250. package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.ts +180 -0
  251. package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.ts +28 -0
  252. package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.html +78 -0
  253. package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.scss +0 -0
  254. package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.spec.ts +25 -0
  255. package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.ts +113 -0
  256. package/src/lib/techlify-update/techlify-update-form/techlify-update-form.module.ts +25 -0
  257. package/src/lib/techlify-update/techlify-update-history/index.ts +1 -0
  258. package/src/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.ts +21 -0
  259. package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.html +94 -0
  260. package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.scss +0 -0
  261. package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.ts +142 -0
  262. package/src/lib/techlify-update/techlify-update-history/techlify-update-history.module.ts +25 -0
  263. package/src/lib/techlify-update/techlify-update-routing.module.ts +21 -0
  264. package/src/lib/techlify-update/techlify-update.module.ts +27 -0
  265. package/src/lib/techlify-update/techlify-update.service.spec.ts +16 -0
  266. package/src/lib/techlify-update/techlify-update.service.ts +42 -0
  267. package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.html +104 -0
  268. package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.scss +0 -0
  269. package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.spec.ts +25 -0
  270. package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.ts +167 -0
  271. package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.html +39 -0
  272. package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.scss +57 -0
  273. package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.spec.ts +25 -0
  274. package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.ts +76 -0
  275. package/src/lib/techlify-update/update-notifier/update-notifier.component.html +0 -0
  276. package/src/lib/techlify-update/update-notifier/update-notifier.component.scss +3 -0
  277. package/src/lib/techlify-update/update-notifier/update-notifier.component.spec.ts +25 -0
  278. package/src/lib/techlify-update/update-notifier/update-notifier.component.ts +56 -0
  279. package/src/lib/techlify-update/update-notifier/update-notifier.module.ts +27 -0
  280. package/src/lib/techlify-update/update-view/update-view.component.html +63 -0
  281. package/src/lib/techlify-update/update-view/update-view.component.scss +19 -0
  282. package/src/lib/techlify-update/update-view/update-view.component.spec.ts +25 -0
  283. package/src/lib/techlify-update/update-view/update-view.component.ts +36 -0
  284. package/src/lib/techlify-update/update-view/update-view.module.ts +23 -0
  285. package/src/lib/timeline-filter/README.md +60 -0
  286. package/src/lib/timeline-filter/calculate-timeline.ts +109 -0
  287. package/{lib/timeline-filter/index.d.ts → src/lib/timeline-filter/index.ts} +3 -3
  288. package/src/lib/timeline-filter/timeline-filter-routing.module.ts +10 -0
  289. package/src/lib/timeline-filter/timeline-filter.component.html +54 -0
  290. package/src/lib/timeline-filter/timeline-filter.component.scss +0 -0
  291. package/src/lib/timeline-filter/timeline-filter.component.spec.ts +25 -0
  292. package/src/lib/timeline-filter/timeline-filter.component.ts +220 -0
  293. package/src/lib/timeline-filter/timeline-filter.module.ts +22 -0
  294. package/src/lib/timeline-filter/timeline.model.ts +17 -0
  295. package/src/lib/utility/date-utils.service.ts +51 -0
  296. package/{lib/utility/index.d.ts → src/lib/utility/index.ts} +3 -3
  297. package/src/lib/utility/num-items-selector.component.ts +29 -0
  298. package/src/lib/utility/num-items-selector.html +13 -0
  299. package/src/lib/utility/number-selector.component.ts +38 -0
  300. package/src/lib/utility/number-selector.html +6 -0
  301. package/src/lib/utility/utility.module.ts +20 -0
  302. package/{public-api.d.ts → src/public-api.ts} +123 -92
  303. package/src/test.ts +26 -0
  304. package/tsconfig.lib.json +26 -0
  305. package/tsconfig.lib.prod.json +10 -0
  306. package/tsconfig.spec.json +17 -0
  307. package/tslint.json +17 -0
  308. package/bundles/ngx-techlify-core.umd.js +0 -8449
  309. package/bundles/ngx-techlify-core.umd.js.map +0 -1
  310. package/bundles/ngx-techlify-core.umd.min.js +0 -2
  311. package/bundles/ngx-techlify-core.umd.min.js.map +0 -1
  312. package/esm2015/lib/action-popup/action-popup.component.js +0 -32
  313. package/esm2015/lib/action-popup/action-popup.model.js +0 -3
  314. package/esm2015/lib/action-popup/action-popup.module.js +0 -26
  315. package/esm2015/lib/action-popup/index.js +0 -3
  316. package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.js +0 -12
  317. package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model.component.js +0 -49
  318. package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model.module.js +0 -25
  319. package/esm2015/lib/audit-log/audit-log-list/audit-log-list-routing.module.js +0 -12
  320. package/esm2015/lib/audit-log/audit-log-list/audit-log-list.component.js +0 -132
  321. package/esm2015/lib/audit-log/audit-log-list/audit-log-list.module.js +0 -29
  322. package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.js +0 -12
  323. package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.js +0 -67
  324. package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.js +0 -25
  325. package/esm2015/lib/audit-log/audit-log-routing.module.js +0 -19
  326. package/esm2015/lib/audit-log/audit-log-view/audit-log-view-routing.module.js +0 -12
  327. package/esm2015/lib/audit-log/audit-log-view/audit-log-view.component.js +0 -60
  328. package/esm2015/lib/audit-log/audit-log-view/audit-log-view.module.js +0 -21
  329. package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.js +0 -12
  330. package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.component.js +0 -57
  331. package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.module.js +0 -21
  332. package/esm2015/lib/audit-log/audit-log.module.js +0 -20
  333. package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.js +0 -12
  334. package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.js +0 -35
  335. package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.js +0 -21
  336. package/esm2015/lib/base-model/index.js +0 -4
  337. package/esm2015/lib/base-model/techlify-form-component.class.js +0 -51
  338. package/esm2015/lib/base-model/techlify-listing-component.class.js +0 -41
  339. package/esm2015/lib/base-model/techlify-service.class.js +0 -64
  340. package/esm2015/lib/core/alert.service.js +0 -40
  341. package/esm2015/lib/core/api-prefix.interceptor.js +0 -28
  342. package/esm2015/lib/core/authentication.guard.js +0 -39
  343. package/esm2015/lib/core/authentication.service.js +0 -59
  344. package/esm2015/lib/core/cache.interceptor.js +0 -60
  345. package/esm2015/lib/core/config.service.js +0 -47
  346. package/esm2015/lib/core/core.module.js +0 -42
  347. package/esm2015/lib/core/credentials.service.js +0 -84
  348. package/esm2015/lib/core/dataManager.service.js +0 -121
  349. package/esm2015/lib/core/error-handler.interceptor.js +0 -53
  350. package/esm2015/lib/core/error-handler.service.js +0 -60
  351. package/esm2015/lib/core/form-validator.service.js +0 -23
  352. package/esm2015/lib/core/header.interceptor.js +0 -22
  353. package/esm2015/lib/core/http-cache.service.js +0 -110
  354. package/esm2015/lib/core/http.service.js +0 -82
  355. package/esm2015/lib/core/index.js +0 -21
  356. package/esm2015/lib/core/logger.service.js +0 -100
  357. package/esm2015/lib/core/route-reusable-strategy.js +0 -35
  358. package/esm2015/lib/core/snack/snack.component.js +0 -33
  359. package/esm2015/lib/core/snack/snack.module.js +0 -25
  360. package/esm2015/lib/core/storage.service.js +0 -37
  361. package/esm2015/lib/core/techlify-config.model.js +0 -28
  362. package/esm2015/lib/core/token.interceptor.js +0 -30
  363. package/esm2015/lib/data-table/data-table.component.js +0 -190
  364. package/esm2015/lib/data-table/data-table.model.js +0 -11
  365. package/esm2015/lib/data-table/data-table.module.js +0 -25
  366. package/esm2015/lib/data-table/index.js +0 -3
  367. package/esm2015/lib/date-validator.js +0 -10
  368. package/esm2015/lib/document-viewer/document-viewer.component.js +0 -58
  369. package/esm2015/lib/document-viewer/document-viewer.module.js +0 -25
  370. package/esm2015/lib/document-viewer/index.js +0 -3
  371. package/esm2015/lib/document-viewer/viewer-config.model.js +0 -3
  372. package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.js +0 -26
  373. package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.js +0 -72
  374. package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.js +0 -23
  375. package/esm2015/lib/email-subscription/email-subscription-for-user/index.js +0 -2
  376. package/esm2015/lib/email-subscription/email-subscription-routing.module.js +0 -12
  377. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.js +0 -12
  378. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.js +0 -102
  379. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.js +0 -28
  380. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.js +0 -2
  381. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.js +0 -28
  382. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.js +0 -153
  383. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.js +0 -27
  384. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.js +0 -2
  385. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.js +0 -12
  386. package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type.module.js +0 -15
  387. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.js +0 -12
  388. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.js +0 -99
  389. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.js +0 -27
  390. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.js +0 -2
  391. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.js +0 -28
  392. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.js +0 -155
  393. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.js +0 -29
  394. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.js +0 -2
  395. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.js +0 -12
  396. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.js +0 -50
  397. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.js +0 -25
  398. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.js +0 -2
  399. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.js +0 -12
  400. package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user.module.js +0 -15
  401. package/esm2015/lib/email-subscription/email-subscription.module.js +0 -15
  402. package/esm2015/lib/entity-files/entity-file-form/entity-file-form.component.js +0 -147
  403. package/esm2015/lib/entity-files/entity-file.service.js +0 -45
  404. package/esm2015/lib/entity-files/entity-files-view-all.component.js +0 -304
  405. package/esm2015/lib/entity-files/entity-files-view-all.module.js +0 -40
  406. package/esm2015/lib/entity-files/index.js +0 -3
  407. package/esm2015/lib/export-excel/export-excel-button/export-excel-button.component.js +0 -32
  408. package/esm2015/lib/export-excel/export-excel.module.js +0 -17
  409. package/esm2015/lib/file-dropper/file-dropper.component.js +0 -122
  410. package/esm2015/lib/file-dropper/file-dropper.model.js +0 -3
  411. package/esm2015/lib/file-dropper/file-dropper.module.js +0 -21
  412. package/esm2015/lib/file-dropper/index.js +0 -3
  413. package/esm2015/lib/import-csv/data-import/data-import.component.js +0 -18
  414. package/esm2015/lib/import-csv/failed-items-list/failed-items-list.component.js +0 -33
  415. package/esm2015/lib/import-csv/field-mapping/field-mapping.component.js +0 -148
  416. package/esm2015/lib/import-csv/import-csv-config.js +0 -2
  417. package/esm2015/lib/import-csv/import-csv.component.js +0 -196
  418. package/esm2015/lib/import-csv/import-csv.module.js +0 -46
  419. package/esm2015/lib/import-csv/import-history-list/import-history-list.component.js +0 -71
  420. package/esm2015/lib/import-csv/import-success/import-success.component.js +0 -19
  421. package/esm2015/lib/loader/index.js +0 -2
  422. package/esm2015/lib/loader/loader.component.js +0 -22
  423. package/esm2015/lib/loader/loader.module.js +0 -21
  424. package/esm2015/lib/login-history-for-user/login-history-for-user-routing.module.js +0 -20
  425. package/esm2015/lib/login-history-for-user/login-history-for-user.component.js +0 -88
  426. package/esm2015/lib/login-history-for-user/login-history-for-user.module.js +0 -27
  427. package/esm2015/lib/material.module.js +0 -62
  428. package/esm2015/lib/note/comment-form/comment-form.component.js +0 -73
  429. package/esm2015/lib/note/index.js +0 -4
  430. package/esm2015/lib/note/note-form/note-form.component.js +0 -81
  431. package/esm2015/lib/note/note-list/note-list.component.js +0 -151
  432. package/esm2015/lib/note/note.module.js +0 -36
  433. package/esm2015/lib/note/note.service.js +0 -31
  434. package/esm2015/lib/read-more/read-more.component.js +0 -43
  435. package/esm2015/lib/read-more/read-more.module.js +0 -21
  436. package/esm2015/lib/searchable-selector/index.js +0 -3
  437. package/esm2015/lib/searchable-selector/mat-select-infinite-scroll.directive.js +0 -81
  438. package/esm2015/lib/searchable-selector/searchable-selector.component.js +0 -307
  439. package/esm2015/lib/searchable-selector/searchable-selector.module.js +0 -28
  440. package/esm2015/lib/techlify-feature/on-off-switch/on-off-switch.component.js +0 -27
  441. package/esm2015/lib/techlify-feature/techlify-feature-enabled.directive.js +0 -78
  442. package/esm2015/lib/techlify-feature/techlify-feature-listing.component.js +0 -177
  443. package/esm2015/lib/techlify-feature/techlify-feature.module.js +0 -30
  444. package/esm2015/lib/techlify-feature/techlify-feature.routing.js +0 -12
  445. package/esm2015/lib/techlify-feature/techlify-feature.service.js +0 -28
  446. package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.js +0 -15
  447. package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.js +0 -269
  448. package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.js +0 -25
  449. package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.js +0 -168
  450. package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.js +0 -29
  451. package/esm2015/lib/techlify-update/techlify-update-form/techlify-update-form.component.js +0 -114
  452. package/esm2015/lib/techlify-update/techlify-update-form/techlify-update-form.module.js +0 -28
  453. package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.js +0 -22
  454. package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history.component.js +0 -143
  455. package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history.module.js +0 -28
  456. package/esm2015/lib/techlify-update/techlify-update-routing.module.js +0 -22
  457. package/esm2015/lib/techlify-update/techlify-update.module.js +0 -30
  458. package/esm2015/lib/techlify-update/techlify-update.service.js +0 -43
  459. package/esm2015/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.js +0 -161
  460. package/esm2015/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.js +0 -82
  461. package/esm2015/lib/techlify-update/update-notifier/update-notifier.component.js +0 -62
  462. package/esm2015/lib/techlify-update/update-notifier/update-notifier.module.js +0 -29
  463. package/esm2015/lib/techlify-update/update-view/update-view.component.js +0 -36
  464. package/esm2015/lib/techlify-update/update-view/update-view.module.js +0 -24
  465. package/esm2015/lib/timeline-filter/calculate-timeline.js +0 -102
  466. package/esm2015/lib/timeline-filter/index.js +0 -4
  467. package/esm2015/lib/timeline-filter/timeline-filter-routing.module.js +0 -12
  468. package/esm2015/lib/timeline-filter/timeline-filter.component.js +0 -213
  469. package/esm2015/lib/timeline-filter/timeline-filter.module.js +0 -23
  470. package/esm2015/lib/timeline-filter/timeline.model.js +0 -18
  471. package/esm2015/lib/utility/date-utils.service.js +0 -48
  472. package/esm2015/lib/utility/index.js +0 -4
  473. package/esm2015/lib/utility/num-items-selector.component.js +0 -30
  474. package/esm2015/lib/utility/number-selector.component.js +0 -38
  475. package/esm2015/lib/utility/utility.module.js +0 -21
  476. package/esm2015/ngx-techlify-core.js +0 -60
  477. package/esm2015/public-api.js +0 -96
  478. package/fesm2015/ngx-techlify-core.js +0 -7150
  479. package/fesm2015/ngx-techlify-core.js.map +0 -1
  480. package/lib/action-popup/action-popup.component.d.ts +0 -14
  481. package/lib/action-popup/action-popup.module.d.ts +0 -2
  482. package/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.d.ts +0 -2
  483. package/lib/audit-log/audit-log-for-model/audit-log-for-model.component.d.ts +0 -12
  484. package/lib/audit-log/audit-log-for-model/audit-log-for-model.module.d.ts +0 -2
  485. package/lib/audit-log/audit-log-list/audit-log-list-routing.module.d.ts +0 -2
  486. package/lib/audit-log/audit-log-list/audit-log-list.component.d.ts +0 -32
  487. package/lib/audit-log/audit-log-list/audit-log-list.module.d.ts +0 -2
  488. package/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.d.ts +0 -2
  489. package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.d.ts +0 -19
  490. package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.d.ts +0 -2
  491. package/lib/audit-log/audit-log-routing.module.d.ts +0 -2
  492. package/lib/audit-log/audit-log-view/audit-log-view-routing.module.d.ts +0 -2
  493. package/lib/audit-log/audit-log-view/audit-log-view.component.d.ts +0 -17
  494. package/lib/audit-log/audit-log-view/audit-log-view.module.d.ts +0 -2
  495. package/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.d.ts +0 -2
  496. package/lib/audit-log/audit-log-view-model/audit-log-view-model.component.d.ts +0 -15
  497. package/lib/audit-log/audit-log-view-model/audit-log-view-model.module.d.ts +0 -2
  498. package/lib/audit-log/audit-log.module.d.ts +0 -2
  499. package/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.d.ts +0 -2
  500. package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.d.ts +0 -11
  501. package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.d.ts +0 -2
  502. package/lib/base-model/index.d.ts +0 -3
  503. package/lib/base-model/techlify-form-component.class.d.ts +0 -43
  504. package/lib/base-model/techlify-listing-component.class.d.ts +0 -47
  505. package/lib/base-model/techlify-service.class.d.ts +0 -52
  506. package/lib/core/alert.service.d.ts +0 -12
  507. package/lib/core/api-prefix.interceptor.d.ts +0 -11
  508. package/lib/core/authentication.guard.d.ts +0 -10
  509. package/lib/core/authentication.service.d.ts +0 -23
  510. package/lib/core/cache.interceptor.d.ts +0 -21
  511. package/lib/core/config.service.d.ts +0 -19
  512. package/lib/core/core.module.d.ts +0 -3
  513. package/lib/core/credentials.service.d.ts +0 -36
  514. package/lib/core/error-handler.interceptor.d.ts +0 -14
  515. package/lib/core/error-handler.service.d.ts +0 -14
  516. package/lib/core/form-validator.service.d.ts +0 -8
  517. package/lib/core/header.interceptor.d.ts +0 -8
  518. package/lib/core/http-cache.service.d.ts +0 -54
  519. package/lib/core/http.service.d.ts +0 -56
  520. package/lib/core/logger.service.d.ts +0 -85
  521. package/lib/core/route-reusable-strategy.d.ts +0 -13
  522. package/lib/core/snack/snack.component.d.ts +0 -8
  523. package/lib/core/snack/snack.module.d.ts +0 -2
  524. package/lib/core/storage.service.d.ts +0 -15
  525. package/lib/core/techlify-config.model.d.ts +0 -18
  526. package/lib/core/token.interceptor.d.ts +0 -11
  527. package/lib/data-table/data-table.component.d.ts +0 -60
  528. package/lib/data-table/data-table.module.d.ts +0 -2
  529. package/lib/date-validator.d.ts +0 -1
  530. package/lib/document-viewer/document-viewer.component.d.ts +0 -16
  531. package/lib/document-viewer/document-viewer.module.d.ts +0 -2
  532. package/lib/document-viewer/viewer-config.model.d.ts +0 -5
  533. package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.d.ts +0 -7
  534. package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.d.ts +0 -17
  535. package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.d.ts +0 -2
  536. package/lib/email-subscription/email-subscription-routing.module.d.ts +0 -2
  537. package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.d.ts +0 -2
  538. package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.d.ts +0 -32
  539. package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.d.ts +0 -2
  540. package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.d.ts +0 -9
  541. package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.d.ts +0 -30
  542. package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.d.ts +0 -2
  543. package/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.d.ts +0 -1
  544. package/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.d.ts +0 -2
  545. package/lib/email-subscription/email-subscription-type/email-subscription-type.module.d.ts +0 -2
  546. package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.d.ts +0 -2
  547. package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.d.ts +0 -32
  548. package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.d.ts +0 -2
  549. package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.d.ts +0 -9
  550. package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.d.ts +0 -32
  551. package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.d.ts +0 -2
  552. package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.d.ts +0 -2
  553. package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.d.ts +0 -13
  554. package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.d.ts +0 -2
  555. package/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.d.ts +0 -2
  556. package/lib/email-subscription/email-subscription-user/email-subscription-user.module.d.ts +0 -2
  557. package/lib/email-subscription/email-subscription.module.d.ts +0 -2
  558. package/lib/entity-files/entity-file-form/entity-file-form.component.d.ts +0 -38
  559. package/lib/entity-files/entity-file.service.d.ts +0 -11
  560. package/lib/entity-files/entity-files-view-all.component.d.ts +0 -65
  561. package/lib/entity-files/entity-files-view-all.module.d.ts +0 -2
  562. package/lib/entity-files/index.d.ts +0 -2
  563. package/lib/export-excel/export-excel-button/export-excel-button.component.d.ts +0 -8
  564. package/lib/export-excel/export-excel.module.d.ts +0 -2
  565. package/lib/file-dropper/file-dropper.component.d.ts +0 -33
  566. package/lib/file-dropper/file-dropper.model.d.ts +0 -10
  567. package/lib/file-dropper/file-dropper.module.d.ts +0 -2
  568. package/lib/import-csv/data-import/data-import.component.d.ts +0 -6
  569. package/lib/import-csv/failed-items-list/failed-items-list.component.d.ts +0 -12
  570. package/lib/import-csv/field-mapping/field-mapping.component.d.ts +0 -34
  571. package/lib/import-csv/import-csv-config.d.ts +0 -17
  572. package/lib/import-csv/import-csv.component.d.ts +0 -33
  573. package/lib/import-csv/import-csv.module.d.ts +0 -2
  574. package/lib/import-csv/import-history-list/import-history-list.component.d.ts +0 -21
  575. package/lib/import-csv/import-success/import-success.component.d.ts +0 -8
  576. package/lib/loader/loader.component.d.ts +0 -8
  577. package/lib/loader/loader.module.d.ts +0 -2
  578. package/lib/login-history-for-user/login-history-for-user-routing.module.d.ts +0 -2
  579. package/lib/login-history-for-user/login-history-for-user.component.d.ts +0 -23
  580. package/lib/login-history-for-user/login-history-for-user.module.d.ts +0 -2
  581. package/lib/material.module.d.ts +0 -2
  582. package/lib/note/comment-form/comment-form.component.d.ts +0 -22
  583. package/lib/note/note-form/note-form.component.d.ts +0 -27
  584. package/lib/note/note-list/note-list.component.d.ts +0 -28
  585. package/lib/note/note.module.d.ts +0 -2
  586. package/lib/note/note.service.d.ts +0 -9
  587. package/lib/read-more/read-more.component.d.ts +0 -12
  588. package/lib/read-more/read-more.module.d.ts +0 -2
  589. package/lib/searchable-selector/index.d.ts +0 -2
  590. package/lib/searchable-selector/mat-select-infinite-scroll.directive.d.ts +0 -23
  591. package/lib/searchable-selector/searchable-selector.component.d.ts +0 -81
  592. package/lib/searchable-selector/searchable-selector.module.d.ts +0 -2
  593. package/lib/techlify-feature/on-off-switch/on-off-switch.component.d.ts +0 -9
  594. package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +0 -17
  595. package/lib/techlify-feature/techlify-feature-listing.component.d.ts +0 -37
  596. package/lib/techlify-feature/techlify-feature.module.d.ts +0 -2
  597. package/lib/techlify-feature/techlify-feature.routing.d.ts +0 -2
  598. package/lib/techlify-feature/techlify-feature.service.d.ts +0 -8
  599. package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.d.ts +0 -12
  600. package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.d.ts +0 -76
  601. package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.d.ts +0 -2
  602. package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.d.ts +0 -58
  603. package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.d.ts +0 -2
  604. package/lib/techlify-update/techlify-update-form/techlify-update-form.component.d.ts +0 -30
  605. package/lib/techlify-update/techlify-update-form/techlify-update-form.module.d.ts +0 -2
  606. package/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.d.ts +0 -2
  607. package/lib/techlify-update/techlify-update-history/techlify-update-history.component.d.ts +0 -31
  608. package/lib/techlify-update/techlify-update-history/techlify-update-history.module.d.ts +0 -2
  609. package/lib/techlify-update/techlify-update-routing.module.d.ts +0 -2
  610. package/lib/techlify-update/techlify-update.module.d.ts +0 -2
  611. package/lib/techlify-update/techlify-update.service.d.ts +0 -13
  612. package/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.d.ts +0 -31
  613. package/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.d.ts +0 -25
  614. package/lib/techlify-update/update-notifier/update-notifier.component.d.ts +0 -16
  615. package/lib/techlify-update/update-notifier/update-notifier.module.d.ts +0 -2
  616. package/lib/techlify-update/update-view/update-view.component.d.ts +0 -14
  617. package/lib/techlify-update/update-view/update-view.module.d.ts +0 -2
  618. package/lib/timeline-filter/calculate-timeline.d.ts +0 -6
  619. package/lib/timeline-filter/timeline-filter-routing.module.d.ts +0 -2
  620. package/lib/timeline-filter/timeline-filter.component.d.ts +0 -61
  621. package/lib/timeline-filter/timeline-filter.module.d.ts +0 -2
  622. package/lib/timeline-filter/timeline.model.d.ts +0 -17
  623. package/lib/utility/date-utils.service.d.ts +0 -21
  624. package/lib/utility/num-items-selector.component.d.ts +0 -16
  625. package/lib/utility/number-selector.component.d.ts +0 -20
  626. package/lib/utility/utility.module.d.ts +0 -2
  627. package/ngx-techlify-core.d.ts +0 -59
  628. package/ngx-techlify-core.metadata.json +0 -1
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { EmailSubscriptionUserListFilterComponent } from './email-subscription-user-list-filter.component';
4
+
5
+ describe('EmailSubscriptionUserListFilterComponent', () => {
6
+ let component: EmailSubscriptionUserListFilterComponent;
7
+ let fixture: ComponentFixture<EmailSubscriptionUserListFilterComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [EmailSubscriptionUserListFilterComponent]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(EmailSubscriptionUserListFilterComponent);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });
@@ -0,0 +1,56 @@
1
+ import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core';
2
+ import { FormGroup, FormBuilder } from '@angular/forms';
3
+ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
4
+ import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
5
+
6
+ @UntilDestroy()
7
+ @Component({
8
+ selector: 'app-email-subscription-user-list-filter',
9
+ templateUrl: './email-subscription-user-list-filter.component.html',
10
+ styleUrls: ['./email-subscription-user-list-filter.component.scss']
11
+ })
12
+ export class EmailSubscriptionUserListFilterComponent implements OnInit {
13
+
14
+ esUserFilterForm: FormGroup;
15
+
16
+ @Output() valueChange = new EventEmitter();
17
+
18
+ constructor(private fb: FormBuilder) {
19
+ this.createForm();
20
+ }
21
+
22
+ private createForm() {
23
+
24
+ //TODO: Finialize and add more validations.
25
+ this.esUserFilterForm = this.fb.group({
26
+ user_id: [''],
27
+ email_type_id: [''],
28
+ });
29
+ }
30
+
31
+ ngOnInit(): void {
32
+
33
+ this.esUserFilterForm.valueChanges.pipe(
34
+ debounceTime(500),
35
+ distinctUntilChanged(),
36
+ untilDestroyed(this)
37
+ ).subscribe(value => {
38
+ this.valueChange.emit(value);
39
+ })
40
+ }
41
+
42
+
43
+ resetFieldValue(field: string) {
44
+ this.esUserFilterForm.get(field).setValue('');
45
+ }
46
+
47
+ getFieldValue(field: string) {
48
+ return this.esUserFilterForm.get(field).value;
49
+ }
50
+
51
+
52
+ ngOnDestroy() {
53
+
54
+ }
55
+
56
+ }
@@ -0,0 +1,24 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ import { EmailSubscriptionUserListFilterRoutingModule } from './email-subscription-user-list-filter-routing.module';
5
+ import { EmailSubscriptionUserListFilterComponent } from './email-subscription-user-list-filter.component';
6
+ import { MaterialModule } from '../../../material.module';
7
+ import { SearchableSelectorModule } from '../../../searchable-selector/searchable-selector.module';
8
+ import { FlexLayoutModule } from '@angular/flex-layout';
9
+ import { ReactiveFormsModule } from '@angular/forms';
10
+
11
+
12
+ @NgModule({
13
+ declarations: [EmailSubscriptionUserListFilterComponent],
14
+ imports: [
15
+ CommonModule,
16
+ MaterialModule,
17
+ FlexLayoutModule,
18
+ ReactiveFormsModule,
19
+ SearchableSelectorModule,
20
+ EmailSubscriptionUserListFilterRoutingModule
21
+ ],
22
+ exports: [EmailSubscriptionUserListFilterComponent]
23
+ })
24
+ export class EmailSubscriptionUserListFilterModule { }
@@ -1 +1 @@
1
- export * from './email-subscription-user-list-filter.component';
1
+ export * from './email-subscription-user-list-filter.component';
@@ -0,0 +1,11 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { Routes, RouterModule } from '@angular/router';
3
+
4
+
5
+ const routes: Routes = [];
6
+
7
+ @NgModule({
8
+ imports: [RouterModule.forChild(routes)],
9
+ exports: [RouterModule]
10
+ })
11
+ export class EmailSubscriptionUserRoutingModule { }
@@ -0,0 +1,14 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ import { EmailSubscriptionUserRoutingModule } from './email-subscription-user-routing.module';
5
+
6
+
7
+ @NgModule({
8
+ declarations: [],
9
+ imports: [
10
+ CommonModule,
11
+ EmailSubscriptionUserRoutingModule
12
+ ]
13
+ })
14
+ export class EmailSubscriptionUserModule { }
@@ -0,0 +1,15 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ import { EmailSubscriptionRoutingModule } from './email-subscription-routing.module';
5
+
6
+
7
+
8
+ @NgModule({
9
+ declarations: [],
10
+ imports: [
11
+ CommonModule,
12
+ EmailSubscriptionRoutingModule
13
+ ]
14
+ })
15
+ export class EmailSubscriptionModule { }
@@ -0,0 +1,45 @@
1
+ <form [formGroup]="entityFileGroup" (ngSubmit)="submit()">
2
+ <div fxLayout="column" class="mat-typography">
3
+ <div mat-dialog-title class="text-center">
4
+ <div>Entity File</div>
5
+ </div>
6
+ <div mat-dialog-content fxLayout="column" fxLayoutAlign.="start">
7
+ <ng-container *ngIf="!hideTitleAndDetails">
8
+ <mat-form-field>
9
+ <input type="text" matInput formControlName="title" placeholder="Title" autocomplete="off">
10
+ </mat-form-field>
11
+ <mat-form-field>
12
+ <textarea matInput formControlName="details" placeholder="Details" autocomplete="off"></textarea>
13
+ </mat-form-field>
14
+ </ng-container>
15
+ <ng-container *ngIf="useTechlifyTags">
16
+ <mat-form-field>
17
+ <mat-label>Tag</mat-label>
18
+ <app-techlify-tagger-tag-form-field modelType="entity-file" formControlName="tag_ids"
19
+ [modelId]="entityFileGroup.get('id').value" placeholder="Enter new tag"></app-techlify-tagger-tag-form-field>
20
+ </mat-form-field>
21
+ </ng-container>
22
+ <ng-template #fileUpload>
23
+ <section fxFlex="100%">
24
+ <div>Entity File*</div>
25
+ <app-file-dropper [config]="fileConfig" (fileChanged)="fileChanged($event)" [fileArray]="fileList">
26
+ </app-file-dropper>
27
+ <div class="text-danger" *ngIf="isFieldValid('url')">
28
+ {{getErrorMessage("url")}}
29
+ </div>
30
+ </section>
31
+ </ng-template>
32
+ <div fxFlex="100%" class="mt-2" *ngIf="entityFileGroup.get('url').value;else fileUpload;">
33
+ <app-document-viewer [file]="entityFileGroup.get('file').value" [fileUrl]="entityFileGroup.get('url').value"
34
+ [config]="this.viewerConfig" (remove)="removeFile()" [disableEdit]="updateMode">
35
+ </app-document-viewer>
36
+ </div>
37
+ <div class="mt-4 mb-2" fxLayout="row" fxLayoutGap="30px" fxLayoutAlign="end" fxFlex="100%">
38
+ <button mat-raised-button type="button" (click)="dialogRef.close()">
39
+ Cancel
40
+ </button>
41
+ <button mat-raised-button type="submit" color="primary">Save</button>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </form>
@@ -0,0 +1,172 @@
1
+ import { Component, OnInit, Inject } from "@angular/core";
2
+ import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
3
+ import { FormGroup, FormBuilder, Validators } from "@angular/forms";
4
+ import { EntityFileService } from '../entity-file.service';
5
+ import { FileDropperConfig } from '../../file-dropper/file-dropper.model';
6
+ import { ViewerConfig } from '../../document-viewer/viewer-config.model';
7
+ import { FormValidatorService } from '../../core/form-validator.service';
8
+ import { AlertService } from "../../core/alert.service";
9
+
10
+ const errorMessages: any = {
11
+ url: {
12
+ required: "File is required"
13
+ },
14
+ };
15
+
16
+ @Component({
17
+ selector: 'entity-file-form',
18
+ templateUrl: './entity-file-form.component.html',
19
+ styleUrls: ['./entity-file-form.component.css']
20
+ })
21
+ export class EntityFileFormComponent implements OnInit {
22
+
23
+ entityFileGroup: FormGroup;
24
+ assignmentFileFirstAttempt: boolean;
25
+ updateMode: boolean;
26
+ fileConfig: FileDropperConfig;
27
+ fileList: any[] = [];
28
+ viewerConfig: ViewerConfig;
29
+ hideTitleAndDetails: boolean;
30
+
31
+ /**
32
+ * Should we allow tagging entity-files?
33
+ */
34
+ useTechlifyTags: boolean = false;
35
+
36
+ constructor(
37
+ public dialogRef: MatDialogRef<EntityFileFormComponent>,
38
+ @Inject(MAT_DIALOG_DATA) public data: any,
39
+ private formValidatorService: FormValidatorService,
40
+ private fb: FormBuilder,
41
+ private entityFileService: EntityFileService,
42
+ private alertService: AlertService
43
+ ) {
44
+ this.createForm();
45
+ }
46
+
47
+ /** Method to create a form **/
48
+ private createForm() {
49
+ //TODO: Finialize and add more validations.
50
+ this.entityFileGroup = this.fb.group({
51
+ id: [''],
52
+ title: [''],
53
+ details: [''],
54
+ entity_type: [''],
55
+ entity_id: [],
56
+ file: ['', Validators.required],
57
+ url: ['', Validators.required],
58
+ file_size: ['', Validators.required],
59
+ tag_ids: [[]]
60
+ });
61
+ }
62
+
63
+ ngOnInit(): void {
64
+ if (this.data.entity) {
65
+ this.entityFileGroup.get('entity_type').setValue(this.data.entity.entity_type);
66
+ this.entityFileGroup.get('entity_id').setValue(this.data.entity.entity_id);
67
+ }
68
+ if (this.data.file) {
69
+ this.updateMode = true;
70
+ this.entityFileGroup.patchValue(this.data.file);
71
+ }
72
+
73
+ if (this.data?.hideTitleAndDetails) {
74
+ this.hideTitleAndDetails = this.data?.hideTitleAndDetails;
75
+ }
76
+
77
+ if (this.data?.useTechlifyTags) {
78
+ this.useTechlifyTags = this.data?.useTechlifyTags;
79
+ }
80
+
81
+ //File dropper config
82
+ this.fileConfig = {
83
+ fileId: "subjectFile",
84
+ containerId: "subjectFileContainer",
85
+ styles: {
86
+ height: "200px"
87
+ },
88
+ multiple: false,
89
+ acceptFile: "*",
90
+ maxSize: 10,
91
+ acceptFileText: "All Files"
92
+ };
93
+
94
+ this.viewerConfig = {
95
+ viewerStyle: {
96
+ height: '200px',
97
+ width: '100%'
98
+ }
99
+ }
100
+ }
101
+
102
+
103
+ //Method to trigger submit
104
+ async submit() {
105
+ this.assignmentFileFirstAttempt = true;
106
+ if (!this.entityFileGroup.valid) {
107
+ return;
108
+ }
109
+ const model = this.entityFileGroup.value;
110
+
111
+ if (this.hideTitleAndDetails) {
112
+ model.title = model.file;
113
+ }
114
+ model.tag_ids = model.tag_ids.toString();
115
+
116
+ const result: any = this.updateMode
117
+ ? await this.entityFileService.updateEntityFile(model)
118
+ : await this.entityFileService.createEntityFile(model);
119
+ this.dialogRef.close(result.item);
120
+ this.alertService.addAlert(
121
+ "File submitted successfully",
122
+ "success"
123
+ );
124
+
125
+ }
126
+
127
+ async fileChanged(event: any) {
128
+ this.fileList = event;
129
+
130
+ if (this.fileList.length > 0) {
131
+
132
+ const result: any = await this.entityFileService.uploadEntityFile(
133
+ this.fileList[0],
134
+ );
135
+ this.entityFileGroup.patchValue(result.item);;
136
+ this.fileList = [];
137
+ }
138
+ }
139
+
140
+
141
+ async removeFile() {
142
+ if (this.entityFileGroup.value.file) {
143
+ try {
144
+ this.entityFileGroup.patchValue({
145
+ file: "",
146
+ url: ""
147
+ });
148
+ } catch (error) {
149
+ this.alertService.addAlert("Unable to remove file, try later", "warn");
150
+ }
151
+ }
152
+ }
153
+
154
+ /**Method to evaluate form fields*/
155
+ isFieldValid(field: string) {
156
+ return this.formValidatorService.isFieldValid(
157
+ field,
158
+ this.entityFileGroup,
159
+ this.assignmentFileFirstAttempt
160
+ );
161
+ }
162
+
163
+ /**Method to find error in form fields*/
164
+ getErrorMessage(field: string) {
165
+ return this.formValidatorService.getErrorMessage(
166
+ field,
167
+ this.entityFileGroup,
168
+ errorMessages
169
+ );
170
+ }
171
+
172
+ }
@@ -0,0 +1,46 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { HttpService } from '../core/http.service';
3
+
4
+ @Injectable({
5
+ providedIn: 'root'
6
+ })
7
+ export class EntityFileService {
8
+
9
+ constructor(private http: HttpService) { }
10
+
11
+ getEntityFiles(filters: any) {
12
+ return this.http.get(`api/entity-files`, { params: filters }).toPromise();
13
+ }
14
+
15
+ createEntityFile(model: any) {
16
+ return this.http.post("api/entity-files", model).toPromise();
17
+ }
18
+
19
+ updateEntityFile(model: any) {
20
+ return this.http.put(`api/entity-files/${model.id}`, model).toPromise();
21
+ }
22
+
23
+ deleteEntityFile(model: any) {
24
+ return this.http.delete(`api/entity-files/${model.id}`).toPromise();
25
+ }
26
+
27
+ uploadEntityFile(file: File, params?: any) {
28
+ const formData: FormData = new FormData();
29
+ formData.append("fileData", file, file.name);
30
+ if (params?.entity_id) {
31
+ formData.append('entity_id', params.entity_id);
32
+ formData.append('entity_type', params.entity_type);
33
+ }
34
+ return this.http
35
+ .skipHeader()
36
+ .post(
37
+ "api/entity-files-upload",
38
+ formData,
39
+ ).toPromise();
40
+ }
41
+
42
+ bulkUpdate(model) {
43
+ return this.http.post(`api/entity-files/bulk-update`, model).toPromise();
44
+ }
45
+
46
+ }
@@ -0,0 +1,236 @@
1
+ <mat-drawer-container>
2
+ <mat-drawer style="z-index: 1;" fxLayout="column" [fxHide]="!this.documentIds.length" fxHide.xs fxHide.sm fxHide.lt-md
3
+ mode="side" position="end" opened>
4
+ <mat-card class="update_card" *ngIf="this.documentIds.length">
5
+ <mat-card-header>
6
+ <mat-card-title>
7
+ <div mat-dialog-title class="mt-2 ml-2 text-center">
8
+ <div>Update Selected Rows</div>
9
+ </div>
10
+ </mat-card-title>
11
+ </mat-card-header>
12
+ <mat-card-content fxLayout="column">
13
+ <form [formGroup]="updateRowForm">
14
+ <div fxLayout="column">
15
+
16
+ <mat-form-field fxFlex="100%" class="px-1">
17
+ <input matInput formControlName="title" placeholder="Title" autocomplete="off" />
18
+ <button mat-button *ngIf="updateRowForm.get('title').value || updateRowForm.get('title').value===0"
19
+ matSuffix mat-icon-button style="color:red" (click)="resetFieldValueOfRow('title', $event)">
20
+ <mat-icon>close</mat-icon>
21
+ </button>
22
+ <button mat-button matSuffix mat-icon-button type="button" style="color:green" *ngIf="(updateRowForm.get('title').value || updateRowForm.get('title').value===0)
23
+ && updateRowForm.get('title').valid" (click)="bulkUpdate('title')">
24
+ <mat-icon>done</mat-icon>
25
+ </button>
26
+ </mat-form-field>
27
+
28
+ <mat-form-field fxFlex="100%" class="px-1">
29
+ <textarea matInput formControlName="details" placeholder="Details" autocomplete="off"></textarea>
30
+ <button mat-button *ngIf="updateRowForm.get('details').value || updateRowForm.get('details').value===0"
31
+ matSuffix mat-icon-button style="color:red" (click)="resetFieldValueOfRow('details', $event)">
32
+ <mat-icon>close</mat-icon>
33
+ </button>
34
+ <button mat-button matSuffix mat-icon-button type="button" style="color:green" *ngIf="(updateRowForm.get('details').value || updateRowForm.get('details').value===0)
35
+ && updateRowForm.get('details').valid" (click)="bulkUpdate('details')">
36
+ <mat-icon>done</mat-icon>
37
+ </button>
38
+ </mat-form-field>
39
+
40
+ <ng-container *ngIf="useTechlifyTags">
41
+ <mat-form-field>
42
+ <mat-label>Tag</mat-label>
43
+ <app-techlify-tagger-tag-form-field modelType="entity-file" formControlName="tag_ids"
44
+ placeholder="Enter new tag">
45
+ </app-techlify-tagger-tag-form-field>
46
+ <button mat-button *ngIf="updateRowForm.get('tag_ids').value || updateRowForm.get('tag_ids').value===0"
47
+ matSuffix mat-icon-button style="color:red" (click)="resetFieldValueOfRow('tag_ids', $event)">
48
+ <mat-icon>close</mat-icon>
49
+ </button>
50
+ <button mat-button matSuffix mat-icon-button type="button" style="color:green" *ngIf="(updateRowForm.get('tag_ids').value || updateRowForm.get('tag_ids').value===0)
51
+ && updateRowForm.get('tag_ids').valid" (click)="bulkUpdate('tag_ids')">
52
+ <mat-icon>done</mat-icon>
53
+ </button>
54
+ </mat-form-field>
55
+ </ng-container>
56
+ </div>
57
+ </form>
58
+ </mat-card-content>
59
+ </mat-card>
60
+
61
+ </mat-drawer>
62
+
63
+ <mat-drawer-content>
64
+ <div class="mat-typography" *ngIf="!displayMode">
65
+ <div fxLayout="row" fxLayoutGap="1rem">
66
+ <mat-card [fxFlex]="this.documentIds.length ? '100%' : '70%'">
67
+ <mat-card-title>
68
+ <div fxLayout fxLayoutGap="1rem">
69
+ <h3 class="font-weight-bold primary-color" fxLayout="center center">
70
+ <mat-icon>
71
+ <span class="material-icons">
72
+ description
73
+ </span>
74
+ </mat-icon>
75
+ {{title}}s
76
+ </h3>
77
+ <div>
78
+ <button type="button" class="mx-1" mat-raised-button color="primary" (click)="addEntityFile()"
79
+ *ngIf="!viewOnly">
80
+ <mat-icon>
81
+ <span class="material-icons">
82
+ add_circle_outline
83
+ </span>
84
+ </mat-icon>
85
+ {{title}}
86
+ </button>
87
+ </div>
88
+ </div>
89
+ </mat-card-title>
90
+ <mat-card-subtitle>
91
+ <form [formGroup]="filterFormGroup" style="font-size: 10px;" fxLayout fxLayoutGap="1rem">
92
+ <mat-form-field *ngIf="!removeSearch" appearance="outline">
93
+ <mat-label>Search</mat-label>
94
+ <input type="text" matInput formControlName="title" placeholder="Search" name="title"
95
+ autocomplete="off" />
96
+ <button mat-button *ngIf="filters.title" matSuffix mat-icon-button
97
+ (click)="resetFieldValue($event, 'title')">
98
+ <mat-icon>close</mat-icon>
99
+ </button>
100
+ </mat-form-field>
101
+ <mat-form-field appearance="outline" *ngIf="useTechlifyTags && !isWorking">
102
+ <mat-label>Tag</mat-label>
103
+ <app-searchable-selector formControlName="tag_ids" apiUrl="api/techlify-tagger-tags" [multiple]="true"
104
+ placeHolder="Tag">
105
+ </app-searchable-selector>
106
+ <button mat-icon-button matSuffix *ngIf="filterFormGroup.get('tag_ids').value.length"
107
+ (click)="resetFieldValue($event, 'tag_ids')">
108
+ <mat-icon>close</mat-icon>
109
+ </button>
110
+ </mat-form-field>
111
+ <button mat-icon-button (click)="reload()" *ngIf="isReload" type="button" matTooltip="Refresh">
112
+ <mat-icon>
113
+ <span class="material-icons">
114
+ refresh
115
+ </span>
116
+ </mat-icon>
117
+ </button>
118
+ </form>
119
+ </mat-card-subtitle>
120
+ <mat-card-content class="entity-file-card">
121
+ <table mat-table [dataSource]="dataSource" class="w-100" matSort multiTemplateDataRows infiniteScroll
122
+ [infiniteScrollDistance]="1.5" [infiniteScrollThrottle]="50" (scrolled)="onScroll()">
123
+
124
+ <!-- Select Column -->
125
+ <ng-container matColumnDef="select">
126
+ <th mat-header-cell *matHeaderCellDef style="width:30px">
127
+ <mat-checkbox name="employee" [(ngModel)]="isAllSelected" (change)="selectAll()">
128
+ </mat-checkbox>
129
+ </th>
130
+ <td mat-cell *matCellDef="let element" style="width:30px">
131
+ <mat-checkbox name="employee[{{element?.id}}]" (click)="$event.stopPropagation()"
132
+ [(ngModel)]="element.is_selected" (change)="employeeListModified($event, element)"
133
+ [disabled]="!entityFiles.length">
134
+ </mat-checkbox>
135
+ </td>
136
+ </ng-container>
137
+
138
+ <!-- Index Column -->
139
+ <ng-container matColumnDef="index">
140
+ <th mat-header-cell *matHeaderCellDef> # </th>
141
+ <td mat-cell *matCellDef="let element; let i = dataIndex"> {{ i+1 }} </td>
142
+ </ng-container>
143
+
144
+ <!-- Title Column -->
145
+ <ng-container matColumnDef="title">
146
+ <th mat-header-cell *matHeaderCellDef> Title </th>
147
+ <td mat-cell *matCellDef="let element">
148
+ <div>
149
+ <span>
150
+ {{element.title}}
151
+ </span>
152
+ <span>
153
+ <a href="{{element.url}}" target="_blank" class="text-decoration-none text-muted">
154
+ <button mat-icon-button type="button">
155
+ <mat-icon>download</mat-icon>
156
+ </button>
157
+ </a>
158
+ </span>
159
+ </div>
160
+ </td>
161
+ </ng-container>
162
+
163
+ <!-- Details Column -->
164
+ <ng-container matColumnDef="details">
165
+ <th mat-header-cell *matHeaderCellDef> Details </th>
166
+ <td mat-cell *matCellDef="let element">
167
+ <app-read-more [text]="element.details" [maxLength]="50"></app-read-more>
168
+ </td>
169
+ </ng-container>
170
+
171
+ <!-- File size Column -->
172
+ <ng-container matColumnDef="file_size">
173
+ <th mat-header-cell *matHeaderCellDef> File Size </th>
174
+ <td mat-cell *matCellDef="let element"> {{ sizeOf(element.file_size)}} </td>
175
+ </ng-container>
176
+
177
+ <!-- Tags Column -->
178
+ <ng-container matColumnDef="tag">
179
+ <th mat-header-cell *matHeaderCellDef> Tag </th>
180
+ <td mat-cell *matCellDef="let element" class="p-1">
181
+ <mat-chip-list aria-label="Tags">
182
+ <mat-chip *ngFor="let taggerModel of element.tags">
183
+ {{taggerModel?.tag?.title}}
184
+ </mat-chip>
185
+ </mat-chip-list>
186
+ </td>
187
+ </ng-container>
188
+
189
+ <!-- Uploaded On Column -->
190
+ <ng-container matColumnDef="uploaded_on">
191
+ <th mat-header-cell *matHeaderCellDef> Uploaded On </th>
192
+ <td mat-cell *matCellDef="let element">
193
+ <div>
194
+ {{element.created_at | date: 'mediumDate'}}
195
+ </div>
196
+ <div class="text-muted">
197
+ By {{element.creator?.name}}
198
+ </div>
199
+ </td>
200
+ </ng-container>
201
+
202
+ <!-- Actions Column -->
203
+ <ng-container matColumnDef="actions">
204
+ <th mat-header-cell *matHeaderCellDef> Actions </th>
205
+ <td mat-cell *matCellDef="let element" style="min-width:110px" class="text-muted">
206
+ <button type="button" mat-icon-button (click)="editEntityFile(element)">
207
+ <mat-icon>edit</mat-icon>
208
+ </button>
209
+ <button type="button" mat-icon-button (click)="deleteEntityFile(element)">
210
+ <mat-icon>delete</mat-icon>
211
+ </button>
212
+ </td>
213
+ </ng-container>
214
+
215
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
216
+ <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
217
+ </table>
218
+ </mat-card-content>
219
+ </mat-card>
220
+ <section fxFlex="30%" *ngIf="!this.documentIds.length">
221
+ <app-file-dropper [config]="fileConfig" (fileChanged)="fileChanged($event)" [fileArray]="fileList">
222
+ </app-file-dropper>
223
+ </section>
224
+ </div>
225
+ </div>
226
+ </mat-drawer-content>
227
+
228
+ <div fxLayout="row wrap" fxLayoutGap="1rem" class="mat-typography p-4" *ngIf="displayMode">
229
+ <div *ngFor="let efile of entityFiles">
230
+ <app-document-viewer [file]="efile.file" [fileUrl]="efile.url" [config]="this.viewerConfig" [disableEdit]="true">
231
+ </app-document-viewer>
232
+ <a href="{{efile.url}}" target="_blank">
233
+ <button mat-button type="button">View</button>
234
+ </a>
235
+ </div>
236
+ </div>