@volo/abp.ng.identity 7.2.2 → 7.3.0-rc.2

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