nuxeo-development-framework 3.8.1 → 3.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +32267 -31027
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/activities-log/activities-log/activities-log.service.js +2 -2
  4. package/esm2015/lib/components/attachment-item/attachment-item/attachment-item.component.js +2 -2
  5. package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +2 -2
  6. package/esm2015/lib/components/comments/components/comments-dashlet/comments-dashlet.component.js +2 -2
  7. package/esm2015/lib/components/comments/components/comments-list/comments-list.component.js +1 -1
  8. package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +2 -2
  9. package/esm2015/lib/components/comments/services/comment-api.service.js +3 -3
  10. package/esm2015/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.js +3 -3
  11. package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +2 -2
  12. package/esm2015/lib/components/correspondence-relation/components/versions/versions.component.js +2 -2
  13. package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +3 -3
  14. package/esm2015/lib/components/correspondence-relation/services/viewer-files.service.js +3 -3
  15. package/esm2015/lib/components/create-entity/create-entity/create-entity.component.js +2 -2
  16. package/esm2015/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.js +2 -2
  17. package/esm2015/lib/components/cts-tags/services/tags-api.service.js +2 -2
  18. package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +6 -6
  19. package/esm2015/lib/components/custom-toastr/interfaces/toast-type.interface.js +1 -1
  20. package/esm2015/lib/components/custom-toastr/services/custom-toastr.service.js +23 -11
  21. package/esm2015/lib/components/documents/components/attachments-list/attachments-list.component.js +2 -2
  22. package/esm2015/lib/components/documents/components/document-list/documents-list.component.js +2 -2
  23. package/esm2015/lib/components/documents/services/document-templates.service.js +3 -3
  24. package/esm2015/lib/components/documents/services/documents.service.js +3 -3
  25. package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +2 -2
  26. package/esm2015/lib/components/dynamic-chart/services/chart-data.service.js +2 -2
  27. package/esm2015/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.js +2 -2
  28. package/esm2015/lib/components/dynamic-form/components/dynamic-form/form-builder.service.js +2 -2
  29. package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.js +3 -3
  30. package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.js +2 -2
  31. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +2 -2
  32. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +5 -5
  33. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.js +3 -3
  34. package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +2 -2
  35. package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.js +2 -2
  36. package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.js +2 -2
  37. package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +4 -4
  38. package/esm2015/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.js +2 -2
  39. package/esm2015/lib/components/dynamic-form/services/dynamic-form-update.service.js +2 -2
  40. package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +2 -2
  41. package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +3 -3
  42. package/esm2015/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.js +3 -3
  43. package/esm2015/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.js +3 -3
  44. package/esm2015/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.js +2 -2
  45. package/esm2015/lib/components/dynamic-view/date-viewer/date-viewer.component.js +2 -2
  46. package/esm2015/lib/components/dynamic-view/department-viewer/department-viewer.component.js +2 -2
  47. package/esm2015/lib/components/file-manger/components/clipboard/clipboard.component.js +2 -2
  48. package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +4 -4
  49. package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +2 -2
  50. package/esm2015/lib/components/file-manger/components/scan-modal/scan-modal.component.js +4 -4
  51. package/esm2015/lib/components/file-manger/components/share-dialog/share-dialog.component.js +5 -5
  52. package/esm2015/lib/components/file-manger/components/sidepanel/sidepanel.component.js +4 -4
  53. package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +3 -3
  54. package/esm2015/lib/components/file-manger/directives/file-grid-infinite-scroll.directive.js +78 -0
  55. package/esm2015/lib/components/file-manger/file-manager.abstract.js +459 -301
  56. package/esm2015/lib/components/file-manger/file-manger.module.js +10 -5
  57. package/esm2015/lib/components/file-manger/models/file-manager-config.model.js +7 -0
  58. package/esm2015/lib/components/file-manger/models/index.js +4 -0
  59. package/esm2015/lib/components/file-manger/models/pagination-payload.mode.js +2 -0
  60. package/esm2015/lib/components/file-manger/models/pagination-response.model.js +6 -0
  61. package/esm2015/lib/components/latest-activity/services/activity-log.service.js +3 -3
  62. package/esm2015/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.js +2 -2
  63. package/esm2015/lib/components/notifications/components/base-list-notfications.component.js +154 -0
  64. package/esm2015/lib/components/notifications/components/base-notifications.component.js +35 -0
  65. package/esm2015/lib/components/notifications/components/index.js +7 -0
  66. package/esm2015/lib/components/notifications/components/notification-item/get-icon.pipe.js +44 -0
  67. package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +41 -129
  68. package/esm2015/lib/components/notifications/components/notification-source-select/notification-source-select.component.js +34 -0
  69. package/esm2015/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.js +26 -0
  70. package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +75 -165
  71. package/esm2015/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.js +59 -0
  72. package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +53 -175
  73. package/esm2015/lib/components/notifications/components/notifications-list/options.js +24 -0
  74. package/esm2015/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.js +43 -0
  75. package/esm2015/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.js +28 -0
  76. package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.js +30 -0
  77. package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.component.js +163 -0
  78. package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.js +28 -0
  79. package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.js +158 -0
  80. package/esm2015/lib/components/notifications/constants/date.js +8 -0
  81. package/esm2015/lib/components/notifications/constants/index.js +5 -0
  82. package/esm2015/lib/components/notifications/constants/pagination.js +5 -0
  83. package/esm2015/lib/components/notifications/constants/panel.js +5 -0
  84. package/esm2015/lib/components/notifications/constants/status.js +10 -0
  85. package/esm2015/lib/components/notifications/containers/index.js +3 -0
  86. package/esm2015/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.js +98 -0
  87. package/esm2015/lib/components/notifications/containers/notifications-list-container/options.js +18 -0
  88. package/esm2015/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.js +67 -0
  89. package/esm2015/lib/components/notifications/directives/button.directive.js +28 -0
  90. package/esm2015/lib/components/notifications/directives/index.js +3 -0
  91. package/esm2015/lib/components/notifications/directives/notification.directive.js +28 -0
  92. package/esm2015/lib/components/notifications/index.js +2 -0
  93. package/esm2015/lib/components/notifications/models/common.js +2 -0
  94. package/esm2015/lib/components/notifications/models/index.js +11 -0
  95. package/esm2015/lib/components/notifications/models/notification-definition.model.js +2 -0
  96. package/esm2015/lib/components/notifications/models/notification-options.js +2 -0
  97. package/esm2015/lib/components/notifications/models/notification-setting.presenter.js +2 -0
  98. package/esm2015/lib/components/notifications/models/notification-subscription.model.js +2 -0
  99. package/esm2015/lib/components/notifications/models/notification.model.js +2 -0
  100. package/esm2015/lib/components/notifications/models/notifications-list-options.js +3 -0
  101. package/esm2015/lib/components/notifications/models/paging-response.model.js +2 -0
  102. package/esm2015/lib/components/notifications/models/params.model.js +2 -0
  103. package/esm2015/lib/components/notifications/models/vocabularies.js +2 -0
  104. package/esm2015/lib/components/notifications/notifications.module.js +80 -46
  105. package/esm2015/lib/components/notifications/public-api.js +9 -0
  106. package/esm2015/lib/components/notifications/services/index.js +2 -0
  107. package/esm2015/lib/components/notifications/services/listener.service.js +19 -0
  108. package/esm2015/lib/components/notifications/services/notifications.service.js +155 -0
  109. package/esm2015/lib/components/notifications/services/params.service.js +31 -0
  110. package/esm2015/lib/components/notifications/services/response.service.js +65 -0
  111. package/esm2015/lib/components/notifications/utilities/index.js +2 -0
  112. package/esm2015/lib/components/notifications/utilities/response.adapter.js +12 -0
  113. package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +3 -3
  114. package/esm2015/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.js +2 -2
  115. package/esm2015/lib/components/permissions/permission.service.js +2 -2
  116. package/esm2015/lib/components/permissions/permissions/permissions.component.js +3 -3
  117. package/esm2015/lib/components/select-users-by-department/select-users-by-departments/department-management.service.js +2 -2
  118. package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +2 -2
  119. package/esm2015/lib/components/table/table/table.component.js +3 -3
  120. package/esm2015/lib/components/{notifications → toasts}/components/notification-toast/notification-toast.component.js +8 -12
  121. package/esm2015/lib/components/toasts/index.js +2 -0
  122. package/esm2015/lib/components/toasts/public-api.js +3 -0
  123. package/esm2015/lib/components/toasts/toasts.module.js +19 -0
  124. package/esm2015/lib/components/vocabulary/services/vocabulary-api.service.js +2 -2
  125. package/esm2015/lib/components/vocabulary/translated-vocabulary-select/translated-vocabulary-select.component.js +2 -2
  126. package/esm2015/lib/core/adapters/adapter.service.js +1 -1
  127. package/esm2015/lib/core/core.module.js +1 -1
  128. package/esm2015/lib/core/env/env-manager.js +1 -1
  129. package/esm2015/lib/core/env/index.js +1 -1
  130. package/esm2015/lib/core/models/api-response.model.js +2 -0
  131. package/esm2015/lib/core/models/automation-response.model.js +2 -0
  132. package/esm2015/lib/core/models/base-response.models.js +2 -0
  133. package/esm2015/lib/core/models/index.js +5 -0
  134. package/esm2015/lib/core/services/callApi/call-api.service.js +1 -1
  135. package/esm2015/lib/core/services/extension/action.extensions.js +1 -1
  136. package/esm2015/lib/core/services/extension/component-register.service.js +1 -1
  137. package/esm2015/lib/core/services/extension/extenion-utils.js +1 -1
  138. package/esm2015/lib/core/services/extension/extension-element.js +1 -1
  139. package/esm2015/lib/core/services/extension/extension-loader.service.js +1 -1
  140. package/esm2015/lib/core/services/extension/extension.service.js +1 -1
  141. package/esm2015/lib/core/services/initialization/initialization.service.js +1 -1
  142. package/esm2015/lib/core/services/nuxeo/nuxeo.service.js +3 -3
  143. package/esm2015/lib/core/services/translation/translation.service.js +3 -3
  144. package/esm2015/lib/core/utilities/moment-date-adapter.js +1 -1
  145. package/esm2015/lib/core/utilities/utility.service.js +1 -1
  146. package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +2 -2
  147. package/esm2015/lib/directive/permissions/evaluators.service.js +2 -2
  148. package/esm2015/lib/directive/permissions/permissions.directive.js +2 -2
  149. package/esm2015/lib/directive/rtl/set-dir-rtl.directive.js +2 -2
  150. package/esm2015/lib/directive/rtl/set-rtl.directive.js +2 -2
  151. package/esm2015/lib/shared-services/dynamic-form.service.js +2 -2
  152. package/esm2015/lib/shared-services/file-manager.service.js +456 -222
  153. package/esm2015/lib/shared-services/global-admin.service.js +1 -1
  154. package/esm2015/lib/shared-services/mainfolder.service.js +3 -3
  155. package/esm2015/lib/shared-services/publishing-document.service.js +3 -3
  156. package/esm2015/lib/shared-services/recently-viewed.service.js +3 -3
  157. package/esm2015/lib/shared-services/shared-docs.service.js +3 -3
  158. package/esm2015/lib/shared-services/upload-file.service.js +2 -2
  159. package/esm2015/lib/shared-services/upload-managment.service.js +2 -2
  160. package/esm2015/lib/shared-services/user.service.js +3 -3
  161. package/esm2015/public-api.js +145 -149
  162. package/fesm2015/nuxeo-development-framework.js +24280 -23143
  163. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  164. package/lib/components/activities-log/activities-log/activities-log.service.d.ts +1 -1
  165. package/lib/components/attachment-item/attachment-item/attachment-item.component.d.ts +1 -1
  166. package/lib/components/comments/components/comment-item/comment-item.component.d.ts +1 -1
  167. package/lib/components/comments/components/comments-dashlet/comments-dashlet.component.d.ts +1 -1
  168. package/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.d.ts +1 -1
  169. package/lib/components/comments/services/comment-api.service.d.ts +2 -2
  170. package/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.d.ts +2 -2
  171. package/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.d.ts +1 -1
  172. package/lib/components/correspondence-relation/components/versions/versions.component.d.ts +1 -1
  173. package/lib/components/correspondence-relation/services/correspondence-realation.service.d.ts +2 -2
  174. package/lib/components/correspondence-relation/services/viewer-files.service.d.ts +2 -2
  175. package/lib/components/create-entity/create-entity/create-entity.component.d.ts +1 -1
  176. package/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.d.ts +1 -1
  177. package/lib/components/cts-tags/services/tags-api.service.d.ts +1 -1
  178. package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +1 -1
  179. package/lib/components/custom-toastr/interfaces/toast-type.interface.d.ts +1 -1
  180. package/lib/components/custom-toastr/services/custom-toastr.service.d.ts +8 -4
  181. package/lib/components/documents/components/attachments-list/attachments-list.component.d.ts +1 -1
  182. package/lib/components/documents/components/document-list/documents-list.component.d.ts +1 -1
  183. package/lib/components/documents/services/document-templates.service.d.ts +2 -2
  184. package/lib/components/documents/services/documents.service.d.ts +2 -2
  185. package/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.d.ts +1 -1
  186. package/lib/components/dynamic-chart/services/chart-data.service.d.ts +1 -1
  187. package/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.d.ts +1 -1
  188. package/lib/components/dynamic-form/components/dynamic-form/form-builder.service.d.ts +1 -1
  189. package/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.d.ts +1 -1
  190. package/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.d.ts +1 -1
  191. package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +1 -1
  192. package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +4 -4
  193. package/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.d.ts +2 -2
  194. package/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.d.ts +1 -1
  195. package/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.d.ts +1 -1
  196. package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.d.ts +1 -1
  197. package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +3 -3
  198. package/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.d.ts +1 -1
  199. package/lib/components/dynamic-form/services/dynamic-form-update.service.d.ts +1 -1
  200. package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +1 -1
  201. package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +2 -2
  202. package/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.d.ts +2 -2
  203. package/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.d.ts +2 -2
  204. package/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.d.ts +1 -1
  205. package/lib/components/dynamic-view/date-viewer/date-viewer.component.d.ts +1 -1
  206. package/lib/components/dynamic-view/department-viewer/department-viewer.component.d.ts +1 -1
  207. package/lib/components/file-manger/components/clipboard/clipboard.component.d.ts +1 -1
  208. package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +3 -3
  209. package/lib/components/file-manger/components/folder-modal/folder-modal.component.d.ts +1 -1
  210. package/lib/components/file-manger/components/scan-modal/scan-modal.component.d.ts +3 -3
  211. package/lib/components/file-manger/components/share-dialog/share-dialog.component.d.ts +3 -3
  212. package/lib/components/file-manger/components/sidepanel/sidepanel.component.d.ts +2 -2
  213. package/lib/components/file-manger/components/update-modal/update-modal.component.d.ts +2 -2
  214. package/lib/components/file-manger/directives/file-grid-infinite-scroll.directive.d.ts +12 -0
  215. package/lib/components/file-manger/file-manager.abstract.d.ts +20 -8
  216. package/lib/components/file-manger/file-manger.module.d.ts +37 -36
  217. package/lib/components/file-manger/models/file-manager-config.model.d.ts +8 -0
  218. package/lib/components/file-manger/models/index.d.ts +3 -0
  219. package/lib/components/file-manger/models/pagination-payload.mode.d.ts +3 -0
  220. package/lib/components/file-manger/models/pagination-response.model.d.ts +30 -0
  221. package/lib/components/latest-activity/services/activity-log.service.d.ts +2 -2
  222. package/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.d.ts +1 -1
  223. package/lib/components/notifications/components/base-list-notfications.component.d.ts +40 -0
  224. package/lib/components/notifications/components/base-notifications.component.d.ts +20 -0
  225. package/lib/components/notifications/components/index.d.ts +6 -0
  226. package/lib/components/notifications/components/notification-item/get-icon.pipe.d.ts +8 -0
  227. package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +21 -22
  228. package/lib/components/notifications/components/notification-source-select/notification-source-select.component.d.ts +12 -0
  229. package/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.d.ts +8 -0
  230. package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +29 -30
  231. package/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.d.ts +19 -0
  232. package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +15 -54
  233. package/lib/components/notifications/components/notifications-list/options.d.ts +2 -0
  234. package/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.d.ts +15 -0
  235. package/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.d.ts +8 -0
  236. package/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.d.ts +3 -0
  237. package/lib/components/notifications/components/notifications-settings/notifications-settings.component.d.ts +40 -0
  238. package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.d.ts +9 -0
  239. package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.d.ts +43 -0
  240. package/lib/components/notifications/constants/date.d.ts +7 -0
  241. package/lib/components/notifications/constants/index.d.ts +4 -0
  242. package/lib/components/notifications/constants/pagination.d.ts +4 -0
  243. package/lib/components/notifications/constants/panel.d.ts +4 -0
  244. package/lib/components/notifications/constants/status.d.ts +9 -0
  245. package/lib/components/notifications/containers/index.d.ts +2 -0
  246. package/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.d.ts +27 -0
  247. package/lib/components/notifications/containers/notifications-list-container/options.d.ts +2 -0
  248. package/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.d.ts +22 -0
  249. package/lib/components/notifications/directives/button.directive.d.ts +9 -0
  250. package/lib/components/notifications/directives/index.d.ts +2 -0
  251. package/lib/components/notifications/directives/notification.directive.d.ts +9 -0
  252. package/lib/components/notifications/index.d.ts +1 -0
  253. package/lib/components/notifications/models/common.d.ts +64 -0
  254. package/lib/components/notifications/models/index.d.ts +10 -0
  255. package/lib/components/notifications/models/notification-definition.model.d.ts +17 -0
  256. package/lib/components/notifications/models/notification-options.d.ts +7 -0
  257. package/lib/components/notifications/models/notification-setting.presenter.d.ts +24 -0
  258. package/lib/components/notifications/models/notification-subscription.model.d.ts +13 -0
  259. package/lib/components/notifications/models/notification.model.d.ts +16 -0
  260. package/lib/components/notifications/models/notifications-list-options.d.ts +34 -0
  261. package/lib/components/notifications/models/paging-response.model.d.ts +12 -0
  262. package/lib/components/notifications/models/params.model.d.ts +6 -0
  263. package/lib/components/notifications/models/vocabularies.d.ts +12 -0
  264. package/lib/components/notifications/notifications.module.d.ts +32 -16
  265. package/lib/components/notifications/public-api.d.ts +8 -0
  266. package/lib/components/notifications/services/index.d.ts +1 -0
  267. package/lib/components/notifications/services/listener.service.d.ts +8 -0
  268. package/lib/components/notifications/services/notifications.service.d.ts +55 -0
  269. package/lib/components/notifications/services/params.service.d.ts +19 -0
  270. package/lib/components/notifications/services/response.service.d.ts +19 -0
  271. package/lib/components/notifications/utilities/index.d.ts +1 -0
  272. package/lib/components/notifications/utilities/response.adapter.d.ts +3 -0
  273. package/lib/components/pdf-tron/pdftron/pdftron.component.d.ts +2 -2
  274. package/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.d.ts +1 -1
  275. package/lib/components/permissions/permission.service.d.ts +1 -1
  276. package/lib/components/permissions/permissions/permissions.component.d.ts +2 -2
  277. package/lib/components/select-users-by-department/select-users-by-departments/department-management.service.d.ts +1 -1
  278. package/lib/components/table/dynamic-column/dynamic-column.component.d.ts +1 -1
  279. package/lib/components/table/table/table.component.d.ts +2 -2
  280. package/lib/components/{notifications → toasts}/components/notification-toast/notification-toast.component.d.ts +2 -4
  281. package/lib/components/toasts/index.d.ts +1 -0
  282. package/lib/components/toasts/public-api.d.ts +2 -0
  283. package/lib/components/toasts/toasts.module.d.ts +8 -0
  284. package/lib/components/vocabulary/services/vocabulary-api.service.d.ts +1 -1
  285. package/lib/components/vocabulary/translated-vocabulary-select/translated-vocabulary-select.component.d.ts +1 -1
  286. package/lib/core/models/api-response.model.d.ts +24 -0
  287. package/lib/core/models/automation-response.model.d.ts +24 -0
  288. package/lib/core/models/base-response.models.d.ts +12 -0
  289. package/lib/core/models/index.d.ts +4 -0
  290. package/lib/core/services/nuxeo/nuxeo.service.d.ts +1 -1
  291. package/lib/core/services/translation/translation.service.d.ts +3 -3
  292. package/lib/directive/app-has-role/app-has-role.directive.d.ts +1 -1
  293. package/lib/directive/permissions/evaluators.service.d.ts +1 -1
  294. package/lib/directive/permissions/permissions.directive.d.ts +1 -1
  295. package/lib/directive/rtl/set-dir-rtl.directive.d.ts +1 -1
  296. package/lib/directive/rtl/set-rtl.directive.d.ts +1 -1
  297. package/lib/shared-services/dynamic-form.service.d.ts +1 -1
  298. package/lib/shared-services/file-manager.service.d.ts +27 -19
  299. package/lib/shared-services/mainfolder.service.d.ts +2 -2
  300. package/lib/shared-services/publishing-document.service.d.ts +2 -2
  301. package/lib/shared-services/recently-viewed.service.d.ts +2 -2
  302. package/lib/shared-services/shared-docs.service.d.ts +2 -2
  303. package/lib/shared-services/upload-file.service.d.ts +1 -1
  304. package/lib/shared-services/upload-managment.service.d.ts +1 -1
  305. package/lib/shared-services/user.service.d.ts +2 -2
  306. package/package.json +1 -1
  307. package/public-api.d.ts +139 -143
  308. package/esm2015/lib/components/notifications/components/notification-options/notification-options.component.js +0 -22
  309. package/esm2015/lib/components/notifications/notifications.service.js +0 -358
  310. package/lib/components/notifications/components/notification-options/notification-options.component.d.ts +0 -10
  311. package/lib/components/notifications/notifications.service.d.ts +0 -87
@@ -1,143 +1,55 @@
1
- import { Component, EventEmitter, Input, Output, ViewEncapsulation, } from "@angular/core";
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
2
+ import { NOTIFICATION_STATUS } from '../../constants';
3
+ import { DestroySubject } from '../base-notifications.component';
2
4
  import * as i0 from "@angular/core";
3
- import * as i1 from "../../../../Core/services/translation/translation.service";
4
- import * as i2 from "@angular/router";
5
- import * as i3 from "@angular/material/list";
6
- import * as i4 from "@angular/material/icon";
7
- import * as i5 from "@angular/material/menu";
8
- import * as i6 from "@angular/common";
9
- import * as i7 from "@angular/material/core";
10
- import * as i8 from "@angular/cdk/bidi";
11
- import * as i9 from "../../../../pipes/time-ago.pipe";
12
- import * as i10 from "@ngx-translate/core";
13
- export class NotificationItemComponent {
14
- constructor(translationSrvice, router) {
15
- this.translationSrvice = translationSrvice;
16
- this.router = router;
17
- this.update = new EventEmitter();
18
- this.arContent = "";
19
- this.enContent = "";
20
- this.lang = 'en';
5
+ import * as i1 from "@angular/material/button";
6
+ import * as i2 from "@angular/material/icon";
7
+ import * as i3 from "@angular/material/menu";
8
+ import * as i4 from "@angular/common";
9
+ import * as i5 from "./get-icon.pipe";
10
+ import * as i6 from "../../../../pipes/time-ago.pipe";
11
+ import * as i7 from "@ngx-translate/core";
12
+ export class NotificationItemComponent extends DestroySubject {
13
+ constructor() {
14
+ super();
15
+ this.markAsUnread = new EventEmitter();
16
+ this.markAsRead = new EventEmitter();
17
+ this.markAsDeleted = new EventEmitter();
18
+ this.status = NOTIFICATION_STATUS;
21
19
  }
22
- stop(event) {
23
- event.stopPropagation();
24
- }
25
- toggleRead(event) {
26
- this.update.emit({ action: "status", notification: this.notification });
27
- }
28
- ngOnInit() {
29
- this.langSubscription = this.translationSrvice.isArabic.subscribe(res => {
30
- this.lang = res ? 'ar' : 'en';
31
- });
32
- // this.notification.notificationContents.forEach((res) => {
33
- // if (res.lang === "AR") {
34
- // this.arContent = res.message;
35
- // }
36
- // if (res.lang === "EN") {
37
- // this.enContent = res.message;
38
- // }
39
- // });
20
+ set notification(value) {
21
+ this._notification = value;
40
22
  }
41
- ngOnChanges(changes) {
42
- if (this.notification.data.correspondenceReferenceNumber) {
43
- this.notification.notificationContents.forEach((res) => {
44
- if (res.lang === "AR") {
45
- this.arContent = res.message;
46
- }
47
- if (res.lang === "EN") {
48
- this.enContent = res.message;
49
- }
50
- });
51
- }
52
- else {
53
- this.notification.notificationContents.forEach((res) => {
54
- if (res.lang === "AR") {
55
- this.arContent = res.message.replace("رقم", "رقم -");
56
- if (res.message.includes('ExtRequest') || res.message.includes('IntRequest')) {
57
- this.arContent = res.message.replace("المستند", "الطلب");
58
- this.arContent = this.arContent.replace(('IntRequest'), "رقم - ");
59
- this.arContent = this.arContent.replace(('ExtRequest'), "رقم - ");
60
- }
61
- }
62
- if (res.lang === "EN") {
63
- this.enContent = res.message.replace("correspondence", "correspondence -");
64
- if (res.message.includes('ExtRequest') || res.message.includes('IntRequest')) {
65
- this.enContent = res.message.replace("document", "request");
66
- this.enContent = this.enContent.replace(('IntRequest'), "number - ");
67
- this.enContent = this.enContent.replace(('ExtRequest'), "number - ");
68
- }
69
- }
70
- });
71
- }
23
+ get notification() {
24
+ return this._notification;
72
25
  }
73
- /* async showOptions(event) {
74
- event.stopPropagation();
75
- const popover = await this.popoverCtrl.create({
76
- component: NotificationOptionsComponent,
77
- cssClass: 'notification-options',
78
- event: event,
79
- showBackdrop: false,
80
- });
81
- await popover.present();
82
- const { data } = await popover.onDidDismiss();
83
- if (data && this.notification) {
84
- this.updateNotification(data);
85
-
86
- }
87
-
88
- } */
89
- updateNotification(data) {
90
- this.update.emit({ action: data, notification: this.notification });
91
- }
92
- navigateToDetais(corrId) {
93
- let sourceType = this.notification.sourceType;
94
- const isAssignmentOrApproval = sourceType === "approval" || sourceType === "assignment";
95
- const correspondence = sourceType === "correspondence";
96
- const assignment = sourceType === "assignment";
97
- const approval = sourceType === "approval";
98
- const memo = sourceType === "memo";
99
- const general = sourceType === "general";
100
- const workspace = sourceType === "corrWorkspace";
101
- const id = memo ? this.notification.sourceId : corrId;
102
- if (corrId) {
103
- this.router.navigate([
104
- {
105
- outlets: { viewer: ["view", id] },
106
- },
107
- ], {
108
- queryParams: Object.assign(Object.assign(Object.assign({ location: this.router.url }, (approval && { approvalMode: true })), (assignment && { assignmentMode: true })), (assignment && {
109
- assignmentId: this.notification.data.assignmentId,
110
- })),
111
- });
112
- }
113
- if (workspace) {
114
- this.router.navigate([{ outlets: { viewer: ['workspace-viewer', this.notification.sourceId] } }], {
115
- queryParams: { location: this.router.url },
116
- });
117
- }
118
- if (memo) {
119
- this.router.navigate([{ outlets: { viewer: ["memo", id] } }], {
120
- queryParams: { location: this.router.url },
121
- });
122
- }
26
+ closeMenu(event, menu) {
27
+ event.stopPropagation();
28
+ menu.closed.emit();
123
29
  }
124
30
  }
125
- NotificationItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationItemComponent, deps: [{ token: i1.TranslationService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
126
- NotificationItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NotificationItemComponent, selector: "app-notification-item", inputs: { notification: "notification", isArabic: "isArabic" }, outputs: { update: "update" }, host: { classAttribute: "notification-item" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"notification-item\">\r\n <mat-list-item\r\n (click)=\"navigateToDetais(notification.data.correspondenceId)\"\r\n [ngClass]=\"{ unread: notification.status != 'READ' }\"\r\n >\r\n <p [dir]=\"isArabic ? 'rtl' : 'ltr'\" mat-line class=\"wrap\">{{ isArabic ? arContent : enContent }}</p>\r\n <p mat-line class=\"time-ago\">{{ notification?.sendDate | timeAgo: lang }}</p>\r\n <button\r\n class=\"mat-icon-button\"\r\n (click)=\"stop($event)\"\r\n [matMenuTriggerFor]=\"appMenu\"\r\n mat-icon-button\r\n >\r\n <mat-icon class=\"mat-24 notification-item-ActionsTrigger\">more_vert</mat-icon>\r\n </button>\r\n <mat-menu class=\"notificationItemActions\" #appMenu=\"matMenu\">\r\n <div class=\"actionsContainer\" (click)=\"stop($event)\">\r\n <mat-list-item\r\n (click)=\"toggleRead($event)\"\r\n class=\"user-option mat-menu-item\"\r\n >\r\n <mat-icon *ngIf=\"notification.status === 'READ'\" class=\"option-icon\"\r\n >check_circle_outline</mat-icon\r\n >\r\n <mat-icon *ngIf=\"notification.status != 'READ'\" class=\"option-icon\"\r\n >check_circle</mat-icon\r\n >\r\n <span class=\"read_unread_action\">{{\r\n (notification.status === \"READ\"\r\n ? \"notifications.markAsUnread\"\r\n : \"notifications.markAsRead\"\r\n ) | translate\r\n }}\r\n </span>\r\n </mat-list-item>\r\n <mat-list-item\r\n (click)=\"updateNotification('delete')\"\r\n class=\"user-option mat-menu-item\"\r\n >\r\n <mat-icon class=\"option-icon\">remove_circle</mat-icon>\r\n <span class=\"remove_action\">{{ \"notifications.delete\" | translate }}</span>\r\n </mat-list-item>\r\n </div>\r\n </mat-menu>\r\n </mat-list-item>\r\n</div>\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.user-option{cursor:pointer}.notification-item .mat-icon-button{background:none;border:none;margin:0;padding:0}.notification-item mat-list-item{border:1px solid #b4bac6;height:80px;font-size:11px}.notification-item mat-list-item:hover{cursor:pointer}.notification-item mat-list-item p{font-size:12px}.notification-item mat-list-item.unread{background:#f7f8f9}.notification-item mat-list-item .time-ago{font-size:11px!important;opacity:.8}.notification-item mat-list-item .options{opacity:0;transition:.3s}.notification-item mat-list-item .options ion-button{margin:0!important}.notification-item mat-list-item .options:focus{opacity:1}.notification-item mat-list-item:hover .options{opacity:1}.notification-item .type{padding:2px;margin:0;height:18px}.rtl .notification-item .mat-list-item-content{flex-direction:row-reverse}\n"], components: [{ type: i3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }], directives: [{ type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.MatLine, selector: "[mat-line], [matLine]" }, { type: i8.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "timeAgo": i9.TimeAgoPipe, "translate": i10.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
31
+ NotificationItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
+ NotificationItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NotificationItemComponent, selector: "app-notification-item", inputs: { iconOptions: "iconOptions", currentLang: "currentLang", notification: "notification" }, outputs: { markAsUnread: "markAsUnread", markAsRead: "markAsRead", markAsDeleted: "markAsDeleted" }, usesInheritance: true, ngImport: i0, template: "<div\r\n *ngIf=\"notification?.properties as properties\"\r\n class=\"notification-item\"\r\n [class.new-item]=\"properties['notif_cnt:status'] == status.new\"\r\n [class.unread-item]=\"properties['notif_cnt:status'] == status.unRead\"\r\n>\r\n <div class=\"notification-item__icon\">\r\n <div class=\"notification-item__icon__wrapper\" *ngIf=\"iconOptions?.active\">\r\n <i [class]=\"notification | getIcon : iconOptions\"></i>\r\n </div>\r\n </div>\r\n <div class=\"notification-item__content\">\r\n <p class=\"notification-item__message line-clamp-2\">\r\n {{\r\n currentLang === 'ar-AR'\r\n ? properties['notif_cnt:arMessage']\r\n : properties['notif_cnt:enMessage']\r\n }}\r\n </p>\r\n <button\r\n class=\"mat-icon-button\"\r\n [matMenuTriggerFor]=\"appMenu\"\r\n mat-icon-button\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n <mat-icon class=\"mat-24\">more_horiz</mat-icon>\r\n </button>\r\n <span class=\"notification-item__date\">{{\r\n properties['dc:created'] | timeAgo : currentLang\r\n }}</span>\r\n </div>\r\n\r\n <mat-menu class=\"notification-item__actions\" #appMenu=\"matMenu\">\r\n <span (click)=\"closeMenu($event, appMenu)\">\r\n <button\r\n *ngIf=\"properties['notif_cnt:status'] == status.read\"\r\n mat-menu-item\r\n class=\"notification-item__actions__item\"\r\n (click)=\"markAsUnread.emit(notification)\"\r\n >\r\n <span class=\"mx-1\">{{ 'notifications.markAsUnread' | translate }}</span>\r\n </button>\r\n\r\n <button\r\n *ngIf=\"\r\n properties['notif_cnt:status'] == status.new ||\r\n properties['notif_cnt:status'] == status.unRead\r\n \"\r\n mat-menu-item\r\n class=\"notification-item__actions__item\"\r\n (click)=\"markAsRead.emit(notification)\"\r\n >\r\n <span class=\"mx-1\">{{ 'notifications.markAsRead' | translate }}</span>\r\n </button>\r\n\r\n <button\r\n mat-menu-item\r\n (click)=\"markAsDeleted.emit(notification)\"\r\n class=\"notification-item__actions__item\"\r\n >\r\n <span>{{ 'notifications.delete' | translate }}</span>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n</div>\r\n", styles: [".notification-item{display:var(--n-item-display, grid);grid-template-columns:var(--n-item-columns, auto 1fr);grid-gap:var(--n-item-gap, .5rem);gap:var(--n-item-gap, .5rem);padding:var(--n-items-padding, .5rem 1rem);border:var(--n-item-border, solid #eee);border-width:var(--n-item-border-width, 0 0 1px 0);background:var(--n-item-background, transparent);min-height:var(--n-item-height, 85px)}.notification-item.new-item{--n-item-background: var(--n-status-new-color, #fcfcfc)}.notification-item.unread-item{--n-item-background: var(--n-status-unread-color, #fcfcfc)}.notification-item__icon{display:var(--n-item-icon-display, flex);align-items:var(--n-item-icon-align-items, center)}.notification-item__icon__wrapper{width:var(--n-item-icon-width, 56px);height:var(--n-item-icon-height, 56px);background:var(--n-item-icon-background, rgba(0, 0, 0, .025));color:var(--n-item-icon-color, #636363);font-size:var(--n-item-icon-size, 1.5rem);border-radius:var(--n-item-icon-radius, 50%);display:grid;place-items:center}.notification-item__content{display:var(--n-item-content-display, grid);grid-template-columns:var(--n-item-content-columns, 1fr auto);grid-gap:var(--n-item-gap, .2rem);gap:var(--n-item-gap, .2rem)}.notification-item__message{margin-bottom:0;font-size:var(--n-item-font-size, .9rem);color:var(--n-item-message-color)}.notification-item__date{font-size:var(--n-item-date-size, .8rem);text-align:var(--n-item-date-align, end);grid-column:var(--n-item-date-column, span 2);padding:var(--n-item-date-padding, 0 11px);color:var(--n-item-date-color)}.notification-item__actions{border-radius:var(--n-actions-radius, 4px);background:var(--n-actions-background, #fff);box-shadow:var(--n-actions-shadow, 0px 1px 4px -1px rgba(28, 52, 84, .26))}.notification-item__actions .mat-menu-content:not(:empty){padding:var(--n-actions--menu-padding, .5rem)}.notification-item__actions__item{text-align:var(--action-item-align, start)!important;background:var(--action-item-background, transparent)!important;color:var(--action-item-color, #28282d);padding:var(--action-item-padding, .4rem);height:var(--action-item-height, 38px);line-height:var(--action-item-line, 38px);border-radius:var(--action-item-radius, 4px);font-size:var(--action-item-size, 14px)}.notification-item__actions__item:hover{--action-item-background: var(--action-hover-background, #e6f7ff);--action-item-color: var(--action-hover-color, #005fdb)}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }], pipes: { "getIcon": i5.GetIconPipe, "timeAgo": i6.TimeAgoPipe, "translate": i7.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
127
33
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationItemComponent, decorators: [{
128
34
  type: Component,
129
35
  args: [{
130
- selector: "app-notification-item",
131
- styleUrls: ["./notification-item.component.scss"],
132
- templateUrl: "./notification-item.component.html",
133
- host: { class: "notification-item" },
36
+ selector: 'app-notification-item',
37
+ styleUrls: ['./notification-item.component.scss'],
38
+ templateUrl: './notification-item.component.html',
39
+ changeDetection: ChangeDetectionStrategy.OnPush,
134
40
  encapsulation: ViewEncapsulation.None,
135
41
  }]
136
- }], ctorParameters: function () { return [{ type: i1.TranslationService }, { type: i2.Router }]; }, propDecorators: { notification: [{
42
+ }], ctorParameters: function () { return []; }, propDecorators: { iconOptions: [{
137
43
  type: Input
138
- }], update: [{
139
- type: Output
140
- }], isArabic: [{
44
+ }], currentLang: [{
45
+ type: Input
46
+ }], notification: [{
141
47
  type: Input
48
+ }], markAsUnread: [{
49
+ type: Output
50
+ }], markAsRead: [{
51
+ type: Output
52
+ }], markAsDeleted: [{
53
+ type: Output
142
54
  }] } });
143
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvY29tcG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GNsaWNrKT1cInRvZ2dsZVJlYWQoJGV2ZW50KVwiXHJcbiAgICAgICAgICBjbGFzcz1cInVzZXItb3B0aW9uIG1hdC1tZW51LWl0ZW1cIlxyXG4gICAgICAgID5cclxuICAgICAgICAgIDxtYXQtaWNvbiAqbmdJZj1cIm5vdGlmaWNhdGlvbi5zdGF0dXMgPT09ICdSRUFEJ1wiIGNsYXNzPVwib3B0aW9uLWljb25cIlxyXG4gICAgICAgICAgICA+Y2hlY2tfY2lyY2xlX291dGxpbmU8L21hdC1pY29uXHJcbiAgICAgICAgICA+XHJcbiAgICAgICAgICA8bWF0LWljb24gKm5nSWY9XCJub3RpZmljYXRpb24uc3RhdHVzICE9ICdSRUFEJ1wiIGNsYXNzPVwib3B0aW9uLWljb25cIlxyXG4gICAgICAgICAgICA+Y2hlY2tfY2lyY2xlPC9tYXQtaWNvblxyXG4gICAgICAgICAgPlxyXG4gICAgICAgICAgPHNwYW4gY2xhc3M9XCJyZWFkX3VucmVhZF9hY3Rpb25cIj57e1xyXG4gICAgICAgICAgICAobm90aWZpY2F0aW9uLnN0YXR1cyA9PT0gXCJSRUFEXCJcclxuICAgICAgICAgICAgICA/IFwibm90aWZpY2F0aW9ucy5tYXJrQXNVbnJlYWRcIlxyXG4gICAgICAgICAgICAgIDogXCJub3RpZmljYXRpb25zLm1hcmtBc1JlYWRcIlxyXG4gICAgICAgICAgICApIHwgdHJhbnNsYXRlXHJcbiAgICAgICAgICB9fVxyXG4gICAgICAgIDwvc3Bhbj5cclxuICAgICAgICA8L21hdC1saXN0LWl0ZW0+XHJcbiAgICAgICAgPG1hdC1saXN0LWl0ZW1cclxuICAgICAgICAgIChjbGljayk9XCJ1cGRhdGVOb3RpZmljYXRpb24oJ2RlbGV0ZScpXCJcclxuICAgICAgICAgIGNsYXNzPVwidXNlci1vcHRpb24gbWF0LW1lbnUtaXRlbVwiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgPG1hdC1pY29uIGNsYXNzPVwib3B0aW9u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m90aWZfY250OnN0YXR1cyddID09IHN0YXR1cy5uZXcgfHxcclxuICAgICAgICAgIHByb3BlcnRpZXNbJ25vdGlmX2NudDpzdGF0dXMnXSA9PSBzdGF0dXMudW5SZWFkXHJcbiAgICAgICAgXCJcclxuICAgICAgICBtYXQtbWVudS1pdGVtXHJcbiAgICAgICAgY2xhc3M9XCJub3RpZmljYXRpb24taXRlbV9fYWN0aW9uc19faXRlbVwiXHJcbiAgICAgICAgKGNsaWNrKT1cIm1hcmtBc1JlYWQuZW1pdChub3RpZmljYXRpb24pXCJcclxuICAgICAgPlxyXG4gICAgICAgIDxzcGFuIGNsYXNzPVwibXgtMVwiPnt7ICdub3RpZmljYXRpb25zLm1hcmtBc1JlYWQnIHwgdHJhbnNsYXRlIH19PC9zcGFuPlxyXG4gICAgICA8L2J1dHRvbj5cclxuXHJcbiAgICAgIDxidXR0b25cclxuICAgICAgICBtYXQtbWVudS1pdGVtXHJcbiAgICAgICAgKGNsaWNrKT1cIm1hcmtBc0RlbGV0ZWQuZW1pdChub3RpZmljYXRpb24pXCJcclxuICAgICAgICBjbGFzcz1cIm5vdGlmaWNhdGlvbi1pdGVtX19hY3Rpb25zX19pdGVtXCJcclxuICAgICAgPlxyXG4gICAgICAgIDxzcGFuPnt7ICdub3RpZmljYXRpb25zLmRlbGV0ZScgfCB0cmFuc2xhdGUgfX08L3NwYW4+XHJcbiAgICAgIDwvYnV0dG9uPlxyXG4gICAgPC9zcGFuPlxyXG4gIDwvbWF0LW1lbnU+XHJcbjwvZGl2PlxyXG4iXX0=
@@ -0,0 +1,34 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Output, ViewEncapsulation, } from '@angular/core';
2
+ import { BaseNotification } from '../base-notifications.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/material/button";
5
+ import * as i2 from "@angular/material/menu";
6
+ import * as i3 from "@angular/common";
7
+ import * as i4 from "@angular/cdk/bidi";
8
+ import * as i5 from "@ngx-translate/core";
9
+ export class NotificationSourceSelectComponent extends BaseNotification {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.sourceTypes$ = this.notificationsService.getSourceTypes();
13
+ this.typeChanged = new EventEmitter();
14
+ }
15
+ selectFilterType(type) {
16
+ this.selectedFilterType = type;
17
+ this.typeChanged.emit(type === null || type === void 0 ? void 0 : type.id);
18
+ }
19
+ }
20
+ NotificationSourceSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationSourceSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
21
+ NotificationSourceSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NotificationSourceSelectComponent, selector: "app-notification-source-select", outputs: { typeChanged: "typeChanged" }, usesInheritance: true, ngImport: i0, template: "<span [dir]=\"direction$ | async\" *ngIf=\"sourceTypes$ | async as sourceTypes\">\r\n <button\r\n (click)=\"$event.stopPropagation()\"\r\n class=\"type-filter-trigger px-2\"\r\n [matMenuTriggerFor]=\"filterTypeMenu\"\r\n #filterTypeMenuTrigger=\"matMenuTrigger\"\r\n mat-stroked-button\r\n >\r\n <span>{{\r\n (selectedFilterType\r\n ? 'vocabulary.VOC_Notf_SourceTypes.' + selectedFilterType.properties.id\r\n : 'notifications.allTypes'\r\n ) | translate\r\n }}</span>\r\n <span class=\"icon icon-chevron-down\"></span>\r\n </button>\r\n <mat-menu class=\"source-type-select-menu\" #filterTypeMenu=\"matMenu\">\r\n <span (click)=\"$event.stopPropagation()\">\r\n <button\r\n mat-menu-item\r\n class=\"source-type-select-menu__option\"\r\n (click)=\"selectFilterType(null); filterTypeMenuTrigger.closed.emit()\"\r\n >\r\n <span>{{ 'notifications.all' | translate }}</span>\r\n </button>\r\n <button\r\n mat-menu-item\r\n class=\"source-type-select-menu__option\"\r\n *ngFor=\"let type of sourceTypes\"\r\n (click)=\"selectFilterType(type); filterTypeMenuTrigger.closed.emit()\"\r\n >\r\n <span>{{\r\n 'vocabulary.VOC_Notf_SourceTypes.' + type?.properties.id | translate\r\n }}</span>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n</span>\r\n", styles: [".source-type-select-menu{box-shadow:var(--source-type-menu-shadow, 0px 1px 4px -1px rgba(28, 52, 84, .26))}.source-type-select-menu .mat-menu-content:not(:empty){padding:var(--source-type-menu-padding, .5rem)}.source-type-select-menu__option{background:var(--source-type-option-background, transparent)!important;border-radius:var(--source-type-option-radius, 4px);font-size:var(--source-type-option-size, 14px);color:var(--source-type-option-color, #28282d);height:var(--source-type-option-height, 38px);line-height:var(--source-type-option-line-height, 38px)}.source-type-select-menu__option:hover{--source-type-option-background: var(--source-type-option-hover-background, #e6f7ff);--source-type-option-color: var(--source-type-option-hover-color, #005fdb)}.source-type-select-menu__option .mat-icon{color:currentColor}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i3.AsyncPipe, "translate": i5.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationSourceSelectComponent, decorators: [{
23
+ type: Component,
24
+ args: [{
25
+ selector: 'app-notification-source-select',
26
+ templateUrl: './notification-source-select.component.html',
27
+ styleUrls: ['./notification-source-select.component.scss'],
28
+ changeDetection: ChangeDetectionStrategy.OnPush,
29
+ encapsulation: ViewEncapsulation.None,
30
+ }]
31
+ }], propDecorators: { typeChanged: [{
32
+ type: Output
33
+ }] } });
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLXNvdXJjZS1zZWxlY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvY29tcG9uZW50cy9ub3RpZmljYXRpb25zL2NvbXBvbmVudHMvbm90aWZpY2F0aW9uLXNvdXJjZS1zZWxlY3Qvbm90aWZpY2F0aW9uLXNvdXJjZS1zZWxlY3QuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvY29tcG9uZW50cy9ub3RpZmljYXRpb25zL2NvbXBvbmVudHMvbm90aWZpY2F0aW9uLXNvdXJjZS1zZWxlY3Qvbm90aWZpY2F0aW9uLXNvdXJjZS1zZWxlY3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDTixpQkFBaUIsR0FDbE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iXHJcbiAgICAgICAgKGNsaWNrKT1cInNlbGVjdEZpbHRlclR5cGUobnVsbCk7IGZpbHRlclR5cGVNZW51VHJpZ2dlci5jbG9zZWQuZW1pdCgpXCJcclxuICAgICAgPlxyXG4gICAgICAgIDxzcGFuPnt7ICdub3RpZmljYXRpb25zLmFsbCcgfCB0cmFuc2xhdGUgfX08L3NwYW4+XHJcbiAgICAgIDwvYnV0dG9uPlxyXG4gICAgICA8YnV0dG9uXHJcbiAgICAgICAgbWF0LW1lbnUtaXRlbVxyXG4gICAgICAgIGNsYXNzPVwic291cmNlLXR5cGUtc2VsZWN0LW1lbnVfX29wdGlvblwiXHJcbiAgICAgICAgKm5nRm9yPVwibGV0IHR5cGUgb2Ygc291cmNlVHlwZXNcIlxyXG4gICAgICAgIChjbGljayk9XCJzZWxlY3RGaWx0ZXJUeXBlKHR5cGUpOyBmaWx0ZXJUeXBlTWVudVRyaWdnZXIuY2xvc2VkLmVtaXQoKVwiXHJcbiAgICAgID5cclxuICAgICAgICA8c3Bhbj57e1xyXG4gICAgICAgICAgJ3ZvY2FidWxhcnkuVk9DX05vdGZfU291cmNlVHlwZXMuJyArIHR5cGU/LnByb3BlcnRpZXMuaWQgfCB0cmFuc2xhdGVcclxuICAgICAgICB9fTwvc3Bhbj5cclxuICAgICAgPC9idXR0b24+XHJcbiAgICA8L3NwYW4+XHJcbiAgPC9tYXQtbWVudT5cclxuPC9zcGFuPlxyXG4iXX0=
@@ -0,0 +1,26 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/material/slide-toggle";
4
+ import * as i2 from "@ngx-translate/core";
5
+ export class NotificationStatusToggleComponent {
6
+ constructor() {
7
+ this.status = false;
8
+ this.statusChanged = new EventEmitter();
9
+ }
10
+ }
11
+ NotificationStatusToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationStatusToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
+ NotificationStatusToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NotificationStatusToggleComponent, selector: "app-notification-status-toggle", inputs: { status: "status" }, outputs: { statusChanged: "statusChanged" }, ngImport: i0, template: "<div class=\"notification-toggle\" (click)=\"$event.stopPropagation()\">\r\n <mat-slide-toggle [checked]=\"status\" (change)=\"statusChanged.emit($event)\">\r\n <small class=\"px-2\">{{ 'notifications.read' | translate }}</small>\r\n </mat-slide-toggle>\r\n</div>\r\n", styles: [":host{display:var(--n-status-toggle-display, flex);flex-direction:var(--n-status-toggle-direction, column);justify-content:var(--n-status-toggle-content, center)}:host ::ng-deep .mat-slide-toggle-label{margin-bottom:0}\n"], components: [{ type: i1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NotificationStatusToggleComponent, decorators: [{
14
+ type: Component,
15
+ args: [{
16
+ selector: 'app-notification-status-toggle',
17
+ templateUrl: './notification-status-toggle.component.html',
18
+ styleUrls: ['./notification-status-toggle.component.scss'],
19
+ changeDetection: ChangeDetectionStrategy.OnPush,
20
+ }]
21
+ }], propDecorators: { status: [{
22
+ type: Input
23
+ }], statusChanged: [{
24
+ type: Output
25
+ }] } });
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLXN0YXR1cy10b2dnbGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi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