diff --git a/npm/ng-packs/dist/account/abp-ng.account.metadata.json b/npm/ng-packs/dist/account/abp-ng.account.metadata.json index 3154c15985..c4f6f2f4e9 100644 --- a/npm/ng-packs/dist/account/abp-ng.account.metadata.json +++ b/npm/ng-packs/dist/account/abp-ng.account.metadata.json @@ -1 +1 @@ -{"__symbolic":"module","version":4,"exports":[{"from":"./lib/options"},{"from":"./lib/user"},{"from":"./lib/tenant"},{"from":"./lib/register/register.component"},{"from":"./lib/personal-settings/personal-settings.component"}],"metadata":{"AccountModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"}],"imports":[{"__symbolic":"reference","module":"@abp/ng.core","name":"CoreModule","line":27,"character":12},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ThemeSharedModule","line":27,"character":46},{"__symbolic":"reference","module":"primeng/table","name":"TableModule","line":27,"character":65},{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDropdownModule","line":27,"character":78},{"__symbolic":"reference","module":"@ngx-validate/core","name":"NgxValidateCoreModule","line":27,"character":97}],"exports":[]}]}],"members":{}},"AccountProviders":{"__symbolic":"function","parameters":["options"],"defaults":[{}],"value":[{"provide":{"__symbolic":"reference","name":"ɵl"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":"ACCOUNT_OPTIONS","useFactory":{"__symbolic":"reference","name":"ɵk"},"deps":[{"__symbolic":"reference","name":"ɵl"}]}]},"ACCOUNT_ROUTES":{"routes":[{"name":"Account","path":"account","invisible":true,"layout":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@abp/ng.core","name":"eLayoutType","line":12,"character":14},"member":"application"},"children":[{"path":"login","name":"Login","order":1},{"path":"register","name":"Register","order":2}]}]},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"abp-auth-wrapper","template":"
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n"}]}],"members":{"mainContentRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":7,"character":3}}]}],"cancelContentRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":14,"character":1},"arguments":[{"selector":"abp-login","template":"\r\n \r\n

{{ 'AbpAccount::Login' | abpLocalization }}

\r\n \r\n {{ 'AbpAccount::AreYouANewUser' | abpLocalization }}\r\n {{ 'AbpAccount::Register' | abpLocalization }}\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {{ 'AbpAccount::Login' | abpLocalization }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":28,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":28,"character":17},"arguments":["ACCOUNT_OPTIONS"]}]],"parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":24,"character":16},{"__symbolic":"reference","module":"angular-oauth2-oidc","name":"OAuthService","line":25,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":26,"character":19},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":27,"character":28},{"__symbolic":"reference","name":"ɵc"}]}],"onSubmit":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"interface"},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"abp-register","template":"\r\n \r\n

{{ 'AbpAccount::Register' | abpLocalization }}

\r\n \r\n {{ 'AbpAccount::AlreadyRegistered' | abpLocalization }}\r\n {{ 'AbpAccount::Login' | abpLocalization }}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ 'AbpAccount::Register' | abpLocalization }}\r\n \r\n \r\n
\r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":25,"character":16},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","module":"angular-oauth2-oidc","name":"OAuthService","line":27,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":28,"character":19},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":29,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@abp/ng.core","name":"RestService","line":9,"character":28}]}],"findTenant":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"abp-tenant-box","template":"
\r\n
\r\n
\r\n
\r\n {{\r\n 'AbpUiMultiTenancy::Tenant' | abpLocalization\r\n }}
\r\n
\r\n \r\n {{ tenantName || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }}\r\n \r\n
\r\n
\r\n
\r\n {{ 'AbpUiMultiTenancy::Switch' | abpLocalization }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n
Switch Tenant
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n

{{ 'AbpUiMultiTenancy::SwitchTenantHint' | abpLocalization }}

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {{ 'AbpTenantManagement::Save' | abpLocalization }}\r\n \r\n \r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":22,"character":29},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":22,"character":60},{"__symbolic":"reference","name":"ɵe"}]}],"ngOnInit":[{"__symbolic":"method"}],"onSwitch":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"abp-change-password-form","template":"
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":28,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":28,"character":54},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":28,"character":85}]}],"ngOnInit":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"abp-manage-profile","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":7,"character":15},"arguments":["fadeIn",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":7,"character":34},"arguments":[":enter",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"useAnimation","line":7,"character":55},"arguments":[{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"fadeIn","line":7,"character":68}]}]}]]}],"template":"
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

\r\n {{ 'AbpIdentity::ChangePassword' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

\r\n {{ 'AbpIdentity::PersonalSettings' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n"}]}],"members":{}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"abp-personal-settings-form","template":"
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n
\r\n"}]}],"members":{"profile$":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ngxs/store","name":"Select","line":15,"character":3},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@abp/ng.core","name":"ProfileState","line":15,"character":10},"member":"getProfile"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":22,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":22,"character":54},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":22,"character":85}]}],"ngOnInit":[{"__symbolic":"method"}],"buildForm":[{"__symbolic":"method"}],"submit":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"imports":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":24,"character":12},"member":"forChild"},"arguments":[[{"path":"","pathMatch":"full","redirectTo":"login"},{"path":"","component":{"__symbolic":"reference","module":"@abp/ng.core","name":"DynamicLayoutComponent","line":11,"character":15},"children":[{"path":"login","component":{"__symbolic":"reference","name":"ɵb"}},{"path":"register","component":{"__symbolic":"reference","name":"ɵd"}},{"path":"manage-profile","component":{"__symbolic":"reference","name":"ɵh"}}]}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":25,"character":12}]}]}],"members":{}},"ɵk":{"__symbolic":"function","parameters":["options"],"value":{"redirectUrl":"/"}},"ɵl":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":10,"character":35},"arguments":["ACCOUNT_OPTIONS"]}},"origins":{"AccountModule":"./lib/account.module","AccountProviders":"./lib/account.module","ACCOUNT_ROUTES":"./lib/constants/routes","ɵa":"./lib/components/auth-wrapper/auth-wrapper.component","ɵb":"./lib/components/login/login.component","ɵc":"./lib/models/options","ɵd":"./lib/components/register/register.component","ɵe":"./lib/services/account.service","ɵf":"./lib/components/tenant-box/tenant-box.component","ɵg":"./lib/components/change-password/change-password.component","ɵh":"./lib/components/manage-profile/manage-profile.component","ɵi":"./lib/components/personal-settings/personal-settings.component","ɵj":"./lib/account-routing.module","ɵk":"./lib/tokens/options.token","ɵl":"./lib/tokens/options.token"},"importAs":"@abp/ng.account"} \ No newline at end of file +{"__symbolic":"module","version":4,"exports":[{"from":"./lib/options"},{"from":"./lib/user"},{"from":"./lib/tenant"},{"from":"./lib/register/register.component"},{"from":"./lib/personal-settings/personal-settings.component"}],"metadata":{"AccountModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"}],"imports":[{"__symbolic":"reference","module":"@abp/ng.core","name":"CoreModule","line":27,"character":12},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ThemeSharedModule","line":27,"character":46},{"__symbolic":"reference","module":"primeng/table","name":"TableModule","line":27,"character":65},{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDropdownModule","line":27,"character":78},{"__symbolic":"reference","module":"@ngx-validate/core","name":"NgxValidateCoreModule","line":27,"character":97}],"exports":[]}]}],"members":{}},"AccountProviders":{"__symbolic":"function","parameters":["options"],"defaults":[{}],"value":[{"provide":{"__symbolic":"reference","name":"ɵl"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":"ACCOUNT_OPTIONS","useFactory":{"__symbolic":"reference","name":"ɵk"},"deps":[{"__symbolic":"reference","name":"ɵl"}]}]},"ACCOUNT_ROUTES":{"routes":[{"name":"Account","path":"account","invisible":true,"layout":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@abp/ng.core","name":"eLayoutType","line":12,"character":14},"member":"application"},"children":[{"path":"login","name":"Login","order":1},{"path":"register","name":"Register","order":2}]}]},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"abp-auth-wrapper","template":"
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n"}]}],"members":{"mainContentRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":7,"character":3}}]}],"cancelContentRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"abp-login","template":"\r\n \r\n

{{ 'AbpAccount::Login' | abpLocalization }}

\r\n \r\n {{ 'AbpAccount::AreYouANewUser' | abpLocalization }}\r\n {{ 'AbpAccount::Register' | abpLocalization }}\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {{ 'AbpAccount::Login' | abpLocalization }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":29,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":17},"arguments":["ACCOUNT_OPTIONS"]}]],"parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":25,"character":16},{"__symbolic":"reference","module":"angular-oauth2-oidc","name":"OAuthService","line":26,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":27,"character":19},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":28,"character":28},{"__symbolic":"reference","name":"ɵc"}]}],"onSubmit":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"interface"},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"abp-register","template":"\r\n \r\n

{{ 'AbpAccount::Register' | abpLocalization }}

\r\n \r\n {{ 'AbpAccount::AlreadyRegistered' | abpLocalization }}\r\n {{ 'AbpAccount::Login' | abpLocalization }}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ 'AbpAccount::Register' | abpLocalization }}\r\n \r\n \r\n
\r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":25,"character":16},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","module":"angular-oauth2-oidc","name":"OAuthService","line":27,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":28,"character":19},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":29,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@abp/ng.core","name":"RestService","line":9,"character":28}]}],"findTenant":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"abp-tenant-box","template":"
\r\n
\r\n
\r\n
\r\n {{\r\n 'AbpUiMultiTenancy::Tenant' | abpLocalization\r\n }}
\r\n
\r\n \r\n {{ tenantName || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }}\r\n \r\n
\r\n
\r\n
\r\n {{ 'AbpUiMultiTenancy::Switch' | abpLocalization }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n
Switch Tenant
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n

{{ 'AbpUiMultiTenancy::SwitchTenantHint' | abpLocalization }}

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {{ 'AbpTenantManagement::Save' | abpLocalization }}\r\n \r\n \r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":22,"character":29},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":22,"character":60},{"__symbolic":"reference","name":"ɵe"}]}],"ngOnInit":[{"__symbolic":"method"}],"onSwitch":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"abp-change-password-form","template":"
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n
\r\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":28,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":28,"character":54},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":28,"character":85}]}],"ngOnInit":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"abp-manage-profile","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":7,"character":15},"arguments":["fadeIn",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":7,"character":34},"arguments":[":enter",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"useAnimation","line":7,"character":55},"arguments":[{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"fadeIn","line":7,"character":68}]}]}]]}],"template":"
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

\r\n {{ 'AbpIdentity::ChangePassword' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

\r\n {{ 'AbpIdentity::PersonalSettings' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n"}]}],"members":{}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"abp-personal-settings-form","template":"
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n
\r\n"}]}],"members":{"profile$":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ngxs/store","name":"Select","line":15,"character":3},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@abp/ng.core","name":"ProfileState","line":15,"character":10},"member":"getProfile"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":22,"character":26},{"__symbolic":"reference","module":"@ngxs/store","name":"Store","line":22,"character":54},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ToasterService","line":22,"character":85}]}],"ngOnInit":[{"__symbolic":"method"}],"buildForm":[{"__symbolic":"method"}],"submit":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"imports":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":24,"character":12},"member":"forChild"},"arguments":[[{"path":"","pathMatch":"full","redirectTo":"login"},{"path":"","component":{"__symbolic":"reference","module":"@abp/ng.core","name":"DynamicLayoutComponent","line":11,"character":15},"children":[{"path":"login","component":{"__symbolic":"reference","name":"ɵb"}},{"path":"register","component":{"__symbolic":"reference","name":"ɵd"}},{"path":"manage-profile","component":{"__symbolic":"reference","name":"ɵh"}}]}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":25,"character":12}]}]}],"members":{}},"ɵk":{"__symbolic":"function","parameters":["options"],"value":{"redirectUrl":"/"}},"ɵl":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":10,"character":35},"arguments":["ACCOUNT_OPTIONS"]}},"origins":{"AccountModule":"./lib/account.module","AccountProviders":"./lib/account.module","ACCOUNT_ROUTES":"./lib/constants/routes","ɵa":"./lib/components/auth-wrapper/auth-wrapper.component","ɵb":"./lib/components/login/login.component","ɵc":"./lib/models/options","ɵd":"./lib/components/register/register.component","ɵe":"./lib/services/account.service","ɵf":"./lib/components/tenant-box/tenant-box.component","ɵg":"./lib/components/change-password/change-password.component","ɵh":"./lib/components/manage-profile/manage-profile.component","ɵi":"./lib/components/personal-settings/personal-settings.component","ɵj":"./lib/account-routing.module","ɵk":"./lib/tokens/options.token","ɵl":"./lib/tokens/options.token"},"importAs":"@abp/ng.account"} \ No newline at end of file diff --git a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js index 847bacb0aa..99f34e0286 100644 --- a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js +++ b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js @@ -1,8 +1,8 @@ (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@angular/core'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-validate/core'), require('primeng/table'), require('@angular/router'), require('@angular/forms'), require('@ngxs/router-plugin'), require('@ngxs/store'), require('angular-oauth2-oidc'), require('rxjs'), require('rxjs/operators'), require('snq'), require('@angular/animations')) : - typeof define === 'function' && define.amd ? define('@abp/ng.account', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@angular/core', '@ng-bootstrap/ng-bootstrap', '@ngx-validate/core', 'primeng/table', '@angular/router', '@angular/forms', '@ngxs/router-plugin', '@ngxs/store', 'angular-oauth2-oidc', 'rxjs', 'rxjs/operators', 'snq', '@angular/animations'], factory) : - (global = global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.account = {}), global.ng_core, global.ng_theme_shared, global.ng.core, global.ngBootstrap, global.core$1, global.table, global.ng.router, global.ng.forms, global.routerPlugin, global.store, global.angularOauth2Oidc, global.rxjs, global.rxjs.operators, global.snq, global.ng.animations)); -}(this, (function (exports, ng_core, ng_theme_shared, core, ngBootstrap, core$1, table, router, forms, routerPlugin, store, angularOauth2Oidc, rxjs, operators, snq, animations) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@angular/core'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-validate/core'), require('primeng/table'), require('@angular/router'), require('@angular/forms'), require('@ngxs/router-plugin'), require('@ngxs/store'), require('angular-oauth2-oidc'), require('rxjs'), require('rxjs/operators'), require('snq'), require('@angular/common/http'), require('@angular/animations')) : + typeof define === 'function' && define.amd ? define('@abp/ng.account', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@angular/core', '@ng-bootstrap/ng-bootstrap', '@ngx-validate/core', 'primeng/table', '@angular/router', '@angular/forms', '@ngxs/router-plugin', '@ngxs/store', 'angular-oauth2-oidc', 'rxjs', 'rxjs/operators', 'snq', '@angular/common/http', '@angular/animations'], factory) : + (global = global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.account = {}), global.ng_core, global.ng_theme_shared, global.ng.core, global.ngBootstrap, global.core$1, global.table, global.ng.router, global.ng.forms, global.routerPlugin, global.store, global.angularOauth2Oidc, global.rxjs, global.rxjs.operators, global.snq, global.ng.common.http, global.ng.animations)); +}(this, (function (exports, ng_core, ng_theme_shared, core, ngBootstrap, core$1, table, router, forms, routerPlugin, store, angularOauth2Oidc, rxjs, operators, snq, http, animations) { 'use strict'; snq = snq && snq.hasOwnProperty('default') ? snq['default'] : snq; @@ -236,7 +236,9 @@ return; // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage); this.inProgress = true; - rxjs.from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value)) + /** @type {?} */ + var tenant = this.store.selectSnapshot(ng_core.SessionState.getTenant); + rxjs.from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value, new http.HttpHeaders(__assign({}, (tenant && tenant.id && { __tenant: tenant.id }))))) .pipe(operators.switchMap((/** * @return {?} */ diff --git a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js.map b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js.map index 86b3acc573..b251b13de5 100644 --- a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js.map +++ b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"abp-ng.account.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts","ng://@abp/ng.account/lib/models/options.ts","ng://@abp/ng.account/lib/models/user.ts","ng://@abp/ng.account/lib/models/tenant.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import { GetAppConfiguration, ConfigState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n","export interface Options {\r\n redirectUrl?: string;\r\n}\r\n","export interface RegisterRequest {\r\n userName: string;\r\n emailAddress: string;\r\n password: string;\r\n appName?: string;\r\n}\r\n\r\nexport interface RegisterResponse {\r\n tenantId: string;\r\n userName: string;\r\n name: string;\r\n surname: string;\r\n email: string;\r\n emailConfirmed: boolean;\r\n phoneNumber: string;\r\n phoneNumberConfirmed: boolean;\r\n twoFactorEnabled: boolean;\r\n lockoutEnabled: boolean;\r\n lockoutEnd: string;\r\n concurrencyStamp: string;\r\n isDeleted: boolean;\r\n deleterId: string;\r\n deletionTime: string;\r\n lastModificationTime: string;\r\n lastModifierId: string;\r\n creationTime: string;\r\n creatorId: string;\r\n id: string;\r\n}\r\n","export interface TenantIdResponse {\r\n success: boolean;\r\n tenantId: string;\r\n}\r\n"],"names":["ConfigState","from","switchMap","GetAppConfiguration","tap","Navigate","catchError","throwError","finalize","Component","FormBuilder","OAuthService","Store","ToasterService","Optional","Inject","trigger","transition","useAnimation","fadeIn","Injectable","RestService","maxLength","minLength","required","validatePassword","take","DynamicLayoutComponent","NgModule","RouterModule","comparePasswords","ChangePassword","email","GetProfile","withLatestFrom","UpdateProfile","tslib_1.__decorate","Select","ProfileState","Observable","SessionState","SetTenant","InjectionToken","Input","CoreModule","ThemeSharedModule","TableModule","NgbDropdownModule","NgxValidateCoreModule"],"mappings":";;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cA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;;QACxB,sCAAmB;;QACnB,4CAAyB;;QACzB,qCAAmB;;QACnB,qCAAkB;;QAClB,wCAAqB;;QACrB,gDAA6B;;QAC7B,0CAAuB;;QACvB,wCAAqB;;QACrB,qCAAkB;;QAClB,8BAAW;;;;;;;;;;;IC3Bb,+BAGC;;;QAFC,mCAAiB;;QACjB,oCAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"abp-ng.account.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts","ng://@abp/ng.account/lib/models/options.ts","ng://@abp/ng.account/lib/models/user.ts","ng://@abp/ng.account/lib/models/tenant.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import { GetAppConfiguration, ConfigState, SessionState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { HttpHeaders } from '@angular/common/http';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n const tenant = this.store.selectSnapshot(SessionState.getTenant);\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(\r\n this.form.get('username').value,\r\n this.form.get('password').value,\r\n new HttpHeaders({ ...(tenant && tenant.id && { __tenant: tenant.id }) }),\r\n ),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n","export interface Options {\r\n redirectUrl?: string;\r\n}\r\n","export interface RegisterRequest {\r\n userName: string;\r\n emailAddress: string;\r\n password: string;\r\n appName?: string;\r\n}\r\n\r\nexport interface RegisterResponse {\r\n tenantId: string;\r\n userName: string;\r\n name: string;\r\n surname: string;\r\n email: string;\r\n emailConfirmed: boolean;\r\n phoneNumber: string;\r\n phoneNumberConfirmed: boolean;\r\n twoFactorEnabled: boolean;\r\n lockoutEnabled: boolean;\r\n lockoutEnd: string;\r\n concurrencyStamp: string;\r\n isDeleted: boolean;\r\n deleterId: string;\r\n deletionTime: string;\r\n lastModificationTime: string;\r\n lastModifierId: string;\r\n creationTime: string;\r\n creatorId: string;\r\n id: string;\r\n}\r\n","export interface TenantIdResponse {\r\n success: boolean;\r\n tenantId: string;\r\n}\r\n"],"names":["ConfigState","SessionState","from","HttpHeaders","switchMap","GetAppConfiguration","tap","Navigate","catchError","throwError","finalize","Component","FormBuilder","OAuthService","Store","ToasterService","Optional","Inject","trigger","transition","useAnimation","fadeIn","Injectable","RestService","maxLength","minLength","required","validatePassword","take","DynamicLayoutComponent","NgModule","RouterModule","comparePasswords","ChangePassword","email","GetProfile","withLatestFrom","UpdateProfile","tslib_1.__decorate","Select","ProfileState","Observable","SetTenant","InjectionToken","Input","CoreModule","ThemeSharedModule","TableModule","NgbDropdownModule","NgxValidateCoreModule"],"mappings":";;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;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0B;;QAC1B,0CAAwB;;QACxB,sCAAmB;;QACnB,4CAAyB;;QACzB,qCAAmB;;QACnB,qCAAkB;;QAClB,wCAAqB;;QACrB,gDAA6B;;QAC7B,0CAAuB;;QACvB,wCAAqB;;QACrB,qCAAkB;;QAClB,8BAAW;;;;;;;;;;;IC3Bb,+BAGC;;;QAFC,mCAAiB;;QACjB,oCAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js index 043e63d94c..8c56d43b5d 100644 --- a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js +++ b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js @@ -1,2 +1,2 @@ -!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@abp/ng.core"),require("@abp/ng.theme.shared"),require("@angular/core"),require("@ng-bootstrap/ng-bootstrap"),require("@ngx-validate/core"),require("primeng/table"),require("@angular/router"),require("@angular/forms"),require("@ngxs/router-plugin"),require("@ngxs/store"),require("angular-oauth2-oidc"),require("rxjs"),require("rxjs/operators"),require("snq"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@abp/ng.account",["exports","@abp/ng.core","@abp/ng.theme.shared","@angular/core","@ng-bootstrap/ng-bootstrap","@ngx-validate/core","primeng/table","@angular/router","@angular/forms","@ngxs/router-plugin","@ngxs/store","angular-oauth2-oidc","rxjs","rxjs/operators","snq","@angular/animations"],e):e(((r=r||self).abp=r.abp||{},r.abp.ng=r.abp.ng||{},r.abp.ng.account={}),r.ng_core,r.ng_theme_shared,r.ng.core,r.ngBootstrap,r.core$1,r.table,r.ng.router,r.ng.forms,r.routerPlugin,r.store,r.angularOauth2Oidc,r.rxjs,r.rxjs.operators,r.snq,r.ng.animations)}(this,(function(r,e,n,t,a,o,i,s,c,l,p,u,d,m,b,f){"use strict";b=b&&b.hasOwnProperty("default")?b.default:b;var g=function(){return(g=Object.assign||function(r){for(var e,n=1,t=arguments.length;n0)&&!(t=o.next()).done;)i.push(t.value)}catch(r){a={error:r}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}var y=c.Validators.maxLength,w=(c.Validators.minLength,c.Validators.required),A=function(){function r(r,n,t,a,o){this.fb=r,this.oauthService=n,this.store=t,this.toasterService=a,this.options=o,this.oauthService.configure(this.store.selectSnapshot(e.ConfigState.getOne("environment")).oAuthConfig),this.oauthService.loadDiscoveryDocument(),this.form=this.fb.group({username:["",[w,y(255)]],password:["",[w,y(32)]],remember:[!1]})}return r.prototype.onSubmit=function(){var r=this;this.form.invalid||(this.inProgress=!0,d.from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get("username").value,this.form.get("password").value)).pipe(m.switchMap((function(){return r.store.dispatch(new e.GetAppConfiguration)})),m.tap((function(){var e=b((function(){return window.history.state})).redirectUrl||(r.options||{}).redirectUrl||"/";r.store.dispatch(new l.Navigate([e]))})),m.catchError((function(e){return r.toasterService.error(b((function(){return e.error.error_description}))||b((function(){return e.error.error.message}),"AbpAccount::DefaultErrorMessage"),"Error",{life:7e3}),d.throwError(e)})),m.finalize((function(){return r.inProgress=!1}))).subscribe())},r.decorators=[{type:t.Component,args:[{selector:"abp-login",template:'\r\n \r\n

{{ \'AbpAccount::Login\' | abpLocalization }}

\r\n \r\n {{ \'AbpAccount::AreYouANewUser\' | abpLocalization }}\r\n {{ \'AbpAccount::Register\' | abpLocalization }}\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {{ \'AbpAccount::Login\' | abpLocalization }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:u.OAuthService},{type:p.Store},{type:n.ToasterService},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:["ACCOUNT_OPTIONS"]}]}]},r}();var S=function(){function r(){this.selectedTab=0}return r.decorators=[{type:t.Component,args:[{selector:"abp-manage-profile",template:'
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

\r\n {{ \'AbpIdentity::ChangePassword\' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

\r\n {{ \'AbpIdentity::PersonalSettings\' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n',animations:[f.trigger("fadeIn",[f.transition(":enter",f.useAnimation(n.fadeIn))])]}]}],r}();var C=function(){function r(r){this.rest=r}return r.prototype.findTenant=function(r){var e={method:"GET",url:"/api/abp/multi-tenancy/tenants/by-name/"+r};return this.rest.request(e)},r.prototype.register=function(r){var e={method:"POST",url:"/api/account/register",body:r};return this.rest.request(e,{skipHandleError:!0})},r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:e.RestService}]},r.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new r(t.ɵɵinject(e.RestService))},token:r,providedIn:"root"}),r}();var P=c.Validators.maxLength,L=c.Validators.minLength,N=c.Validators.required,T=c.Validators.email,I=function(){function r(r,n,t,a,o){this.fb=r,this.accountService=n,this.oauthService=t,this.store=a,this.toasterService=o,this.oauthService.configure(this.store.selectSnapshot(e.ConfigState.getOne("environment")).oAuthConfig),this.oauthService.loadDiscoveryDocument()}return r.prototype.ngOnInit=function(){var r=this.store.selectSnapshot(e.ConfigState.getSettings("Identity.Password")),n=[],t=1;"true"===(r["Abp.Identity.Password.RequireDigit"]||"").toLowerCase()&&n.push("number"),"true"===(r["Abp.Identity.Password.RequireLowercase"]||"").toLowerCase()&&n.push("small"),"true"===(r["Abp.Identity.Password.RequireUppercase"]||"").toLowerCase()&&n.push("capital"),+(r["Abp.Identity.Password.RequiredUniqueChars"]||0)>0&&n.push("special"),Number.isInteger(+r["Abp.Identity.Password.RequiredLength"])&&(t=+r["Abp.Identity.Password.RequiredLength"]),this.form=this.fb.group({username:["",[N,P(255)]],password:["",[N,o.validatePassword(n),L(t),P(32)]],email:["",[N,T]]})},r.prototype.onSubmit=function(){var r=this;if(!this.form.invalid){this.inProgress=!0;var n={userName:this.form.get("username").value,password:this.form.get("password").value,emailAddress:this.form.get("email").value,appName:"Angular"};this.accountService.register(n).pipe(m.switchMap((function(){return d.from(r.oauthService.fetchTokenUsingPasswordFlow(n.userName,n.password))})),m.switchMap((function(){return r.store.dispatch(new e.GetAppConfiguration)})),m.tap((function(){return r.store.dispatch(new l.Navigate(["/"]))})),m.take(1),m.catchError((function(e){return r.toasterService.error(b((function(){return e.error.error_description}))||b((function(){return e.error.error.message}),"AbpAccount::DefaultErrorMessage"),"Error",{life:7e3}),d.throwError(e)})),m.finalize((function(){return r.inProgress=!1}))).subscribe()}},r.decorators=[{type:t.Component,args:[{selector:"abp-register",template:'\r\n \r\n

{{ \'AbpAccount::Register\' | abpLocalization }}

\r\n \r\n {{ \'AbpAccount::AlreadyRegistered\' | abpLocalization }}\r\n {{ \'AbpAccount::Login\' | abpLocalization }}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ \'AbpAccount::Register\' | abpLocalization }}\r\n \r\n \r\n
\r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:C},{type:u.OAuthService},{type:p.Store},{type:n.ToasterService}]},r}();var x=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"",component:e.DynamicLayoutComponent,children:[{path:"login",component:A},{path:"register",component:I},{path:"manage-profile",component:S}]}],z=function(){function r(){}return r.decorators=[{type:t.NgModule,args:[{imports:[s.RouterModule.forChild(x)],exports:[s.RouterModule]}]}],r}(),O=c.Validators.minLength,R=c.Validators.required,q=c.Validators.maxLength,M=["newPassword","repeatNewPassword"],k=function(){function r(r,e,n){this.fb=r,this.store=e,this.toasterService=n,this.mapErrorsFn=function(r,e,n){return M.indexOf(n.name)<0?r:r.concat(e.filter((function(r){return"passwordMismatch"===r.key})))}}return r.prototype.ngOnInit=function(){var r=this.store.selectSnapshot(e.ConfigState.getSettings("Identity.Password")),n=[],t=1;"true"===(r["Abp.Identity.Password.RequireDigit"]||"").toLowerCase()&&n.push("number"),"true"===(r["Abp.Identity.Password.RequireLowercase"]||"").toLowerCase()&&n.push("small"),"true"===(r["Abp.Identity.Password.RequireUppercase"]||"").toLowerCase()&&n.push("capital"),+(r["Abp.Identity.Password.RequiredUniqueChars"]||0)>0&&n.push("special"),Number.isInteger(+r["Abp.Identity.Password.RequiredLength"])&&(t=+r["Abp.Identity.Password.RequiredLength"]),this.form=this.fb.group({password:["",R],newPassword:["",{validators:[R,o.validatePassword(n),O(t),q(32)]}],repeatNewPassword:["",{validators:[R,o.validatePassword(n),O(t),q(32)]}]},{validators:[o.comparePasswords(M)]})},r.prototype.onSubmit=function(){var r=this;this.form.invalid||(this.inProgress=!0,this.store.dispatch(new e.ChangePassword({currentPassword:this.form.get("password").value,newPassword:this.form.get("newPassword").value})).pipe(m.finalize((function(){return r.inProgress=!1}))).subscribe({next:function(){r.form.reset(),r.toasterService.success("AbpAccount::PasswordChangedMessage","Success",{life:5e3})},error:function(e){r.toasterService.error(b((function(){return e.error.error.message}),"AbpAccount::DefaultErrorMessage"),"Error",{life:7e3})}}))},r.decorators=[{type:t.Component,args:[{selector:"abp-change-password-form",template:'
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{ \'AbpIdentity::Save\' | abpLocalization }}\r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:p.Store},{type:n.ToasterService}]},r}();var U=c.Validators.maxLength,j=c.Validators.required,D=c.Validators.email,E=function(){function r(r,e,n){this.fb=r,this.store=e,this.toasterService=n}return r.prototype.ngOnInit=function(){this.buildForm()},r.prototype.buildForm=function(){var r=this;this.store.dispatch(new e.GetProfile).pipe(m.withLatestFrom(this.profile$),m.take(1)).subscribe((function(e){var n=v(e,2)[1];r.form=r.fb.group({userName:[n.userName,[j,U(256)]],email:[n.email,[j,D,U(256)]],name:[n.name||"",[U(64)]],surname:[n.surname||"",[U(64)]],phoneNumber:[n.phoneNumber||"",[U(16)]]})}))},r.prototype.submit=function(){var r=this;this.form.invalid||(this.inProgress=!0,this.store.dispatch(new e.UpdateProfile(this.form.value)).pipe(m.finalize((function(){return r.inProgress=!1}))).subscribe((function(){r.toasterService.success("AbpAccount::PersonalSettingsSaved","Success",{life:5e3})})))},r.decorators=[{type:t.Component,args:[{selector:"abp-personal-settings-form",template:'
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ \'AbpIdentity::Save\' | abpLocalization }}\r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:p.Store},{type:n.ToasterService}]},function(r,e,n,t){var a,o=arguments.length,i=o<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,n,t);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,n,i):a(e,n))||i);o>3&&i&&Object.defineProperty(e,n,i)}([p.Select(e.ProfileState.getProfile),h("design:type",d.Observable)],r.prototype,"profile$",void 0),r}();var V=function(){function r(r,e,n){this.store=r,this.toasterService=e,this.accountService=n,this.tenant={}}return r.prototype.ngOnInit=function(){this.tenant=this.store.selectSnapshot(e.SessionState.getTenant)||{},this.tenantName=this.tenant.name||""},r.prototype.onSwitch=function(){this.isModalVisible=!0},r.prototype.save=function(){var r=this;this.tenant.name&&!this.inProgress?(this.inProgress=!0,this.accountService.findTenant(this.tenant.name).pipe(m.finalize((function(){return r.inProgress=!1})),m.take(1),m.catchError((function(e){return r.toasterService.error(b((function(){return e.error.error_description}),"AbpUi::DefaultErrorMessage"),"AbpUi::Error"),d.throwError(e)}))).subscribe((function(n){var t=n.success,a=n.tenantId;t?(r.tenant={id:a,name:r.tenant.name},r.tenantName=r.tenant.name,r.isModalVisible=!1):(r.toasterService.error("AbpUiMultiTenancy::GivenTenantIsNotAvailable","AbpUi::Error",{messageLocalizationParams:[r.tenant.name]}),r.tenant={}),r.store.dispatch(new e.SetTenant(t?r.tenant:null))}))):(this.store.dispatch(new e.SetTenant(null)),this.tenantName=null,this.isModalVisible=!1)},r.decorators=[{type:t.Component,args:[{selector:"abp-tenant-box",template:'
\r\n
\r\n
\r\n
\r\n {{\r\n \'AbpUiMultiTenancy::Tenant\' | abpLocalization\r\n }}
\r\n
\r\n \r\n {{ tenantName || (\'AbpUiMultiTenancy::NotSelected\' | abpLocalization) }}\r\n \r\n
\r\n
\r\n
\r\n {{ \'AbpUiMultiTenancy::Switch\' | abpLocalization }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n
Switch Tenant
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n

{{ \'AbpUiMultiTenancy::SwitchTenantHint\' | abpLocalization }}

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {{ \'AbpTenantManagement::Save\' | abpLocalization }}\r\n \r\n \r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:p.Store},{type:n.ToasterService},{type:C}]},r}();function F(r){return g({redirectUrl:"/"},r)}var _=new t.InjectionToken("ACCOUNT_OPTIONS"),G=function(){function r(){}return r.decorators=[{type:t.Component,args:[{selector:"abp-auth-wrapper",template:'
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n'}]}],r.propDecorators={mainContentRef:[{type:t.Input}],cancelContentRef:[{type:t.Input}]},r}();var B=function(){function r(){}return r.decorators=[{type:t.NgModule,args:[{declarations:[G,A,I,V,k,S,E],imports:[e.CoreModule,z,n.ThemeSharedModule,i.TableModule,a.NgbDropdownModule,o.NgxValidateCoreModule],exports:[]}]}],r}();r.ACCOUNT_OPTIONS=_,r.ACCOUNT_ROUTES={routes:[{name:"Account",path:"account",invisible:!0,layout:"application",children:[{path:"login",name:"Login",order:1},{path:"register",name:"Register",order:2}]}]},r.AccountModule=B,r.AccountProviders=function(r){return void 0===r&&(r={}),[{provide:_,useValue:r},{provide:"ACCOUNT_OPTIONS",useFactory:F,deps:[_]}]},r.ChangePasswordComponent=k,r.LoginComponent=A,r.ManageProfileComponent=S,r.PersonalSettingsComponent=E,r.RegisterComponent=I,r.optionsFactory=F,r.ɵa=G,r.ɵb=A,r.ɵd=I,r.ɵe=C,r.ɵf=V,r.ɵg=k,r.ɵh=S,r.ɵi=E,r.ɵj=z,r.ɵk=F,r.ɵl=_,Object.defineProperty(r,"__esModule",{value:!0})})); +!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@abp/ng.core"),require("@abp/ng.theme.shared"),require("@angular/core"),require("@ng-bootstrap/ng-bootstrap"),require("@ngx-validate/core"),require("primeng/table"),require("@angular/router"),require("@angular/forms"),require("@ngxs/router-plugin"),require("@ngxs/store"),require("angular-oauth2-oidc"),require("rxjs"),require("rxjs/operators"),require("snq"),require("@angular/common/http"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@abp/ng.account",["exports","@abp/ng.core","@abp/ng.theme.shared","@angular/core","@ng-bootstrap/ng-bootstrap","@ngx-validate/core","primeng/table","@angular/router","@angular/forms","@ngxs/router-plugin","@ngxs/store","angular-oauth2-oidc","rxjs","rxjs/operators","snq","@angular/common/http","@angular/animations"],e):e(((r=r||self).abp=r.abp||{},r.abp.ng=r.abp.ng||{},r.abp.ng.account={}),r.ng_core,r.ng_theme_shared,r.ng.core,r.ngBootstrap,r.core$1,r.table,r.ng.router,r.ng.forms,r.routerPlugin,r.store,r.angularOauth2Oidc,r.rxjs,r.rxjs.operators,r.snq,r.ng.common.http,r.ng.animations)}(this,(function(r,e,n,t,a,o,i,s,c,l,p,u,d,m,b,f,g){"use strict";b=b&&b.hasOwnProperty("default")?b.default:b;var h=function(){return(h=Object.assign||function(r){for(var e,n=1,t=arguments.length;n0)&&!(t=o.next()).done;)i.push(t.value)}catch(r){a={error:r}}finally{try{t&&!t.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}var w=c.Validators.maxLength,A=(c.Validators.minLength,c.Validators.required),S=function(){function r(r,n,t,a,o){this.fb=r,this.oauthService=n,this.store=t,this.toasterService=a,this.options=o,this.oauthService.configure(this.store.selectSnapshot(e.ConfigState.getOne("environment")).oAuthConfig),this.oauthService.loadDiscoveryDocument(),this.form=this.fb.group({username:["",[A,w(255)]],password:["",[A,w(32)]],remember:[!1]})}return r.prototype.onSubmit=function(){var r=this;if(!this.form.invalid){this.inProgress=!0;var n=this.store.selectSnapshot(e.SessionState.getTenant);d.from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get("username").value,this.form.get("password").value,new f.HttpHeaders(h({},n&&n.id&&{__tenant:n.id})))).pipe(m.switchMap((function(){return r.store.dispatch(new e.GetAppConfiguration)})),m.tap((function(){var e=b((function(){return window.history.state})).redirectUrl||(r.options||{}).redirectUrl||"/";r.store.dispatch(new l.Navigate([e]))})),m.catchError((function(e){return r.toasterService.error(b((function(){return e.error.error_description}))||b((function(){return e.error.error.message}),"AbpAccount::DefaultErrorMessage"),"Error",{life:7e3}),d.throwError(e)})),m.finalize((function(){return r.inProgress=!1}))).subscribe()}},r.decorators=[{type:t.Component,args:[{selector:"abp-login",template:'\r\n \r\n

{{ \'AbpAccount::Login\' | abpLocalization }}

\r\n \r\n {{ \'AbpAccount::AreYouANewUser\' | abpLocalization }}\r\n {{ \'AbpAccount::Register\' | abpLocalization }}\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {{ \'AbpAccount::Login\' | abpLocalization }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:u.OAuthService},{type:p.Store},{type:n.ToasterService},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:["ACCOUNT_OPTIONS"]}]}]},r}();var C=function(){function r(){this.selectedTab=0}return r.decorators=[{type:t.Component,args:[{selector:"abp-manage-profile",template:'
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

\r\n {{ \'AbpIdentity::ChangePassword\' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

\r\n {{ \'AbpIdentity::PersonalSettings\' | abpLocalization }}\r\n
\r\n

\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n',animations:[g.trigger("fadeIn",[g.transition(":enter",g.useAnimation(n.fadeIn))])]}]}],r}();var P=function(){function r(r){this.rest=r}return r.prototype.findTenant=function(r){var e={method:"GET",url:"/api/abp/multi-tenancy/tenants/by-name/"+r};return this.rest.request(e)},r.prototype.register=function(r){var e={method:"POST",url:"/api/account/register",body:r};return this.rest.request(e,{skipHandleError:!0})},r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:e.RestService}]},r.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new r(t.ɵɵinject(e.RestService))},token:r,providedIn:"root"}),r}();var L=c.Validators.maxLength,N=c.Validators.minLength,T=c.Validators.required,I=c.Validators.email,x=function(){function r(r,n,t,a,o){this.fb=r,this.accountService=n,this.oauthService=t,this.store=a,this.toasterService=o,this.oauthService.configure(this.store.selectSnapshot(e.ConfigState.getOne("environment")).oAuthConfig),this.oauthService.loadDiscoveryDocument()}return r.prototype.ngOnInit=function(){var r=this.store.selectSnapshot(e.ConfigState.getSettings("Identity.Password")),n=[],t=1;"true"===(r["Abp.Identity.Password.RequireDigit"]||"").toLowerCase()&&n.push("number"),"true"===(r["Abp.Identity.Password.RequireLowercase"]||"").toLowerCase()&&n.push("small"),"true"===(r["Abp.Identity.Password.RequireUppercase"]||"").toLowerCase()&&n.push("capital"),+(r["Abp.Identity.Password.RequiredUniqueChars"]||0)>0&&n.push("special"),Number.isInteger(+r["Abp.Identity.Password.RequiredLength"])&&(t=+r["Abp.Identity.Password.RequiredLength"]),this.form=this.fb.group({username:["",[T,L(255)]],password:["",[T,o.validatePassword(n),N(t),L(32)]],email:["",[T,I]]})},r.prototype.onSubmit=function(){var r=this;if(!this.form.invalid){this.inProgress=!0;var n={userName:this.form.get("username").value,password:this.form.get("password").value,emailAddress:this.form.get("email").value,appName:"Angular"};this.accountService.register(n).pipe(m.switchMap((function(){return d.from(r.oauthService.fetchTokenUsingPasswordFlow(n.userName,n.password))})),m.switchMap((function(){return r.store.dispatch(new e.GetAppConfiguration)})),m.tap((function(){return r.store.dispatch(new l.Navigate(["/"]))})),m.take(1),m.catchError((function(e){return r.toasterService.error(b((function(){return e.error.error_description}))||b((function(){return e.error.error.message}),"AbpAccount::DefaultErrorMessage"),"Error",{life:7e3}),d.throwError(e)})),m.finalize((function(){return r.inProgress=!1}))).subscribe()}},r.decorators=[{type:t.Component,args:[{selector:"abp-register",template:'\r\n \r\n

{{ \'AbpAccount::Register\' | abpLocalization }}

\r\n \r\n {{ \'AbpAccount::AlreadyRegistered\' | abpLocalization }}\r\n {{ \'AbpAccount::Login\' | abpLocalization }}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ \'AbpAccount::Register\' | abpLocalization }}\r\n \r\n \r\n
\r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:P},{type:u.OAuthService},{type:p.Store},{type:n.ToasterService}]},r}();var z=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"",component:e.DynamicLayoutComponent,children:[{path:"login",component:S},{path:"register",component:x},{path:"manage-profile",component:C}]}],O=function(){function r(){}return r.decorators=[{type:t.NgModule,args:[{imports:[s.RouterModule.forChild(z)],exports:[s.RouterModule]}]}],r}(),R=c.Validators.minLength,q=c.Validators.required,M=c.Validators.maxLength,k=["newPassword","repeatNewPassword"],U=function(){function r(r,e,n){this.fb=r,this.store=e,this.toasterService=n,this.mapErrorsFn=function(r,e,n){return k.indexOf(n.name)<0?r:r.concat(e.filter((function(r){return"passwordMismatch"===r.key})))}}return r.prototype.ngOnInit=function(){var r=this.store.selectSnapshot(e.ConfigState.getSettings("Identity.Password")),n=[],t=1;"true"===(r["Abp.Identity.Password.RequireDigit"]||"").toLowerCase()&&n.push("number"),"true"===(r["Abp.Identity.Password.RequireLowercase"]||"").toLowerCase()&&n.push("small"),"true"===(r["Abp.Identity.Password.RequireUppercase"]||"").toLowerCase()&&n.push("capital"),+(r["Abp.Identity.Password.RequiredUniqueChars"]||0)>0&&n.push("special"),Number.isInteger(+r["Abp.Identity.Password.RequiredLength"])&&(t=+r["Abp.Identity.Password.RequiredLength"]),this.form=this.fb.group({password:["",q],newPassword:["",{validators:[q,o.validatePassword(n),R(t),M(32)]}],repeatNewPassword:["",{validators:[q,o.validatePassword(n),R(t),M(32)]}]},{validators:[o.comparePasswords(k)]})},r.prototype.onSubmit=function(){var r=this;this.form.invalid||(this.inProgress=!0,this.store.dispatch(new e.ChangePassword({currentPassword:this.form.get("password").value,newPassword:this.form.get("newPassword").value})).pipe(m.finalize((function(){return r.inProgress=!1}))).subscribe({next:function(){r.form.reset(),r.toasterService.success("AbpAccount::PasswordChangedMessage","Success",{life:5e3})},error:function(e){r.toasterService.error(b((function(){return e.error.error.message}),"AbpAccount::DefaultErrorMessage"),"Error",{life:7e3})}}))},r.decorators=[{type:t.Component,args:[{selector:"abp-change-password-form",template:'
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{ \'AbpIdentity::Save\' | abpLocalization }}\r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:p.Store},{type:n.ToasterService}]},r}();var j=c.Validators.maxLength,D=c.Validators.required,E=c.Validators.email,V=function(){function r(r,e,n){this.fb=r,this.store=e,this.toasterService=n}return r.prototype.ngOnInit=function(){this.buildForm()},r.prototype.buildForm=function(){var r=this;this.store.dispatch(new e.GetProfile).pipe(m.withLatestFrom(this.profile$),m.take(1)).subscribe((function(e){var n=y(e,2)[1];r.form=r.fb.group({userName:[n.userName,[D,j(256)]],email:[n.email,[D,E,j(256)]],name:[n.name||"",[j(64)]],surname:[n.surname||"",[j(64)]],phoneNumber:[n.phoneNumber||"",[j(16)]]})}))},r.prototype.submit=function(){var r=this;this.form.invalid||(this.inProgress=!0,this.store.dispatch(new e.UpdateProfile(this.form.value)).pipe(m.finalize((function(){return r.inProgress=!1}))).subscribe((function(){r.toasterService.success("AbpAccount::PersonalSettingsSaved","Success",{life:5e3})})))},r.decorators=[{type:t.Component,args:[{selector:"abp-personal-settings-form",template:'
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ \'AbpIdentity::Save\' | abpLocalization }}\r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:c.FormBuilder},{type:p.Store},{type:n.ToasterService}]},function(r,e,n,t){var a,o=arguments.length,i=o<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,n,t);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,n,i):a(e,n))||i);o>3&&i&&Object.defineProperty(e,n,i)}([p.Select(e.ProfileState.getProfile),v("design:type",d.Observable)],r.prototype,"profile$",void 0),r}();var F=function(){function r(r,e,n){this.store=r,this.toasterService=e,this.accountService=n,this.tenant={}}return r.prototype.ngOnInit=function(){this.tenant=this.store.selectSnapshot(e.SessionState.getTenant)||{},this.tenantName=this.tenant.name||""},r.prototype.onSwitch=function(){this.isModalVisible=!0},r.prototype.save=function(){var r=this;this.tenant.name&&!this.inProgress?(this.inProgress=!0,this.accountService.findTenant(this.tenant.name).pipe(m.finalize((function(){return r.inProgress=!1})),m.take(1),m.catchError((function(e){return r.toasterService.error(b((function(){return e.error.error_description}),"AbpUi::DefaultErrorMessage"),"AbpUi::Error"),d.throwError(e)}))).subscribe((function(n){var t=n.success,a=n.tenantId;t?(r.tenant={id:a,name:r.tenant.name},r.tenantName=r.tenant.name,r.isModalVisible=!1):(r.toasterService.error("AbpUiMultiTenancy::GivenTenantIsNotAvailable","AbpUi::Error",{messageLocalizationParams:[r.tenant.name]}),r.tenant={}),r.store.dispatch(new e.SetTenant(t?r.tenant:null))}))):(this.store.dispatch(new e.SetTenant(null)),this.tenantName=null,this.isModalVisible=!1)},r.decorators=[{type:t.Component,args:[{selector:"abp-tenant-box",template:'
\r\n
\r\n
\r\n
\r\n {{\r\n \'AbpUiMultiTenancy::Tenant\' | abpLocalization\r\n }}
\r\n
\r\n \r\n {{ tenantName || (\'AbpUiMultiTenancy::NotSelected\' | abpLocalization) }}\r\n \r\n
\r\n
\r\n
\r\n {{ \'AbpUiMultiTenancy::Switch\' | abpLocalization }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n
Switch Tenant
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n

{{ \'AbpUiMultiTenancy::SwitchTenantHint\' | abpLocalization }}

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {{ \'AbpTenantManagement::Save\' | abpLocalization }}\r\n \r\n \r\n
\r\n'}]}],r.ctorParameters=function(){return[{type:p.Store},{type:n.ToasterService},{type:P}]},r}();function _(r){return h({redirectUrl:"/"},r)}var G=new t.InjectionToken("ACCOUNT_OPTIONS"),B=function(){function r(){}return r.decorators=[{type:t.Component,args:[{selector:"abp-auth-wrapper",template:'
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n'}]}],r.propDecorators={mainContentRef:[{type:t.Input}],cancelContentRef:[{type:t.Input}]},r}();var H=function(){function r(){}return r.decorators=[{type:t.NgModule,args:[{declarations:[B,S,x,F,U,C,V],imports:[e.CoreModule,O,n.ThemeSharedModule,i.TableModule,a.NgbDropdownModule,o.NgxValidateCoreModule],exports:[]}]}],r}();r.ACCOUNT_OPTIONS=G,r.ACCOUNT_ROUTES={routes:[{name:"Account",path:"account",invisible:!0,layout:"application",children:[{path:"login",name:"Login",order:1},{path:"register",name:"Register",order:2}]}]},r.AccountModule=H,r.AccountProviders=function(r){return void 0===r&&(r={}),[{provide:G,useValue:r},{provide:"ACCOUNT_OPTIONS",useFactory:_,deps:[G]}]},r.ChangePasswordComponent=U,r.LoginComponent=S,r.ManageProfileComponent=C,r.PersonalSettingsComponent=V,r.RegisterComponent=x,r.optionsFactory=_,r.ɵa=B,r.ɵb=S,r.ɵd=x,r.ɵe=P,r.ɵf=F,r.ɵg=U,r.ɵh=C,r.ɵi=V,r.ɵj=O,r.ɵk=_,r.ɵl=G,Object.defineProperty(r,"__esModule",{value:!0})})); //# sourceMappingURL=abp-ng.account.umd.min.js.map \ No newline at end of file diff --git a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js.map b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js.map index 3e3c40c163..0d4406cda2 100644 --- a/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js.map +++ b/npm/ng-packs/dist/account/bundles/abp-ng.account.umd.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__metadata","metadataKey","metadataValue","Reflect","metadata","__read","o","m","Symbol","iterator","r","e","ar","next","done","push","value","error","maxLength","forms","Validators","required","minLength","LoginComponent","fb","oauthService","store","toasterService","options","configure","selectSnapshot","ConfigState","getOne","oAuthConfig","loadDiscoveryDocument","form","group","username","password","remember","onSubmit","_this","invalid","inProgress","from","fetchTokenUsingPasswordFlow","get","pipe","switchMap","dispatch","GetAppConfiguration","tap","redirectUrl","snq","window","history","state","Navigate","catchError","err","error_description","message","life","throwError","finalize","subscribe","Component","args","selector","template","FormBuilder","OAuthService","Store","ToasterService","Optional","type","Inject","ManageProfileComponent","selectedTab","animations","trigger","transition","useAnimation","fadeIn","AccountService","rest","findTenant","tenantName","request","method","url","register","body","skipHandleError","Injectable","providedIn","RestService","email","RegisterComponent","accountService","ngOnInit","passwordRules","getSettings","passwordRulesArr","requiredLength","toLowerCase","Number","isInteger","validatePassword","newUser","userName","emailAddress","appName","take","routes","path","pathMatch","redirectTo","component","DynamicLayoutComponent","children","AccountRoutingModule","NgModule","imports","RouterModule","forChild","exports","PASSWORD_FIELDS","ChangePasswordComponent","mapErrorsFn","errors","groupErrors","control","indexOf","name","concat","filter","_a","key","newPassword","validators","repeatNewPassword","comparePasswords","ChangePassword","currentPassword","reset","success","PersonalSettingsComponent","buildForm","GetProfile","withLatestFrom","profile$","profile","surname","phoneNumber","submit","UpdateProfile","decorators","target","desc","d","c","getOwnPropertyDescriptor","decorate","defineProperty","tslib_1.__decorate","Select","ProfileState","getProfile","Observable","TenantBoxComponent","tenant","SessionState","getTenant","onSwitch","isModalVisible","save","tenantId","id","messageLocalizationParams","SetTenant","optionsFactory","ACCOUNT_OPTIONS","InjectionToken","AuthWrapperComponent","Input","AccountModule","declarations","CoreModule","ThemeSharedModule","TableModule","NgbDropdownModule","NgxValidateCoreModule","invisible","layout","order","provide","useValue","useFactory","deps"],"mappings":"+pCA6BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,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hF,KAAM,WAAYmB,KAAM,WAAY6D,MAAO,4CDuB1G,SAAiCvK,GAC/B,YAD+B,IAAAA,IAAAA,EAAA,IACxB,CACL,CAAEwK,QAASd,EAAiBe,SAAUzK,GACtC,CACEwK,QAAS,kBACTE,WAAYjB,EACZkB,KAAM,CAACjB","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import { GetAppConfiguration, ConfigState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n"]} \ No newline at end of file +{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__metadata","metadataKey","metadataValue","Reflect","metadata","__read","o","m","Symbol","iterator","r","e","ar","next","done","push","value","error","maxLength","forms","Validators","required","minLength","LoginComponent","fb","oauthService","store","toasterService","options","configure","selectSnapshot","ConfigState","getOne","oAuthConfig","loadDiscoveryDocument","form","group","username","password","remember","onSubmit","_this","invalid","inProgress","tenant","SessionState","getTenant","from","fetchTokenUsingPasswordFlow","get","HttpHeaders","id","__tenant","pipe","switchMap","dispatch","GetAppConfiguration","tap","redirectUrl","snq","window","history","state","Navigate","catchError","err","error_description","message","life","throwError","finalize","subscribe","Component","args","selector","template","FormBuilder","OAuthService","Store","ToasterService","Optional","type","Inject","ManageProfileComponent","selectedTab","animations","trigger","transition","useAnimation","fadeIn","AccountService","rest","findTenant","tenantName","request","method","url","register","body","skipHandleError","Injectable","providedIn","RestService","email","RegisterComponent","accountService","ngOnInit","passwordRules","getSettings","passwordRulesArr","requiredLength","toLowerCase","Number","isInteger","validatePassword","newUser","userName","emailAddress","appName","take","routes","path","pathMatch","redirectTo","component","DynamicLayoutComponent","children","AccountRoutingModule","NgModule","imports","RouterModule","forChild","exports","PASSWORD_FIELDS","ChangePasswordComponent","mapErrorsFn","errors","groupErrors","control","indexOf","name","concat","filter","_a","key","newPassword","validators","repeatNewPassword","comparePasswords","ChangePassword","currentPassword","reset","success","PersonalSettingsComponent","buildForm","GetProfile","withLatestFrom","profile$","profile","surname","phoneNumber","submit","UpdateProfile","decorators","target","desc","d","c","getOwnPropertyDescriptor","decorate","defineProperty","tslib_1.__decorate","Select","ProfileState","getProfile","Observable","TenantBoxComponent","onSwitch","isModalVisible","save","tenantId","messageLocalizationParams","SetTenant","optionsFactory","ACCOUNT_OPTIONS","InjectionToken","AuthWrapperComponent","Input","AccountModule","declarations","CoreModule","ThemeSharedModule","TableModule","NgbDropdownModule","NgxValidateCoreModule","invisible","layout","order","provide","useValue","useFactory","deps"],"mappings":"yuCA6BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,IAEKU,MAAMC,KAAMP,YA0BzB,SAASQ,EAAWC,EAAaC,GACpC,GAAuB,iBAAZC,SAAoD,mBAArBA,QAAQC,SAAyB,OAAOD,QAAQC,SAASH,EAAaC,GAuD7G,SAASG,EAAOC,EAAGf,GACtB,IAAIgB,EAAsB,mBAAXC,QAAyBF,EAAEE,OAAOC,UACjD,IAAKF,EAAG,OAAOD,EACf,IAAmBI,E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AA,UAAU9B,EAAU/G,EAAKG,OAAS,YAG9D7C,KAAK2B,MAAM6B,SAAS,IAAI+H,EAAAA,UAAU,OAClCvL,KAAK8F,WAAa,KAClB9F,KAAKmL,gBAAiB,wBA3D3B1G,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,iBACVC,SAAA,s8DAROG,EAAAA,aAFAC,EAAAA,sBAMAW,KAgETsF,EAvEA,GCGA,SAAgBO,EAAe3J,GAC7B,OAAA3C,EAAA,CACEyE,YAAa,KACV9B,GAIP,IAAa4J,EAAkB,IAAIC,EAAAA,eAAe,mBCVlDC,EAAA,WAEA,SAAAA,KAUA,2BAVClH,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,mBACVC,SAAA,wfAGCgH,EAAAA,gCAGAA,EAAAA,SAEHD,EAZA,GCAA,IAAAE,EAAA,WAiBA,SAAAA,KAa4B,2BAb3B5D,EAAAA,SAAQvD,KAAA,CAAC,CACRoH,aAAc,CACZH,EACAnK,EACAiF,EACAwE,EACA1C,EACAnD,EACAsE,GAEFxB,QAAS,CAAC6D,EAAAA,WAAY/D,EAAsBgE,EAAAA,kBAAmBC,EAAAA,YAAaC,EAAAA,kBAAmBC,EAAAA,uBAC/F9D,QAAS,OAEiBwD,EA9B5B,wCCM8B,CAC5BpE,OAAM,CACJ,CACEoB,KAAM,UACNnB,KAAM,UACN0E,WAAW,EACXC,OAAM,cACNtE,SAAU,CAAC,CAAEL,KAAM,QAASmB,KAAM,QAASyD,MAAO,GAAK,CAAE5E,KAAM,WAAYmB,KAAM,WAAYyD,MAAO,4CDuB1G,SAAiCzK,GAC/B,YAD+B,IAAAA,IAAAA,EAAA,IACxB,CACL,CAAE0K,QAASd,EAAiBe,SAAU3K,GACtC,CACE0K,QAAS,kBACTE,WAAYjB,EACZkB,KAAM,CAACjB","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import { GetAppConfiguration, ConfigState, SessionState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { HttpHeaders } from '@angular/common/http';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n const tenant = this.store.selectSnapshot(SessionState.getTenant);\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(\r\n this.form.get('username').value,\r\n this.form.get('password').value,\r\n new HttpHeaders({ ...(tenant && tenant.id && { __tenant: tenant.id }) }),\r\n ),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n"]} \ No newline at end of file diff --git a/npm/ng-packs/dist/account/esm2015/lib/components/login/login.component.js b/npm/ng-packs/dist/account/esm2015/lib/components/login/login.component.js index 0d243d2cb7..47bebbd9de 100644 --- a/npm/ng-packs/dist/account/esm2015/lib/components/login/login.component.js +++ b/npm/ng-packs/dist/account/esm2015/lib/components/login/login.component.js @@ -3,7 +3,7 @@ * Generated from: lib/components/login/login.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ -import { GetAppConfiguration, ConfigState } from '@abp/ng.core'; +import { GetAppConfiguration, ConfigState, SessionState } from '@abp/ng.core'; import { Component, Inject, Optional } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { Navigate } from '@ngxs/router-plugin'; @@ -13,6 +13,7 @@ import { from, throwError } from 'rxjs'; import { ToasterService } from '@abp/ng.theme.shared'; import { catchError, finalize, switchMap, tap } from 'rxjs/operators'; import snq from 'snq'; +import { HttpHeaders } from '@angular/common/http'; const { maxLength, minLength, required } = Validators; export class LoginComponent { /** @@ -44,7 +45,9 @@ export class LoginComponent { return; // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage); this.inProgress = true; - from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value)) + /** @type {?} */ + const tenant = this.store.selectSnapshot(SessionState.getTenant); + from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value, new HttpHeaders(Object.assign({}, (tenant && tenant.id && { __tenant: tenant.id }))))) .pipe(switchMap((/** * @return {?} */ @@ -124,4 +127,4 @@ if (false) { */ LoginComponent.prototype.options; } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9u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ICAgICAgIHRoaXMudG9hc3RlclNlcnZpY2UuZXJyb3IoXHJcbiAgICAgICAgICAgIHNucSgoKSA9PiBlcnIuZXJyb3IuZXJyb3JfZGVzY3JpcHRpb24pIHx8XHJcbiAgICAgICAgICAgICAgc25xKCgpID0+IGVyci5lcnJvci5lcnJvci5tZXNzYWdlLCAnQWJwQWNjb3VudDo6RGVmYXVsdEVycm9yTWVzc2FnZScpLFxyXG4gICAgICAgICAgICAnRXJyb3InLFxyXG4gICAgICAgICAgICB7IGxpZmU6IDcwMDAgfSxcclxuICAgICAgICAgICk7XHJcbiAgICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihlcnIpO1xyXG4gICAgICAgIH0pLFxyXG4gICAgICAgIGZpbmFsaXplKCgpID0+ICh0aGlzLmluUHJvZ3Jlc3MgPSBmYWxzZSkpLFxyXG4gICAgICApXHJcbiAgICAgIC5zdWJzY3JpYmUoKTtcclxuICB9XHJcbn1cclxuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy5hY2NvdW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvbG9naW4vbG9naW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLFdBQVcsRUFBRSxZQUFZLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDOUUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzVELE9BQU8sRUFBRSxXQUFXLEVBQWEsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQy9DLE9BQU8sRU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wgfHwgKHRoaXMub3B0aW9ucyB8fCB7fSkucmVkaXJlY3RVcmwgfHwgJy8nO1xyXG4gICAgICAgICAgdGhpcy5zdG9yZS5kaXNwYXRjaChuZXcgTmF2aWdhdGUoW3JlZGlyZWN0VXJsXSkpO1xyXG4gICAgICAgIH0pLFxyXG4gICAgICAgIGNhdGNoRXJyb3IoZXJyID0+IHtcclxuICAgICAgICAgIHRoaXMudG9hc3RlclNlcnZpY2UuZXJyb3IoXHJcbiAgICAgICAgICAgIHNucSgoKSA9PiBlcnIuZXJyb3IuZXJyb3JfZGVzY3JpcHRpb24pIHx8XHJcbiAgICAgICAgICAgICAgc25xKCgpID0+IGVyci5lcnJvci5lcnJvci5tZXNzYWdlLCAnQWJwQWNjb3VudDo6RGVmYXVsdEVycm9yTWVzc2FnZScpLFxyXG4gICAgICAgICAgICAnRXJyb3InLFxyXG4gICAgICAgICAgICB7IGxpZmU6IDcwMDAgfSxcclxuICAgICAgICAgICk7XHJcbiAgICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihlcnIpO1xyXG4gICAgICAgIH0pLFxyXG4gICAgICAgIGZpbmFsaXplKCgpID0+ICh0aGlzLmluUHJvZ3Jlc3MgPSBmYWxzZSkpLFxyXG4gICAgICApXHJcbiAgICAgIC5zdWJzY3JpYmUoKTtcclxuICB9XHJcbn1cclxuIl19 \ No newline at end of file diff --git a/npm/ng-packs/dist/account/esm5/lib/components/login/login.component.js b/npm/ng-packs/dist/account/esm5/lib/components/login/login.component.js index 830c7bed35..32ee5f34ff 100644 --- a/npm/ng-packs/dist/account/esm5/lib/components/login/login.component.js +++ b/npm/ng-packs/dist/account/esm5/lib/components/login/login.component.js @@ -3,7 +3,8 @@ * Generated from: lib/components/login/login.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ -import { GetAppConfiguration, ConfigState } from '@abp/ng.core'; +import * as tslib_1 from "tslib"; +import { GetAppConfiguration, ConfigState, SessionState } from '@abp/ng.core'; import { Component, Inject, Optional } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { Navigate } from '@ngxs/router-plugin'; @@ -13,6 +14,7 @@ import { from, throwError } from 'rxjs'; import { ToasterService } from '@abp/ng.theme.shared'; import { catchError, finalize, switchMap, tap } from 'rxjs/operators'; import snq from 'snq'; +import { HttpHeaders } from '@angular/common/http'; var maxLength = Validators.maxLength, minLength = Validators.minLength, required = Validators.required; var LoginComponent = /** @class */ (function () { function LoginComponent(fb, oauthService, store, toasterService, options) { @@ -41,7 +43,9 @@ var LoginComponent = /** @class */ (function () { return; // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage); this.inProgress = true; - from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value)) + /** @type {?} */ + var tenant = this.store.selectSnapshot(SessionState.getTenant); + from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value, new HttpHeaders(tslib_1.__assign({}, (tenant && tenant.id && { __tenant: tenant.id }))))) .pipe(switchMap((/** * @return {?} */ @@ -123,4 +127,4 @@ if (false) { */ LoginComponent.prototype.options; } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy5hY2NvdW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvbG9naW4vbG9naW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLFdBQVcsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNoRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxFQUFFLFdBQVcsRUFBYSxVQUFVLEVBQUUsTUFBTSxnQkF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gICAgICAgIHRoaXMudG9hc3RlclNlcnZpY2UuZXJyb3IoXHJcbiAgICAgICAgICAgIHNucSgoKSA9PiBlcnIuZXJyb3IuZXJyb3JfZGVzY3JpcHRpb24pIHx8XHJcbiAgICAgICAgICAgICAgc25xKCgpID0+IGVyci5lcnJvci5lcnJvci5tZXNzYWdlLCAnQWJwQWNjb3VudDo6RGVmYXVsdEVycm9yTWVzc2FnZScpLFxyXG4gICAgICAgICAgICAnRXJyb3InLFxyXG4gICAgICAgICAgICB7IGxpZmU6IDcwMDAgfSxcclxuICAgICAgICAgICk7XHJcbiAgICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihlcnIpO1xyXG4gICAgICAgIH0pLFxyXG4gICAgICAgIGZpbmFsaXplKCgpID0+ICh0aGlzLmluUHJvZ3Jlc3MgPSBmYWxzZSkpLFxyXG4gICAgICApXHJcbiAgICAgIC5zdWJzY3JpYmUoKTtcclxuICB9XHJcbn1cclxuIl19 \ No newline at end of file diff --git a/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js b/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js index dd4e6546b5..397eca7823 100644 --- a/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js +++ b/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js @@ -1,4 +1,4 @@ -import { ConfigState, GetAppConfiguration, RestService, DynamicLayoutComponent, ChangePassword, GetProfile, UpdateProfile, ProfileState, SessionState, SetTenant, CoreModule } from '@abp/ng.core'; +import { ConfigState, SessionState, GetAppConfiguration, RestService, DynamicLayoutComponent, ChangePassword, GetProfile, UpdateProfile, ProfileState, SetTenant, CoreModule } from '@abp/ng.core'; import { ToasterService, fadeIn, ThemeSharedModule } from '@abp/ng.theme.shared'; import { Component, Optional, Inject, Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, InjectionToken, Input } from '@angular/core'; import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; @@ -12,6 +12,7 @@ import { OAuthService } from 'angular-oauth2-oidc'; import { from, throwError, Observable } from 'rxjs'; import { switchMap, tap, catchError, finalize, take, withLatestFrom } from 'rxjs/operators'; import snq from 'snq'; +import { HttpHeaders } from '@angular/common/http'; import { trigger, transition, useAnimation } from '@angular/animations'; import { __decorate, __metadata } from 'tslib'; @@ -51,7 +52,9 @@ class LoginComponent { return; // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage); this.inProgress = true; - from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value)) + /** @type {?} */ + const tenant = this.store.selectSnapshot(SessionState.getTenant); + from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value, new HttpHeaders(Object.assign({}, (tenant && tenant.id && { __tenant: tenant.id }))))) .pipe(switchMap((/** * @return {?} */ diff --git a/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js.map b/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js.map index 4b3017a419..0eb99bf1ed 100644 --- a/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js.map +++ b/npm/ng-packs/dist/account/fesm2015/abp-ng.account.js.map @@ -1 +1 @@ -{"version":3,"file":"abp-ng.account.js","sources":["ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts","ng://@abp/ng.account/lib/models/options.ts","ng://@abp/ng.account/lib/models/user.ts","ng://@abp/ng.account/lib/models/tenant.ts"],"sourcesContent":["import { GetAppConfiguration, ConfigState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n","export interface Options {\r\n redirectUrl?: string;\r\n}\r\n","export interface RegisterRequest {\r\n userName: string;\r\n emailAddress: string;\r\n password: string;\r\n appName?: string;\r\n}\r\n\r\nexport interface RegisterResponse {\r\n tenantId: string;\r\n userName: string;\r\n name: string;\r\n surname: string;\r\n email: string;\r\n emailConfirmed: boolean;\r\n phoneNumber: string;\r\n phoneNumberConfirmed: boolean;\r\n twoFactorEnabled: boolean;\r\n lockoutEnabled: boolean;\r\n lockoutEnd: string;\r\n concurrencyStamp: string;\r\n isDeleted: boolean;\r\n deleterId: string;\r\n deletionTime: string;\r\n lastModificationTime: string;\r\n lastModifierId: string;\r\n creationTime: string;\r\n creatorId: string;\r\n id: string;\r\n}\r\n","export interface TenantIdResponse {\r\n success: boolean;\r\n tenantId: string;\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;;IACd,0CAAwB;;IACxB,uCAAoB;;IACpB,gDAA8B;;IAC9B,4CAA0B;;IAC1B,0CAAwB;;IACxB,sCAAmB;;IACnB,4CAAyB;;IACzB,qCAAmB;;IACnB,qCAAkB;;IAClB,wCAAqB;;IACrB,gDAA6B;;IAC7B,0CAAuB;;IACvB,wCAAqB;;IACrB,qCAAkB;;IAClB,8BAAW;;;;;;;;;;;AC3Bb,+BAGC;;;IAFC,mCAAiB;;IACjB,oCAAiB;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"abp-ng.account.js","sources":["ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts","ng://@abp/ng.account/lib/models/options.ts","ng://@abp/ng.account/lib/models/user.ts","ng://@abp/ng.account/lib/models/tenant.ts"],"sourcesContent":["import { GetAppConfiguration, ConfigState, SessionState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { HttpHeaders } from '@angular/common/http';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n const tenant = this.store.selectSnapshot(SessionState.getTenant);\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(\r\n this.form.get('username').value,\r\n this.form.get('password').value,\r\n new HttpHeaders({ ...(tenant && tenant.id && { __tenant: tenant.id }) }),\r\n ),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n","export interface Options {\r\n redirectUrl?: string;\r\n}\r\n","export interface RegisterRequest {\r\n userName: string;\r\n emailAddress: string;\r\n password: string;\r\n appName?: string;\r\n}\r\n\r\nexport interface RegisterResponse {\r\n tenantId: string;\r\n userName: string;\r\n name: string;\r\n surname: string;\r\n email: string;\r\n emailConfirmed: boolean;\r\n phoneNumber: string;\r\n phoneNumberConfirmed: boolean;\r\n twoFactorEnabled: boolean;\r\n lockoutEnabled: boolean;\r\n lockoutEnd: string;\r\n concurrencyStamp: string;\r\n isDeleted: boolean;\r\n deleterId: string;\r\n deletionTime: string;\r\n lastModificationTime: string;\r\n lastModifierId: string;\r\n creationTime: string;\r\n creatorId: string;\r\n id: string;\r\n}\r\n","export interface TenantIdResponse {\r\n success: boolean;\r\n tenantId: string;\r\n}\r\n"],"names":["maxLength","minLength","required","email","tslib_1.__decorate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAaM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,UAAU;AAMrD,MAAa,cAAc;;;;;;;;IAKzB,YACU,EAAe,EACf,YAA0B,EAC1B,KAAY,EACZ,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B;;IACpB,gDAA8B;;IAC9B,4CAA0B;;IAC1B,0CAAwB;;IACxB,sCAAmB;;IACnB,4CAAyB;;IACzB,qCAAmB;;IACnB,qCAAkB;;IAClB,wCAAqB;;IACrB,gDAA6B;;IAC7B,0CAAuB;;IACvB,wCAAqB;;IACrB,qCAAkB;;IAClB,8BAAW;;;;;;;;;;;AC3Bb,+BAGC;;;IAFC,mCAAiB;;IACjB,oCAAiB;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/npm/ng-packs/dist/account/fesm5/abp-ng.account.js b/npm/ng-packs/dist/account/fesm5/abp-ng.account.js index 8a334f3a0e..eb03cadf84 100644 --- a/npm/ng-packs/dist/account/fesm5/abp-ng.account.js +++ b/npm/ng-packs/dist/account/fesm5/abp-ng.account.js @@ -1,10 +1,11 @@ -import { ConfigState, GetAppConfiguration, RestService, DynamicLayoutComponent, ChangePassword, GetProfile, UpdateProfile, ProfileState, SessionState, SetTenant, CoreModule } from '@abp/ng.core'; +import { ConfigState, SessionState, GetAppConfiguration, RestService, DynamicLayoutComponent, ChangePassword, GetProfile, UpdateProfile, ProfileState, SetTenant, CoreModule } from '@abp/ng.core'; import { ToasterService, fadeIn, ThemeSharedModule } from '@abp/ng.theme.shared'; import { Component, Optional, Inject, Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, InjectionToken, Input } from '@angular/core'; import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; import { validatePassword, comparePasswords, NgxValidateCoreModule } from '@ngx-validate/core'; import { TableModule } from 'primeng/table'; import { RouterModule } from '@angular/router'; +import { __assign, __read, __decorate, __metadata } from 'tslib'; import { Validators, FormBuilder } from '@angular/forms'; import { Navigate } from '@ngxs/router-plugin'; import { Store, Select } from '@ngxs/store'; @@ -12,8 +13,8 @@ import { OAuthService } from 'angular-oauth2-oidc'; import { from, throwError, Observable } from 'rxjs'; import { switchMap, tap, catchError, finalize, take, withLatestFrom } from 'rxjs/operators'; import snq from 'snq'; +import { HttpHeaders } from '@angular/common/http'; import { trigger, transition, useAnimation } from '@angular/animations'; -import { __read, __decorate, __metadata, __assign } from 'tslib'; /** * @fileoverview added by tsickle @@ -48,7 +49,9 @@ var LoginComponent = /** @class */ (function () { return; // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage); this.inProgress = true; - from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value)) + /** @type {?} */ + var tenant = this.store.selectSnapshot(SessionState.getTenant); + from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value, new HttpHeaders(__assign({}, (tenant && tenant.id && { __tenant: tenant.id }))))) .pipe(switchMap((/** * @return {?} */ diff --git a/npm/ng-packs/dist/account/fesm5/abp-ng.account.js.map b/npm/ng-packs/dist/account/fesm5/abp-ng.account.js.map index 98d4970997..7eee2f79da 100644 --- a/npm/ng-packs/dist/account/fesm5/abp-ng.account.js.map +++ b/npm/ng-packs/dist/account/fesm5/abp-ng.account.js.map @@ -1 +1 @@ -{"version":3,"file":"abp-ng.account.js","sources":["ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts","ng://@abp/ng.account/lib/models/options.ts","ng://@abp/ng.account/lib/models/user.ts","ng://@abp/ng.account/lib/models/tenant.ts"],"sourcesContent":["import { GetAppConfiguration, ConfigState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n","export interface Options {\r\n redirectUrl?: string;\r\n}\r\n","export interface RegisterRequest {\r\n userName: string;\r\n emailAddress: string;\r\n password: string;\r\n appName?: string;\r\n}\r\n\r\nexport interface RegisterResponse {\r\n tenantId: string;\r\n userName: string;\r\n name: string;\r\n surname: string;\r\n email: string;\r\n emailConfirmed: boolean;\r\n phoneNumber: string;\r\n phoneNumberConfirmed: boolean;\r\n twoFactorEnabled: boolean;\r\n lockoutEnabled: boolean;\r\n lockoutEnd: string;\r\n concurrencyStamp: string;\r\n isDeleted: boolean;\r\n deleterId: string;\r\n deletionTime: string;\r\n lastModificationTime: string;\r\n lastModifierId: string;\r\n creationTime: string;\r\n creatorId: string;\r\n id: string;\r\n}\r\n","export interface TenantIdResponse {\r\n success: boolean;\r\n tenantId: string;\r\n}\r\n"],"names":["maxLength","minLength","required","email","tslib_1.__decorate"],"mappings":";;;;;;;;;;;;;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f,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,IAAI;YACf,MAAM;YACN,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;SACzG;KACF,EAAmB;CACrB;;;;;;;;;;;;;;;;AChBD,sBAEC;;;IADC,8BAAqB;;;;;;;;;;;ACDvB,8BAKC;;;IAJC,mCAAiB;;IACjB,uCAAqB;;IACrB,mCAAiB;;IACjB,kCAAiB;;;;;AAGnB,+BAqBC;;;IApBC,oCAAiB;;IACjB,oCAAiB;;IACjB,gCAAa;;IACb,mCAAgB;;IAChB,iCAAc;;IACd,0CAAwB;;IACxB,uCAAoB;;IACpB,gDAA8B;;IAC9B,4CAA0B;;IAC1B,0CAAwB;;IACxB,sCAAmB;;IACnB,4CAAyB;;IACzB,qCAAmB;;IACnB,qCAAkB;;IAClB,wCAAqB;;IACrB,gDAA6B;;IAC7B,0CAAuB;;IACvB,wCAAqB;;IACrB,qCAAkB;;IAClB,8BAAW;;;;;;;;;;;AC3Bb,+BAGC;;;IAFC,mCAAiB;;IACjB,oCAAiB;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"abp-ng.account.js","sources":["ng://@abp/ng.account/lib/components/login/login.component.ts","ng://@abp/ng.account/lib/components/manage-profile/manage-profile.component.ts","ng://@abp/ng.account/lib/services/account.service.ts","ng://@abp/ng.account/lib/components/register/register.component.ts","ng://@abp/ng.account/lib/account-routing.module.ts","ng://@abp/ng.account/lib/components/change-password/change-password.component.ts","ng://@abp/ng.account/lib/components/personal-settings/personal-settings.component.ts","ng://@abp/ng.account/lib/components/tenant-box/tenant-box.component.ts","ng://@abp/ng.account/lib/tokens/options.token.ts","ng://@abp/ng.account/lib/components/auth-wrapper/auth-wrapper.component.ts","ng://@abp/ng.account/lib/account.module.ts","ng://@abp/ng.account/lib/constants/routes.ts","ng://@abp/ng.account/lib/models/options.ts","ng://@abp/ng.account/lib/models/user.ts","ng://@abp/ng.account/lib/models/tenant.ts"],"sourcesContent":["import { GetAppConfiguration, ConfigState, SessionState } from '@abp/ng.core';\r\nimport { Component, Inject, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { Options } from '../../models/options';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { catchError, finalize, switchMap, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { HttpHeaders } from '@angular/common/http';\r\n\r\nconst { maxLength, minLength, required } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-login',\r\n templateUrl: './login.component.html',\r\n})\r\nexport class LoginComponent {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n @Optional() @Inject('ACCOUNT_OPTIONS') private options: Options,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, maxLength(32)]],\r\n remember: [false],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n // this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);\r\n\r\n this.inProgress = true;\r\n const tenant = this.store.selectSnapshot(SessionState.getTenant);\r\n from(\r\n this.oauthService.fetchTokenUsingPasswordFlow(\r\n this.form.get('username').value,\r\n this.form.get('password').value,\r\n new HttpHeaders({ ...(tenant && tenant.id && { __tenant: tenant.id }) }),\r\n ),\r\n )\r\n .pipe(\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => {\r\n const redirectUrl = snq(() => window.history.state).redirectUrl || (this.options || {}).redirectUrl || '/';\r\n this.store.dispatch(new Navigate([redirectUrl]));\r\n }),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { fadeIn } from '@abp/ng.theme.shared';\r\nimport { transition, trigger, useAnimation } from '@angular/animations';\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-manage-profile',\r\n templateUrl: './manage-profile.component.html',\r\n animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])],\r\n})\r\nexport class ManageProfileComponent {\r\n selectedTab = 0;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RestService, Rest } from '@abp/ng.core';\r\nimport { RegisterResponse, RegisterRequest, TenantIdResponse } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n constructor(private rest: RestService) {}\r\n\r\n findTenant(tenantName: string): Observable {\r\n const request: Rest.Request = {\r\n method: 'GET',\r\n url: `/api/abp/multi-tenancy/tenants/by-name/${tenantName}`,\r\n };\r\n\r\n return this.rest.request(request);\r\n }\r\n\r\n register(body: RegisterRequest): Observable {\r\n const request: Rest.Request = {\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body,\r\n };\r\n\r\n return this.rest.request(request, { skipHandleError: true });\r\n }\r\n}\r\n","import { ConfigState, GetAppConfiguration, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Navigate } from '@ngxs/router-plugin';\r\nimport { Store } from '@ngxs/store';\r\nimport { OAuthService } from 'angular-oauth2-oidc';\r\nimport { from, throwError } from 'rxjs';\r\nimport { catchError, finalize, switchMap, take, tap } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { RegisterRequest } from '../../models';\r\nimport { AccountService } from '../../services/account.service';\r\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\r\nconst { maxLength, minLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-register',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class RegisterComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private accountService: AccountService,\r\n private oauthService: OAuthService,\r\n private store: Store,\r\n private toasterService: ToasterService,\r\n ) {\r\n this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);\r\n this.oauthService.loadDiscoveryDocument();\r\n }\r\n\r\n ngOnInit() {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', [required, maxLength(255)]],\r\n password: ['', [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)]],\r\n email: ['', [required, email]],\r\n });\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n\r\n this.inProgress = true;\r\n\r\n const newUser = {\r\n userName: this.form.get('username').value,\r\n password: this.form.get('password').value,\r\n emailAddress: this.form.get('email').value,\r\n appName: 'Angular',\r\n } as RegisterRequest;\r\n\r\n this.accountService\r\n .register(newUser)\r\n .pipe(\r\n switchMap(() => from(this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password))),\r\n switchMap(() => this.store.dispatch(new GetAppConfiguration())),\r\n tap(() => this.store.dispatch(new Navigate(['/']))),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description) ||\r\n snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'),\r\n 'Error',\r\n { life: 7000 },\r\n );\r\n return throwError(err);\r\n }),\r\n finalize(() => (this.inProgress = false)),\r\n )\r\n .subscribe();\r\n }\r\n}\r\n","import { DynamicLayoutComponent } from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', redirectTo: 'login' },\r\n {\r\n path: '',\r\n component: DynamicLayoutComponent,\r\n children: [\r\n { path: 'login', component: LoginComponent },\r\n { path: 'register', component: RegisterComponent },\r\n {\r\n path: 'manage-profile',\r\n component: ManageProfileComponent,\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AccountRoutingModule {}\r\n","import { ChangePassword, ConfigState, ABP } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { comparePasswords, Validation, PasswordRules, validatePassword } from '@ngx-validate/core';\r\nimport { Store } from '@ngxs/store';\r\nimport snq from 'snq';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nconst { minLength, required, maxLength } = Validators;\r\n\r\nconst PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];\r\n\r\n@Component({\r\n selector: 'abp-change-password-form',\r\n templateUrl: './change-password.component.html',\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {\r\n if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;\r\n\r\n return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));\r\n };\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit(): void {\r\n const passwordRules: ABP.Dictionary = this.store.selectSnapshot(\r\n ConfigState.getSettings('Identity.Password'),\r\n );\r\n const passwordRulesArr = [] as PasswordRules;\r\n let requiredLength = 1;\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('number');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('small');\r\n }\r\n\r\n if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {\r\n passwordRulesArr.push('capital');\r\n }\r\n\r\n if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {\r\n passwordRulesArr.push('special');\r\n }\r\n\r\n if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {\r\n requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];\r\n }\r\n\r\n this.form = this.fb.group(\r\n {\r\n password: ['', required],\r\n newPassword: [\r\n '',\r\n {\r\n validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],\r\n },\r\n ],\r\n repeatNewPassword: [\r\n '',\r\n { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },\r\n ],\r\n },\r\n {\r\n validators: [comparePasswords(PASSWORD_FIELDS)],\r\n },\r\n );\r\n }\r\n\r\n onSubmit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(\r\n new ChangePassword({\r\n currentPassword: this.form.get('password').value,\r\n newPassword: this.form.get('newPassword').value,\r\n }),\r\n )\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe({\r\n next: () => {\r\n this.form.reset();\r\n this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });\r\n },\r\n error: err => {\r\n this.toasterService.error(snq(() => err.error.error.message, 'AbpAccount::DefaultErrorMessage'), 'Error', {\r\n life: 7000,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","import { GetProfile, Profile, ProfileState, UpdateProfile } from '@abp/ng.core';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Select, Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { take, withLatestFrom, finalize } from 'rxjs/operators';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\n\r\nconst { maxLength, required, email } = Validators;\r\n\r\n@Component({\r\n selector: 'abp-personal-settings-form',\r\n templateUrl: './personal-settings.component.html',\r\n})\r\nexport class PersonalSettingsComponent implements OnInit {\r\n @Select(ProfileState.getProfile)\r\n profile$: Observable;\r\n\r\n form: FormGroup;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private fb: FormBuilder, private store: Store, private toasterService: ToasterService) {}\r\n\r\n ngOnInit() {\r\n this.buildForm();\r\n }\r\n\r\n buildForm() {\r\n this.store\r\n .dispatch(new GetProfile())\r\n .pipe(\r\n withLatestFrom(this.profile$),\r\n take(1),\r\n )\r\n .subscribe(([, profile]) => {\r\n this.form = this.fb.group({\r\n userName: [profile.userName, [required, maxLength(256)]],\r\n email: [profile.email, [required, email, maxLength(256)]],\r\n name: [profile.name || '', [maxLength(64)]],\r\n surname: [profile.surname || '', [maxLength(64)]],\r\n phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],\r\n });\r\n });\r\n }\r\n\r\n submit() {\r\n if (this.form.invalid) return;\r\n this.inProgress = true;\r\n this.store\r\n .dispatch(new UpdateProfile(this.form.value))\r\n .pipe(finalize(() => (this.inProgress = false)))\r\n .subscribe(() => {\r\n this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });\r\n });\r\n }\r\n}\r\n","import { ABP, SetTenant, SessionState } from '@abp/ng.core';\r\nimport { ToasterService } from '@abp/ng.theme.shared';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError, take, finalize } from 'rxjs/operators';\r\nimport snq from 'snq';\r\nimport { AccountService } from '../../services/account.service';\r\n\r\n@Component({\r\n selector: 'abp-tenant-box',\r\n templateUrl: './tenant-box.component.html',\r\n})\r\nexport class TenantBoxComponent implements OnInit {\r\n tenant = {} as ABP.BasicItem;\r\n\r\n tenantName: string;\r\n\r\n isModalVisible: boolean;\r\n\r\n inProgress: boolean;\r\n\r\n constructor(private store: Store, private toasterService: ToasterService, private accountService: AccountService) {}\r\n\r\n ngOnInit() {\r\n this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ({} as ABP.BasicItem);\r\n this.tenantName = this.tenant.name || '';\r\n }\r\n\r\n onSwitch() {\r\n this.isModalVisible = true;\r\n }\r\n\r\n save() {\r\n if (this.tenant.name && !this.inProgress) {\r\n this.inProgress = true;\r\n this.accountService\r\n .findTenant(this.tenant.name)\r\n .pipe(\r\n finalize(() => (this.inProgress = false)),\r\n take(1),\r\n catchError(err => {\r\n this.toasterService.error(\r\n snq(() => err.error.error_description, 'AbpUi::DefaultErrorMessage'),\r\n 'AbpUi::Error',\r\n );\r\n return throwError(err);\r\n }),\r\n )\r\n .subscribe(({ success, tenantId }) => {\r\n if (success) {\r\n this.tenant = {\r\n id: tenantId,\r\n name: this.tenant.name,\r\n };\r\n this.tenantName = this.tenant.name;\r\n this.isModalVisible = false;\r\n } else {\r\n this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {\r\n messageLocalizationParams: [this.tenant.name],\r\n });\r\n this.tenant = {} as ABP.BasicItem;\r\n }\r\n this.store.dispatch(new SetTenant(success ? this.tenant : null));\r\n });\r\n } else {\r\n this.store.dispatch(new SetTenant(null));\r\n this.tenantName = null;\r\n this.isModalVisible = false;\r\n }\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Options } from '../models/options';\r\n\r\nexport function optionsFactory(options: Options) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n","import { Component, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'abp-auth-wrapper',\r\n templateUrl: './auth-wrapper.component.html',\r\n})\r\nexport class AuthWrapperComponent {\r\n @Input()\r\n mainContentRef: TemplateRef;\r\n\r\n @Input()\r\n cancelContentRef: TemplateRef;\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { NgModule, Provider } from '@angular/core';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NgxValidateCoreModule } from '@ngx-validate/core';\r\nimport { TableModule } from 'primeng/table';\r\nimport { AccountRoutingModule } from './account-routing.module';\r\nimport { ChangePasswordComponent } from './components/change-password/change-password.component';\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { ManageProfileComponent } from './components/manage-profile/manage-profile.component';\r\nimport { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component';\r\nimport { RegisterComponent } from './components/register/register.component';\r\nimport { TenantBoxComponent } from './components/tenant-box/tenant-box.component';\r\nimport { Options } from './models/options';\r\nimport { ACCOUNT_OPTIONS, optionsFactory } from './tokens/options.token';\r\nimport { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthWrapperComponent,\r\n LoginComponent,\r\n RegisterComponent,\r\n TenantBoxComponent,\r\n ChangePasswordComponent,\r\n ManageProfileComponent,\r\n PersonalSettingsComponent,\r\n ],\r\n imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],\r\n exports: [],\r\n})\r\nexport class AccountModule {}\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport function AccountProviders(options = {} as Options): Provider[] {\r\n return [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: optionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ];\r\n}\r\n","import { ABP, eLayoutType } from '@abp/ng.core';\r\n\r\n/**\r\n *\r\n * @deprecated since version 0.9\r\n */\r\nexport const ACCOUNT_ROUTES = {\r\n routes: [\r\n {\r\n name: 'Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],\r\n },\r\n ] as ABP.FullRoute[],\r\n};\r\n","export interface Options {\r\n redirectUrl?: string;\r\n}\r\n","export interface RegisterRequest {\r\n userName: string;\r\n emailAddress: string;\r\n password: string;\r\n appName?: string;\r\n}\r\n\r\nexport interface RegisterResponse {\r\n tenantId: string;\r\n userName: string;\r\n name: string;\r\n surname: string;\r\n email: string;\r\n emailConfirmed: boolean;\r\n phoneNumber: string;\r\n phoneNumberConfirmed: boolean;\r\n twoFactorEnabled: boolean;\r\n lockoutEnabled: boolean;\r\n lockoutEnd: string;\r\n concurrencyStamp: string;\r\n isDeleted: boolean;\r\n deleterId: string;\r\n deletionTime: string;\r\n lastModificationTime: string;\r\n lastModifierId: string;\r\n creationTime: string;\r\n creatorId: string;\r\n id: string;\r\n}\r\n","export interface TenantIdResponse {\r\n success: boolean;\r\n tenantId: string;\r\n}\r\n"],"names":["maxLength","minLength","required","email","tslib_1.__decorate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAaQ,IAAA,gCAAS,EAAE,gCAAS,EAAE,8BAAQ;AAEtC;IASE,wBACU,EAAe,EACf,YAA0B,EAC1B,KAAY,EACZ,cAA8B,EACS,OAAgB;QAJvD,OAAE,GAAF,EAAE,CAAa;QACf,iBAAY,GAAZ,YAAY,CAAc;QAC1B,UAAK,GAAL,KAAK,CAAO;QACZ,mBAAc,GAAd,cAAc,CAAgB;QACS,YAAO,GAAP,OAAO,CAAS;QAE/D,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QACtG,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC;QAE1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACxB,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1C,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;YACzC,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB,CAAC,CAAC;KACJ;;;;IAED,iCAAQ;;;IAAR;QAAA,iBA+BC;QA9BC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO;Y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ACvB,wCAAqB;;IACrB,qCAAkB;;IAClB,8BAAW;;;;;;;;;;;AC3Bb,+BAGC;;;IAFC,mCAAiB;;IACjB,oCAAiB;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/npm/ng-packs/dist/account/package.json b/npm/ng-packs/dist/account/package.json index 3737e6af54..a83a84e82e 100644 --- a/npm/ng-packs/dist/account/package.json +++ b/npm/ng-packs/dist/account/package.json @@ -2,8 +2,8 @@ "name": "@abp/ng.account", "version": "1.0.3", "dependencies": { - "@abp/ng.account.config": "^1.0.3", "@abp/ng.theme.shared": "^1.0.3", + "@abp/ng.account.config": "^1.0.3", "tslib": "^1.9.0" }, "publishConfig": { diff --git a/npm/ng-packs/dist/core/package.json b/npm/ng-packs/dist/core/package.json index 8ea97f9d8f..6bf491bb26 100644 --- a/npm/ng-packs/dist/core/package.json +++ b/npm/ng-packs/dist/core/package.json @@ -6,18 +6,11 @@ "@ngxs/storage-plugin": "^3.5.1", "@ngxs/store": "^3.5.1", "angular-oauth2-oidc": "^8.0.4", - "just-clone": "3.1.0", "just-compare": "^1.3.0", + "just-clone": "3.1.0", "snq": "^1.0.3", "tslib": "^1.9.0" }, - "peerDependencies": { - "@angular/common": ">=8.0.0 <9.0.0", - "@angular/core": ">=8.0.0 <9.0.0", - "@angular/forms": ">=8.0.0 <9.0.0", - "@angular/router": ">=8.0.0 <9.0.0", - "rxjs": "~6.4.0" - }, "publishConfig": { "access": "public" }, diff --git a/npm/ng-packs/dist/identity/package.json b/npm/ng-packs/dist/identity/package.json index 43da81a352..b11c1d7fc0 100644 --- a/npm/ng-packs/dist/identity/package.json +++ b/npm/ng-packs/dist/identity/package.json @@ -2,9 +2,9 @@ "name": "@abp/ng.identity", "version": "1.0.3", "dependencies": { - "@abp/ng.identity.config": "^1.0.3", - "@abp/ng.permission-management": "^1.0.3", "@abp/ng.theme.shared": "^1.0.3", + "@abp/ng.permission-management": "^1.0.3", + "@abp/ng.identity.config": "^1.0.3", "tslib": "^1.9.0" }, "publishConfig": { diff --git a/npm/ng-packs/dist/setting-management/package.json b/npm/ng-packs/dist/setting-management/package.json index c9ce52edf7..9f5e59bb11 100644 --- a/npm/ng-packs/dist/setting-management/package.json +++ b/npm/ng-packs/dist/setting-management/package.json @@ -2,8 +2,8 @@ "name": "@abp/ng.setting-management", "version": "1.0.3", "dependencies": { - "@abp/ng.setting-management.config": "^1.0.3", "@abp/ng.theme.shared": "^1.0.3", + "@abp/ng.setting-management.config": "^1.0.3", "tslib": "^1.9.0" }, "publishConfig": { diff --git a/npm/ng-packs/dist/tenant-management/package.json b/npm/ng-packs/dist/tenant-management/package.json index d8256011ba..6d9a8528da 100644 --- a/npm/ng-packs/dist/tenant-management/package.json +++ b/npm/ng-packs/dist/tenant-management/package.json @@ -2,9 +2,9 @@ "name": "@abp/ng.tenant-management", "version": "1.0.3", "dependencies": { + "@abp/ng.theme.shared": "^1.0.3", "@abp/ng.feature-management": "^1.0.3", "@abp/ng.tenant-management.config": "^1.0.3", - "@abp/ng.theme.shared": "^1.0.3", "tslib": "^1.9.0" }, "publishConfig": {