@volo/abp.ng.identity 7.2.1 → 7.3.0-rc.1

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 (266) hide show
  1. package/config/components/authority-delegation/authority-delegation.component.d.ts +14 -14
  2. package/config/components/authority-delegation/authority-delegation.module.d.ts +15 -15
  3. package/config/components/authority-delegation/create-user-delegate.component.d.ts +17 -17
  4. package/config/components/authority-delegation/index.d.ts +5 -5
  5. package/config/components/authority-delegation/list-authority-delegation.component.d.ts +28 -28
  6. package/config/components/authority-delegation/my-delegated-users.component.d.ts +24 -24
  7. package/config/components/identity-setting-tabs/identity-external-login-settings.component.d.ts +20 -20
  8. package/config/components/identity-setting-tabs/identity-ldap-settings.component.d.ts +17 -17
  9. package/config/components/identity-setting-tabs/identity-setting.component.d.ts +24 -24
  10. package/config/components/identity-setting-tabs/index.d.ts +3 -3
  11. package/config/components/identity-settings.component.d.ts +12 -12
  12. package/config/components/index.d.ts +4 -4
  13. package/config/components/my-link-users-modal.component.d.ts +39 -39
  14. package/config/enums/index.d.ts +3 -3
  15. package/config/enums/policy-names.d.ts +8 -8
  16. package/config/enums/route-names.d.ts +8 -8
  17. package/config/enums/setting-tab-names.d.ts +3 -3
  18. package/config/handlers/link-login.handler.d.ts +18 -18
  19. package/config/identity-config.module.d.ts +18 -18
  20. package/config/index.d.ts +5 -5
  21. package/config/models/delegate-authority.d.ts +1 -1
  22. package/config/models/identity-settings.d.ts +30 -30
  23. package/config/models/index.d.ts +2 -2
  24. package/config/providers/index.d.ts +2 -2
  25. package/config/providers/route.provider.d.ts +8 -8
  26. package/config/providers/setting-tab.provider.d.ts +8 -8
  27. package/config/public-api.d.ts +7 -7
  28. package/config/services/authority-delegation.service.d.ts +20 -20
  29. package/config/services/identity-config.service.d.ts +13 -13
  30. package/config/services/identity-link-login.service.d.ts +10 -10
  31. package/config/services/index.d.ts +3 -3
  32. package/config/utils/factories.d.ts +3 -3
  33. package/esm2022/config/components/authority-delegation/authority-delegation.component.mjs +33 -0
  34. package/esm2022/config/components/authority-delegation/authority-delegation.module.mjs +55 -0
  35. package/esm2022/config/components/authority-delegation/create-user-delegate.component.mjs +56 -0
  36. package/{esm2020 → esm2022}/config/components/authority-delegation/index.mjs +5 -5
  37. package/esm2022/config/components/authority-delegation/list-authority-delegation.component.mjs +79 -0
  38. package/esm2022/config/components/authority-delegation/my-delegated-users.component.mjs +63 -0
  39. package/esm2022/config/components/identity-setting-tabs/identity-external-login-settings.component.mjs +61 -0
  40. package/esm2022/config/components/identity-setting-tabs/identity-ldap-settings.component.mjs +40 -0
  41. package/esm2022/config/components/identity-setting-tabs/identity-setting.component.mjs +97 -0
  42. package/{esm2020 → esm2022}/config/components/identity-setting-tabs/index.mjs +3 -3
  43. package/esm2022/config/components/identity-settings.component.mjs +29 -0
  44. package/{esm2020 → esm2022}/config/components/index.mjs +4 -4
  45. package/esm2022/config/components/my-link-users-modal.component.mjs +138 -0
  46. package/{esm2020 → esm2022}/config/enums/index.mjs +3 -3
  47. package/{esm2020 → esm2022}/config/enums/policy-names.mjs +1 -1
  48. package/{esm2020 → esm2022}/config/enums/route-names.mjs +1 -1
  49. package/{esm2020 → esm2022}/config/enums/setting-tab-names.mjs +1 -1
  50. package/esm2022/config/handlers/link-login.handler.mjs +71 -0
  51. package/esm2022/config/identity-config.module.mjs +80 -0
  52. package/{esm2020 → esm2022}/config/models/delegate-authority.mjs +1 -1
  53. package/{esm2020 → esm2022}/config/models/identity-settings.mjs +1 -1
  54. package/{esm2020 → esm2022}/config/models/index.mjs +1 -1
  55. package/{esm2020 → esm2022}/config/providers/index.mjs +2 -2
  56. package/{esm2020 → esm2022}/config/providers/route.provider.mjs +55 -55
  57. package/{esm2020 → esm2022}/config/providers/setting-tab.provider.mjs +23 -23
  58. package/{esm2020 → esm2022}/config/public-api.mjs +7 -7
  59. package/esm2022/config/services/authority-delegation.service.mjs +62 -0
  60. package/esm2022/config/services/identity-config.service.mjs +33 -0
  61. package/esm2022/config/services/identity-link-login.service.mjs +30 -0
  62. package/{esm2020 → esm2022}/config/services/index.mjs +3 -3
  63. package/{esm2020 → esm2022}/config/utils/factories.mjs +25 -25
  64. package/{esm2020 → esm2022}/config/volo-abp.ng.identity-config.mjs +4 -4
  65. package/esm2022/lib/components/claim-modal/claim-modal.component.mjs +138 -0
  66. package/esm2022/lib/components/claims/claims.component.mjs +115 -0
  67. package/esm2022/lib/components/external-login/external-login.component.mjs +86 -0
  68. package/esm2022/lib/components/external-login/user-dropdown-menu/user-dropdown-menu.component.mjs +33 -0
  69. package/{esm2020 → esm2022}/lib/components/index.mjs +14 -14
  70. package/esm2022/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.mjs +78 -0
  71. package/esm2022/lib/components/organization-units/organization-members/organization-members-modal-body.component.mjs +118 -0
  72. package/esm2022/lib/components/organization-units/organization-members/organization-members.component.mjs +56 -0
  73. package/esm2022/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.mjs +86 -0
  74. package/esm2022/lib/components/organization-units/organization-roles/organization-roles.component.mjs +51 -0
  75. package/esm2022/lib/components/organization-units/organization-units.component.mjs +158 -0
  76. package/esm2022/lib/components/organization-units/selected-organization-unit/selected-organization-unit.component.mjs +18 -0
  77. package/esm2022/lib/components/roles/roles.component.mjs +126 -0
  78. package/esm2022/lib/components/security-logs/security-logs.component.mjs +57 -0
  79. package/esm2022/lib/components/users/users.component.mjs +274 -0
  80. package/{esm2020 → esm2022}/lib/defaults/claims/default-claims-entity-actions.mjs +21 -21
  81. package/{esm2020 → esm2022}/lib/defaults/claims/default-claims-entity-props.mjs +48 -48
  82. package/{esm2020 → esm2022}/lib/defaults/claims/default-claims-form-props.mjs +51 -51
  83. package/{esm2020 → esm2022}/lib/defaults/claims/default-claims-toolbar-actions.mjs +13 -13
  84. package/{esm2020 → esm2022}/lib/defaults/claims/index.mjs +4 -4
  85. package/{esm2020 → esm2022}/lib/defaults/index.mjs +5 -5
  86. package/{esm2020 → esm2022}/lib/defaults/organization-unit/default-organization-members-entity-actions.mjs +13 -13
  87. package/{esm2020 → esm2022}/lib/defaults/organization-unit/default-organization-members-entity-props.mjs +22 -22
  88. package/{esm2020 → esm2022}/lib/defaults/organization-unit/default-organization-roles-entity-actions.mjs +13 -13
  89. package/{esm2020 → esm2022}/lib/defaults/organization-unit/default-organization-roles-entity-props.mjs +9 -9
  90. package/{esm2020 → esm2022}/lib/defaults/organization-unit/default-organization-units-form-props.mjs +12 -12
  91. package/{esm2020 → esm2022}/lib/defaults/organization-unit/default-organization-units-toolbar-actions.mjs +2 -2
  92. package/{esm2020 → esm2022}/lib/defaults/organization-unit/index.mjs +6 -6
  93. package/{esm2020 → esm2022}/lib/defaults/roles/default-roles-entity-actions.mjs +47 -47
  94. package/{esm2020 → esm2022}/lib/defaults/roles/default-roles-entity-props.mjs +23 -23
  95. package/{esm2020 → esm2022}/lib/defaults/roles/default-roles-form-props.mjs +27 -27
  96. package/{esm2020 → esm2022}/lib/defaults/roles/default-roles-toolbar-actions.mjs +13 -13
  97. package/{esm2020 → esm2022}/lib/defaults/roles/index.mjs +4 -4
  98. package/{esm2020 → esm2022}/lib/defaults/security-logs/default-security-logs-entity-actions.mjs +2 -2
  99. package/{esm2020 → esm2022}/lib/defaults/security-logs/default-security-logs-entity-props.mjs +130 -130
  100. package/{esm2020 → esm2022}/lib/defaults/security-logs/default-security-logs-toolbar-actions.mjs +2 -2
  101. package/{esm2020 → esm2022}/lib/defaults/security-logs/index.mjs +3 -3
  102. package/{esm2020 → esm2022}/lib/defaults/users/default-users-entity-actions.mjs +103 -103
  103. package/{esm2020 → esm2022}/lib/defaults/users/default-users-entity-props.mjs +112 -112
  104. package/{esm2020 → esm2022}/lib/defaults/users/default-users-form-props.mjs +70 -70
  105. package/{esm2020 → esm2022}/lib/defaults/users/default-users-toolbar-actions.mjs +24 -24
  106. package/{esm2020 → esm2022}/lib/defaults/users/index.mjs +4 -4
  107. package/{esm2020 → esm2022}/lib/enums/components.mjs +1 -1
  108. package/{esm2020 → esm2022}/lib/enums/index.mjs +2 -2
  109. package/{esm2020 → esm2022}/lib/enums/two-factor-behaviour.mjs +8 -8
  110. package/esm2022/lib/guards/extensions.guard.mjs +39 -0
  111. package/{esm2020 → esm2022}/lib/guards/index.mjs +1 -1
  112. package/{esm2020 → esm2022}/lib/identity-routing.module.mjs +90 -89
  113. package/esm2022/lib/identity.module.mjs +173 -0
  114. package/{esm2020 → esm2022}/lib/models/config-options.mjs +1 -1
  115. package/{esm2020 → esm2022}/lib/models/identity.mjs +1 -1
  116. package/{esm2020 → esm2022}/lib/models/index.mjs +2 -2
  117. package/{esm2020 → esm2022}/lib/services/index.mjs +1 -1
  118. package/esm2022/lib/services/organization-units-state.service.mjs +28 -0
  119. package/{esm2020 → esm2022}/lib/tokens/extensions.token.mjs +62 -62
  120. package/{esm2020 → esm2022}/lib/tokens/index.mjs +1 -1
  121. package/{esm2020 → esm2022}/proxy/lib/index.mjs +2 -2
  122. package/esm2022/proxy/lib/proxy/identity/identity-claim-type.service.mjs +43 -0
  123. package/{esm2020 → esm2022}/proxy/lib/proxy/identity/identity-claim-value-type.enum.mjs +9 -9
  124. package/esm2022/proxy/lib/proxy/identity/identity-external-login.service.mjs +24 -0
  125. package/esm2022/proxy/lib/proxy/identity/identity-role.service.mjs +60 -0
  126. package/esm2022/proxy/lib/proxy/identity/identity-security-log.service.mjs +38 -0
  127. package/esm2022/proxy/lib/proxy/identity/identity-settings.service.mjs +47 -0
  128. package/esm2022/proxy/lib/proxy/identity/identity-user-lookup.service.mjs +38 -0
  129. package/esm2022/proxy/lib/proxy/identity/identity-user.service.mjs +123 -0
  130. package/{esm2020 → esm2022}/proxy/lib/proxy/identity/index.mjs +10 -10
  131. package/{esm2020 → esm2022}/proxy/lib/proxy/identity/models.mjs +1 -1
  132. package/esm2022/proxy/lib/proxy/identity/organization-unit.service.mjs +91 -0
  133. package/{esm2020 → esm2022}/proxy/lib/proxy/users/index.mjs +1 -1
  134. package/{esm2020 → esm2022}/proxy/lib/proxy/users/models.mjs +1 -1
  135. package/{esm2020 → esm2022}/proxy/public-api.mjs +1 -1
  136. package/{esm2020 → esm2022}/proxy/volo-abp.ng.identity-proxy.mjs +4 -4
  137. package/{esm2020 → esm2022}/public-api.mjs +8 -8
  138. package/{esm2020 → esm2022}/volo-abp.ng.identity.mjs +4 -4
  139. package/{fesm2020 → fesm2022}/volo-abp.ng.identity-config.mjs +822 -822
  140. package/{fesm2020 → fesm2022}/volo-abp.ng.identity-config.mjs.map +1 -1
  141. package/{fesm2015 → fesm2022}/volo-abp.ng.identity-proxy.mjs +419 -419
  142. package/{fesm2015 → fesm2022}/volo-abp.ng.identity-proxy.mjs.map +1 -1
  143. package/{fesm2020 → fesm2022}/volo-abp.ng.identity.mjs +2074 -2076
  144. package/{fesm2020 → fesm2022}/volo-abp.ng.identity.mjs.map +1 -1
  145. package/index.d.ts +5 -5
  146. package/lib/components/claim-modal/claim-modal.component.d.ts +42 -42
  147. package/lib/components/claims/claims.component.d.ts +31 -31
  148. package/lib/components/external-login/external-login.component.d.ts +32 -32
  149. package/lib/components/external-login/user-dropdown-menu/user-dropdown-menu.component.d.ts +14 -14
  150. package/lib/components/index.d.ts +14 -14
  151. package/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.d.ts +34 -34
  152. package/lib/components/organization-units/organization-members/organization-members-modal-body.component.d.ts +17 -17
  153. package/lib/components/organization-units/organization-members/organization-members.component.d.ts +9 -9
  154. package/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.d.ts +17 -17
  155. package/lib/components/organization-units/organization-roles/organization-roles.component.d.ts +7 -7
  156. package/lib/components/organization-units/organization-units.component.d.ts +43 -43
  157. package/lib/components/organization-units/selected-organization-unit/selected-organization-unit.component.d.ts +8 -8
  158. package/lib/components/roles/roles.component.d.ts +39 -39
  159. package/lib/components/security-logs/security-logs.component.d.ts +19 -19
  160. package/lib/components/users/users.component.d.ts +83 -83
  161. package/lib/defaults/claims/default-claims-entity-actions.d.ts +3 -3
  162. package/lib/defaults/claims/default-claims-entity-props.d.ts +3 -3
  163. package/lib/defaults/claims/default-claims-form-props.d.ts +4 -4
  164. package/lib/defaults/claims/default-claims-toolbar-actions.d.ts +3 -3
  165. package/lib/defaults/claims/index.d.ts +4 -4
  166. package/lib/defaults/index.d.ts +5 -5
  167. package/lib/defaults/organization-unit/default-organization-members-entity-actions.d.ts +3 -3
  168. package/lib/defaults/organization-unit/default-organization-members-entity-props.d.ts +3 -3
  169. package/lib/defaults/organization-unit/default-organization-roles-entity-actions.d.ts +3 -3
  170. package/lib/defaults/organization-unit/default-organization-roles-entity-props.d.ts +3 -3
  171. package/lib/defaults/organization-unit/default-organization-units-form-props.d.ts +4 -4
  172. package/lib/defaults/organization-unit/default-organization-units-toolbar-actions.d.ts +3 -3
  173. package/lib/defaults/organization-unit/index.d.ts +6 -6
  174. package/lib/defaults/roles/default-roles-entity-actions.d.ts +3 -3
  175. package/lib/defaults/roles/default-roles-entity-props.d.ts +3 -3
  176. package/lib/defaults/roles/default-roles-form-props.d.ts +4 -4
  177. package/lib/defaults/roles/default-roles-toolbar-actions.d.ts +3 -3
  178. package/lib/defaults/roles/index.d.ts +4 -4
  179. package/lib/defaults/security-logs/default-security-logs-entity-actions.d.ts +3 -3
  180. package/lib/defaults/security-logs/default-security-logs-entity-props.d.ts +3 -3
  181. package/lib/defaults/security-logs/default-security-logs-toolbar-actions.d.ts +3 -3
  182. package/lib/defaults/security-logs/index.d.ts +3 -3
  183. package/lib/defaults/users/default-users-entity-actions.d.ts +3 -3
  184. package/lib/defaults/users/default-users-entity-props.d.ts +3 -3
  185. package/lib/defaults/users/default-users-form-props.d.ts +4 -4
  186. package/lib/defaults/users/default-users-toolbar-actions.d.ts +5 -5
  187. package/lib/defaults/users/index.d.ts +4 -4
  188. package/lib/enums/components.d.ts +9 -9
  189. package/lib/enums/index.d.ts +2 -2
  190. package/lib/enums/two-factor-behaviour.d.ts +6 -6
  191. package/lib/guards/extensions.guard.d.ts +10 -11
  192. package/lib/guards/index.d.ts +1 -1
  193. package/lib/identity-routing.module.d.ts +7 -7
  194. package/lib/identity.module.d.ts +34 -34
  195. package/lib/models/config-options.d.ts +35 -35
  196. package/lib/models/identity.d.ts +13 -13
  197. package/lib/models/index.d.ts +2 -2
  198. package/lib/services/index.d.ts +1 -1
  199. package/lib/services/organization-units-state.service.d.ts +15 -15
  200. package/lib/tokens/extensions.token.d.ts +74 -74
  201. package/lib/tokens/index.d.ts +1 -1
  202. package/package.json +17 -27
  203. package/proxy/index.d.ts +5 -5
  204. package/proxy/lib/index.d.ts +2 -2
  205. package/proxy/lib/proxy/identity/identity-claim-type.service.d.ts +16 -16
  206. package/proxy/lib/proxy/identity/identity-claim-value-type.enum.d.ts +7 -7
  207. package/proxy/lib/proxy/identity/identity-external-login.service.d.ts +10 -10
  208. package/proxy/lib/proxy/identity/identity-role.service.d.ts +20 -20
  209. package/proxy/lib/proxy/identity/identity-security-log.service.d.ts +15 -15
  210. package/proxy/lib/proxy/identity/identity-settings.service.d.ts +16 -16
  211. package/proxy/lib/proxy/identity/identity-user-lookup.service.d.ts +16 -16
  212. package/proxy/lib/proxy/identity/identity-user.service.d.ts +35 -35
  213. package/proxy/lib/proxy/identity/index.d.ts +10 -10
  214. package/proxy/lib/proxy/identity/models.d.ts +269 -269
  215. package/proxy/lib/proxy/identity/organization-unit.service.d.ts +26 -26
  216. package/proxy/lib/proxy/users/index.d.ts +1 -1
  217. package/proxy/lib/proxy/users/models.d.ts +12 -12
  218. package/proxy/public-api.d.ts +1 -1
  219. package/public-api.d.ts +8 -8
  220. package/esm2020/config/components/authority-delegation/authority-delegation.component.mjs +0 -32
  221. package/esm2020/config/components/authority-delegation/authority-delegation.module.mjs +0 -54
  222. package/esm2020/config/components/authority-delegation/create-user-delegate.component.mjs +0 -55
  223. package/esm2020/config/components/authority-delegation/list-authority-delegation.component.mjs +0 -78
  224. package/esm2020/config/components/authority-delegation/my-delegated-users.component.mjs +0 -62
  225. package/esm2020/config/components/identity-setting-tabs/identity-external-login-settings.component.mjs +0 -60
  226. package/esm2020/config/components/identity-setting-tabs/identity-ldap-settings.component.mjs +0 -39
  227. package/esm2020/config/components/identity-setting-tabs/identity-setting.component.mjs +0 -96
  228. package/esm2020/config/components/identity-settings.component.mjs +0 -28
  229. package/esm2020/config/components/my-link-users-modal.component.mjs +0 -137
  230. package/esm2020/config/handlers/link-login.handler.mjs +0 -70
  231. package/esm2020/config/identity-config.module.mjs +0 -79
  232. package/esm2020/config/services/authority-delegation.service.mjs +0 -61
  233. package/esm2020/config/services/identity-config.service.mjs +0 -32
  234. package/esm2020/config/services/identity-link-login.service.mjs +0 -29
  235. package/esm2020/lib/components/claim-modal/claim-modal.component.mjs +0 -137
  236. package/esm2020/lib/components/claims/claims.component.mjs +0 -114
  237. package/esm2020/lib/components/external-login/external-login.component.mjs +0 -85
  238. package/esm2020/lib/components/external-login/user-dropdown-menu/user-dropdown-menu.component.mjs +0 -32
  239. package/esm2020/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.mjs +0 -77
  240. package/esm2020/lib/components/organization-units/organization-members/organization-members-modal-body.component.mjs +0 -117
  241. package/esm2020/lib/components/organization-units/organization-members/organization-members.component.mjs +0 -55
  242. package/esm2020/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.mjs +0 -85
  243. package/esm2020/lib/components/organization-units/organization-roles/organization-roles.component.mjs +0 -50
  244. package/esm2020/lib/components/organization-units/organization-units.component.mjs +0 -157
  245. package/esm2020/lib/components/organization-units/selected-organization-unit/selected-organization-unit.component.mjs +0 -17
  246. package/esm2020/lib/components/roles/roles.component.mjs +0 -125
  247. package/esm2020/lib/components/security-logs/security-logs.component.mjs +0 -56
  248. package/esm2020/lib/components/users/users.component.mjs +0 -275
  249. package/esm2020/lib/guards/extensions.guard.mjs +0 -38
  250. package/esm2020/lib/identity.module.mjs +0 -172
  251. package/esm2020/lib/services/organization-units-state.service.mjs +0 -27
  252. package/esm2020/proxy/lib/proxy/identity/identity-claim-type.service.mjs +0 -42
  253. package/esm2020/proxy/lib/proxy/identity/identity-external-login.service.mjs +0 -23
  254. package/esm2020/proxy/lib/proxy/identity/identity-role.service.mjs +0 -59
  255. package/esm2020/proxy/lib/proxy/identity/identity-security-log.service.mjs +0 -37
  256. package/esm2020/proxy/lib/proxy/identity/identity-settings.service.mjs +0 -46
  257. package/esm2020/proxy/lib/proxy/identity/identity-user-lookup.service.mjs +0 -37
  258. package/esm2020/proxy/lib/proxy/identity/identity-user.service.mjs +0 -122
  259. package/esm2020/proxy/lib/proxy/identity/organization-unit.service.mjs +0 -90
  260. package/fesm2015/volo-abp.ng.identity-config.mjs +0 -886
  261. package/fesm2015/volo-abp.ng.identity-config.mjs.map +0 -1
  262. package/fesm2015/volo-abp.ng.identity.mjs +0 -2285
  263. package/fesm2015/volo-abp.ng.identity.mjs.map +0 -1
  264. package/fesm2020/volo-abp.ng.identity-proxy.mjs +0 -444
  265. package/fesm2020/volo-abp.ng.identity-proxy.mjs.map +0 -1
  266. package/proxy/src/lib/proxy/README.md +0 -17
@@ -1,2285 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Output, Input, inject, ViewChild, Inject, InjectionToken, Injectable, LOCALE_ID, NgModule } from '@angular/core';
3
- import * as i7 from '@abp/ng.theme.shared/extensions';
4
- import { FormPropData, generateFormFromProps, FormProp, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, DateAdapter, EntityAction, EntityProp, ToolbarAction, ToolbarComponent, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
5
- import { finalize, take, tap, switchMap, map, mapTo } from 'rxjs/operators';
6
- import * as i3 from '@angular/forms';
7
- import { Validators, UntypedFormControl } from '@angular/forms';
8
- import * as i3$1 from '@volo/abp.ng.identity/proxy';
9
- import { OrganizationUnitService } from '@volo/abp.ng.identity/proxy';
10
- import * as i2 from '@abp/ng.theme.shared';
11
- import { getPasswordValidators, Confirmation, ConfirmationService, ThemeSharedModule } from '@abp/ng.theme.shared';
12
- import * as i5 from '@angular/common';
13
- import { formatDate } from '@angular/common';
14
- import * as i1 from '@abp/ng.core';
15
- import { mapEnumToOptions, SubscriptionService, generatePassword, ListService, InternalStore, LocalizationService, escapeHtmlChars, ConfigStateService, getShortDateShortTimeFormat, RouterOutletComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
16
- import { __classPrivateFieldGet, __rest } from 'tslib';
17
- import * as i10$1 from '@abp/ng.components/tree';
18
- import { TreeAdapter, TreeModule } from '@abp/ng.components/tree';
19
- import { BehaviorSubject, of } from 'rxjs';
20
- import * as i6 from '@volo/abp.commercial.ng.ui';
21
- import { SHOW_ENTITY_HISTORY, CommercialUiModule, AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
22
- import * as i8 from '@ng-bootstrap/ng-bootstrap';
23
- import { NgbDateAdapter, NgbNavModule, NgbDropdownModule, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
24
- import * as i9 from '@ngx-validate/core';
25
- import { NgxValidateCoreModule } from '@ngx-validate/core';
26
- import * as i10 from '@abp/ng.permission-management';
27
- import { PermissionManagementModule } from '@abp/ng.permission-management';
28
- import * as i12 from '@abp/ng.components/page';
29
- import { PageModule } from '@abp/ng.components/page';
30
- import { ImpersonationService } from '@volo/abp.commercial.ng.ui/config';
31
- import * as i1$1 from '@angular/router';
32
- import { RouterModule } from '@angular/router';
33
-
34
- class ExternalLoginComponent {
35
- constructor(injector, fb, service, confirmationService) {
36
- this.injector = injector;
37
- this.fb = fb;
38
- this.service = service;
39
- this.confirmationService = confirmationService;
40
- this.modalBusy = false;
41
- this.dataSave = new EventEmitter();
42
- this.options = {
43
- hideCancelBtn: true,
44
- yesText: 'Ok',
45
- };
46
- this.visibleChange = new EventEmitter();
47
- }
48
- get visible() {
49
- return this._visible;
50
- }
51
- set visible(value) {
52
- if (this._visible === value)
53
- return;
54
- this._visible = value;
55
- this.visibleChange.emit(value);
56
- }
57
- ngOnChanges() {
58
- if (this._visible) {
59
- this.buildForm();
60
- }
61
- }
62
- buildForm() {
63
- const data = new FormPropData(this.injector, this.selected);
64
- this.form = generateFormFromProps(data);
65
- this.getExternalLoginProviders();
66
- }
67
- getExternalLoginProviders() {
68
- this.service.getExternalLoginProviders().subscribe(externalUsers => {
69
- if (externalUsers.length == 0) {
70
- this.visible = false;
71
- this.confirmationService.info('AbpIdentity::NoExternalLoginProviderAvailable', '', this.options);
72
- }
73
- else {
74
- this.externalLoginProviders = externalUsers;
75
- }
76
- });
77
- }
78
- save() {
79
- if (this.modalBusy)
80
- return;
81
- this.service
82
- .importExternalUser({
83
- provider: this.selectedExternalLoginProvider,
84
- userNameOrEmailAddress: this.userNameOrEmailAddress,
85
- password: this.password,
86
- })
87
- .pipe(finalize(() => (this.modalBusy = false)))
88
- .subscribe(() => {
89
- this.dataSave.emit();
90
- this.visible = false;
91
- });
92
- }
93
- }
94
- ExternalLoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ExternalLoginComponent, deps: [{ token: i0.Injector }, { token: i3.UntypedFormBuilder }, { token: i3$1.IdentityUserService }, { token: i2.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
95
- ExternalLoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ExternalLoginComponent, selector: "abp-external-login", inputs: { visible: "visible" }, outputs: { dataSave: "dataSave", visibleChange: "visibleChange" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::ExternalUser' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-6\">\r\n <label class=\"form-label\" for=\"providerTypeSelect\">\r\n <span>{{ 'AbpIdentity::Provider' | abpLocalization }}</span> </label\r\n ><select\r\n autofocus\r\n id=\"providerTypeSelect\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"selectedExternalLoginProvider\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n <option *ngFor=\"let type of externalLoginProviders\" [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::UserNameOrEmailAddress' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"newUserName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"userNameOrEmailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::Password' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"password\"\r\n type=\"password\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"password\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ExternalLoginComponent, decorators: [{
97
- type: Component,
98
- args: [{ selector: 'abp-external-login', template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::ExternalUser' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-6\">\r\n <label class=\"form-label\" for=\"providerTypeSelect\">\r\n <span>{{ 'AbpIdentity::Provider' | abpLocalization }}</span> </label\r\n ><select\r\n autofocus\r\n id=\"providerTypeSelect\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"selectedExternalLoginProvider\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n <option *ngFor=\"let type of externalLoginProviders\" [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::UserNameOrEmailAddress' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"newUserName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"userNameOrEmailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::Password' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"password\"\r\n type=\"password\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"password\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
99
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i3.UntypedFormBuilder }, { type: i3$1.IdentityUserService }, { type: i2.ConfirmationService }]; }, propDecorators: { dataSave: [{
100
- type: Output
101
- }], visible: [{
102
- type: Input
103
- }], visibleChange: [{
104
- type: Output
105
- }] } });
106
-
107
- var eIdentityTwoFactorBehaviour;
108
- (function (eIdentityTwoFactorBehaviour) {
109
- eIdentityTwoFactorBehaviour[eIdentityTwoFactorBehaviour["Optional"] = 0] = "Optional";
110
- eIdentityTwoFactorBehaviour[eIdentityTwoFactorBehaviour["Disabled"] = 1] = "Disabled";
111
- eIdentityTwoFactorBehaviour[eIdentityTwoFactorBehaviour["Forced"] = 2] = "Forced";
112
- })(eIdentityTwoFactorBehaviour || (eIdentityTwoFactorBehaviour = {}));
113
- const identityTwoFactorBehaviourOptions = mapEnumToOptions(eIdentityTwoFactorBehaviour);
114
-
115
- class ClaimModalComponent {
116
- constructor(roleService, userService, subscription, fb) {
117
- this.roleService = roleService;
118
- this.userService = userService;
119
- this.subscription = subscription;
120
- this.fb = fb;
121
- this.visibleChange = new EventEmitter();
122
- this.modalBusy = false;
123
- this.inputType = 'String';
124
- }
125
- get visible() {
126
- return this._visible;
127
- }
128
- set visible(value) {
129
- if (this._visible === value)
130
- return;
131
- this._visible = value;
132
- this.visibleChange.emit(value);
133
- }
134
- ngOnChanges({ visible, subject }) {
135
- if (subject && subject.currentValue) {
136
- this.service = subject.currentValue.type === 'roles' ? this.roleService : this.userService;
137
- }
138
- if (!visible)
139
- return;
140
- if (visible.currentValue)
141
- this.initModal();
142
- else {
143
- this.subjectClaims = null;
144
- }
145
- }
146
- initModal() {
147
- this.buildForm();
148
- this.getClaimTypeNames();
149
- this.getSubjectClaims(this.subject);
150
- }
151
- claimTypeChange(item) {
152
- let inputType;
153
- let subjectInputType;
154
- if (item) {
155
- inputType = this.claimTypes.find(claim => claim.name == item).valueTypeAsString;
156
- }
157
- else {
158
- inputType = this.claimTypes.find(claim => claim.name == this.form.controls.claimType.value).valueTypeAsString;
159
- }
160
- switch (inputType) {
161
- case 'Int':
162
- this.inputType = 'Number';
163
- subjectInputType = 'Number';
164
- break;
165
- case 'Boolean':
166
- this.inputType = 'Boolean';
167
- subjectInputType = 'Boolean';
168
- break;
169
- case 'String':
170
- this.inputType = 'String';
171
- subjectInputType = 'String';
172
- break;
173
- case 'DateTime':
174
- this.inputType = 'datetime-local';
175
- subjectInputType = 'datetime-local';
176
- break;
177
- }
178
- return subjectInputType;
179
- }
180
- getClaimTypeNames() {
181
- this.subscription.addOne(this.service.getAllClaimTypes(), claimTypes => {
182
- this.claimTypes = claimTypes;
183
- });
184
- }
185
- getSubjectClaims(subject) {
186
- this.subscription.addOne(this.service.getClaims(subject.id).pipe(take(1)), claims => {
187
- this.subjectClaims = claims.map(item => (Object.assign(Object.assign({}, item), { inputType: this.claimTypeChange(item.claimType) })));
188
- });
189
- }
190
- addClaim(ngForm) {
191
- if (this.form.invalid) {
192
- return;
193
- }
194
- const key = this.subject.type === 'roles' ? 'roleId' : 'userId';
195
- const claim = Object.assign(Object.assign({ [key]: this.subject.id }, this.form.value), { inputType: this.inputType });
196
- this.subjectClaims.push(claim);
197
- ngForm.resetForm();
198
- setTimeout(() => {
199
- this.form.reset();
200
- }, 0);
201
- }
202
- removeClaim(index) {
203
- if (!this.subjectClaims[index])
204
- return;
205
- this.subjectClaims = this.subjectClaims.filter((_, i) => i !== index);
206
- }
207
- save() {
208
- if (this.modalBusy)
209
- return;
210
- this.modalBusy = true;
211
- this.subscription.addOne(this.service.updateClaims(this.subject.id, this.subjectClaims).pipe(take(1), finalize(() => (this.modalBusy = false))), () => (this.visible = false));
212
- }
213
- buildForm() {
214
- this.form = this.fb.group({
215
- claimType: ['', [Validators.required]],
216
- claimValue: ['', [Validators.required]],
217
- });
218
- }
219
- }
220
- ClaimModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ClaimModalComponent, deps: [{ token: i3$1.IdentityRoleService }, { token: i3$1.IdentityUserService }, { token: i1.SubscriptionService }, { token: i3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
221
- ClaimModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: { subject: "subject", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::Claims' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n <option *ngFor=\"let type of claimTypes\" [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">{{ 'AbpIdentity::ClaimValue' | abpLocalization }}</label>\r\n\r\n <select\r\n *ngIf=\"inputType == 'Boolean'; else otherInput\"\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n <ng-template #otherInput>\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n />\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n <div class=\"willBeHidden mt-3\" *ngIf=\"subjectClaims && subjectClaims.length\">\r\n <div class=\"input-group mb-3\" *ngFor=\"let claim of subjectClaims; let i = index\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n <select\r\n *ngIf=\"subjectClaims[i].inputType == 'Boolean'; else otherSubjectInput\"\r\n autofocus\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n\r\n <ng-template #otherSubjectInput>\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n </ng-template>\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i9.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ClaimModalComponent, decorators: [{
223
- type: Component,
224
- args: [{ selector: 'abp-claim-modal', providers: [SubscriptionService], template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::Claims' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n <option *ngFor=\"let type of claimTypes\" [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">{{ 'AbpIdentity::ClaimValue' | abpLocalization }}</label>\r\n\r\n <select\r\n *ngIf=\"inputType == 'Boolean'; else otherInput\"\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n <ng-template #otherInput>\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n />\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n <div class=\"willBeHidden mt-3\" *ngIf=\"subjectClaims && subjectClaims.length\">\r\n <div class=\"input-group mb-3\" *ngFor=\"let claim of subjectClaims; let i = index\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n <select\r\n *ngIf=\"subjectClaims[i].inputType == 'Boolean'; else otherSubjectInput\"\r\n autofocus\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n\r\n <ng-template #otherSubjectInput>\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n </ng-template>\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
225
- }], ctorParameters: function () { return [{ type: i3$1.IdentityRoleService }, { type: i3$1.IdentityUserService }, { type: i1.SubscriptionService }, { type: i3.UntypedFormBuilder }]; }, propDecorators: { subject: [{
226
- type: Input
227
- }], visible: [{
228
- type: Input
229
- }], visibleChange: [{
230
- type: Output
231
- }] } });
232
-
233
- var _UsersComponent_roleCount;
234
- class UsersComponent {
235
- constructor(list, confirmationService, service, fb, toasterService, injector, configState, roleService, organizationUnitService) {
236
- this.list = list;
237
- this.confirmationService = confirmationService;
238
- this.service = service;
239
- this.fb = fb;
240
- this.toasterService = toasterService;
241
- this.injector = injector;
242
- this.configState = configState;
243
- this.roleService = roleService;
244
- this.organizationUnitService = organizationUnitService;
245
- this.subscription = inject(SubscriptionService);
246
- _UsersComponent_roleCount.set(this, new BehaviorSubject(0));
247
- this.data = { items: [], totalCount: 0 };
248
- this.visiblePermissions = false;
249
- this.modalBusy = false;
250
- this.visibleClaims = false;
251
- this.claimSubject = {};
252
- this.filters = {};
253
- this.organization = {
254
- response: {},
255
- nodes: [],
256
- checkedKeys: [],
257
- expandedKeys: [],
258
- selectFn: () => false,
259
- };
260
- this.twoFactor = {
261
- isModalVisible: false,
262
- checkboxValue: false,
263
- isOptional: false,
264
- };
265
- this.lockForm = this.fb.group({
266
- lockoutEnd: [new Date().toISOString(), [Validators.required]],
267
- });
268
- this.dateTimePickerProps = FormProp.create({
269
- displayName: 'AbpIdentity::DisplayName:LockoutEnd',
270
- validators: () => [Validators.required],
271
- name: 'lockoutEnd',
272
- id: 'lockout-end',
273
- type: "datetime" /* ePropType.DateTime */,
274
- });
275
- this.trackByFn = (index, item) => Object.keys(item)[0] || index;
276
- this.isFromOrgUnit = (roleId) => this.selectedOrganizationUnits.some(org => org.roles.some(f => f.roleId === roleId));
277
- this.onVisiblePermissionChange = (value) => {
278
- this.visiblePermissions = value;
279
- };
280
- }
281
- patchRoleCount() {
282
- __classPrivateFieldGet(this, _UsersComponent_roleCount, "f").next(this.rawRoleNames.filter(obj => Object.values(obj).includes(true)).length);
283
- }
284
- get rawRoleNames() {
285
- var _a;
286
- return (_a = this.form.controls.roleNames) === null || _a === void 0 ? void 0 : _a.getRawValue();
287
- }
288
- get roleGroups() {
289
- var _a;
290
- return ((_a = this.form.get('roleNames')) === null || _a === void 0 ? void 0 : _a.controls) || [];
291
- }
292
- get roleCount$() {
293
- return __classPrivateFieldGet(this, _UsersComponent_roleCount, "f").asObservable();
294
- }
295
- ngOnInit() {
296
- this.setPasswordForm = this.fb.group({
297
- newPassword: [
298
- '',
299
- {
300
- validators: [Validators.required, ...getPasswordValidators(this.injector)],
301
- },
302
- ],
303
- });
304
- const { key } = identityTwoFactorBehaviourOptions[0];
305
- this.twoFactor.isOptional =
306
- this.configState.getFeature('Identity.TwoFactor') === key &&
307
- this.configState.getSetting('Abp.Identity.TwoFactor.Behaviour') === key;
308
- this.hookToQuery();
309
- }
310
- clearFilters() {
311
- this.filters = {};
312
- }
313
- hookToQuery() {
314
- this.list
315
- .hookToQuery(query => {
316
- const _a = this.filters, { isLockedOut, notActive } = _a, params = __rest(_a, ["isLockedOut", "notActive"]);
317
- return this.service.getList(Object.assign(Object.assign(Object.assign(Object.assign({}, query), params), (isLockedOut && { isLockedOut })), (notActive && { notActive })));
318
- })
319
- .subscribe(res => (this.data = res));
320
- }
321
- buildForm() {
322
- const data = new FormPropData(this.injector, this.selected);
323
- this.form = generateFormFromProps(data);
324
- this.service.getAssignableRoles().subscribe(({ items }) => {
325
- this.roles = items;
326
- this.form.addControl('roleNames', this.fb.array(this.roles.map(role => {
327
- var _a;
328
- return this.fb.group({
329
- [role.name]: [
330
- this.selected.id
331
- ? !!((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.find(userRole => userRole.id === role.id))
332
- : role.isDefault,
333
- ],
334
- });
335
- })));
336
- this.patchRoleCount();
337
- this.subscription.addOne(this.form.controls['roleNames'].valueChanges, () => this.patchRoleCount());
338
- });
339
- this.service.getAvailableOrganizationUnits().subscribe(res => {
340
- this.organization.response = res;
341
- this.organization.nodes = new TreeAdapter(res.items).getTree();
342
- this.organization.expandedKeys = res.items.map(item => item.id);
343
- this.organization.checkedKeys = this.selectedOrganizationUnits.map(unit => unit.id);
344
- });
345
- }
346
- openModal() {
347
- this.buildForm();
348
- this.isModalVisible = true;
349
- }
350
- onAdd() {
351
- this.selected = {};
352
- this.userRoles = [];
353
- this.selectedOrganizationUnits = [];
354
- this.openModal();
355
- }
356
- onEdit(id) {
357
- this.service
358
- .get(id)
359
- .pipe(tap(selectedUser => (this.selected = selectedUser)), switchMap(() => this.service.getRoles(id)), tap(res => (this.userRoles = res.items || [])), switchMap(() => this.service.getOrganizationUnits(id)), tap(res => (this.selectedOrganizationUnits = res)), take(1))
360
- .subscribe(() => this.openModal());
361
- }
362
- save() {
363
- var _a;
364
- if (!this.form.valid)
365
- return;
366
- this.modalBusy = true;
367
- const { roleNames } = this.form.value;
368
- const mappedRoleNames = ((_a = roleNames === null || roleNames === void 0 ? void 0 : roleNames.filter(role => !!role[Object.keys(role)[0]])) === null || _a === void 0 ? void 0 : _a.map(role => Object.keys(role)[0])) ||
369
- [];
370
- const { id } = this.selected;
371
- (id
372
- ? this.service.update(id, Object.assign(Object.assign(Object.assign({}, this.selected), this.form.value), { roleNames: mappedRoleNames, organizationUnitIds: this.organization.checkedKeys }))
373
- : this.service.create(Object.assign(Object.assign({}, this.form.value), { roleNames: mappedRoleNames, organizationUnitIds: this.organization.checkedKeys })))
374
- .pipe(finalize(() => (this.modalBusy = false)))
375
- .subscribe(() => {
376
- this.list.get();
377
- this.isModalVisible = false;
378
- });
379
- }
380
- delete(id, userName) {
381
- this.confirmationService
382
- .warn('AbpIdentity::UserDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
383
- messageLocalizationParams: [userName],
384
- })
385
- .subscribe((status) => {
386
- if (status === Confirmation.Status.confirm) {
387
- this.service.delete(id).subscribe(() => this.list.get());
388
- }
389
- });
390
- }
391
- onManageClaims(id) {
392
- this.claimSubject = {
393
- id,
394
- type: 'users',
395
- };
396
- this.visibleClaims = true;
397
- }
398
- unlock(id) {
399
- this.service.unlock(id).subscribe(() => {
400
- this.toasterService.success('AbpIdentity::UserUnlocked');
401
- this.list.get();
402
- });
403
- }
404
- openPermissionsModal(providerKey, userName) {
405
- this.providerKey = providerKey;
406
- this.entityDisplayName = userName;
407
- setTimeout(() => {
408
- this.visiblePermissions = true;
409
- }, 0);
410
- }
411
- setPassword() {
412
- if (this.setPasswordForm.invalid)
413
- return;
414
- this.modalBusy = true;
415
- this.service
416
- .updatePassword(this.selected.id, this.setPasswordForm.value)
417
- .pipe(finalize(() => (this.modalBusy = false)))
418
- .subscribe(() => {
419
- this.isSetPasswordModalVisible = false;
420
- this.selected = {};
421
- this.setPasswordForm.reset();
422
- });
423
- }
424
- generatePassword() {
425
- this.setPasswordForm.get('newPassword').setValue(generatePassword());
426
- }
427
- lock() {
428
- const { lockoutEnd } = this.lockForm.value;
429
- this.modalBusy = true;
430
- this.service
431
- .lock(this.selected.id, lockoutEnd)
432
- .pipe(finalize(() => (this.modalBusy = false)))
433
- .subscribe(() => {
434
- this.isLockModalVisible = false;
435
- this.lockForm.reset({
436
- lockoutEnd: new Date().toISOString(),
437
- });
438
- this.list.get();
439
- });
440
- }
441
- setTwoFactor() {
442
- this.modalBusy = true;
443
- this.service
444
- .setTwoFactorEnabled(this.selected.id, this.twoFactor.checkboxValue)
445
- .pipe(finalize(() => (this.modalBusy = false)))
446
- .subscribe(() => {
447
- this.twoFactor.isModalVisible = false;
448
- this.list.get();
449
- });
450
- }
451
- }
452
- _UsersComponent_roleCount = new WeakMap();
453
- UsersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: UsersComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i3$1.IdentityUserService }, { token: i3.UntypedFormBuilder }, { token: i2.ToasterService }, { token: i0.Injector }, { token: i1.ConfigStateService }, { token: i3$1.IdentityRoleService }, { token: i3$1.OrganizationUnitService }], target: i0.ɵɵFactoryTarget.Component });
454
- UsersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: UsersComponent, selector: "abp-users", providers: [
455
- ListService,
456
- {
457
- provide: EXTENSIONS_IDENTIFIER,
458
- useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
459
- },
460
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"roleService.getList\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"organizationUnitService.getList\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::Name' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.name\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::Surname' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.surname\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::CreationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minCreationDate\"\r\n endDateProp=\"maxCreationDate\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::ModificationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minModificationTime\"\r\n endDateProp=\"maxModificationTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"d-flex col-auto mb-3 mb-md-0 gap-3\">\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"not-active\"\r\n [(ngModel)]=\"filters.notActive\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"not-active\">{{\r\n 'AbpIdentity::NotActive' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"email-confirmed\"\r\n [(ngModel)]=\"filters.emailConfirmed\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"email-confirmed\">{{\r\n 'AbpIdentity::EmailConfirmed' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"align-self-center \">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"is-locked-out\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"is-locked-out\">{{\r\n 'AbpIdentity::Lock' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"is-external\"\r\n [(ngModel)]=\"filters.isExternal\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"is-external\">{{\r\n 'AbpIdentity::IsExternal' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form *ngIf=\"form\" [formGroup]=\"form\" id=\"userForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </ng-template>\r\n </li>\r\n <li id=\"user-roles\" *abpPermission=\"'AbpIdentity.Users.Update.ManageRoles'\" ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::Roles' | abpLocalization }}\r\n <span *ngIf=\"roleCount$ | async as roleCount\">({{ roleCount }})</span>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div\r\n *ngFor=\"let roleGroup of roleGroups; let i = index; trackBy: trackByFn\"\r\n class=\"form-check mb-2\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n [abpDisabled]=\"isFromOrgUnit(roles[i].id)\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">\r\n {{ roles[i].name }}\r\n <span *ngIf=\"isFromOrgUnit(roles[i].id)\">({{ 'OU' | abpLocalization }})</span>\r\n </label>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li\r\n id=\"user-organization-units\"\r\n *abpPermission=\"'AbpIdentity.Users.Update.ManageOU'\"\r\n ngbNavItem\r\n >\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n <ng-container *ngIf=\"!!organization.checkedKeys.length\">\r\n <span>({{ organization.checkedKeys.length }})</span>\r\n </ng-container></a\r\n >\r\n\r\n <ng-template ngbNavContent>\r\n <abp-tree\r\n *ngIf=\"organization.nodes?.length; else noDataMessage\"\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [changeCheckboxWithNode]=\"true\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n ></abp-tree>\r\n\r\n <ng-template #noDataMessage>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"userForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n>\r\n</abp-permission-management>\r\n\r\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\r\n\r\n<abp-modal [(visible)]=\"isSetPasswordModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SetPassword' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form\r\n [formGroup]=\"setPasswordForm\"\r\n id=\"PasswordForm\"\r\n (ngSubmit)=\"setPassword()\"\r\n validateOnSubmit\r\n >\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn btn-secondary\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-success\"\r\n [title]=\"'AbpIdentity::GenerateRandomPasswordTooltip' | abpLocalization\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </div>\r\n </form>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-modal [(visible)]=\"isLockModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"lockForm\" (ngSubmit)=\"lock()\" validateOnSubmit>\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:LockoutEnd' | abpLocalization\r\n }}</label>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\" [formGroup]=\"lockForm\">\r\n <abp-date-time-picker [prop]=\"dateTimePickerProps\"></abp-date-time-picker>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n (click)=\"lock()\"\r\n [disabled]=\"lockForm?.invalid || modalBusy\"\r\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i6.LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount", "emptyOption"] }, { kind: "component", type: i6.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "component", type: i7.DateTimePickerComponent, selector: "abp-date-time-picker", inputs: ["prop", "meridian"], exportAs: ["abpDateTimePicker"] }, { kind: "component", type: i7.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "directive", type: i7.DisabledDirective, selector: "[abpDisabled]", inputs: ["abpDisabled"] }, { kind: "component", type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i6.AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { kind: "directive", type: i8.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i8.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i8.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i8.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i8.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i8.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i8.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i9.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }, { kind: "directive", type: i9.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i10.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: i10$1.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i12.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: UsersComponent, decorators: [{
462
- type: Component,
463
- args: [{ selector: 'abp-users', providers: [
464
- ListService,
465
- {
466
- provide: EXTENSIONS_IDENTIFIER,
467
- useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
468
- },
469
- ], template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"roleService.getList\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"organizationUnitService.getList\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::Name' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.name\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::Surname' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.surname\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::CreationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minCreationDate\"\r\n endDateProp=\"maxCreationDate\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::ModificationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minModificationTime\"\r\n endDateProp=\"maxModificationTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"d-flex col-auto mb-3 mb-md-0 gap-3\">\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"not-active\"\r\n [(ngModel)]=\"filters.notActive\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"not-active\">{{\r\n 'AbpIdentity::NotActive' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"email-confirmed\"\r\n [(ngModel)]=\"filters.emailConfirmed\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"email-confirmed\">{{\r\n 'AbpIdentity::EmailConfirmed' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"align-self-center \">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"is-locked-out\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"is-locked-out\">{{\r\n 'AbpIdentity::Lock' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"is-external\"\r\n [(ngModel)]=\"filters.isExternal\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"is-external\">{{\r\n 'AbpIdentity::IsExternal' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form *ngIf=\"form\" [formGroup]=\"form\" id=\"userForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </ng-template>\r\n </li>\r\n <li id=\"user-roles\" *abpPermission=\"'AbpIdentity.Users.Update.ManageRoles'\" ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::Roles' | abpLocalization }}\r\n <span *ngIf=\"roleCount$ | async as roleCount\">({{ roleCount }})</span>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div\r\n *ngFor=\"let roleGroup of roleGroups; let i = index; trackBy: trackByFn\"\r\n class=\"form-check mb-2\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n [abpDisabled]=\"isFromOrgUnit(roles[i].id)\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">\r\n {{ roles[i].name }}\r\n <span *ngIf=\"isFromOrgUnit(roles[i].id)\">({{ 'OU' | abpLocalization }})</span>\r\n </label>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li\r\n id=\"user-organization-units\"\r\n *abpPermission=\"'AbpIdentity.Users.Update.ManageOU'\"\r\n ngbNavItem\r\n >\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n <ng-container *ngIf=\"!!organization.checkedKeys.length\">\r\n <span>({{ organization.checkedKeys.length }})</span>\r\n </ng-container></a\r\n >\r\n\r\n <ng-template ngbNavContent>\r\n <abp-tree\r\n *ngIf=\"organization.nodes?.length; else noDataMessage\"\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [changeCheckboxWithNode]=\"true\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n ></abp-tree>\r\n\r\n <ng-template #noDataMessage>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"userForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n>\r\n</abp-permission-management>\r\n\r\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\r\n\r\n<abp-modal [(visible)]=\"isSetPasswordModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SetPassword' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form\r\n [formGroup]=\"setPasswordForm\"\r\n id=\"PasswordForm\"\r\n (ngSubmit)=\"setPassword()\"\r\n validateOnSubmit\r\n >\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn btn-secondary\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-success\"\r\n [title]=\"'AbpIdentity::GenerateRandomPasswordTooltip' | abpLocalization\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </div>\r\n </form>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-modal [(visible)]=\"isLockModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"lockForm\" (ngSubmit)=\"lock()\" validateOnSubmit>\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:LockoutEnd' | abpLocalization\r\n }}</label>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\" [formGroup]=\"lockForm\">\r\n <abp-date-time-picker [prop]=\"dateTimePickerProps\"></abp-date-time-picker>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n (click)=\"lock()\"\r\n [disabled]=\"lockForm?.invalid || modalBusy\"\r\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
470
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.ConfirmationService }, { type: i3$1.IdentityUserService }, { type: i3.UntypedFormBuilder }, { type: i2.ToasterService }, { type: i0.Injector }, { type: i1.ConfigStateService }, { type: i3$1.IdentityRoleService }, { type: i3$1.OrganizationUnitService }]; }, propDecorators: { modalContent: [{
471
- type: ViewChild,
472
- args: ['modalContent']
473
- }] } });
474
-
475
- class UserDropdownMenuComponent {
476
- constructor(data) {
477
- this.data = data;
478
- this.options = ['AbpIdentity::ExternalUser'];
479
- this.isExternalModalVisible = false;
480
- this.component = data.getInjected(UsersComponent);
481
- }
482
- onAddExternalLogin() {
483
- this.isExternalModalVisible = true;
484
- }
485
- getList() {
486
- this.component.list.get();
487
- }
488
- }
489
- UserDropdownMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: UserDropdownMenuComponent, deps: [{ token: EXTENSIONS_ACTION_DATA }], target: i0.ɵɵFactoryTarget.Component });
490
- UserDropdownMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: UserDropdownMenuComponent, selector: "abp-user-dropdown-menu", ngImport: i0, template: "<div ngbDropdown class=\"d-inline-block ngb-dropdown\">\r\n <button class=\"btn btn-primary btn-sm\" id=\"Import\" ngbDropdownToggle>\r\n {{ 'AbpIdentity::Import' | abpLocalization }}\r\n </button>\r\n\r\n <div ngbDropdownMenu id=\"options\" aria-labelledby=\"Import\">\r\n <div *ngFor=\"let option of options\">\r\n <button ngbDropdownItem on-click=\"onAddExternalLogin()\">\r\n {{ option | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<abp-external-login\r\n [(visible)]=\"isExternalModalVisible\"\r\n (dataSave)=\"getList()\"\r\n></abp-external-login>\r\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: ExternalLoginComponent, selector: "abp-external-login", inputs: ["visible"], outputs: ["dataSave", "visibleChange"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: UserDropdownMenuComponent, decorators: [{
492
- type: Component,
493
- args: [{ selector: 'abp-user-dropdown-menu', template: "<div ngbDropdown class=\"d-inline-block ngb-dropdown\">\r\n <button class=\"btn btn-primary btn-sm\" id=\"Import\" ngbDropdownToggle>\r\n {{ 'AbpIdentity::Import' | abpLocalization }}\r\n </button>\r\n\r\n <div ngbDropdownMenu id=\"options\" aria-labelledby=\"Import\">\r\n <div *ngFor=\"let option of options\">\r\n <button ngbDropdownItem on-click=\"onAddExternalLogin()\">\r\n {{ option | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<abp-external-login\r\n [(visible)]=\"isExternalModalVisible\"\r\n (dataSave)=\"getList()\"\r\n></abp-external-login>\r\n" }]
494
- }], ctorParameters: function () {
495
- return [{ type: undefined, decorators: [{
496
- type: Inject,
497
- args: [EXTENSIONS_ACTION_DATA]
498
- }] }];
499
- } });
500
-
501
- class ClaimsComponent {
502
- constructor(list, confirmationService, injector, service) {
503
- this.list = list;
504
- this.confirmationService = confirmationService;
505
- this.injector = injector;
506
- this.service = service;
507
- this.data = { items: [], totalCount: 0 };
508
- this.modalBusy = false;
509
- this.trackByFn = (index, item) => Object.keys(item)[0] || index;
510
- }
511
- ngOnInit() {
512
- this.hookToQuery();
513
- }
514
- hookToQuery() {
515
- this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
516
- }
517
- buildForm() {
518
- const data = new FormPropData(this.injector, this.selected);
519
- this.form = generateFormFromProps(data);
520
- }
521
- getTypeName(valueType) {
522
- switch (valueType) {
523
- case 0:
524
- return 'String';
525
- case 1:
526
- return 'Int';
527
- case 2:
528
- return 'Boolean';
529
- case 3:
530
- return 'DateTime';
531
- default:
532
- return valueType;
533
- }
534
- }
535
- openModal() {
536
- this.buildForm();
537
- this.isModalVisible = true;
538
- }
539
- onAdd() {
540
- this.selected = {};
541
- this.openModal();
542
- }
543
- onEdit(id) {
544
- this.service.get(id).subscribe(res => {
545
- this.selected = res;
546
- this.openModal();
547
- });
548
- }
549
- save() {
550
- if (!this.form.valid || this.modalBusy)
551
- return;
552
- this.modalBusy = true;
553
- const { id } = this.selected;
554
- (id
555
- ? this.service.update(id, Object.assign(Object.assign({}, this.selected), this.form.value))
556
- : this.service.create(this.form.value))
557
- .pipe(finalize(() => (this.modalBusy = false)))
558
- .subscribe(() => {
559
- this.list.get();
560
- this.isModalVisible = false;
561
- });
562
- }
563
- delete(id, name) {
564
- this.confirmationService
565
- .warn('AbpIdentity::ClaimTypeDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
566
- messageLocalizationParams: [name],
567
- })
568
- .subscribe((status) => {
569
- if (status === Confirmation.Status.confirm) {
570
- this.service.delete(id).subscribe(() => this.list.get());
571
- }
572
- });
573
- }
574
- }
575
- ClaimsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ClaimsComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i0.Injector }, { token: i3$1.IdentityClaimTypeService }], target: i0.ɵɵFactoryTarget.Component });
576
- ClaimsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ClaimsComponent, selector: "abp-claims", providers: [
577
- ListService,
578
- {
579
- provide: EXTENSIONS_IDENTIFIER,
580
- useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
581
- },
582
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewClaimType') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"claimTypeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"claimTypeForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i7.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i12.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ClaimsComponent, decorators: [{
584
- type: Component,
585
- args: [{ selector: 'abp-claims', providers: [
586
- ListService,
587
- {
588
- provide: EXTENSIONS_IDENTIFIER,
589
- useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
590
- },
591
- ], template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewClaimType') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"claimTypeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"claimTypeForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
592
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.ConfirmationService }, { type: i0.Injector }, { type: i3$1.IdentityClaimTypeService }]; }, propDecorators: { modalContent: [{
593
- type: ViewChild,
594
- args: ['modalContent']
595
- }] } });
596
-
597
- const ORGANIZATION_UNIT_CONFIG = new InjectionToken('ORGANIZATION_UNIT_CONFIG');
598
- class AbstractOrganizationUnitComponent {
599
- constructor(injector) {
600
- this.injector = injector;
601
- this.currentOrganizationUnits = { items: [] };
602
- this.checkedUnits = {};
603
- this.isCheckboxDisabled = (id) => {
604
- return this.currentOrganizationUnits.items.findIndex((item) => item.id === id) > -1;
605
- };
606
- this.list = injector.get(ListService);
607
- this.list.maxResultCount = 1000;
608
- this.organizationUnitService = injector.get(OrganizationUnitService);
609
- this.confirmation = injector.get(ConfirmationService);
610
- this.config = injector.get(ORGANIZATION_UNIT_CONFIG, {});
611
- }
612
- ngOnChanges({ selectedOrganizationUnit }) {
613
- if (selectedOrganizationUnit === null || selectedOrganizationUnit === void 0 ? void 0 : selectedOrganizationUnit.firstChange) {
614
- this.hookToQuery();
615
- }
616
- else if (selectedOrganizationUnit === null || selectedOrganizationUnit === void 0 ? void 0 : selectedOrganizationUnit.currentValue) {
617
- this.list.get();
618
- }
619
- }
620
- hookToQuery() {
621
- this.list
622
- .hookToQuery(query => this.organizationUnitService[this.config.getCurrentUnitsMethodName](this.selectedOrganizationUnit.id, query))
623
- .subscribe((response) => {
624
- this.currentOrganizationUnits = response;
625
- this.checkedUnits = {};
626
- response.items.forEach((item) => {
627
- this.checkedUnits[item.id] = true;
628
- });
629
- });
630
- }
631
- addUnits() {
632
- this.isModalBusy = true;
633
- this.organizationUnitService[this.config.addUnitsMethodName](this.selectedOrganizationUnit.id, {
634
- [this.config.addUnitsBodyPropName]: Object.keys(this.checkedUnits).filter(i => this.checkedUnits[i] === true),
635
- })
636
- .pipe(finalize(() => (this.isModalBusy = false)))
637
- .subscribe(() => {
638
- this.isModalVisible = false;
639
- this.list.get();
640
- });
641
- }
642
- delete(unitId, unitName) {
643
- this.confirmation
644
- .warn(this.config.deletionLocalizationKey, 'AbpIdentity::AreYouSure', {
645
- messageLocalizationParams: [unitName, this.selectedOrganizationUnit.displayName],
646
- })
647
- .subscribe((status) => {
648
- if (status === Confirmation.Status.confirm) {
649
- this.organizationUnitService[this.config.deleteMethodName](this.selectedOrganizationUnit.id, unitId).subscribe(() => this.list.get());
650
- }
651
- });
652
- }
653
- openModal() {
654
- this.isModalVisible = true;
655
- }
656
- }
657
- AbstractOrganizationUnitComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AbstractOrganizationUnitComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
658
- AbstractOrganizationUnitComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: AbstractOrganizationUnitComponent, selector: "ng-component", inputs: { selectedOrganizationUnit: "selectedOrganizationUnit" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
659
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: AbstractOrganizationUnitComponent, decorators: [{
660
- type: Component,
661
- args: [{
662
- template: '',
663
- }]
664
- }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { selectedOrganizationUnit: [{
665
- type: Input
666
- }] } });
667
-
668
- class OrganizationMembersModalBodyComponent {
669
- constructor(list, userService) {
670
- this.list = list;
671
- this.userService = userService;
672
- this.allUnits = { items: [] };
673
- }
674
- ngOnInit() {
675
- this.hookToQuery();
676
- }
677
- hookToQuery() {
678
- this.list
679
- .hookToQuery(query => this.userService.getList(query))
680
- .subscribe(response => {
681
- this.allUnits = response;
682
- });
683
- }
684
- onTableSelect(event) {
685
- if (event.type == 'click' && event.value != '' && !this.isCheckboxDisabled(event.row.id)) {
686
- this.checkedUnits[event.row.id] = !this.checkedUnits[event.row.id];
687
- }
688
- }
689
- }
690
- OrganizationMembersModalBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [{ token: i1.ListService }, { token: i3$1.IdentityUserService }], target: i0.ɵɵFactoryTarget.Component });
691
- OrganizationMembersModalBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
692
- <div id="data-tables-table-filter" class="data-tables-filter mb-3">
693
- <div class="input-group">
694
- <input
695
- type="search"
696
- class="form-control"
697
- [placeholder]="'AbpUi::PagerSearch' | abpLocalization"
698
- [(ngModel)]="list.filter"
699
- />
700
- <div class="input-group-append">
701
- <button class="btn btn-sm btn-primary h-100" (click)="list.get()">
702
- <i class="fas fa-search"></i>
703
- </button>
704
- </div>
705
- </div>
706
- </div>
707
-
708
- <div class="card">
709
- <abp-extensible-table
710
- actionsText=""
711
- [data]="allUnits.items"
712
- [recordsTotal]="allUnits.totalCount"
713
- [actionsColumnWidth]="38"
714
- [actionsTemplate]="customAction"
715
- [list]="list"
716
- (tableActivate)="onTableSelect($event)"
717
- ></abp-extensible-table>
718
- </div>
719
-
720
- <ng-template #customAction let-row>
721
- <input
722
- type="checkbox"
723
- [(ngModel)]="checkedUnits[row.id]"
724
- [disabled]="isCheckboxDisabled(row.id)"
725
- />
726
- </ng-template>
727
- `, isInline: true, dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
728
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationMembersModalBodyComponent, decorators: [{
729
- type: Component,
730
- args: [{
731
- selector: 'abp-organization-members-modal-body',
732
- template: `
733
- <div id="data-tables-table-filter" class="data-tables-filter mb-3">
734
- <div class="input-group">
735
- <input
736
- type="search"
737
- class="form-control"
738
- [placeholder]="'AbpUi::PagerSearch' | abpLocalization"
739
- [(ngModel)]="list.filter"
740
- />
741
- <div class="input-group-append">
742
- <button class="btn btn-sm btn-primary h-100" (click)="list.get()">
743
- <i class="fas fa-search"></i>
744
- </button>
745
- </div>
746
- </div>
747
- </div>
748
-
749
- <div class="card">
750
- <abp-extensible-table
751
- actionsText=""
752
- [data]="allUnits.items"
753
- [recordsTotal]="allUnits.totalCount"
754
- [actionsColumnWidth]="38"
755
- [actionsTemplate]="customAction"
756
- [list]="list"
757
- (tableActivate)="onTableSelect($event)"
758
- ></abp-extensible-table>
759
- </div>
760
-
761
- <ng-template #customAction let-row>
762
- <input
763
- type="checkbox"
764
- [(ngModel)]="checkedUnits[row.id]"
765
- [disabled]="isCheckboxDisabled(row.id)"
766
- />
767
- </ng-template>
768
- `,
769
- providers: [ListService],
770
- }]
771
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i3$1.IdentityUserService }]; }, propDecorators: { checkedUnits: [{
772
- type: Input
773
- }], isCheckboxDisabled: [{
774
- type: Input
775
- }] } });
776
-
777
- class OrganizationUnitsStateService {
778
- constructor() {
779
- this.store = new InternalStore({});
780
- this.state$ = this.store.sliceState(state => state);
781
- }
782
- getSelectedNode$() {
783
- return this.store.sliceState(state => state.selectedUnit);
784
- }
785
- getSelectedNode() {
786
- return this.store.state.selectedUnit;
787
- }
788
- setSelectedUnit(selectedUnit) {
789
- this.store.patch({ selectedUnit });
790
- }
791
- }
792
- OrganizationUnitsStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationUnitsStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
793
- OrganizationUnitsStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationUnitsStateService, providedIn: 'root' });
794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationUnitsStateService, decorators: [{
795
- type: Injectable,
796
- args: [{
797
- providedIn: 'root',
798
- }]
799
- }] });
800
-
801
- class SelectedOrganizationUnitComponent {
802
- constructor(organizationUnitsStateService) {
803
- this.organizationUnitsStateService = organizationUnitsStateService;
804
- }
805
- }
806
- SelectedOrganizationUnitComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SelectedOrganizationUnitComponent, deps: [{ token: OrganizationUnitsStateService }], target: i0.ɵɵFactoryTarget.Component });
807
- SelectedOrganizationUnitComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: SelectedOrganizationUnitComponent, selector: "abp-selected-organization-unit", ngImport: i0, template: "<h2 *ngIf=\"organizationUnitsStateService.getSelectedNode$() | async as selectedNode\">\r\n {{ selectedNode.displayName }}\r\n</h2>\r\n", dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
808
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SelectedOrganizationUnitComponent, decorators: [{
809
- type: Component,
810
- args: [{ selector: 'abp-selected-organization-unit', template: "<h2 *ngIf=\"organizationUnitsStateService.getSelectedNode$() | async as selectedNode\">\r\n {{ selectedNode.displayName }}\r\n</h2>\r\n" }]
811
- }], ctorParameters: function () { return [{ type: OrganizationUnitsStateService }]; } });
812
-
813
- class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
814
- constructor() {
815
- super(...arguments);
816
- this.modalOption = { size: 'xl' };
817
- }
818
- }
819
- OrganizationMembersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
820
- OrganizationMembersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: OrganizationMembersComponent, selector: "abp-organization-members", providers: [
821
- ListService,
822
- {
823
- provide: EXTENSIONS_IDENTIFIER,
824
- useValue: "Identity.OrganizationMembersComponent" /* eIdentityComponents.OrganizationMembers */,
825
- },
826
- {
827
- provide: ORGANIZATION_UNIT_CONFIG,
828
- useValue: {
829
- getCurrentUnitsMethodName: 'getMembers',
830
- addUnitsMethodName: 'addMembers',
831
- addUnitsBodyPropName: 'userIds',
832
- deleteMethodName: 'removeMember',
833
- deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
834
- },
835
- },
836
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i> {{ 'AbpIdentity::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\" >\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SelectUsers' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { kind: "component", type: SelectedOrganizationUnitComponent, selector: "abp-selected-organization-unit" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
838
- type: Component,
839
- args: [{ selector: 'abp-organization-members', providers: [
840
- ListService,
841
- {
842
- provide: EXTENSIONS_IDENTIFIER,
843
- useValue: "Identity.OrganizationMembersComponent" /* eIdentityComponents.OrganizationMembers */,
844
- },
845
- {
846
- provide: ORGANIZATION_UNIT_CONFIG,
847
- useValue: {
848
- getCurrentUnitsMethodName: 'getMembers',
849
- addUnitsMethodName: 'addMembers',
850
- addUnitsBodyPropName: 'userIds',
851
- deleteMethodName: 'removeMember',
852
- deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
853
- },
854
- },
855
- ], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i> {{ 'AbpIdentity::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\" >\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SelectUsers' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
856
- }] });
857
-
858
- class OrganizationRolesModalBodyComponent {
859
- constructor(list, roleService) {
860
- this.list = list;
861
- this.roleService = roleService;
862
- this.allUnits = { items: [] };
863
- }
864
- ngOnInit() {
865
- this.hookToQuery();
866
- }
867
- hookToQuery() {
868
- this.list
869
- .hookToQuery(query => this.roleService.getList(query))
870
- .subscribe(response => {
871
- this.allUnits = response;
872
- });
873
- }
874
- onTableSelect(event) {
875
- if (event.type == 'click' && event.value != '' && !this.isCheckboxDisabled(event.row.id)) {
876
- this.checkedUnits[event.row.id] = !this.checkedUnits[event.row.id];
877
- }
878
- }
879
- }
880
- OrganizationRolesModalBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [{ token: i1.ListService }, { token: i3$1.IdentityRoleService }], target: i0.ɵɵFactoryTarget.Component });
881
- OrganizationRolesModalBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
882
- <div class="card">
883
- <abp-extensible-table
884
- actionsText=""
885
- [data]="allUnits.items"
886
- [recordsTotal]="allUnits.totalCount"
887
- [actionsColumnWidth]="38"
888
- [actionsTemplate]="customAction"
889
- [list]="list"
890
- (tableActivate)="onTableSelect($event)"
891
- ></abp-extensible-table>
892
- </div>
893
-
894
- <ng-template #customAction let-row>
895
- <input
896
- type="checkbox"
897
- [(ngModel)]="checkedUnits[row.id]"
898
- [disabled]="isCheckboxDisabled(row.id)"
899
- />
900
- </ng-template>
901
- `, isInline: true, dependencies: [{ kind: "directive", type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }] });
902
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationRolesModalBodyComponent, decorators: [{
903
- type: Component,
904
- args: [{
905
- selector: 'abp-organization-roles-modal-body',
906
- template: `
907
- <div class="card">
908
- <abp-extensible-table
909
- actionsText=""
910
- [data]="allUnits.items"
911
- [recordsTotal]="allUnits.totalCount"
912
- [actionsColumnWidth]="38"
913
- [actionsTemplate]="customAction"
914
- [list]="list"
915
- (tableActivate)="onTableSelect($event)"
916
- ></abp-extensible-table>
917
- </div>
918
-
919
- <ng-template #customAction let-row>
920
- <input
921
- type="checkbox"
922
- [(ngModel)]="checkedUnits[row.id]"
923
- [disabled]="isCheckboxDisabled(row.id)"
924
- />
925
- </ng-template>
926
- `,
927
- providers: [ListService],
928
- }]
929
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i3$1.IdentityRoleService }]; }, propDecorators: { checkedUnits: [{
930
- type: Input
931
- }], isCheckboxDisabled: [{
932
- type: Input
933
- }] } });
934
-
935
- class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
936
- }
937
- OrganizationRolesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
938
- OrganizationRolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: OrganizationRolesComponent, selector: "abp-organization-roles", providers: [
939
- ListService,
940
- {
941
- provide: EXTENSIONS_IDENTIFIER,
942
- useValue: "Identity.OrganizationRolesComponent" /* eIdentityComponents.OrganizationRoles */,
943
- },
944
- {
945
- provide: ORGANIZATION_UNIT_CONFIG,
946
- useValue: {
947
- getCurrentUnitsMethodName: 'getRoles',
948
- addUnitsMethodName: 'addRoles',
949
- addUnitsBodyPropName: 'roleIds',
950
- deleteMethodName: 'removeRole',
951
- deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
952
- },
953
- },
954
- ], usesInheritance: true, ngImport: i0, template: "<div class=\" py-2 text-end\">\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i> {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SelectRoles' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
955
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
956
- type: Component,
957
- args: [{ selector: 'abp-organization-roles', providers: [
958
- ListService,
959
- {
960
- provide: EXTENSIONS_IDENTIFIER,
961
- useValue: "Identity.OrganizationRolesComponent" /* eIdentityComponents.OrganizationRoles */,
962
- },
963
- {
964
- provide: ORGANIZATION_UNIT_CONFIG,
965
- useValue: {
966
- getCurrentUnitsMethodName: 'getRoles',
967
- addUnitsMethodName: 'addRoles',
968
- addUnitsBodyPropName: 'roleIds',
969
- deleteMethodName: 'removeRole',
970
- deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
971
- },
972
- },
973
- ], template: "<div class=\" py-2 text-end\">\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i> {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SelectRoles' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
974
- }] });
975
-
976
- class OrganizationUnitsComponent {
977
- constructor(injector, service, fb, confirmation, organizationUnitsStateService, toaster) {
978
- this.injector = injector;
979
- this.service = service;
980
- this.fb = fb;
981
- this.confirmation = confirmation;
982
- this.organizationUnitsStateService = organizationUnitsStateService;
983
- this.toaster = toaster;
984
- this.organizationUnits = [];
985
- this.nodes = [];
986
- this.expandedKeys = [];
987
- this.organizationMembersKey = "Identity.OrganizationMembersComponent" /* eIdentityComponents.OrganizationMembers */;
988
- this.organizationRolesKey = "Identity.OrganizationRolesComponent" /* eIdentityComponents.OrganizationRoles */;
989
- this.get = () => {
990
- this.loading = true;
991
- this.service
992
- .getListAll()
993
- .pipe(finalize(() => (this.loading = false)))
994
- .subscribe((res) => {
995
- this.organizationUnits = res.items;
996
- this.treeAdapter = new TreeAdapter(res.items);
997
- this.nodes = this.treeAdapter.getTree();
998
- this.expandedKeys = [...this.expandedKeys];
999
- });
1000
- };
1001
- }
1002
- get selectedUnit() {
1003
- return this.organizationUnitsStateService.getSelectedNode();
1004
- }
1005
- get nodeId() {
1006
- var _a;
1007
- return (_a = this.nodeForm.get('id')) === null || _a === void 0 ? void 0 : _a.value;
1008
- }
1009
- ngOnInit() {
1010
- this.get();
1011
- }
1012
- buildForm(selected = {}) {
1013
- const data = new FormPropData(this.injector, selected);
1014
- this.nodeForm = generateFormFromProps(data);
1015
- this.nodeForm.addControl('parentId', new UntypedFormControl(undefined));
1016
- this.nodeForm.addControl('id', new UntypedFormControl(undefined));
1017
- }
1018
- add() {
1019
- this.buildForm();
1020
- this.isNodeModalVisible = true;
1021
- }
1022
- edit(selected) {
1023
- this.buildForm(selected);
1024
- this.nodeForm.patchValue({
1025
- parentId: '',
1026
- displayName: selected.displayName,
1027
- id: selected.id,
1028
- });
1029
- this.isNodeModalVisible = true;
1030
- }
1031
- addSubUnit({ id }) {
1032
- this.buildForm();
1033
- this.nodeForm.patchValue({ parentId: id, displayName: '', id: undefined });
1034
- this.isNodeModalVisible = true;
1035
- this.expandedKeys = this.expandedKeys.concat(id);
1036
- }
1037
- save() {
1038
- if (this.nodeForm.invalid)
1039
- return;
1040
- const _a = this.nodeForm.value, { id } = _a, form = __rest(_a, ["id"]);
1041
- const request = id
1042
- ? this.service.update(id, form)
1043
- : this.service.create(form);
1044
- const message = 'AbpIdentity::SavedSuccessfully';
1045
- this.isModalBusy = true;
1046
- request.pipe(finalize(() => (this.isModalBusy = false))).subscribe(() => {
1047
- this.get();
1048
- this.isNodeModalVisible = false;
1049
- this.toaster.success(message);
1050
- });
1051
- }
1052
- delete({ id, displayName }) {
1053
- this.confirmation
1054
- .warn('AbpIdentity::OrganizationUnitDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
1055
- messageLocalizationParams: [displayName],
1056
- })
1057
- .subscribe((status) => {
1058
- if (status === Confirmation.Status.confirm) {
1059
- this.service
1060
- .delete(id)
1061
- .pipe(tap(() => {
1062
- var _a;
1063
- if (id === ((_a = this.selectedUnit) === null || _a === void 0 ? void 0 : _a.id)) {
1064
- this.setSelectedUnit(null);
1065
- }
1066
- }))
1067
- .subscribe(() => {
1068
- this.toaster.success('AbpIdentity::SuccessfullyDeleted');
1069
- this.get();
1070
- });
1071
- }
1072
- });
1073
- }
1074
- getParentName(parentId) {
1075
- const parent = this.organizationUnits.find(unit => unit.id === parentId);
1076
- if (!parent)
1077
- return '';
1078
- return parent.displayName;
1079
- }
1080
- onDrop(event) {
1081
- if (!event.node)
1082
- return;
1083
- let parentId = event.node.key;
1084
- if (!event.node.origin.parentId && event.pos === -1) {
1085
- parentId = null;
1086
- }
1087
- this.move(event.dragNode.key, parentId);
1088
- }
1089
- move(id, newParentId) {
1090
- this.service.move(id, { newParentId }).subscribe(this.get);
1091
- }
1092
- setSelectedUnit(value) {
1093
- this.organizationUnitsStateService.setSelectedUnit(value);
1094
- }
1095
- }
1096
- OrganizationUnitsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationUnitsComponent, deps: [{ token: i0.Injector }, { token: i3$1.OrganizationUnitService }, { token: i3.UntypedFormBuilder }, { token: i2.ConfirmationService }, { token: OrganizationUnitsStateService }, { token: i2.ToasterService }], target: i0.ɵɵFactoryTarget.Component });
1097
- OrganizationUnitsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: OrganizationUnitsComponent, selector: "abp-organization-units", providers: [
1098
- {
1099
- provide: EXTENSIONS_IDENTIFIER,
1100
- useValue: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
1101
- },
1102
- ], ngImport: i0, template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i> {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpIdentity::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n <p *ngIf=\"!loading && !nodes?.length\" class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7\"\r\n >\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::Members' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationMembersKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-members>\r\n </ng-container>\r\n <ng-template #selectUnitMsg>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationRolesKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n </ng-container>\r\n <ng-template #selectUnitMsg>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n ( nodeId\r\n ? 'AbpIdentity::EditOrganizationUnit'\r\n : 'AbpIdentity::NewOrganizationUnit'\r\n ) | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mb-3\" *ngIf=\"nodeForm.get('parentId').value as parentId\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: [".fs-15px{font-size:15px}\n"], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i7.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i8.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i8.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i8.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i8.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i8.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i8.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i8.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "directive", type: i10$1.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { kind: "component", type: i10$1.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i12.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: OrganizationMembersComponent, selector: "abp-organization-members" }, { kind: "component", type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
1103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
1104
- type: Component,
1105
- args: [{ selector: 'abp-organization-units', providers: [
1106
- {
1107
- provide: EXTENSIONS_IDENTIFIER,
1108
- useValue: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
1109
- },
1110
- ], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i> {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpIdentity::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n <p *ngIf=\"!loading && !nodes?.length\" class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7\"\r\n >\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::Members' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationMembersKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-members>\r\n </ng-container>\r\n <ng-template #selectUnitMsg>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationRolesKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n </ng-container>\r\n <ng-template #selectUnitMsg>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n ( nodeId\r\n ? 'AbpIdentity::EditOrganizationUnit'\r\n : 'AbpIdentity::NewOrganizationUnit'\r\n ) | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mb-3\" *ngIf=\"nodeForm.get('parentId').value as parentId\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: [".fs-15px{font-size:15px}\n"] }]
1111
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i3$1.OrganizationUnitService }, { type: i3.UntypedFormBuilder }, { type: i2.ConfirmationService }, { type: OrganizationUnitsStateService }, { type: i2.ToasterService }]; } });
1112
-
1113
- class RolesComponent {
1114
- constructor(list, confirmationService, service, injector) {
1115
- this.list = list;
1116
- this.confirmationService = confirmationService;
1117
- this.service = service;
1118
- this.injector = injector;
1119
- this.data = { items: [], totalCount: 0 };
1120
- this.visiblePermissions = false;
1121
- this.modalBusy = false;
1122
- this.visibleClaims = false;
1123
- this.claimSubject = {};
1124
- this.onVisiblePermissionChange = (value) => {
1125
- this.visiblePermissions = value;
1126
- };
1127
- }
1128
- createForm() {
1129
- const data = new FormPropData(this.injector, this.selected);
1130
- this.form = generateFormFromProps(data);
1131
- }
1132
- hookToQuery() {
1133
- this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
1134
- }
1135
- ngOnInit() {
1136
- this.hookToQuery();
1137
- }
1138
- openModal() {
1139
- this.createForm();
1140
- this.isModalVisible = true;
1141
- }
1142
- onAdd() {
1143
- this.selected = {};
1144
- this.openModal();
1145
- }
1146
- onEdit(id) {
1147
- this.service
1148
- .get(id)
1149
- .pipe(take(1))
1150
- .subscribe(selectedRole => {
1151
- this.selected = selectedRole;
1152
- this.openModal();
1153
- });
1154
- }
1155
- save() {
1156
- if (!this.form.valid)
1157
- return;
1158
- this.modalBusy = true;
1159
- const { id } = this.selected;
1160
- (id
1161
- ? this.service.update(id, Object.assign(Object.assign(Object.assign({}, this.selected), this.form.value), { id: this.selected.id, concurrencyStamp: this.selected.concurrencyStamp }))
1162
- : this.service.create(this.form.value))
1163
- .pipe(finalize(() => (this.modalBusy = false)))
1164
- .subscribe(() => {
1165
- this.list.get();
1166
- this.isModalVisible = false;
1167
- });
1168
- }
1169
- delete(id, name) {
1170
- this.confirmationService
1171
- .warn('AbpIdentity::RoleDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
1172
- messageLocalizationParams: [name],
1173
- })
1174
- .subscribe((status) => {
1175
- if (status === Confirmation.Status.confirm) {
1176
- this.service.delete(id).subscribe(() => this.list.get());
1177
- }
1178
- });
1179
- }
1180
- onManageClaims(id) {
1181
- this.claimSubject = {
1182
- id,
1183
- type: 'roles',
1184
- };
1185
- this.visibleClaims = true;
1186
- }
1187
- openPermissionsModal(providerKey) {
1188
- this.providerKey = providerKey;
1189
- setTimeout(() => {
1190
- this.visiblePermissions = true;
1191
- }, 0);
1192
- }
1193
- }
1194
- RolesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RolesComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i3$1.IdentityRoleService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1195
- RolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: RolesComponent, selector: "abp-roles", providers: [
1196
- ListService,
1197
- {
1198
- provide: EXTENSIONS_IDENTIFIER,
1199
- useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
1200
- },
1201
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"roleForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"roleForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n>\r\n</abp-permission-management>\r\n\r\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\r\n", dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i7.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i10.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: i12.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
1202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RolesComponent, decorators: [{
1203
- type: Component,
1204
- args: [{ selector: 'abp-roles', providers: [
1205
- ListService,
1206
- {
1207
- provide: EXTENSIONS_IDENTIFIER,
1208
- useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
1209
- },
1210
- ], template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"roleForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"roleForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n>\r\n</abp-permission-management>\r\n\r\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\r\n" }]
1211
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.ConfirmationService }, { type: i3$1.IdentityRoleService }, { type: i0.Injector }]; }, propDecorators: { modalContent: [{
1212
- type: ViewChild,
1213
- args: ['modalContent']
1214
- }] } });
1215
-
1216
- class SecurityLogsComponent {
1217
- constructor(list, service) {
1218
- this.list = list;
1219
- this.service = service;
1220
- this.data = { items: [], totalCount: 0 };
1221
- this.filter = {};
1222
- }
1223
- ngOnInit() {
1224
- this.hookToQuery();
1225
- }
1226
- hookToQuery() {
1227
- this.list
1228
- .hookToQuery(query => this.service.getList(Object.assign(Object.assign({}, query), this.filter)))
1229
- .subscribe(res => (this.data = res));
1230
- }
1231
- setDate({ startTime, endTime }) {
1232
- this.filter.startTime = startTime;
1233
- this.filter.endTime = endTime;
1234
- }
1235
- }
1236
- SecurityLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SecurityLogsComponent, deps: [{ token: i1.ListService }, { token: i3$1.IdentitySecurityLogService }], target: i0.ɵɵFactoryTarget.Component });
1237
- SecurityLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: SecurityLogsComponent, selector: "abp-security-logs", providers: [
1238
- ListService,
1239
- {
1240
- provide: EXTENSIONS_IDENTIFIER,
1241
- useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
1242
- },
1243
- { provide: NgbDateAdapter, useClass: DateAdapter },
1244
- ], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::Date' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n startDateProp=\"startTime\"\r\n endDateProp=\"endTime\"\r\n [ngModel]=\"filter\"\r\n (ngModelChange)=\"setDate($event)\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mt-3 d-grid\">\r\n <button (click)=\"list.get()\" class=\"btn btn-primary\">\r\n <i class=\"fas fa-search\" aria-hidden=\"true\"></i> &nbsp;\r\n <span>{{ 'SecurityLogs::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "component", type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i12.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
1245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SecurityLogsComponent, decorators: [{
1246
- type: Component,
1247
- args: [{ selector: 'abp-security-logs', providers: [
1248
- ListService,
1249
- {
1250
- provide: EXTENSIONS_IDENTIFIER,
1251
- useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
1252
- },
1253
- { provide: NgbDateAdapter, useClass: DateAdapter },
1254
- ], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::Date' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n startDateProp=\"startTime\"\r\n endDateProp=\"endTime\"\r\n [ngModel]=\"filter\"\r\n (ngModelChange)=\"setDate($event)\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mt-3 d-grid\">\r\n <button (click)=\"list.get()\" class=\"btn btn-primary\">\r\n <i class=\"fas fa-search\" aria-hidden=\"true\"></i> &nbsp;\r\n <span>{{ 'SecurityLogs::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n" }]
1255
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i3$1.IdentitySecurityLogService }]; } });
1256
-
1257
- const DEFAULT_CLAIMS_ENTITY_ACTIONS = EntityAction.createMany([
1258
- {
1259
- text: 'AbpIdentity::Edit',
1260
- action: data => {
1261
- const component = data.getInjected(ClaimsComponent);
1262
- component.onEdit(data.record.id);
1263
- },
1264
- permission: 'AbpIdentity.ClaimTypes.Update',
1265
- visible: data => !data.record.isStatic,
1266
- },
1267
- {
1268
- text: 'AbpIdentity::Delete',
1269
- action: data => {
1270
- const component = data.getInjected(ClaimsComponent);
1271
- component.delete(data.record.id, data.record.name);
1272
- },
1273
- permission: 'AbpIdentity.ClaimTypes.Delete',
1274
- },
1275
- ]);
1276
-
1277
- const DEFAULT_CLAIMS_ENTITY_PROPS = EntityProp.createMany([
1278
- {
1279
- type: "string" /* ePropType.String */,
1280
- name: 'name',
1281
- displayName: 'AbpIdentity::Name',
1282
- sortable: true,
1283
- columnWidth: 250,
1284
- },
1285
- {
1286
- type: "string" /* ePropType.String */,
1287
- name: 'valueType',
1288
- displayName: 'AbpIdentity::ValueType',
1289
- sortable: true,
1290
- columnWidth: 200,
1291
- valueResolver: data => of(data.getInjected(ClaimsComponent).getTypeName(data.record.valueType)),
1292
- },
1293
- {
1294
- type: "string" /* ePropType.String */,
1295
- name: 'description',
1296
- displayName: 'AbpIdentity::Description',
1297
- sortable: true,
1298
- columnWidth: 250,
1299
- },
1300
- {
1301
- type: "string" /* ePropType.String */,
1302
- name: 'regex',
1303
- displayName: 'AbpIdentity::Regex',
1304
- sortable: true,
1305
- columnWidth: 200,
1306
- },
1307
- {
1308
- type: "boolean" /* ePropType.Boolean */,
1309
- name: 'required',
1310
- displayName: 'AbpIdentity::Required',
1311
- sortable: true,
1312
- columnWidth: 150,
1313
- },
1314
- {
1315
- type: "boolean" /* ePropType.Boolean */,
1316
- name: 'isStatic',
1317
- displayName: 'AbpIdentity::IsStatic',
1318
- sortable: true,
1319
- columnWidth: 150,
1320
- },
1321
- ]);
1322
-
1323
- const DEFAULT_CLAIMS_CREATE_FORM_PROPS = FormProp.createMany([
1324
- {
1325
- type: "string" /* ePropType.String */,
1326
- name: 'name',
1327
- displayName: 'AbpIdentity::Name',
1328
- id: 'name',
1329
- validators: () => [Validators.required, Validators.maxLength(256)],
1330
- },
1331
- {
1332
- type: "boolean" /* ePropType.Boolean */,
1333
- name: 'required',
1334
- displayName: 'AbpIdentity::Required',
1335
- id: 'required',
1336
- defaultValue: false,
1337
- },
1338
- {
1339
- type: "string" /* ePropType.String */,
1340
- name: 'regex',
1341
- displayName: 'AbpIdentity::Regex',
1342
- id: 'regex',
1343
- },
1344
- {
1345
- type: "string" /* ePropType.String */,
1346
- name: 'regexDescription',
1347
- displayName: 'AbpIdentity::RegexDescription',
1348
- id: 'regex-description',
1349
- },
1350
- {
1351
- type: "string" /* ePropType.String */,
1352
- name: 'description',
1353
- displayName: 'AbpIdentity::Description',
1354
- id: 'description',
1355
- },
1356
- {
1357
- type: "number" /* ePropType.Number */,
1358
- name: 'valueType',
1359
- displayName: 'AbpIdentity::ValueType',
1360
- id: 'value-type',
1361
- defaultValue: 0,
1362
- options: () => of([
1363
- { key: 'String', value: 0 },
1364
- { key: 'Int', value: 1 },
1365
- { key: 'Boolean', value: 2 },
1366
- { key: 'DateTime', value: 3 },
1367
- ]),
1368
- },
1369
- ]);
1370
- const DEFAULT_CLAIMS_EDIT_FORM_PROPS = DEFAULT_CLAIMS_CREATE_FORM_PROPS;
1371
-
1372
- const DEFAULT_CLAIMS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
1373
- {
1374
- text: 'AbpIdentity::NewClaimType',
1375
- action: data => {
1376
- const component = data.getInjected(ClaimsComponent);
1377
- component.onAdd();
1378
- },
1379
- permission: 'AbpIdentity.ClaimTypes.Create',
1380
- icon: 'fa fa-plus',
1381
- },
1382
- ]);
1383
-
1384
- /* tslint:disable:max-line-length */
1385
- const DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS = EntityAction.createMany([
1386
- {
1387
- text: 'AbpIdentity::Delete',
1388
- action: data => {
1389
- const component = data.getInjected(OrganizationMembersComponent);
1390
- component.delete(data.record.id, data.record.userName);
1391
- },
1392
- permission: 'AbpIdentity.OrganizationUnits.ManageMembers',
1393
- },
1394
- ]);
1395
-
1396
- const DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS = EntityProp.createMany([
1397
- {
1398
- type: "string" /* ePropType.String */,
1399
- name: 'userName',
1400
- displayName: 'AbpIdentity::UserName',
1401
- sortable: true,
1402
- columnWidth: 180,
1403
- },
1404
- {
1405
- type: "string" /* ePropType.String */,
1406
- name: 'email',
1407
- displayName: 'AbpIdentity::EmailAddress',
1408
- sortable: true,
1409
- columnWidth: 200,
1410
- valueResolver: data => {
1411
- const { email, emailConfirmed } = data.record;
1412
- return of((email || '') + (emailConfirmed ? `<i class="fa fa-check text-success ms-1"></i>` : ''));
1413
- },
1414
- },
1415
- ]);
1416
-
1417
- /* tslint:disable:max-line-length */
1418
- const DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS = EntityAction.createMany([
1419
- {
1420
- text: 'AbpIdentity::Delete',
1421
- action: data => {
1422
- const component = data.getInjected(OrganizationRolesComponent);
1423
- component.delete(data.record.id, data.record.name);
1424
- },
1425
- permission: 'AbpIdentity.OrganizationUnits.ManageRoles',
1426
- },
1427
- ]);
1428
-
1429
- const DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS = EntityProp.createMany([
1430
- {
1431
- type: "string" /* ePropType.String */,
1432
- name: 'name',
1433
- displayName: 'AbpIdentity::RoleName',
1434
- sortable: true,
1435
- },
1436
- ]);
1437
-
1438
- const DEFAULT_ORGANIZATION_UNITS_CREATE_FORM_PROPS = FormProp.createMany([
1439
- {
1440
- type: "string" /* ePropType.String */,
1441
- name: 'displayName',
1442
- displayName: 'AbpIdentity::DisplayName',
1443
- id: 'organization-unit-display-name',
1444
- validators: () => [Validators.required, Validators.maxLength(256)],
1445
- },
1446
- ]);
1447
- const DEFAULT_ORGANIZATION_UNITS_EDIT_FORM_PROPS = DEFAULT_ORGANIZATION_UNITS_CREATE_FORM_PROPS;
1448
-
1449
- const DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS = ToolbarAction.createMany([]);
1450
-
1451
- const DEFAULT_ROLES_ENTITY_ACTIONS = EntityAction.createMany([
1452
- {
1453
- text: 'AbpIdentity::Edit',
1454
- action: data => {
1455
- const component = data.getInjected(RolesComponent);
1456
- component.onEdit(data.record.id);
1457
- },
1458
- permission: 'AbpIdentity.Roles.Update',
1459
- },
1460
- {
1461
- text: 'AbpIdentity::Claims',
1462
- action: data => {
1463
- const component = data.getInjected(RolesComponent);
1464
- component.onManageClaims(data.record.id);
1465
- },
1466
- permission: 'AbpIdentity.Roles.Update',
1467
- },
1468
- {
1469
- text: 'AbpIdentity::Permissions',
1470
- action: data => {
1471
- const component = data.getInjected(RolesComponent);
1472
- component.openPermissionsModal(data.record.name);
1473
- },
1474
- permission: 'AbpIdentity.Roles.ManagePermissions',
1475
- },
1476
- {
1477
- text: 'AbpIdentity::ChangeHistory',
1478
- action: data => {
1479
- const showHistory = data.getInjected(SHOW_ENTITY_HISTORY);
1480
- showHistory(data.record.id, 'Volo.Abp.Identity.IdentityRole');
1481
- },
1482
- permission: 'AuditLogging.ViewChangeHistory:Volo.Abp.Identity.IdentityRole',
1483
- visible: data => Boolean(data.getInjected(SHOW_ENTITY_HISTORY, null)),
1484
- },
1485
- {
1486
- text: 'AbpIdentity::Delete',
1487
- action: data => {
1488
- const component = data.getInjected(RolesComponent);
1489
- component.delete(data.record.id, data.record.name);
1490
- },
1491
- permission: 'AbpIdentity.Roles.Delete',
1492
- visible: data => !data.record.isStatic,
1493
- },
1494
- ]);
1495
-
1496
- const DEFAULT_ROLES_ENTITY_PROPS = EntityProp.createMany([
1497
- {
1498
- type: "string" /* ePropType.String */,
1499
- name: 'name',
1500
- displayName: 'AbpIdentity::RoleName',
1501
- sortable: true,
1502
- valueResolver: data => {
1503
- const l10n = data.getInjected(LocalizationService);
1504
- const t = l10n.instant.bind(l10n);
1505
- const { isDefault, isPublic, name } = data.record;
1506
- return of(escapeHtmlChars(name) +
1507
- (isDefault
1508
- ? `<span class="badge rounded-pill bg-success ms-1">${t('AbpIdentity::DisplayName:IsDefault')}</span>`
1509
- : '') +
1510
- (isPublic
1511
- ? `<span class="badge rounded-pill bg-info ms-1">${t('AbpIdentity::DisplayName:IsPublic')}</span>`
1512
- : ''));
1513
- },
1514
- },
1515
- ]);
1516
-
1517
- const DEFAULT_ROLES_CREATE_FORM_PROPS = FormProp.createMany([
1518
- {
1519
- type: "string" /* ePropType.String */,
1520
- name: 'name',
1521
- displayName: 'AbpIdentity::RoleName',
1522
- id: 'role-name',
1523
- disabled: (data) => data.record && data.record.isStatic,
1524
- validators: () => [Validators.required],
1525
- },
1526
- {
1527
- type: "boolean" /* ePropType.Boolean */,
1528
- name: 'isDefault',
1529
- displayName: 'AbpIdentity::DisplayName:IsDefault',
1530
- id: 'role-is-default',
1531
- defaultValue: false,
1532
- },
1533
- {
1534
- type: "boolean" /* ePropType.Boolean */,
1535
- name: 'isPublic',
1536
- displayName: 'AbpIdentity::DisplayName:IsPublic',
1537
- id: 'role-is-public',
1538
- defaultValue: false,
1539
- },
1540
- ]);
1541
- const DEFAULT_ROLES_EDIT_FORM_PROPS = DEFAULT_ROLES_CREATE_FORM_PROPS;
1542
-
1543
- const DEFAULT_ROLES_TOOLBAR_ACTIONS = ToolbarAction.createMany([
1544
- {
1545
- text: 'AbpIdentity::NewRole',
1546
- action: data => {
1547
- const component = data.getInjected(RolesComponent);
1548
- component.onAdd();
1549
- },
1550
- permission: 'AbpIdentity.Roles.Create',
1551
- icon: 'fa fa-plus',
1552
- },
1553
- ]);
1554
-
1555
- const DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS = EntityAction.createMany([]);
1556
-
1557
- const DEFAULT_SECURITY_LOGS_ENTITY_PROPS = EntityProp.createMany([
1558
- {
1559
- type: "string" /* ePropType.String */,
1560
- name: 'creationTime',
1561
- displayName: '::Date',
1562
- sortable: true,
1563
- columnWidth: 180,
1564
- valueResolver: data => {
1565
- const config = data.getInjected(ConfigStateService);
1566
- const localeId = data.getInjected(LOCALE_ID);
1567
- return of(formatDate(data.record.creationTime, getShortDateShortTimeFormat(config), localeId));
1568
- },
1569
- },
1570
- {
1571
- type: "string" /* ePropType.String */,
1572
- name: 'action',
1573
- displayName: 'AbpIdentity::SecurityLogs:Action',
1574
- sortable: true,
1575
- columnWidth: 180,
1576
- valueResolver: data => {
1577
- return of(`<div style="max-width: 160px" class="pointer abp-ellipsis-inline">${data.record.action || ''}</div>`);
1578
- },
1579
- action: data => {
1580
- const component = data.getInjected(SecurityLogsComponent);
1581
- component.filter.action = data.record.action;
1582
- component.list.get();
1583
- },
1584
- },
1585
- {
1586
- type: "string" /* ePropType.String */,
1587
- name: 'clientIpAddress',
1588
- displayName: 'AbpIdentity::SecurityLogs:IpAddress',
1589
- sortable: false,
1590
- columnWidth: 200,
1591
- valueResolver: data => {
1592
- return of(`<div style="max-width: 180px" class="abp-ellipsis-inline">${data.record.clientIpAddress || ''}</div>`);
1593
- },
1594
- },
1595
- {
1596
- type: "string" /* ePropType.String */,
1597
- name: 'browserInfo',
1598
- displayName: 'AbpIdentity::SecurityLogs:Browser',
1599
- sortable: false,
1600
- columnWidth: 200,
1601
- valueResolver: data => {
1602
- return of(`<div style="max-width: 180px" class="abp-ellipsis-inline">${data.record.browserInfo || ''}</div>`);
1603
- },
1604
- },
1605
- {
1606
- type: "string" /* ePropType.String */,
1607
- name: 'applicationName',
1608
- displayName: 'AbpIdentity::SecurityLogs:Application',
1609
- sortable: true,
1610
- columnWidth: 150,
1611
- valueResolver: data => {
1612
- return of(`<div style="max-width: 135px" class="pointer abp-ellipsis-inline">${data.record.applicationName || ''}</div>`);
1613
- },
1614
- action: data => {
1615
- const component = data.getInjected(SecurityLogsComponent);
1616
- component.filter.applicationName = data.record.applicationName;
1617
- component.list.get();
1618
- },
1619
- },
1620
- {
1621
- type: "string" /* ePropType.String */,
1622
- name: 'identity',
1623
- displayName: 'AbpIdentity::SecurityLogs:Identity',
1624
- sortable: true,
1625
- columnWidth: 150,
1626
- valueResolver: data => {
1627
- return of(`<div style="max-width: 135px" class="pointer abp-ellipsis-inline">${data.record.identity || ''}</div>`);
1628
- },
1629
- action: data => {
1630
- const component = data.getInjected(SecurityLogsComponent);
1631
- component.filter.identity = data.record.identity;
1632
- component.list.get();
1633
- },
1634
- },
1635
- {
1636
- type: "string" /* ePropType.String */,
1637
- name: 'userName',
1638
- displayName: 'AbpIdentity::SecurityLogs:UserName',
1639
- sortable: true,
1640
- columnWidth: 150,
1641
- valueResolver: data => {
1642
- return of(`<div style="max-width: 135px" class="pointer abp-ellipsis-inline">${data.record.userName || ''}</div>`);
1643
- },
1644
- action: data => {
1645
- const component = data.getInjected(SecurityLogsComponent);
1646
- component.filter.userName = data.record.userName;
1647
- component.list.get();
1648
- },
1649
- },
1650
- {
1651
- type: "string" /* ePropType.String */,
1652
- name: 'clientId',
1653
- displayName: 'AbpIdentity::SecurityLogs:Client',
1654
- sortable: true,
1655
- columnWidth: 320,
1656
- valueResolver: data => {
1657
- return of(`<div class="pointer">${data.record.clientId || ''}</div>`);
1658
- },
1659
- action: data => {
1660
- const component = data.getInjected(SecurityLogsComponent);
1661
- component.filter.clientId = data.record.clientId;
1662
- component.list.get();
1663
- },
1664
- },
1665
- {
1666
- type: "string" /* ePropType.String */,
1667
- name: 'correlationId',
1668
- displayName: 'AbpIdentity::SecurityLogs:CorrelationId',
1669
- sortable: true,
1670
- columnWidth: 320,
1671
- valueResolver: data => {
1672
- return of(`<div class="pointer">${data.record.correlationId || ''}</div>`);
1673
- },
1674
- action: data => {
1675
- const component = data.getInjected(SecurityLogsComponent);
1676
- component.filter.correlationId = data.record.correlationId;
1677
- component.list.get();
1678
- },
1679
- },
1680
- ]);
1681
-
1682
- const DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS = ToolbarAction.createMany([]);
1683
-
1684
- const DEFAULT_USERS_ENTITY_ACTIONS = EntityAction.createMany([
1685
- {
1686
- text: 'AbpIdentity::Edit',
1687
- action: data => {
1688
- const component = data.getInjected(UsersComponent);
1689
- component.onEdit(data.record.id);
1690
- },
1691
- permission: 'AbpIdentity.Users.Update',
1692
- },
1693
- {
1694
- text: 'AbpIdentity::Claims',
1695
- action: data => {
1696
- const component = data.getInjected(UsersComponent);
1697
- component.onManageClaims(data.record.id);
1698
- },
1699
- permission: 'AbpIdentity.Users.Update',
1700
- },
1701
- {
1702
- text: 'AbpIdentity::Lock',
1703
- action: data => {
1704
- const component = data.getInjected(UsersComponent);
1705
- component.selected = data.record;
1706
- component.isLockModalVisible = true;
1707
- },
1708
- permission: 'AbpIdentity.Users.Update',
1709
- visible: data => !data.record.isLockedOut && data.record.lockoutEnabled,
1710
- },
1711
- {
1712
- text: 'AbpIdentity::Unlock',
1713
- action: data => {
1714
- const component = data.getInjected(UsersComponent);
1715
- component.unlock(data.record.id);
1716
- },
1717
- permission: 'AbpIdentity.Users.Update',
1718
- visible: data => data.record.isLockedOut,
1719
- },
1720
- {
1721
- text: 'AbpIdentity::Permissions',
1722
- action: data => {
1723
- const component = data.getInjected(UsersComponent);
1724
- component.openPermissionsModal(data.record.id, data.record.userName);
1725
- },
1726
- permission: 'AbpIdentity.Users.ManagePermissions',
1727
- },
1728
- {
1729
- text: 'AbpIdentity::ChangeHistory',
1730
- action: data => {
1731
- const showHistory = data.getInjected(SHOW_ENTITY_HISTORY);
1732
- showHistory(data.record.id, 'Volo.Abp.Identity.IdentityUser');
1733
- },
1734
- permission: 'AuditLogging.ViewChangeHistory:Volo.Abp.Identity.IdentityUser',
1735
- visible: data => Boolean(data.getInjected(SHOW_ENTITY_HISTORY, null)),
1736
- },
1737
- {
1738
- text: 'AbpIdentity::SetPassword',
1739
- action: data => {
1740
- const component = data.getInjected(UsersComponent);
1741
- component.selected = data.record;
1742
- component.isSetPasswordModalVisible = true;
1743
- },
1744
- permission: 'AbpIdentity.Users.Update',
1745
- },
1746
- {
1747
- text: 'AbpIdentity::TwoFactor',
1748
- action: data => {
1749
- const component = data.getInjected(UsersComponent);
1750
- component.selected = data.record;
1751
- component.service.getTwoFactorEnabled(data.record.id).subscribe(res => {
1752
- component.twoFactor.checkboxValue = res;
1753
- component.twoFactor.isModalVisible = true;
1754
- });
1755
- },
1756
- permission: 'AbpIdentity.Users.Update',
1757
- visible: data => data.getInjected(UsersComponent).twoFactor.isOptional,
1758
- },
1759
- {
1760
- text: 'AbpIdentity::LoginWithThisUser',
1761
- permission: 'AbpIdentity.Users.Impersonation',
1762
- action: data => {
1763
- const impersonation = data.getInjected(ImpersonationService);
1764
- impersonation.impersonateUser(data.record.id).subscribe();
1765
- },
1766
- visible: data => {
1767
- const configState = data.getInjected(ConfigStateService);
1768
- const currentUserId = configState.getDeep('currentUser.id');
1769
- const currentImpersonatorUserId = configState.getDeep('currentUser.impersonatorUserId');
1770
- return data.record.id !== currentUserId && currentImpersonatorUserId === null;
1771
- },
1772
- },
1773
- {
1774
- text: 'AbpIdentity::Delete',
1775
- action: data => {
1776
- const component = data.getInjected(UsersComponent);
1777
- component.delete(data.record.id, data.record.name || data.record.userName);
1778
- },
1779
- permission: 'AbpIdentity.Users.Delete',
1780
- },
1781
- ]);
1782
-
1783
- const DEFAULT_USERS_ENTITY_PROPS = EntityProp.createMany([
1784
- {
1785
- type: "string" /* ePropType.String */,
1786
- name: 'userName',
1787
- displayName: 'AbpIdentity::UserName',
1788
- sortable: true,
1789
- columnWidth: 250,
1790
- valueResolver: data => {
1791
- const l10n = data.getInjected(LocalizationService);
1792
- const t = l10n.instant.bind(l10n);
1793
- const lockOutIcon = `<i title="${t('AbpIdentity::ThisUserIsLockedOutMessage')}" class="fas fa-lock text-danger me-1"></i>`;
1794
- const inactiveIcon = `<i title="${t('AbpIdentity::ThisUserIsNotActiveMessage')}" class="fas fa-ban text-danger me-1"></i>`;
1795
- return of(`
1796
- ${data.record.isLockedOut ? lockOutIcon : ''}
1797
- ${!data.record.isActive ? inactiveIcon : ''}
1798
- <span class="${data.record.isLockedOut || !data.record.isActive ? 'opc-65' : ''}">${escapeHtmlChars(data.record.userName)}</span>`);
1799
- },
1800
- },
1801
- {
1802
- type: "string" /* ePropType.String */,
1803
- name: 'email',
1804
- displayName: 'AbpIdentity::EmailAddress',
1805
- sortable: true,
1806
- columnWidth: 300,
1807
- valueResolver: data => {
1808
- const { email, emailConfirmed } = data.record;
1809
- return of((email || '') + (emailConfirmed ? `<i class="fa fa-check text-success ms-1"></i>` : ''));
1810
- },
1811
- },
1812
- {
1813
- type: "string" /* ePropType.String */,
1814
- name: 'roleNames',
1815
- displayName: 'AbpIdentity::Roles',
1816
- columnWidth: 250,
1817
- valueResolver: data => of(data.record.roleNames.reduce((acc, curr) => `${acc ? acc + ',' : ''} ${escapeHtmlChars(curr)}`, '')),
1818
- },
1819
- {
1820
- type: "string" /* ePropType.String */,
1821
- name: 'phoneNumber',
1822
- displayName: 'AbpIdentity::PhoneNumber',
1823
- sortable: true,
1824
- columnWidth: 250,
1825
- valueResolver: data => {
1826
- const { phoneNumber, phoneNumberConfirmed } = data.record;
1827
- return of((escapeHtmlChars(phoneNumber) || '') +
1828
- (phoneNumberConfirmed ? `<i class="fa fa-check text-success ms-1"></i>` : ''));
1829
- },
1830
- },
1831
- {
1832
- type: "string" /* ePropType.String */,
1833
- name: 'name',
1834
- displayName: 'AbpIdentity::Name',
1835
- sortable: true,
1836
- columnWidth: 250,
1837
- },
1838
- {
1839
- type: "string" /* ePropType.String */,
1840
- name: 'surname',
1841
- displayName: 'AbpIdentity::Surname',
1842
- sortable: true,
1843
- columnWidth: 250,
1844
- },
1845
- {
1846
- type: "boolean" /* ePropType.Boolean */,
1847
- name: 'isActive',
1848
- displayName: 'AbpIdentity::DisplayName:IsActive',
1849
- sortable: true,
1850
- columnWidth: 100,
1851
- },
1852
- {
1853
- type: "boolean" /* ePropType.Boolean */,
1854
- name: 'lockoutEnabled',
1855
- displayName: 'AbpIdentity::DisplayName:LockoutEnabled',
1856
- sortable: false,
1857
- columnWidth: 100,
1858
- },
1859
- {
1860
- type: "boolean" /* ePropType.Boolean */,
1861
- name: 'emailConfirmed',
1862
- displayName: 'AbpIdentity::DisplayName:EmailConfirmed',
1863
- sortable: true,
1864
- columnWidth: 100,
1865
- },
1866
- {
1867
- type: "boolean" /* ePropType.Boolean */,
1868
- name: 'twoFactorEnabled',
1869
- displayName: 'AbpIdentity::DisplayName:TwoFactorEnabled',
1870
- sortable: true,
1871
- columnWidth: 100,
1872
- },
1873
- {
1874
- type: "number" /* ePropType.Number */,
1875
- name: 'accessFailedCount',
1876
- displayName: 'AbpIdentity::DisplayName:AccessFailedCount',
1877
- sortable: true,
1878
- columnWidth: 100,
1879
- },
1880
- {
1881
- type: "datetime" /* ePropType.DateTime */,
1882
- name: 'creationTime',
1883
- displayName: 'AbpIdentity::CreationTime',
1884
- sortable: true,
1885
- columnWidth: 200,
1886
- },
1887
- {
1888
- type: "datetime" /* ePropType.DateTime */,
1889
- name: 'lastModificationTime',
1890
- displayName: 'AbpIdentity::LastModificationTime',
1891
- sortable: true,
1892
- columnWidth: 200,
1893
- },
1894
- ]);
1895
-
1896
- const DEFAULT_USERS_TOOLBAR_COMPONENTS = ToolbarComponent.createMany([
1897
- {
1898
- permission: 'AbpIdentity.Users.Create',
1899
- component: UserDropdownMenuComponent,
1900
- },
1901
- ]);
1902
- const DEFAULT_USERS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
1903
- {
1904
- text: 'AbpIdentity::NewUser',
1905
- action: data => {
1906
- const component = data.getInjected(UsersComponent);
1907
- component.onAdd();
1908
- },
1909
- permission: 'AbpIdentity.Users.Create',
1910
- icon: 'fa fa-plus',
1911
- },
1912
- ]);
1913
- const DEFAULT_USERS_TOOLBAR_ALL = [
1914
- ...DEFAULT_USERS_TOOLBAR_COMPONENTS,
1915
- ...DEFAULT_USERS_TOOLBAR_ACTIONS,
1916
- ];
1917
-
1918
- const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany([
1919
- {
1920
- type: "string" /* ePropType.String */,
1921
- name: 'userName',
1922
- displayName: 'AbpIdentity::UserName',
1923
- id: 'user-name',
1924
- validators: () => [Validators.required, Validators.maxLength(256)],
1925
- },
1926
- {
1927
- type: "passwordinputgroup" /* ePropType.PasswordInputGroup */,
1928
- name: 'password',
1929
- displayName: 'AbpIdentity::Password',
1930
- id: 'password',
1931
- autocomplete: 'new-password',
1932
- validators: data => [Validators.required, ...getPasswordValidators({ get: data.getInjected })],
1933
- },
1934
- {
1935
- type: "string" /* ePropType.String */,
1936
- name: 'name',
1937
- displayName: 'AbpIdentity::DisplayName:Name',
1938
- id: 'name',
1939
- validators: () => [Validators.maxLength(64)],
1940
- },
1941
- {
1942
- type: "string" /* ePropType.String */,
1943
- name: 'surname',
1944
- displayName: 'AbpIdentity::DisplayName:Surname',
1945
- id: 'surname',
1946
- validators: () => [Validators.maxLength(64)],
1947
- },
1948
- {
1949
- type: "email" /* ePropType.Email */,
1950
- name: 'email',
1951
- displayName: 'AbpIdentity::EmailAddress',
1952
- id: 'email',
1953
- validators: () => [Validators.required, Validators.maxLength(256), Validators.email],
1954
- },
1955
- {
1956
- type: "string" /* ePropType.String */,
1957
- name: 'phoneNumber',
1958
- displayName: 'AbpIdentity::PhoneNumber',
1959
- id: 'phone-number',
1960
- validators: () => [Validators.maxLength(16)],
1961
- },
1962
- {
1963
- type: "boolean" /* ePropType.Boolean */,
1964
- name: 'isActive',
1965
- displayName: 'AbpIdentity::DisplayName:IsActive',
1966
- id: 'active-checkbox',
1967
- defaultValue: true,
1968
- },
1969
- {
1970
- type: "boolean" /* ePropType.Boolean */,
1971
- name: 'shouldChangePasswordOnNextLogin',
1972
- displayName: 'AbpIdentity::DisplayName:ShouldChangePasswordOnNextLogin',
1973
- id: 'shouldChangePasswordOnNextLogin',
1974
- defaultValue: false,
1975
- },
1976
- {
1977
- type: "boolean" /* ePropType.Boolean */,
1978
- name: 'lockoutEnabled',
1979
- displayName: 'AbpIdentity::DisplayName:LockoutEnabled',
1980
- id: 'lockout-checkbox',
1981
- defaultValue: true,
1982
- },
1983
- ]);
1984
- const DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS.filter(prop => prop.name !== 'password');
1985
-
1986
- const DEFAULT_IDENTITY_ENTITY_ACTIONS = {
1987
- ["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: DEFAULT_CLAIMS_ENTITY_ACTIONS,
1988
- ["Identity.RolesComponent" /* eIdentityComponents.Roles */]: DEFAULT_ROLES_ENTITY_ACTIONS,
1989
- ["Identity.UsersComponent" /* eIdentityComponents.Users */]: DEFAULT_USERS_ENTITY_ACTIONS,
1990
- ["Identity.OrganizationMembersComponent" /* eIdentityComponents.OrganizationMembers */]: DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS,
1991
- ["Identity.OrganizationRolesComponent" /* eIdentityComponents.OrganizationRoles */]: DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS,
1992
- ["Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */]: DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS,
1993
- };
1994
- const DEFAULT_IDENTITY_TOOLBAR_ACTIONS = {
1995
- ["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: DEFAULT_CLAIMS_TOOLBAR_ACTIONS,
1996
- ["Identity.RolesComponent" /* eIdentityComponents.Roles */]: DEFAULT_ROLES_TOOLBAR_ACTIONS,
1997
- ["Identity.UsersComponent" /* eIdentityComponents.Users */]: DEFAULT_USERS_TOOLBAR_ALL,
1998
- ["Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */]: DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS,
1999
- ["Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */]: DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS,
2000
- };
2001
- const DEFAULT_IDENTITY_ENTITY_PROPS = {
2002
- ["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: DEFAULT_CLAIMS_ENTITY_PROPS,
2003
- ["Identity.RolesComponent" /* eIdentityComponents.Roles */]: DEFAULT_ROLES_ENTITY_PROPS,
2004
- ["Identity.UsersComponent" /* eIdentityComponents.Users */]: DEFAULT_USERS_ENTITY_PROPS,
2005
- ["Identity.OrganizationMembersComponent" /* eIdentityComponents.OrganizationMembers */]: DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS,
2006
- ["Identity.OrganizationRolesComponent" /* eIdentityComponents.OrganizationRoles */]: DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS,
2007
- ["Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */]: DEFAULT_SECURITY_LOGS_ENTITY_PROPS,
2008
- };
2009
- const DEFAULT_IDENTITY_CREATE_FORM_PROPS = {
2010
- ["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: DEFAULT_CLAIMS_CREATE_FORM_PROPS,
2011
- ["Identity.RolesComponent" /* eIdentityComponents.Roles */]: DEFAULT_ROLES_CREATE_FORM_PROPS,
2012
- ["Identity.UsersComponent" /* eIdentityComponents.Users */]: DEFAULT_USERS_CREATE_FORM_PROPS,
2013
- ["Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */]: DEFAULT_ORGANIZATION_UNITS_CREATE_FORM_PROPS,
2014
- };
2015
- const DEFAULT_IDENTITY_EDIT_FORM_PROPS = {
2016
- ["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: DEFAULT_CLAIMS_EDIT_FORM_PROPS,
2017
- ["Identity.RolesComponent" /* eIdentityComponents.Roles */]: DEFAULT_ROLES_EDIT_FORM_PROPS,
2018
- ["Identity.UsersComponent" /* eIdentityComponents.Users */]: DEFAULT_USERS_EDIT_FORM_PROPS,
2019
- ["Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */]: DEFAULT_ORGANIZATION_UNITS_EDIT_FORM_PROPS,
2020
- };
2021
- const IDENTITY_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('IDENTITY_ENTITY_ACTION_CONTRIBUTORS');
2022
- const IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS');
2023
- const IDENTITY_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_ENTITY_PROP_CONTRIBUTORS');
2024
- const IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS');
2025
- const IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS');
2026
-
2027
- class IdentityExtensionsGuard {
2028
- constructor(injector) {
2029
- this.injector = injector;
2030
- }
2031
- canActivate() {
2032
- const extensions = this.injector.get(ExtensionsService);
2033
- const actionContributors = this.injector.get(IDENTITY_ENTITY_ACTION_CONTRIBUTORS, null) || {};
2034
- const toolbarContributors = this.injector.get(IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
2035
- const propContributors = this.injector.get(IDENTITY_ENTITY_PROP_CONTRIBUTORS, null) || {};
2036
- const createFormContributors = this.injector.get(IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
2037
- const editFormContributors = this.injector.get(IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
2038
- const configState = this.injector.get(ConfigStateService);
2039
- return getObjectExtensionEntitiesFromStore(configState, 'Identity').pipe(map(entities => ({
2040
- ["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: entities.ClaimType,
2041
- ["Identity.RolesComponent" /* eIdentityComponents.Roles */]: entities.Role,
2042
- ["Identity.UsersComponent" /* eIdentityComponents.Users */]: entities.User,
2043
- ["Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */]: entities.OrganizationUnit,
2044
- })), mapEntitiesToContributors(configState, 'AbpIdentity'), tap(objectExtensionContributors => {
2045
- mergeWithDefaultActions(extensions.entityActions, DEFAULT_IDENTITY_ENTITY_ACTIONS, actionContributors);
2046
- mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, toolbarContributors);
2047
- mergeWithDefaultProps(extensions.entityProps, DEFAULT_IDENTITY_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
2048
- mergeWithDefaultProps(extensions.createFormProps, DEFAULT_IDENTITY_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
2049
- mergeWithDefaultProps(extensions.editFormProps, DEFAULT_IDENTITY_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
2050
- }), mapTo(true));
2051
- }
2052
- }
2053
- IdentityExtensionsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
2054
- IdentityExtensionsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityExtensionsGuard });
2055
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityExtensionsGuard, decorators: [{
2056
- type: Injectable
2057
- }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
2058
-
2059
- const routes = [
2060
- { path: '', redirectTo: 'roles', pathMatch: 'full' },
2061
- {
2062
- path: '',
2063
- component: RouterOutletComponent,
2064
- canActivate: [AuthGuard, PermissionGuard, IdentityExtensionsGuard],
2065
- children: [
2066
- {
2067
- path: 'roles',
2068
- component: ReplaceableRouteContainerComponent,
2069
- data: {
2070
- requiredPolicy: 'AbpIdentity.Roles',
2071
- replaceableComponent: {
2072
- key: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
2073
- defaultComponent: RolesComponent,
2074
- },
2075
- },
2076
- },
2077
- {
2078
- path: 'users',
2079
- component: ReplaceableRouteContainerComponent,
2080
- data: {
2081
- requiredPolicy: 'AbpIdentity.Users',
2082
- replaceableComponent: {
2083
- key: "Identity.UsersComponent" /* eIdentityComponents.Users */,
2084
- defaultComponent: UsersComponent,
2085
- },
2086
- },
2087
- },
2088
- {
2089
- path: 'claim-types',
2090
- component: ReplaceableRouteContainerComponent,
2091
- data: {
2092
- requiredPolicy: 'AbpIdentity.ClaimTypes',
2093
- replaceableComponent: {
2094
- key: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
2095
- defaultComponent: ClaimsComponent,
2096
- },
2097
- },
2098
- },
2099
- {
2100
- path: 'organization-units',
2101
- component: ReplaceableRouteContainerComponent,
2102
- data: {
2103
- requiredPolicy: 'AbpIdentity.OrganizationUnits',
2104
- replaceableComponent: {
2105
- key: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
2106
- defaultComponent: OrganizationUnitsComponent,
2107
- },
2108
- },
2109
- },
2110
- {
2111
- path: 'security-logs',
2112
- component: ReplaceableRouteContainerComponent,
2113
- data: {
2114
- requiredPolicy: 'AbpIdentity.SecurityLogs',
2115
- replaceableComponent: {
2116
- key: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
2117
- defaultComponent: SecurityLogsComponent,
2118
- },
2119
- },
2120
- },
2121
- ],
2122
- },
2123
- ];
2124
- class IdentityRoutingModule {
2125
- }
2126
- IdentityRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2127
- IdentityRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: IdentityRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
2128
- IdentityRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
2129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityRoutingModule, decorators: [{
2130
- type: NgModule,
2131
- args: [{
2132
- imports: [RouterModule.forChild(routes)],
2133
- exports: [RouterModule],
2134
- }]
2135
- }] });
2136
-
2137
- /* tslint:disable:max-line-length */
2138
- class IdentityModule {
2139
- static forChild(options = {}) {
2140
- return {
2141
- ngModule: IdentityModule,
2142
- providers: [
2143
- {
2144
- provide: IDENTITY_ENTITY_ACTION_CONTRIBUTORS,
2145
- useValue: options.entityActionContributors,
2146
- },
2147
- {
2148
- provide: IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS,
2149
- useValue: options.toolbarActionContributors,
2150
- },
2151
- {
2152
- provide: IDENTITY_ENTITY_PROP_CONTRIBUTORS,
2153
- useValue: options.entityPropContributors,
2154
- },
2155
- {
2156
- provide: IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS,
2157
- useValue: options.createFormPropContributors,
2158
- },
2159
- {
2160
- provide: IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS,
2161
- useValue: options.editFormPropContributors,
2162
- },
2163
- IdentityExtensionsGuard,
2164
- ],
2165
- };
2166
- }
2167
- static forLazy(options = {}) {
2168
- return new LazyModuleFactory(IdentityModule.forChild(options));
2169
- }
2170
- }
2171
- IdentityModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2172
- IdentityModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: IdentityModule, declarations: [RolesComponent,
2173
- UsersComponent,
2174
- ClaimModalComponent,
2175
- ClaimsComponent,
2176
- OrganizationUnitsComponent,
2177
- OrganizationMembersComponent,
2178
- OrganizationMembersModalBodyComponent,
2179
- OrganizationRolesComponent,
2180
- OrganizationRolesModalBodyComponent,
2181
- AbstractOrganizationUnitComponent,
2182
- SecurityLogsComponent,
2183
- SelectedOrganizationUnitComponent,
2184
- ExternalLoginComponent,
2185
- UserDropdownMenuComponent], imports: [CoreModule,
2186
- CommercialUiModule,
2187
- IdentityRoutingModule,
2188
- NgbNavModule,
2189
- ThemeSharedModule,
2190
- NgbDropdownModule,
2191
- NgbTooltipModule,
2192
- NgbDatepickerModule,
2193
- PermissionManagementModule,
2194
- NgxValidateCoreModule,
2195
- TreeModule,
2196
- PageModule,
2197
- AdvancedEntityFiltersModule,
2198
- UiExtensionsModule], exports: [RolesComponent,
2199
- UsersComponent,
2200
- ClaimModalComponent,
2201
- ClaimsComponent,
2202
- OrganizationUnitsComponent,
2203
- OrganizationMembersComponent,
2204
- OrganizationMembersModalBodyComponent,
2205
- OrganizationRolesComponent,
2206
- OrganizationRolesModalBodyComponent,
2207
- AbstractOrganizationUnitComponent,
2208
- SecurityLogsComponent,
2209
- SelectedOrganizationUnitComponent,
2210
- ExternalLoginComponent,
2211
- UserDropdownMenuComponent] });
2212
- IdentityModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityModule, imports: [CoreModule,
2213
- CommercialUiModule,
2214
- IdentityRoutingModule,
2215
- NgbNavModule,
2216
- ThemeSharedModule,
2217
- NgbDropdownModule,
2218
- NgbTooltipModule,
2219
- NgbDatepickerModule,
2220
- PermissionManagementModule,
2221
- NgxValidateCoreModule,
2222
- TreeModule,
2223
- PageModule,
2224
- AdvancedEntityFiltersModule,
2225
- UiExtensionsModule] });
2226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: IdentityModule, decorators: [{
2227
- type: NgModule,
2228
- args: [{
2229
- declarations: [
2230
- RolesComponent,
2231
- UsersComponent,
2232
- ClaimModalComponent,
2233
- ClaimsComponent,
2234
- OrganizationUnitsComponent,
2235
- OrganizationMembersComponent,
2236
- OrganizationMembersModalBodyComponent,
2237
- OrganizationRolesComponent,
2238
- OrganizationRolesModalBodyComponent,
2239
- AbstractOrganizationUnitComponent,
2240
- SecurityLogsComponent,
2241
- SelectedOrganizationUnitComponent,
2242
- ExternalLoginComponent,
2243
- UserDropdownMenuComponent,
2244
- ],
2245
- exports: [
2246
- RolesComponent,
2247
- UsersComponent,
2248
- ClaimModalComponent,
2249
- ClaimsComponent,
2250
- OrganizationUnitsComponent,
2251
- OrganizationMembersComponent,
2252
- OrganizationMembersModalBodyComponent,
2253
- OrganizationRolesComponent,
2254
- OrganizationRolesModalBodyComponent,
2255
- AbstractOrganizationUnitComponent,
2256
- SecurityLogsComponent,
2257
- SelectedOrganizationUnitComponent,
2258
- ExternalLoginComponent,
2259
- UserDropdownMenuComponent,
2260
- ],
2261
- imports: [
2262
- CoreModule,
2263
- CommercialUiModule,
2264
- IdentityRoutingModule,
2265
- NgbNavModule,
2266
- ThemeSharedModule,
2267
- NgbDropdownModule,
2268
- NgbTooltipModule,
2269
- NgbDatepickerModule,
2270
- PermissionManagementModule,
2271
- NgxValidateCoreModule,
2272
- TreeModule,
2273
- PageModule,
2274
- AdvancedEntityFiltersModule,
2275
- UiExtensionsModule,
2276
- ],
2277
- }]
2278
- }] });
2279
-
2280
- /**
2281
- * Generated bundle index. Do not edit.
2282
- */
2283
-
2284
- export { AbstractOrganizationUnitComponent, ClaimModalComponent, ClaimsComponent, DEFAULT_CLAIMS_CREATE_FORM_PROPS, DEFAULT_CLAIMS_EDIT_FORM_PROPS, DEFAULT_CLAIMS_ENTITY_ACTIONS, DEFAULT_CLAIMS_ENTITY_PROPS, DEFAULT_CLAIMS_TOOLBAR_ACTIONS, DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS, DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS, DEFAULT_ORGANIZATION_UNITS_CREATE_FORM_PROPS, DEFAULT_ORGANIZATION_UNITS_EDIT_FORM_PROPS, DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS, DEFAULT_ROLES_CREATE_FORM_PROPS, DEFAULT_ROLES_EDIT_FORM_PROPS, DEFAULT_ROLES_ENTITY_ACTIONS, DEFAULT_ROLES_ENTITY_PROPS, DEFAULT_ROLES_TOOLBAR_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_PROPS, DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS, DEFAULT_USERS_CREATE_FORM_PROPS, DEFAULT_USERS_EDIT_FORM_PROPS, DEFAULT_USERS_ENTITY_ACTIONS, DEFAULT_USERS_ENTITY_PROPS, DEFAULT_USERS_TOOLBAR_ACTIONS, DEFAULT_USERS_TOOLBAR_ALL, DEFAULT_USERS_TOOLBAR_COMPONENTS, ExternalLoginComponent, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, IdentityExtensionsGuard, IdentityModule, ORGANIZATION_UNIT_CONFIG, OrganizationMembersComponent, OrganizationMembersModalBodyComponent, OrganizationRolesComponent, OrganizationRolesModalBodyComponent, OrganizationUnitsComponent, OrganizationUnitsStateService, RolesComponent, SecurityLogsComponent, SelectedOrganizationUnitComponent, UserDropdownMenuComponent, UsersComponent, eIdentityTwoFactorBehaviour, identityTwoFactorBehaviourOptions };
2285
- //# sourceMappingURL=volo-abp.ng.identity.mjs.map