@abp/ng.identity 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +3 -3
  2. package/abp-ng.identity.d.ts +5 -5
  3. package/bundles/abp-ng.identity-config.umd.js +49 -49
  4. package/bundles/abp-ng.identity-config.umd.js.map +1 -1
  5. package/bundles/abp-ng.identity-proxy.umd.js +136 -136
  6. package/bundles/abp-ng.identity-proxy.umd.js.map +1 -1
  7. package/bundles/abp-ng.identity.umd.js +937 -937
  8. package/bundles/abp-ng.identity.umd.js.map +1 -1
  9. package/config/abp-ng.identity-config.d.ts +5 -5
  10. package/config/enums/index.d.ts +2 -2
  11. package/config/enums/policy-names.d.ts +5 -5
  12. package/config/enums/route-names.d.ts +5 -5
  13. package/config/identity-config.module.d.ts +8 -8
  14. package/config/providers/index.d.ts +1 -1
  15. package/config/providers/route.provider.d.ts +8 -8
  16. package/config/public-api.d.ts +3 -3
  17. package/esm2015/abp-ng.identity.js +4 -4
  18. package/esm2015/config/abp-ng.identity-config.js +4 -4
  19. package/esm2015/config/enums/index.js +3 -3
  20. package/esm2015/config/enums/policy-names.js +2 -2
  21. package/esm2015/config/enums/route-names.js +2 -2
  22. package/esm2015/config/identity-config.module.js +18 -18
  23. package/esm2015/config/providers/index.js +2 -2
  24. package/esm2015/config/providers/route.provider.js +35 -35
  25. package/esm2015/config/public-api.js +4 -4
  26. package/esm2015/lib/components/index.js +3 -3
  27. package/esm2015/lib/components/roles/roles.component.js +112 -112
  28. package/esm2015/lib/components/users/users.component.js +144 -144
  29. package/esm2015/lib/defaults/default-roles-entity-actions.js +30 -30
  30. package/esm2015/lib/defaults/default-roles-entity-props.js +24 -24
  31. package/esm2015/lib/defaults/default-roles-form-props.js +28 -28
  32. package/esm2015/lib/defaults/default-roles-toolbar-actions.js +14 -14
  33. package/esm2015/lib/defaults/default-users-entity-actions.js +29 -29
  34. package/esm2015/lib/defaults/default-users-entity-props.js +35 -35
  35. package/esm2015/lib/defaults/default-users-form-props.js +64 -64
  36. package/esm2015/lib/defaults/default-users-toolbar-actions.js +14 -14
  37. package/esm2015/lib/enums/components.js +2 -2
  38. package/esm2015/lib/enums/index.js +2 -2
  39. package/esm2015/lib/guards/extensions.guard.js +36 -36
  40. package/esm2015/lib/guards/index.js +2 -2
  41. package/esm2015/lib/identity-routing.module.js +53 -53
  42. package/esm2015/lib/identity.module.js +83 -83
  43. package/esm2015/lib/models/config-options.js +2 -2
  44. package/esm2015/lib/models/index.js +2 -2
  45. package/esm2015/lib/tokens/extensions.token.js +35 -35
  46. package/esm2015/lib/tokens/index.js +2 -2
  47. package/esm2015/proxy/abp-ng.identity-proxy.js +4 -4
  48. package/esm2015/proxy/lib/index.js +3 -3
  49. package/esm2015/proxy/lib/proxy/identity/identity-role.service.js +46 -46
  50. package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js +37 -37
  51. package/esm2015/proxy/lib/proxy/identity/identity-user.service.js +63 -63
  52. package/esm2015/proxy/lib/proxy/identity/index.js +5 -5
  53. package/esm2015/proxy/lib/proxy/identity/models.js +2 -2
  54. package/esm2015/proxy/lib/proxy/users/index.js +2 -2
  55. package/esm2015/proxy/lib/proxy/users/models.js +2 -2
  56. package/esm2015/proxy/public-api.js +2 -2
  57. package/esm2015/public-api.js +7 -7
  58. package/fesm2015/abp-ng.identity-config.js +46 -46
  59. package/fesm2015/abp-ng.identity-config.js.map +1 -1
  60. package/fesm2015/abp-ng.identity-proxy.js +130 -130
  61. package/fesm2015/abp-ng.identity-proxy.js.map +1 -1
  62. package/fesm2015/abp-ng.identity.js +590 -590
  63. package/fesm2015/abp-ng.identity.js.map +1 -1
  64. package/lib/components/index.d.ts +2 -2
  65. package/lib/components/roles/roles.component.d.ts +35 -35
  66. package/lib/components/users/users.component.d.ts +41 -41
  67. package/lib/defaults/default-roles-entity-actions.d.ts +3 -3
  68. package/lib/defaults/default-roles-entity-props.d.ts +3 -3
  69. package/lib/defaults/default-roles-form-props.d.ts +4 -4
  70. package/lib/defaults/default-roles-toolbar-actions.d.ts +3 -3
  71. package/lib/defaults/default-users-entity-actions.d.ts +3 -3
  72. package/lib/defaults/default-users-entity-props.d.ts +3 -3
  73. package/lib/defaults/default-users-form-props.d.ts +4 -4
  74. package/lib/defaults/default-users-toolbar-actions.d.ts +3 -3
  75. package/lib/enums/components.d.ts +4 -4
  76. package/lib/enums/index.d.ts +1 -1
  77. package/lib/guards/extensions.guard.d.ts +11 -11
  78. package/lib/guards/index.d.ts +1 -1
  79. package/lib/identity-routing.module.d.ts +7 -7
  80. package/lib/identity.module.d.ts +19 -19
  81. package/lib/models/config-options.d.ts +30 -30
  82. package/lib/models/index.d.ts +1 -1
  83. package/lib/tokens/extensions.token.d.ts +43 -43
  84. package/lib/tokens/index.d.ts +1 -1
  85. package/package.json +4 -4
  86. package/proxy/abp-ng.identity-proxy.d.ts +5 -5
  87. package/proxy/lib/index.d.ts +2 -2
  88. package/proxy/lib/proxy/identity/identity-role.service.d.ts +17 -17
  89. package/proxy/lib/proxy/identity/identity-user-lookup.service.d.ts +16 -16
  90. package/proxy/lib/proxy/identity/identity-user.service.d.ts +21 -21
  91. package/proxy/lib/proxy/identity/index.d.ts +4 -4
  92. package/proxy/lib/proxy/identity/models.d.ts +64 -64
  93. package/proxy/lib/proxy/users/index.d.ts +1 -1
  94. package/proxy/lib/proxy/users/models.d.ts +11 -11
  95. package/proxy/public-api.d.ts +1 -1
  96. package/public-api.d.ts +6 -6
@@ -34,973 +34,973 @@
34
34
  var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
35
35
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
36
36
 
37
- var RolesComponent = /** @class */ (function () {
38
- function RolesComponent(list, confirmationService, injector, service) {
39
- var _this = this;
40
- this.list = list;
41
- this.confirmationService = confirmationService;
42
- this.injector = injector;
43
- this.service = service;
44
- this.data = { items: [], totalCount: 0 };
45
- this.visiblePermissions = false;
46
- this.modalBusy = false;
47
- this.permissionManagementKey = "PermissionManagement.PermissionManagementComponent" /* PermissionManagement */;
48
- this.onVisiblePermissionChange = function (event) {
49
- _this.visiblePermissions = event;
50
- };
51
- }
52
- RolesComponent.prototype.ngOnInit = function () {
53
- this.hookToQuery();
54
- };
55
- RolesComponent.prototype.buildForm = function () {
56
- var data = new i4.FormPropData(this.injector, this.selected);
57
- this.form = i4.generateFormFromProps(data);
58
- };
59
- RolesComponent.prototype.openModal = function () {
60
- this.buildForm();
61
- this.isModalVisible = true;
62
- };
63
- RolesComponent.prototype.add = function () {
64
- this.selected = {};
65
- this.openModal();
66
- };
67
- RolesComponent.prototype.edit = function (id) {
68
- var _this = this;
69
- this.service.get(id).subscribe(function (res) {
70
- _this.selected = res;
71
- _this.openModal();
72
- });
73
- };
74
- RolesComponent.prototype.save = function () {
75
- var _this = this;
76
- if (!this.form.valid)
77
- return;
78
- this.modalBusy = true;
79
- var id = this.selected.id;
80
- (id
81
- ? this.service.update(id, Object.assign(Object.assign({}, this.selected), this.form.value))
82
- : this.service.create(this.form.value))
83
- .pipe(operators.finalize(function () { return (_this.modalBusy = false); }))
84
- .subscribe(function () {
85
- _this.isModalVisible = false;
86
- _this.list.get();
87
- });
88
- };
89
- RolesComponent.prototype.delete = function (id, name) {
90
- var _this = this;
91
- this.confirmationService
92
- .warn('AbpIdentity::RoleDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
93
- messageLocalizationParams: [name],
94
- })
95
- .subscribe(function (status) {
96
- if (status === i2.Confirmation.Status.confirm) {
97
- _this.service.delete(id).subscribe(function () { return _this.list.get(); });
98
- }
99
- });
100
- };
101
- RolesComponent.prototype.hookToQuery = function () {
102
- var _this = this;
103
- this.list.hookToQuery(function (query) { return _this.service.getList(query); }).subscribe(function (res) { return (_this.data = res); });
104
- };
105
- RolesComponent.prototype.openPermissionsModal = function (providerKey) {
106
- var _this = this;
107
- this.providerKey = providerKey;
108
- setTimeout(function () {
109
- _this.visiblePermissions = true;
110
- }, 0);
111
- };
112
- RolesComponent.prototype.sort = function (data) {
113
- var _a = data.sorts[0], prop = _a.prop, dir = _a.dir;
114
- this.list.sortKey = prop;
115
- this.list.sortOrder = dir;
116
- };
117
- return RolesComponent;
118
- }());
119
- RolesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RolesComponent, deps: [{ token: i1__namespace.ListService }, { token: i2__namespace.ConfirmationService }, { token: i0__namespace.Injector }, { token: i3__namespace.IdentityRoleService }], target: i0__namespace.ɵɵFactoryTarget.Component });
120
- RolesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: RolesComponent, selector: "abp-roles", providers: [
121
- i1.ListService,
122
- {
123
- provide: i4.EXTENSIONS_IDENTIFIER,
124
- useValue: "Identity.RolesComponent" /* Roles */,
125
- },
126
- ], ngImport: i0__namespace, template: "<div id=\"identity-roles-wrapper\" class=\"card\">\r\n <div class=\"card-header\">\r\n <div class=\"row\">\r\n <div class=\"col col-md-6\">\r\n <h5 class=\"card-title\">{{ 'AbpIdentity::Roles' | abpLocalization }}</h5>\r\n </div>\r\n <div class=\"text-end col col-md-6\">\r\n <abp-page-toolbar [record]=\"data.items\"></abp-page-toolbar>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"card-body\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n</div>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n #abpPermissionManagement=\"abpPermissionManagement\"\r\n *abpReplaceableTemplate=\"\r\n {\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n hideBadges: { value: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: permissionManagementKey\r\n };\r\n let init = initTemplate\r\n \"\r\n (abpInit)=\"init(abpPermissionManagement)\"\r\n>\r\n</abp-permission-management>\r\n", components: [{ type: i4__namespace.PageToolbarComponent, selector: "abp-page-toolbar", exportAs: ["abpPageToolbar"] }, { type: i4__namespace.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2__namespace.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i4__namespace.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2__namespace.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i5__namespace.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }], directives: [{ type: i4__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2__namespace.ModalCloseDirective, selector: "[abpClose]" }, { type: i1__namespace.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i1__namespace.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }], pipes: { "abpLocalization": i1__namespace.LocalizationPipe } });
127
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RolesComponent, decorators: [{
128
- type: i0.Component,
129
- args: [{
130
- selector: 'abp-roles',
131
- templateUrl: './roles.component.html',
132
- providers: [
133
- i1.ListService,
134
- {
135
- provide: i4.EXTENSIONS_IDENTIFIER,
136
- useValue: "Identity.RolesComponent" /* Roles */,
137
- },
138
- ],
139
- }]
37
+ var RolesComponent = /** @class */ (function () {
38
+ function RolesComponent(list, confirmationService, injector, service) {
39
+ var _this = this;
40
+ this.list = list;
41
+ this.confirmationService = confirmationService;
42
+ this.injector = injector;
43
+ this.service = service;
44
+ this.data = { items: [], totalCount: 0 };
45
+ this.visiblePermissions = false;
46
+ this.modalBusy = false;
47
+ this.permissionManagementKey = "PermissionManagement.PermissionManagementComponent" /* PermissionManagement */;
48
+ this.onVisiblePermissionChange = function (event) {
49
+ _this.visiblePermissions = event;
50
+ };
51
+ }
52
+ RolesComponent.prototype.ngOnInit = function () {
53
+ this.hookToQuery();
54
+ };
55
+ RolesComponent.prototype.buildForm = function () {
56
+ var data = new i4.FormPropData(this.injector, this.selected);
57
+ this.form = i4.generateFormFromProps(data);
58
+ };
59
+ RolesComponent.prototype.openModal = function () {
60
+ this.buildForm();
61
+ this.isModalVisible = true;
62
+ };
63
+ RolesComponent.prototype.add = function () {
64
+ this.selected = {};
65
+ this.openModal();
66
+ };
67
+ RolesComponent.prototype.edit = function (id) {
68
+ var _this = this;
69
+ this.service.get(id).subscribe(function (res) {
70
+ _this.selected = res;
71
+ _this.openModal();
72
+ });
73
+ };
74
+ RolesComponent.prototype.save = function () {
75
+ var _this = this;
76
+ if (!this.form.valid)
77
+ return;
78
+ this.modalBusy = true;
79
+ var id = this.selected.id;
80
+ (id
81
+ ? this.service.update(id, Object.assign(Object.assign({}, this.selected), this.form.value))
82
+ : this.service.create(this.form.value))
83
+ .pipe(operators.finalize(function () { return (_this.modalBusy = false); }))
84
+ .subscribe(function () {
85
+ _this.isModalVisible = false;
86
+ _this.list.get();
87
+ });
88
+ };
89
+ RolesComponent.prototype.delete = function (id, name) {
90
+ var _this = this;
91
+ this.confirmationService
92
+ .warn('AbpIdentity::RoleDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
93
+ messageLocalizationParams: [name],
94
+ })
95
+ .subscribe(function (status) {
96
+ if (status === i2.Confirmation.Status.confirm) {
97
+ _this.service.delete(id).subscribe(function () { return _this.list.get(); });
98
+ }
99
+ });
100
+ };
101
+ RolesComponent.prototype.hookToQuery = function () {
102
+ var _this = this;
103
+ this.list.hookToQuery(function (query) { return _this.service.getList(query); }).subscribe(function (res) { return (_this.data = res); });
104
+ };
105
+ RolesComponent.prototype.openPermissionsModal = function (providerKey) {
106
+ var _this = this;
107
+ this.providerKey = providerKey;
108
+ setTimeout(function () {
109
+ _this.visiblePermissions = true;
110
+ }, 0);
111
+ };
112
+ RolesComponent.prototype.sort = function (data) {
113
+ var _a = data.sorts[0], prop = _a.prop, dir = _a.dir;
114
+ this.list.sortKey = prop;
115
+ this.list.sortOrder = dir;
116
+ };
117
+ return RolesComponent;
118
+ }());
119
+ RolesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RolesComponent, deps: [{ token: i1__namespace.ListService }, { token: i2__namespace.ConfirmationService }, { token: i0__namespace.Injector }, { token: i3__namespace.IdentityRoleService }], target: i0__namespace.ɵɵFactoryTarget.Component });
120
+ RolesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: RolesComponent, selector: "abp-roles", providers: [
121
+ i1.ListService,
122
+ {
123
+ provide: i4.EXTENSIONS_IDENTIFIER,
124
+ useValue: "Identity.RolesComponent" /* Roles */,
125
+ },
126
+ ], ngImport: i0__namespace, template: "<div id=\"identity-roles-wrapper\" class=\"card\">\n <div class=\"card-header\">\n <div class=\"row\">\n <div class=\"col col-md-6\">\n <h5 class=\"card-title\">{{ 'AbpIdentity::Roles' | abpLocalization }}</h5>\n </div>\n <div class=\"text-end col col-md-6\">\n <abp-page-toolbar [record]=\"data.items\"></abp-page-toolbar>\n </div>\n </div>\n </div>\n\n <div class=\"card-body\">\n <abp-extensible-table\n [data]=\"data.items\"\n [recordsTotal]=\"data.totalCount\"\n [list]=\"list\"\n ></abp-extensible-table>\n </div>\n</div>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n\n<abp-permission-management\n #abpPermissionManagement=\"abpPermissionManagement\"\n *abpReplaceableTemplate=\"\n {\n inputs: {\n providerName: { value: 'R' },\n providerKey: { value: providerKey },\n visible: { value: visiblePermissions, twoWay: true },\n hideBadges: { value: true }\n },\n outputs: { visibleChange: onVisiblePermissionChange },\n componentKey: permissionManagementKey\n };\n let init = initTemplate\n \"\n (abpInit)=\"init(abpPermissionManagement)\"\n>\n</abp-permission-management>\n", components: [{ type: i4__namespace.PageToolbarComponent, selector: "abp-page-toolbar", exportAs: ["abpPageToolbar"] }, { type: i4__namespace.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2__namespace.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i4__namespace.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2__namespace.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i5__namespace.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }], directives: [{ type: i4__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2__namespace.ModalCloseDirective, selector: "[abpClose]" }, { type: i1__namespace.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i1__namespace.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }], pipes: { "abpLocalization": i1__namespace.LocalizationPipe } });
127
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RolesComponent, decorators: [{
128
+ type: i0.Component,
129
+ args: [{
130
+ selector: 'abp-roles',
131
+ templateUrl: './roles.component.html',
132
+ providers: [
133
+ i1.ListService,
134
+ {
135
+ provide: i4.EXTENSIONS_IDENTIFIER,
136
+ useValue: "Identity.RolesComponent" /* Roles */,
137
+ },
138
+ ],
139
+ }]
140
140
  }], ctorParameters: function () { return [{ type: i1__namespace.ListService }, { type: i2__namespace.ConfirmationService }, { type: i0__namespace.Injector }, { type: i3__namespace.IdentityRoleService }]; } });
141
141
 
142
- var UsersComponent = /** @class */ (function () {
143
- function UsersComponent(list, confirmationService, service, fb, injector) {
144
- var _this = this;
145
- this.list = list;
146
- this.confirmationService = confirmationService;
147
- this.service = service;
148
- this.fb = fb;
149
- this.injector = injector;
150
- this.data = { items: [], totalCount: 0 };
151
- this.visiblePermissions = false;
152
- this.modalBusy = false;
153
- this.permissionManagementKey = "PermissionManagement.PermissionManagementComponent" /* PermissionManagement */;
154
- this.trackByFn = function (index, item) { return Object.keys(item)[0] || index; };
155
- this.onVisiblePermissionChange = function (event) {
156
- _this.visiblePermissions = event;
157
- };
158
- }
159
- Object.defineProperty(UsersComponent.prototype, "roleGroups", {
160
- get: function () {
161
- var _a;
162
- return ((_a = this.form.get('roleNames')) === null || _a === void 0 ? void 0 : _a.controls) || [];
163
- },
164
- enumerable: false,
165
- configurable: true
166
- });
167
- UsersComponent.prototype.ngOnInit = function () {
168
- this.hookToQuery();
169
- };
170
- UsersComponent.prototype.buildForm = function () {
171
- var _this = this;
172
- var data = new i4.FormPropData(this.injector, this.selected);
173
- this.form = i4.generateFormFromProps(data);
174
- this.service.getAssignableRoles().subscribe(function (_b) {
175
- var items = _b.items;
176
- _this.roles = items;
177
- _this.form.addControl('roleNames', _this.fb.array(_this.roles.map(function (role) {
178
- var _b;
179
- var _a;
180
- return _this.fb.group((_b = {},
181
- _b[role.name] = [
182
- _this.selected.id
183
- ? !!((_a = _this.selectedUserRoles) === null || _a === void 0 ? void 0 : _a.find(function (userRole) { return userRole.id === role.id; }))
184
- : role.isDefault,
185
- ],
186
- _b));
187
- })));
188
- });
189
- };
190
- UsersComponent.prototype.openModal = function () {
191
- this.buildForm();
192
- this.isModalVisible = true;
193
- };
194
- UsersComponent.prototype.add = function () {
195
- this.selected = {};
196
- this.selectedUserRoles = [];
197
- this.openModal();
198
- };
199
- UsersComponent.prototype.edit = function (id) {
200
- var _this = this;
201
- this.service
202
- .get(id)
203
- .pipe(operators.tap(function (user) { return (_this.selected = user); }), operators.switchMap(function () { return _this.service.getRoles(id); }))
204
- .subscribe(function (userRole) {
205
- _this.selectedUserRoles = userRole.items || [];
206
- _this.openModal();
207
- });
208
- };
209
- UsersComponent.prototype.save = function () {
210
- var _this = this;
211
- if (!this.form.valid || this.modalBusy)
212
- return;
213
- this.modalBusy = true;
214
- var _b = this.form.value.roleNames, roleNames = _b === void 0 ? [] : _b;
215
- var mappedRoleNames = roleNames.filter(function (role) { return !!role[Object.keys(role)[0]]; }).map(function (role) { return Object.keys(role)[0]; }) ||
216
- [];
217
- var id = this.selected.id;
218
- (id
219
- ? this.service.update(id, Object.assign(Object.assign(Object.assign({}, this.selected), this.form.value), { roleNames: mappedRoleNames }))
220
- : this.service.create(Object.assign(Object.assign({}, this.form.value), { roleNames: mappedRoleNames })))
221
- .pipe(operators.finalize(function () { return (_this.modalBusy = false); }))
222
- .subscribe(function () {
223
- _this.isModalVisible = false;
224
- _this.list.get();
225
- });
226
- };
227
- UsersComponent.prototype.delete = function (id, userName) {
228
- var _this = this;
229
- this.confirmationService
230
- .warn('AbpIdentity::UserDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
231
- messageLocalizationParams: [userName],
232
- })
233
- .subscribe(function (status) {
234
- if (status === i2.Confirmation.Status.confirm) {
235
- _this.service.delete(id).subscribe(function () { return _this.list.get(); });
236
- }
237
- });
238
- };
239
- UsersComponent.prototype.sort = function (data) {
240
- var _b = data.sorts[0], prop = _b.prop, dir = _b.dir;
241
- this.list.sortKey = prop;
242
- this.list.sortOrder = dir;
243
- };
244
- UsersComponent.prototype.hookToQuery = function () {
245
- var _this = this;
246
- this.list.hookToQuery(function (query) { return _this.service.getList(query); }).subscribe(function (res) { return (_this.data = res); });
247
- };
248
- UsersComponent.prototype.openPermissionsModal = function (providerKey) {
249
- var _this = this;
250
- this.providerKey = providerKey;
251
- setTimeout(function () {
252
- _this.visiblePermissions = true;
253
- }, 0);
254
- };
255
- return UsersComponent;
256
- }());
257
- UsersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: UsersComponent, deps: [{ token: i1__namespace.ListService }, { token: i2__namespace.ConfirmationService }, { token: i3__namespace.IdentityUserService }, { token: i4__namespace$1.FormBuilder }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
258
- UsersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: UsersComponent, selector: "abp-users", providers: [
259
- i1.ListService,
260
- {
261
- provide: i4.EXTENSIONS_IDENTIFIER,
262
- useValue: "Identity.UsersComponent" /* Users */,
263
- },
264
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0__namespace, template: "<div id=\"identity-roles-wrapper\" class=\"card\">\r\n <div class=\"card-header\">\r\n <div class=\"row\">\r\n <div class=\"col col-md-6\">\r\n <h5 class=\"card-title\">{{ 'AbpIdentity::Users' | abpLocalization }}</h5>\r\n </div>\r\n <div class=\"text-end col col-md-6\">\r\n <abp-page-toolbar [record]=\"data.items\"></abp-page-toolbar>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body\">\r\n <div id=\"data-tables-table-filter\" class=\"data-tables-filter\">\r\n <div class=\"input-group\">\r\n <input\r\n type=\"search\"\r\n class=\"form-control\"\r\n [placeholder]=\"'AbpUi::PagerSearch' | abpLocalization\"\r\n [(ngModel)]=\"list.filter\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n</div>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ng-template #loaderRef\r\n ><div class=\"text-center\"><i class=\"fa fa-pulse fa-spinner\"></i></div\r\n ></ng-template>\r\n\r\n <form *ngIf=\"form; else loaderRef\" [formGroup]=\"form\" (ngSubmit)=\"save()\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </ng-template>\r\n </li>\r\n\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div\r\n *ngFor=\"let roleGroup of roleGroups; let i = index; trackBy: trackByFn\"\r\n class=\"form-check mb-2\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">{{ roles[i].name }}</label>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n\r\n <div class=\"mt-2 fade-in-top\" [ngbNavOutlet]=\"nav\"></div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n #abpPermissionManagement=\"abpPermissionManagement\"\r\n *abpReplaceableTemplate=\"\r\n {\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: permissionManagementKey\r\n };\r\n let init = initTemplate\r\n \"\r\n (abpInit)=\"init(abpPermissionManagement)\"\r\n>\r\n</abp-permission-management>\r\n", components: [{ type: i4__namespace.PageToolbarComponent, selector: "abp-page-toolbar", exportAs: ["abpPageToolbar"] }, { type: i4__namespace.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2__namespace.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i4__namespace.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i6__namespace.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: i2__namespace.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i5__namespace.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }], directives: [{ type: i4__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i6__namespace.NgbNav, selector: "[ngbNav]", inputs: ["animation", "destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i6__namespace.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i6__namespace.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i6__namespace.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i4__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9__namespace.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i2__namespace.ModalCloseDirective, selector: "[abpClose]" }, { type: i1__namespace.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i1__namespace.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }], pipes: { "abpLocalization": i1__namespace.LocalizationPipe } });
265
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: UsersComponent, decorators: [{
266
- type: i0.Component,
267
- args: [{
268
- selector: 'abp-users',
269
- templateUrl: './users.component.html',
270
- providers: [
271
- i1.ListService,
272
- {
273
- provide: i4.EXTENSIONS_IDENTIFIER,
274
- useValue: "Identity.UsersComponent" /* Users */,
275
- },
276
- ],
277
- }]
278
- }], ctorParameters: function () { return [{ type: i1__namespace.ListService }, { type: i2__namespace.ConfirmationService }, { type: i3__namespace.IdentityUserService }, { type: i4__namespace$1.FormBuilder }, { type: i0__namespace.Injector }]; }, propDecorators: { modalContent: [{
279
- type: i0.ViewChild,
280
- args: ['modalContent', { static: false }]
142
+ var UsersComponent = /** @class */ (function () {
143
+ function UsersComponent(list, confirmationService, service, fb, injector) {
144
+ var _this = this;
145
+ this.list = list;
146
+ this.confirmationService = confirmationService;
147
+ this.service = service;
148
+ this.fb = fb;
149
+ this.injector = injector;
150
+ this.data = { items: [], totalCount: 0 };
151
+ this.visiblePermissions = false;
152
+ this.modalBusy = false;
153
+ this.permissionManagementKey = "PermissionManagement.PermissionManagementComponent" /* PermissionManagement */;
154
+ this.trackByFn = function (index, item) { return Object.keys(item)[0] || index; };
155
+ this.onVisiblePermissionChange = function (event) {
156
+ _this.visiblePermissions = event;
157
+ };
158
+ }
159
+ Object.defineProperty(UsersComponent.prototype, "roleGroups", {
160
+ get: function () {
161
+ var _a;
162
+ return ((_a = this.form.get('roleNames')) === null || _a === void 0 ? void 0 : _a.controls) || [];
163
+ },
164
+ enumerable: false,
165
+ configurable: true
166
+ });
167
+ UsersComponent.prototype.ngOnInit = function () {
168
+ this.hookToQuery();
169
+ };
170
+ UsersComponent.prototype.buildForm = function () {
171
+ var _this = this;
172
+ var data = new i4.FormPropData(this.injector, this.selected);
173
+ this.form = i4.generateFormFromProps(data);
174
+ this.service.getAssignableRoles().subscribe(function (_b) {
175
+ var items = _b.items;
176
+ _this.roles = items;
177
+ _this.form.addControl('roleNames', _this.fb.array(_this.roles.map(function (role) {
178
+ var _b;
179
+ var _a;
180
+ return _this.fb.group((_b = {},
181
+ _b[role.name] = [
182
+ _this.selected.id
183
+ ? !!((_a = _this.selectedUserRoles) === null || _a === void 0 ? void 0 : _a.find(function (userRole) { return userRole.id === role.id; }))
184
+ : role.isDefault,
185
+ ],
186
+ _b));
187
+ })));
188
+ });
189
+ };
190
+ UsersComponent.prototype.openModal = function () {
191
+ this.buildForm();
192
+ this.isModalVisible = true;
193
+ };
194
+ UsersComponent.prototype.add = function () {
195
+ this.selected = {};
196
+ this.selectedUserRoles = [];
197
+ this.openModal();
198
+ };
199
+ UsersComponent.prototype.edit = function (id) {
200
+ var _this = this;
201
+ this.service
202
+ .get(id)
203
+ .pipe(operators.tap(function (user) { return (_this.selected = user); }), operators.switchMap(function () { return _this.service.getRoles(id); }))
204
+ .subscribe(function (userRole) {
205
+ _this.selectedUserRoles = userRole.items || [];
206
+ _this.openModal();
207
+ });
208
+ };
209
+ UsersComponent.prototype.save = function () {
210
+ var _this = this;
211
+ if (!this.form.valid || this.modalBusy)
212
+ return;
213
+ this.modalBusy = true;
214
+ var _b = this.form.value.roleNames, roleNames = _b === void 0 ? [] : _b;
215
+ var mappedRoleNames = roleNames.filter(function (role) { return !!role[Object.keys(role)[0]]; }).map(function (role) { return Object.keys(role)[0]; }) ||
216
+ [];
217
+ var id = this.selected.id;
218
+ (id
219
+ ? this.service.update(id, Object.assign(Object.assign(Object.assign({}, this.selected), this.form.value), { roleNames: mappedRoleNames }))
220
+ : this.service.create(Object.assign(Object.assign({}, this.form.value), { roleNames: mappedRoleNames })))
221
+ .pipe(operators.finalize(function () { return (_this.modalBusy = false); }))
222
+ .subscribe(function () {
223
+ _this.isModalVisible = false;
224
+ _this.list.get();
225
+ });
226
+ };
227
+ UsersComponent.prototype.delete = function (id, userName) {
228
+ var _this = this;
229
+ this.confirmationService
230
+ .warn('AbpIdentity::UserDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', {
231
+ messageLocalizationParams: [userName],
232
+ })
233
+ .subscribe(function (status) {
234
+ if (status === i2.Confirmation.Status.confirm) {
235
+ _this.service.delete(id).subscribe(function () { return _this.list.get(); });
236
+ }
237
+ });
238
+ };
239
+ UsersComponent.prototype.sort = function (data) {
240
+ var _b = data.sorts[0], prop = _b.prop, dir = _b.dir;
241
+ this.list.sortKey = prop;
242
+ this.list.sortOrder = dir;
243
+ };
244
+ UsersComponent.prototype.hookToQuery = function () {
245
+ var _this = this;
246
+ this.list.hookToQuery(function (query) { return _this.service.getList(query); }).subscribe(function (res) { return (_this.data = res); });
247
+ };
248
+ UsersComponent.prototype.openPermissionsModal = function (providerKey) {
249
+ var _this = this;
250
+ this.providerKey = providerKey;
251
+ setTimeout(function () {
252
+ _this.visiblePermissions = true;
253
+ }, 0);
254
+ };
255
+ return UsersComponent;
256
+ }());
257
+ UsersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: UsersComponent, deps: [{ token: i1__namespace.ListService }, { token: i2__namespace.ConfirmationService }, { token: i3__namespace.IdentityUserService }, { token: i4__namespace$1.FormBuilder }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
258
+ UsersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: UsersComponent, selector: "abp-users", providers: [
259
+ i1.ListService,
260
+ {
261
+ provide: i4.EXTENSIONS_IDENTIFIER,
262
+ useValue: "Identity.UsersComponent" /* Users */,
263
+ },
264
+ ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0__namespace, template: "<div id=\"identity-roles-wrapper\" class=\"card\">\n <div class=\"card-header\">\n <div class=\"row\">\n <div class=\"col col-md-6\">\n <h5 class=\"card-title\">{{ 'AbpIdentity::Users' | abpLocalization }}</h5>\n </div>\n <div class=\"text-end col col-md-6\">\n <abp-page-toolbar [record]=\"data.items\"></abp-page-toolbar>\n </div>\n </div>\n </div>\n <div class=\"card-body\">\n <div id=\"data-tables-table-filter\" class=\"data-tables-filter\">\n <div class=\"input-group\">\n <input\n type=\"search\"\n class=\"form-control\"\n [placeholder]=\"'AbpUi::PagerSearch' | abpLocalization\"\n [(ngModel)]=\"list.filter\"\n />\n </div>\n </div>\n\n <abp-extensible-table\n [data]=\"data.items\"\n [recordsTotal]=\"data.totalCount\"\n [list]=\"list\"\n ></abp-extensible-table>\n </div>\n</div>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <ng-template #loaderRef\n ><div class=\"text-center\"><i class=\"fa fa-pulse fa-spinner\"></i></div\n ></ng-template>\n\n <form *ngIf=\"form; else loaderRef\" [formGroup]=\"form\" (ngSubmit)=\"save()\">\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\n <li ngbNavItem>\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </ng-template>\n </li>\n\n <li ngbNavItem>\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <div\n *ngFor=\"let roleGroup of roleGroups; let i = index; trackBy: trackByFn\"\n class=\"form-check mb-2\"\n >\n <input\n type=\"checkbox\"\n class=\"form-check-input\"\n [attr.id]=\"'roles-' + i\"\n [formControl]=\"roleGroup.controls[roles[i].name]\"\n />\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">{{ roles[i].name }}</label>\n </div>\n </ng-template>\n </li>\n </ul>\n\n <div class=\"mt-2 fade-in-top\" [ngbNavOutlet]=\"nav\"></div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n\n<abp-permission-management\n #abpPermissionManagement=\"abpPermissionManagement\"\n *abpReplaceableTemplate=\"\n {\n inputs: {\n providerName: { value: 'U' },\n providerKey: { value: providerKey },\n visible: { value: visiblePermissions, twoWay: true }\n },\n outputs: { visibleChange: onVisiblePermissionChange },\n componentKey: permissionManagementKey\n };\n let init = initTemplate\n \"\n (abpInit)=\"init(abpPermissionManagement)\"\n>\n</abp-permission-management>\n", components: [{ type: i4__namespace.PageToolbarComponent, selector: "abp-page-toolbar", exportAs: ["abpPageToolbar"] }, { type: i4__namespace.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2__namespace.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i4__namespace.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i6__namespace.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: i2__namespace.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i5__namespace.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }], directives: [{ type: i4__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i6__namespace.NgbNav, selector: "[ngbNav]", inputs: ["animation", "destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i6__namespace.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i6__namespace.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i6__namespace.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i4__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9__namespace.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i2__namespace.ModalCloseDirective, selector: "[abpClose]" }, { type: i1__namespace.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i1__namespace.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }], pipes: { "abpLocalization": i1__namespace.LocalizationPipe } });
265
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: UsersComponent, decorators: [{
266
+ type: i0.Component,
267
+ args: [{
268
+ selector: 'abp-users',
269
+ templateUrl: './users.component.html',
270
+ providers: [
271
+ i1.ListService,
272
+ {
273
+ provide: i4.EXTENSIONS_IDENTIFIER,
274
+ useValue: "Identity.UsersComponent" /* Users */,
275
+ },
276
+ ],
277
+ }]
278
+ }], ctorParameters: function () { return [{ type: i1__namespace.ListService }, { type: i2__namespace.ConfirmationService }, { type: i3__namespace.IdentityUserService }, { type: i4__namespace$1.FormBuilder }, { type: i0__namespace.Injector }]; }, propDecorators: { modalContent: [{
279
+ type: i0.ViewChild,
280
+ args: ['modalContent', { static: false }]
281
281
  }] } });
282
282
 
283
- var DEFAULT_ROLES_ENTITY_ACTIONS = i4.EntityAction.createMany([
284
- {
285
- text: 'AbpIdentity::Edit',
286
- action: function (data) {
287
- var component = data.getInjected(RolesComponent);
288
- component.edit(data.record.id);
289
- },
290
- permission: 'AbpIdentity.Roles.Update',
291
- },
292
- {
293
- text: 'AbpIdentity::Permissions',
294
- action: function (data) {
295
- var component = data.getInjected(RolesComponent);
296
- component.openPermissionsModal(data.record.name);
297
- },
298
- permission: 'AbpIdentity.Roles.ManagePermissions',
299
- },
300
- {
301
- text: 'AbpIdentity::Delete',
302
- action: function (data) {
303
- var component = data.getInjected(RolesComponent);
304
- component.delete(data.record.id, data.record.name);
305
- },
306
- permission: 'AbpIdentity.Roles.Delete',
307
- visible: function (data) { return !data.record.isStatic; },
308
- },
283
+ var DEFAULT_ROLES_ENTITY_ACTIONS = i4.EntityAction.createMany([
284
+ {
285
+ text: 'AbpIdentity::Edit',
286
+ action: function (data) {
287
+ var component = data.getInjected(RolesComponent);
288
+ component.edit(data.record.id);
289
+ },
290
+ permission: 'AbpIdentity.Roles.Update',
291
+ },
292
+ {
293
+ text: 'AbpIdentity::Permissions',
294
+ action: function (data) {
295
+ var component = data.getInjected(RolesComponent);
296
+ component.openPermissionsModal(data.record.name);
297
+ },
298
+ permission: 'AbpIdentity.Roles.ManagePermissions',
299
+ },
300
+ {
301
+ text: 'AbpIdentity::Delete',
302
+ action: function (data) {
303
+ var component = data.getInjected(RolesComponent);
304
+ component.delete(data.record.id, data.record.name);
305
+ },
306
+ permission: 'AbpIdentity.Roles.Delete',
307
+ visible: function (data) { return !data.record.isStatic; },
308
+ },
309
309
  ]);
310
310
 
311
- var DEFAULT_ROLES_ENTITY_PROPS = i4.EntityProp.createMany([
312
- {
313
- type: "string" /* String */,
314
- name: 'name',
315
- displayName: 'AbpIdentity::RoleName',
316
- sortable: true,
317
- valueResolver: function (data) {
318
- var l10n = data.getInjected(i1.LocalizationService);
319
- var t = l10n.instant.bind(l10n);
320
- var _a = data.record, isDefault = _a.isDefault, isPublic = _a.isPublic, name = _a.name;
321
- return rxjs.of(name +
322
- (isDefault
323
- ? "<span class=\"badge rounded-pill bg-success ms-1\">" + t('AbpIdentity::DisplayName:IsDefault') + "</span>"
324
- : '') +
325
- (isPublic
326
- ? "<span class=\"badge rounded-pill bg-info ms-1\">" + t('AbpIdentity::DisplayName:IsPublic') + "</span>"
327
- : ''));
328
- },
329
- },
311
+ var DEFAULT_ROLES_ENTITY_PROPS = i4.EntityProp.createMany([
312
+ {
313
+ type: "string" /* String */,
314
+ name: 'name',
315
+ displayName: 'AbpIdentity::RoleName',
316
+ sortable: true,
317
+ valueResolver: function (data) {
318
+ var l10n = data.getInjected(i1.LocalizationService);
319
+ var t = l10n.instant.bind(l10n);
320
+ var _a = data.record, isDefault = _a.isDefault, isPublic = _a.isPublic, name = _a.name;
321
+ return rxjs.of(i1.escapeHtmlChars(name) +
322
+ (isDefault
323
+ ? "<span class=\"badge rounded-pill bg-success ms-1\">" + t('AbpIdentity::DisplayName:IsDefault') + "</span>"
324
+ : '') +
325
+ (isPublic
326
+ ? "<span class=\"badge rounded-pill bg-info ms-1\">" + t('AbpIdentity::DisplayName:IsPublic') + "</span>"
327
+ : ''));
328
+ },
329
+ },
330
330
  ]);
331
331
 
332
- var DEFAULT_ROLES_CREATE_FORM_PROPS = i4.FormProp.createMany([
333
- {
334
- type: "string" /* String */,
335
- name: 'name',
336
- displayName: 'AbpIdentity::RoleName',
337
- id: 'role-name',
338
- disabled: function (data) { return data.record && data.record.isStatic; },
339
- validators: function () { return [i4$1.Validators.required]; },
340
- },
341
- {
342
- type: "boolean" /* Boolean */,
343
- name: 'isDefault',
344
- displayName: 'AbpIdentity::DisplayName:IsDefault',
345
- id: 'role-is-default',
346
- defaultValue: false,
347
- },
348
- {
349
- type: "boolean" /* Boolean */,
350
- name: 'isPublic',
351
- displayName: 'AbpIdentity::DisplayName:IsPublic',
352
- id: 'role-is-public',
353
- defaultValue: false,
354
- },
355
- ]);
332
+ var DEFAULT_ROLES_CREATE_FORM_PROPS = i4.FormProp.createMany([
333
+ {
334
+ type: "string" /* String */,
335
+ name: 'name',
336
+ displayName: 'AbpIdentity::RoleName',
337
+ id: 'role-name',
338
+ disabled: function (data) { return data.record && data.record.isStatic; },
339
+ validators: function () { return [i4$1.Validators.required]; },
340
+ },
341
+ {
342
+ type: "boolean" /* Boolean */,
343
+ name: 'isDefault',
344
+ displayName: 'AbpIdentity::DisplayName:IsDefault',
345
+ id: 'role-is-default',
346
+ defaultValue: false,
347
+ },
348
+ {
349
+ type: "boolean" /* Boolean */,
350
+ name: 'isPublic',
351
+ displayName: 'AbpIdentity::DisplayName:IsPublic',
352
+ id: 'role-is-public',
353
+ defaultValue: false,
354
+ },
355
+ ]);
356
356
  var DEFAULT_ROLES_EDIT_FORM_PROPS = DEFAULT_ROLES_CREATE_FORM_PROPS;
357
357
 
358
- var DEFAULT_ROLES_TOOLBAR_ACTIONS = i4.ToolbarAction.createMany([
359
- {
360
- text: 'AbpIdentity::NewRole',
361
- action: function (data) {
362
- var component = data.getInjected(RolesComponent);
363
- component.add();
364
- },
365
- permission: 'AbpIdentity.Roles.Create',
366
- icon: 'fa fa-plus',
367
- },
358
+ var DEFAULT_ROLES_TOOLBAR_ACTIONS = i4.ToolbarAction.createMany([
359
+ {
360
+ text: 'AbpIdentity::NewRole',
361
+ action: function (data) {
362
+ var component = data.getInjected(RolesComponent);
363
+ component.add();
364
+ },
365
+ permission: 'AbpIdentity.Roles.Create',
366
+ icon: 'fa fa-plus',
367
+ },
368
368
  ]);
369
369
 
370
- var DEFAULT_USERS_ENTITY_ACTIONS = i4.EntityAction.createMany([
371
- {
372
- text: 'AbpIdentity::Edit',
373
- action: function (data) {
374
- var component = data.getInjected(UsersComponent);
375
- component.edit(data.record.id);
376
- },
377
- permission: 'AbpIdentity.Users.Update',
378
- },
379
- {
380
- text: 'AbpIdentity::Permissions',
381
- action: function (data) {
382
- var component = data.getInjected(UsersComponent);
383
- component.openPermissionsModal(data.record.id);
384
- },
385
- permission: 'AbpIdentity.Users.ManagePermissions',
386
- },
387
- {
388
- text: 'AbpIdentity::Delete',
389
- action: function (data) {
390
- var component = data.getInjected(UsersComponent);
391
- component.delete(data.record.id, data.record.name || data.record.userName);
392
- },
393
- permission: 'AbpIdentity.Users.Delete',
394
- },
370
+ var DEFAULT_USERS_ENTITY_ACTIONS = i4.EntityAction.createMany([
371
+ {
372
+ text: 'AbpIdentity::Edit',
373
+ action: function (data) {
374
+ var component = data.getInjected(UsersComponent);
375
+ component.edit(data.record.id);
376
+ },
377
+ permission: 'AbpIdentity.Users.Update',
378
+ },
379
+ {
380
+ text: 'AbpIdentity::Permissions',
381
+ action: function (data) {
382
+ var component = data.getInjected(UsersComponent);
383
+ component.openPermissionsModal(data.record.id);
384
+ },
385
+ permission: 'AbpIdentity.Users.ManagePermissions',
386
+ },
387
+ {
388
+ text: 'AbpIdentity::Delete',
389
+ action: function (data) {
390
+ var component = data.getInjected(UsersComponent);
391
+ component.delete(data.record.id, data.record.name || data.record.userName);
392
+ },
393
+ permission: 'AbpIdentity.Users.Delete',
394
+ },
395
395
  ]);
396
396
 
397
- var DEFAULT_USERS_ENTITY_PROPS = i4.EntityProp.createMany([
398
- {
399
- type: "string" /* String */,
400
- name: 'userName',
401
- displayName: 'AbpIdentity::UserName',
402
- sortable: true,
403
- columnWidth: 250,
404
- valueResolver: function (data) {
405
- var l10n = data.getInjected(i1.LocalizationService);
406
- var t = l10n.instant.bind(l10n);
407
- var inactiveIcon = "<i title=\"" + t('AbpIdentity::ThisUserIsNotActiveMessage') + "\" class=\"fas fa-ban text-danger me-1\"></i>";
408
- return rxjs.of("\n " + (!data.record.isActive ? inactiveIcon : '') + "\n <span class=\"" + (!data.record.isActive ? 'text-muted' : '') + "\">" + data.record.userName + "</span>");
409
- },
410
- },
411
- {
412
- type: "string" /* String */,
413
- name: 'email',
414
- displayName: 'AbpIdentity::EmailAddress',
415
- sortable: true,
416
- columnWidth: 250,
417
- },
418
- {
419
- type: "string" /* String */,
420
- name: 'phoneNumber',
421
- displayName: 'AbpIdentity::PhoneNumber',
422
- sortable: true,
423
- columnWidth: 250,
424
- },
397
+ var DEFAULT_USERS_ENTITY_PROPS = i4.EntityProp.createMany([
398
+ {
399
+ type: "string" /* String */,
400
+ name: 'userName',
401
+ displayName: 'AbpIdentity::UserName',
402
+ sortable: true,
403
+ columnWidth: 250,
404
+ valueResolver: function (data) {
405
+ var l10n = data.getInjected(i1.LocalizationService);
406
+ var t = l10n.instant.bind(l10n);
407
+ var inactiveIcon = "<i title=\"" + t('AbpIdentity::ThisUserIsNotActiveMessage') + "\" class=\"fas fa-ban text-danger me-1\"></i>";
408
+ return rxjs.of("\n " + (!data.record.isActive ? inactiveIcon : '') + "\n <span class=\"" + (!data.record.isActive ? 'text-muted' : '') + "\">" + i1.escapeHtmlChars(data.record.userName) + "</span>");
409
+ },
410
+ },
411
+ {
412
+ type: "string" /* String */,
413
+ name: 'email',
414
+ displayName: 'AbpIdentity::EmailAddress',
415
+ sortable: true,
416
+ columnWidth: 250,
417
+ },
418
+ {
419
+ type: "string" /* String */,
420
+ name: 'phoneNumber',
421
+ displayName: 'AbpIdentity::PhoneNumber',
422
+ sortable: true,
423
+ columnWidth: 250,
424
+ },
425
425
  ]);
426
426
 
427
- /*! *****************************************************************************
428
- Copyright (c) Microsoft Corporation.
429
-
430
- Permission to use, copy, modify, and/or distribute this software for any
431
- purpose with or without fee is hereby granted.
432
-
433
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
434
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
435
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
436
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
437
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
438
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
439
- PERFORMANCE OF THIS SOFTWARE.
440
- ***************************************************************************** */
441
- /* global Reflect, Promise */
442
- var extendStatics = function (d, b) {
443
- extendStatics = Object.setPrototypeOf ||
444
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
445
- function (d, b) { for (var p in b)
446
- if (Object.prototype.hasOwnProperty.call(b, p))
447
- d[p] = b[p]; };
448
- return extendStatics(d, b);
449
- };
450
- function __extends(d, b) {
451
- if (typeof b !== "function" && b !== null)
452
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
453
- extendStatics(d, b);
454
- function __() { this.constructor = d; }
455
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
456
- }
457
- var __assign = function () {
458
- __assign = Object.assign || function __assign(t) {
459
- for (var s, i = 1, n = arguments.length; i < n; i++) {
460
- s = arguments[i];
461
- for (var p in s)
462
- if (Object.prototype.hasOwnProperty.call(s, p))
463
- t[p] = s[p];
464
- }
465
- return t;
466
- };
467
- return __assign.apply(this, arguments);
468
- };
469
- function __rest(s, e) {
470
- var t = {};
471
- for (var p in s)
472
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
473
- t[p] = s[p];
474
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
475
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
476
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
477
- t[p[i]] = s[p[i]];
478
- }
479
- return t;
480
- }
481
- function __decorate(decorators, target, key, desc) {
482
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
483
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
484
- r = Reflect.decorate(decorators, target, key, desc);
485
- else
486
- for (var i = decorators.length - 1; i >= 0; i--)
487
- if (d = decorators[i])
488
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
489
- return c > 3 && r && Object.defineProperty(target, key, r), r;
490
- }
491
- function __param(paramIndex, decorator) {
492
- return function (target, key) { decorator(target, key, paramIndex); };
493
- }
494
- function __metadata(metadataKey, metadataValue) {
495
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
496
- return Reflect.metadata(metadataKey, metadataValue);
497
- }
498
- function __awaiter(thisArg, _arguments, P, generator) {
499
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
500
- return new (P || (P = Promise))(function (resolve, reject) {
501
- function fulfilled(value) { try {
502
- step(generator.next(value));
503
- }
504
- catch (e) {
505
- reject(e);
506
- } }
507
- function rejected(value) { try {
508
- step(generator["throw"](value));
509
- }
510
- catch (e) {
511
- reject(e);
512
- } }
513
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
514
- step((generator = generator.apply(thisArg, _arguments || [])).next());
515
- });
516
- }
517
- function __generator(thisArg, body) {
518
- var _ = { label: 0, sent: function () { if (t[0] & 1)
519
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
520
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
521
- function verb(n) { return function (v) { return step([n, v]); }; }
522
- function step(op) {
523
- if (f)
524
- throw new TypeError("Generator is already executing.");
525
- while (_)
526
- try {
527
- 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)
528
- return t;
529
- if (y = 0, t)
530
- op = [op[0] & 2, t.value];
531
- switch (op[0]) {
532
- case 0:
533
- case 1:
534
- t = op;
535
- break;
536
- case 4:
537
- _.label++;
538
- return { value: op[1], done: false };
539
- case 5:
540
- _.label++;
541
- y = op[1];
542
- op = [0];
543
- continue;
544
- case 7:
545
- op = _.ops.pop();
546
- _.trys.pop();
547
- continue;
548
- default:
549
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
550
- _ = 0;
551
- continue;
552
- }
553
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
554
- _.label = op[1];
555
- break;
556
- }
557
- if (op[0] === 6 && _.label < t[1]) {
558
- _.label = t[1];
559
- t = op;
560
- break;
561
- }
562
- if (t && _.label < t[2]) {
563
- _.label = t[2];
564
- _.ops.push(op);
565
- break;
566
- }
567
- if (t[2])
568
- _.ops.pop();
569
- _.trys.pop();
570
- continue;
571
- }
572
- op = body.call(thisArg, _);
573
- }
574
- catch (e) {
575
- op = [6, e];
576
- y = 0;
577
- }
578
- finally {
579
- f = t = 0;
580
- }
581
- if (op[0] & 5)
582
- throw op[1];
583
- return { value: op[0] ? op[1] : void 0, done: true };
584
- }
585
- }
586
- var __createBinding = Object.create ? (function (o, m, k, k2) {
587
- if (k2 === undefined)
588
- k2 = k;
589
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
590
- }) : (function (o, m, k, k2) {
591
- if (k2 === undefined)
592
- k2 = k;
593
- o[k2] = m[k];
594
- });
595
- function __exportStar(m, o) {
596
- for (var p in m)
597
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
598
- __createBinding(o, m, p);
599
- }
600
- function __values(o) {
601
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
602
- if (m)
603
- return m.call(o);
604
- if (o && typeof o.length === "number")
605
- return {
606
- next: function () {
607
- if (o && i >= o.length)
608
- o = void 0;
609
- return { value: o && o[i++], done: !o };
610
- }
611
- };
612
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
613
- }
614
- function __read(o, n) {
615
- var m = typeof Symbol === "function" && o[Symbol.iterator];
616
- if (!m)
617
- return o;
618
- var i = m.call(o), r, ar = [], e;
619
- try {
620
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
621
- ar.push(r.value);
622
- }
623
- catch (error) {
624
- e = { error: error };
625
- }
626
- finally {
627
- try {
628
- if (r && !r.done && (m = i["return"]))
629
- m.call(i);
630
- }
631
- finally {
632
- if (e)
633
- throw e.error;
634
- }
635
- }
636
- return ar;
637
- }
638
- /** @deprecated */
639
- function __spread() {
640
- for (var ar = [], i = 0; i < arguments.length; i++)
641
- ar = ar.concat(__read(arguments[i]));
642
- return ar;
643
- }
644
- /** @deprecated */
645
- function __spreadArrays() {
646
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
647
- s += arguments[i].length;
648
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
649
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
650
- r[k] = a[j];
651
- return r;
652
- }
653
- function __spreadArray(to, from, pack) {
654
- if (pack || arguments.length === 2)
655
- for (var i = 0, l = from.length, ar; i < l; i++) {
656
- if (ar || !(i in from)) {
657
- if (!ar)
658
- ar = Array.prototype.slice.call(from, 0, i);
659
- ar[i] = from[i];
660
- }
661
- }
662
- return to.concat(ar || Array.prototype.slice.call(from));
663
- }
664
- function __await(v) {
665
- return this instanceof __await ? (this.v = v, this) : new __await(v);
666
- }
667
- function __asyncGenerator(thisArg, _arguments, generator) {
668
- if (!Symbol.asyncIterator)
669
- throw new TypeError("Symbol.asyncIterator is not defined.");
670
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
671
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
672
- function verb(n) { if (g[n])
673
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
674
- function resume(n, v) { try {
675
- step(g[n](v));
676
- }
677
- catch (e) {
678
- settle(q[0][3], e);
679
- } }
680
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
681
- function fulfill(value) { resume("next", value); }
682
- function reject(value) { resume("throw", value); }
683
- function settle(f, v) { if (f(v), q.shift(), q.length)
684
- resume(q[0][0], q[0][1]); }
685
- }
686
- function __asyncDelegator(o) {
687
- var i, p;
688
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
689
- 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; }
690
- }
691
- function __asyncValues(o) {
692
- if (!Symbol.asyncIterator)
693
- throw new TypeError("Symbol.asyncIterator is not defined.");
694
- var m = o[Symbol.asyncIterator], i;
695
- 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);
696
- 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); }); }; }
697
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
698
- }
699
- function __makeTemplateObject(cooked, raw) {
700
- if (Object.defineProperty) {
701
- Object.defineProperty(cooked, "raw", { value: raw });
702
- }
703
- else {
704
- cooked.raw = raw;
705
- }
706
- return cooked;
707
- }
708
- ;
709
- var __setModuleDefault = Object.create ? (function (o, v) {
710
- Object.defineProperty(o, "default", { enumerable: true, value: v });
711
- }) : function (o, v) {
712
- o["default"] = v;
713
- };
714
- function __importStar(mod) {
715
- if (mod && mod.__esModule)
716
- return mod;
717
- var result = {};
718
- if (mod != null)
719
- for (var k in mod)
720
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
721
- __createBinding(result, mod, k);
722
- __setModuleDefault(result, mod);
723
- return result;
724
- }
725
- function __importDefault(mod) {
726
- return (mod && mod.__esModule) ? mod : { default: mod };
727
- }
728
- function __classPrivateFieldGet(receiver, state, kind, f) {
729
- if (kind === "a" && !f)
730
- throw new TypeError("Private accessor was defined without a getter");
731
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
732
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
733
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
734
- }
735
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
736
- if (kind === "m")
737
- throw new TypeError("Private method is not writable");
738
- if (kind === "a" && !f)
739
- throw new TypeError("Private accessor was defined without a setter");
740
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
741
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
742
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
427
+ /*! *****************************************************************************
428
+ Copyright (c) Microsoft Corporation.
429
+
430
+ Permission to use, copy, modify, and/or distribute this software for any
431
+ purpose with or without fee is hereby granted.
432
+
433
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
434
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
435
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
436
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
437
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
438
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
439
+ PERFORMANCE OF THIS SOFTWARE.
440
+ ***************************************************************************** */
441
+ /* global Reflect, Promise */
442
+ var extendStatics = function (d, b) {
443
+ extendStatics = Object.setPrototypeOf ||
444
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
445
+ function (d, b) { for (var p in b)
446
+ if (Object.prototype.hasOwnProperty.call(b, p))
447
+ d[p] = b[p]; };
448
+ return extendStatics(d, b);
449
+ };
450
+ function __extends(d, b) {
451
+ if (typeof b !== "function" && b !== null)
452
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
453
+ extendStatics(d, b);
454
+ function __() { this.constructor = d; }
455
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
456
+ }
457
+ var __assign = function () {
458
+ __assign = Object.assign || function __assign(t) {
459
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
460
+ s = arguments[i];
461
+ for (var p in s)
462
+ if (Object.prototype.hasOwnProperty.call(s, p))
463
+ t[p] = s[p];
464
+ }
465
+ return t;
466
+ };
467
+ return __assign.apply(this, arguments);
468
+ };
469
+ function __rest(s, e) {
470
+ var t = {};
471
+ for (var p in s)
472
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
473
+ t[p] = s[p];
474
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
475
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
476
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
477
+ t[p[i]] = s[p[i]];
478
+ }
479
+ return t;
480
+ }
481
+ function __decorate(decorators, target, key, desc) {
482
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
483
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
484
+ r = Reflect.decorate(decorators, target, key, desc);
485
+ else
486
+ for (var i = decorators.length - 1; i >= 0; i--)
487
+ if (d = decorators[i])
488
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
489
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
490
+ }
491
+ function __param(paramIndex, decorator) {
492
+ return function (target, key) { decorator(target, key, paramIndex); };
493
+ }
494
+ function __metadata(metadataKey, metadataValue) {
495
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
496
+ return Reflect.metadata(metadataKey, metadataValue);
497
+ }
498
+ function __awaiter(thisArg, _arguments, P, generator) {
499
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
500
+ return new (P || (P = Promise))(function (resolve, reject) {
501
+ function fulfilled(value) { try {
502
+ step(generator.next(value));
503
+ }
504
+ catch (e) {
505
+ reject(e);
506
+ } }
507
+ function rejected(value) { try {
508
+ step(generator["throw"](value));
509
+ }
510
+ catch (e) {
511
+ reject(e);
512
+ } }
513
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
514
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
515
+ });
516
+ }
517
+ function __generator(thisArg, body) {
518
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
519
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
520
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
521
+ function verb(n) { return function (v) { return step([n, v]); }; }
522
+ function step(op) {
523
+ if (f)
524
+ throw new TypeError("Generator is already executing.");
525
+ while (_)
526
+ try {
527
+ 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)
528
+ return t;
529
+ if (y = 0, t)
530
+ op = [op[0] & 2, t.value];
531
+ switch (op[0]) {
532
+ case 0:
533
+ case 1:
534
+ t = op;
535
+ break;
536
+ case 4:
537
+ _.label++;
538
+ return { value: op[1], done: false };
539
+ case 5:
540
+ _.label++;
541
+ y = op[1];
542
+ op = [0];
543
+ continue;
544
+ case 7:
545
+ op = _.ops.pop();
546
+ _.trys.pop();
547
+ continue;
548
+ default:
549
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
550
+ _ = 0;
551
+ continue;
552
+ }
553
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
554
+ _.label = op[1];
555
+ break;
556
+ }
557
+ if (op[0] === 6 && _.label < t[1]) {
558
+ _.label = t[1];
559
+ t = op;
560
+ break;
561
+ }
562
+ if (t && _.label < t[2]) {
563
+ _.label = t[2];
564
+ _.ops.push(op);
565
+ break;
566
+ }
567
+ if (t[2])
568
+ _.ops.pop();
569
+ _.trys.pop();
570
+ continue;
571
+ }
572
+ op = body.call(thisArg, _);
573
+ }
574
+ catch (e) {
575
+ op = [6, e];
576
+ y = 0;
577
+ }
578
+ finally {
579
+ f = t = 0;
580
+ }
581
+ if (op[0] & 5)
582
+ throw op[1];
583
+ return { value: op[0] ? op[1] : void 0, done: true };
584
+ }
585
+ }
586
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
587
+ if (k2 === undefined)
588
+ k2 = k;
589
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
590
+ }) : (function (o, m, k, k2) {
591
+ if (k2 === undefined)
592
+ k2 = k;
593
+ o[k2] = m[k];
594
+ });
595
+ function __exportStar(m, o) {
596
+ for (var p in m)
597
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
598
+ __createBinding(o, m, p);
599
+ }
600
+ function __values(o) {
601
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
602
+ if (m)
603
+ return m.call(o);
604
+ if (o && typeof o.length === "number")
605
+ return {
606
+ next: function () {
607
+ if (o && i >= o.length)
608
+ o = void 0;
609
+ return { value: o && o[i++], done: !o };
610
+ }
611
+ };
612
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
613
+ }
614
+ function __read(o, n) {
615
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
616
+ if (!m)
617
+ return o;
618
+ var i = m.call(o), r, ar = [], e;
619
+ try {
620
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
621
+ ar.push(r.value);
622
+ }
623
+ catch (error) {
624
+ e = { error: error };
625
+ }
626
+ finally {
627
+ try {
628
+ if (r && !r.done && (m = i["return"]))
629
+ m.call(i);
630
+ }
631
+ finally {
632
+ if (e)
633
+ throw e.error;
634
+ }
635
+ }
636
+ return ar;
637
+ }
638
+ /** @deprecated */
639
+ function __spread() {
640
+ for (var ar = [], i = 0; i < arguments.length; i++)
641
+ ar = ar.concat(__read(arguments[i]));
642
+ return ar;
643
+ }
644
+ /** @deprecated */
645
+ function __spreadArrays() {
646
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
647
+ s += arguments[i].length;
648
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
649
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
650
+ r[k] = a[j];
651
+ return r;
652
+ }
653
+ function __spreadArray(to, from, pack) {
654
+ if (pack || arguments.length === 2)
655
+ for (var i = 0, l = from.length, ar; i < l; i++) {
656
+ if (ar || !(i in from)) {
657
+ if (!ar)
658
+ ar = Array.prototype.slice.call(from, 0, i);
659
+ ar[i] = from[i];
660
+ }
661
+ }
662
+ return to.concat(ar || Array.prototype.slice.call(from));
663
+ }
664
+ function __await(v) {
665
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
666
+ }
667
+ function __asyncGenerator(thisArg, _arguments, generator) {
668
+ if (!Symbol.asyncIterator)
669
+ throw new TypeError("Symbol.asyncIterator is not defined.");
670
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
671
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
672
+ function verb(n) { if (g[n])
673
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
674
+ function resume(n, v) { try {
675
+ step(g[n](v));
676
+ }
677
+ catch (e) {
678
+ settle(q[0][3], e);
679
+ } }
680
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
681
+ function fulfill(value) { resume("next", value); }
682
+ function reject(value) { resume("throw", value); }
683
+ function settle(f, v) { if (f(v), q.shift(), q.length)
684
+ resume(q[0][0], q[0][1]); }
685
+ }
686
+ function __asyncDelegator(o) {
687
+ var i, p;
688
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
689
+ 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; }
690
+ }
691
+ function __asyncValues(o) {
692
+ if (!Symbol.asyncIterator)
693
+ throw new TypeError("Symbol.asyncIterator is not defined.");
694
+ var m = o[Symbol.asyncIterator], i;
695
+ 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);
696
+ 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); }); }; }
697
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
698
+ }
699
+ function __makeTemplateObject(cooked, raw) {
700
+ if (Object.defineProperty) {
701
+ Object.defineProperty(cooked, "raw", { value: raw });
702
+ }
703
+ else {
704
+ cooked.raw = raw;
705
+ }
706
+ return cooked;
707
+ }
708
+ ;
709
+ var __setModuleDefault = Object.create ? (function (o, v) {
710
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
711
+ }) : function (o, v) {
712
+ o["default"] = v;
713
+ };
714
+ function __importStar(mod) {
715
+ if (mod && mod.__esModule)
716
+ return mod;
717
+ var result = {};
718
+ if (mod != null)
719
+ for (var k in mod)
720
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
721
+ __createBinding(result, mod, k);
722
+ __setModuleDefault(result, mod);
723
+ return result;
724
+ }
725
+ function __importDefault(mod) {
726
+ return (mod && mod.__esModule) ? mod : { default: mod };
727
+ }
728
+ function __classPrivateFieldGet(receiver, state, kind, f) {
729
+ if (kind === "a" && !f)
730
+ throw new TypeError("Private accessor was defined without a getter");
731
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
732
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
733
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
734
+ }
735
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
736
+ if (kind === "m")
737
+ throw new TypeError("Private method is not writable");
738
+ if (kind === "a" && !f)
739
+ throw new TypeError("Private accessor was defined without a setter");
740
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
741
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
742
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
743
743
  }
744
744
 
745
- var DEFAULT_USERS_CREATE_FORM_PROPS = i4.FormProp.createMany([
746
- {
747
- type: "string" /* String */,
748
- name: 'userName',
749
- displayName: 'AbpIdentity::UserName',
750
- id: 'user-name',
751
- validators: function () { return [i4$1.Validators.required, i4$1.Validators.maxLength(256)]; },
752
- },
753
- {
754
- type: "password" /* Password */,
755
- name: 'password',
756
- displayName: 'AbpIdentity::Password',
757
- id: 'password',
758
- autocomplete: 'new-password',
759
- validators: function (data) { return __spreadArray([i4$1.Validators.required], __read(i2.getPasswordValidators({ get: data.getInjected }))); },
760
- },
761
- {
762
- type: "string" /* String */,
763
- name: 'name',
764
- displayName: 'AbpIdentity::DisplayName:Name',
765
- id: 'name',
766
- validators: function () { return [i4$1.Validators.maxLength(64)]; },
767
- },
768
- {
769
- type: "string" /* String */,
770
- name: 'surname',
771
- displayName: 'AbpIdentity::DisplayName:Surname',
772
- id: 'surname',
773
- validators: function () { return [i4$1.Validators.maxLength(64)]; },
774
- },
775
- {
776
- type: "email" /* Email */,
777
- name: 'email',
778
- displayName: 'AbpIdentity::EmailAddress',
779
- id: 'email',
780
- validators: function () { return [i4$1.Validators.required, i4$1.Validators.maxLength(256), i4$1.Validators.email]; },
781
- },
782
- {
783
- type: "string" /* String */,
784
- name: 'phoneNumber',
785
- displayName: 'AbpIdentity::PhoneNumber',
786
- id: 'phone-number',
787
- validators: function () { return [i4$1.Validators.maxLength(16)]; },
788
- },
789
- {
790
- type: "boolean" /* Boolean */,
791
- name: 'isActive',
792
- displayName: 'AbpIdentity::DisplayName:IsActive',
793
- id: 'active-checkbox',
794
- defaultValue: true,
795
- },
796
- {
797
- type: "boolean" /* Boolean */,
798
- name: 'lockoutEnabled',
799
- displayName: 'AbpIdentity::DisplayName:LockoutEnabled',
800
- id: 'lockout-checkbox',
801
- defaultValue: true,
802
- },
803
- ]);
745
+ var DEFAULT_USERS_CREATE_FORM_PROPS = i4.FormProp.createMany([
746
+ {
747
+ type: "string" /* String */,
748
+ name: 'userName',
749
+ displayName: 'AbpIdentity::UserName',
750
+ id: 'user-name',
751
+ validators: function () { return [i4$1.Validators.required, i4$1.Validators.maxLength(256)]; },
752
+ },
753
+ {
754
+ type: "password" /* Password */,
755
+ name: 'password',
756
+ displayName: 'AbpIdentity::Password',
757
+ id: 'password',
758
+ autocomplete: 'new-password',
759
+ validators: function (data) { return __spreadArray([i4$1.Validators.required], __read(i2.getPasswordValidators({ get: data.getInjected }))); },
760
+ },
761
+ {
762
+ type: "string" /* String */,
763
+ name: 'name',
764
+ displayName: 'AbpIdentity::DisplayName:Name',
765
+ id: 'name',
766
+ validators: function () { return [i4$1.Validators.maxLength(64)]; },
767
+ },
768
+ {
769
+ type: "string" /* String */,
770
+ name: 'surname',
771
+ displayName: 'AbpIdentity::DisplayName:Surname',
772
+ id: 'surname',
773
+ validators: function () { return [i4$1.Validators.maxLength(64)]; },
774
+ },
775
+ {
776
+ type: "email" /* Email */,
777
+ name: 'email',
778
+ displayName: 'AbpIdentity::EmailAddress',
779
+ id: 'email',
780
+ validators: function () { return [i4$1.Validators.required, i4$1.Validators.maxLength(256), i4$1.Validators.email]; },
781
+ },
782
+ {
783
+ type: "string" /* String */,
784
+ name: 'phoneNumber',
785
+ displayName: 'AbpIdentity::PhoneNumber',
786
+ id: 'phone-number',
787
+ validators: function () { return [i4$1.Validators.maxLength(16)]; },
788
+ },
789
+ {
790
+ type: "boolean" /* Boolean */,
791
+ name: 'isActive',
792
+ displayName: 'AbpIdentity::DisplayName:IsActive',
793
+ id: 'active-checkbox',
794
+ defaultValue: true,
795
+ },
796
+ {
797
+ type: "boolean" /* Boolean */,
798
+ name: 'lockoutEnabled',
799
+ displayName: 'AbpIdentity::DisplayName:LockoutEnabled',
800
+ id: 'lockout-checkbox',
801
+ defaultValue: true,
802
+ },
803
+ ]);
804
804
  var DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS.filter(function (prop) { return prop.name !== 'password'; });
805
805
 
806
- var DEFAULT_USERS_TOOLBAR_ACTIONS = i4.ToolbarAction.createMany([
807
- {
808
- text: 'AbpIdentity::NewUser',
809
- action: function (data) {
810
- var component = data.getInjected(UsersComponent);
811
- component.add();
812
- },
813
- permission: 'AbpIdentity.Users.Create',
814
- icon: 'fa fa-plus',
815
- },
806
+ var DEFAULT_USERS_TOOLBAR_ACTIONS = i4.ToolbarAction.createMany([
807
+ {
808
+ text: 'AbpIdentity::NewUser',
809
+ action: function (data) {
810
+ var component = data.getInjected(UsersComponent);
811
+ component.add();
812
+ },
813
+ permission: 'AbpIdentity.Users.Create',
814
+ icon: 'fa fa-plus',
815
+ },
816
816
  ]);
817
817
 
818
- var _a, _b, _c, _d, _e;
819
- var DEFAULT_IDENTITY_ENTITY_ACTIONS = (_a = {},
820
- _a["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_ENTITY_ACTIONS,
821
- _a["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_ENTITY_ACTIONS,
822
- _a);
823
- var DEFAULT_IDENTITY_TOOLBAR_ACTIONS = (_b = {},
824
- _b["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_TOOLBAR_ACTIONS,
825
- _b["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_TOOLBAR_ACTIONS,
826
- _b);
827
- var DEFAULT_IDENTITY_ENTITY_PROPS = (_c = {},
828
- _c["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_ENTITY_PROPS,
829
- _c["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_ENTITY_PROPS,
830
- _c);
831
- var DEFAULT_IDENTITY_CREATE_FORM_PROPS = (_d = {},
832
- _d["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_CREATE_FORM_PROPS,
833
- _d["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_CREATE_FORM_PROPS,
834
- _d);
835
- var DEFAULT_IDENTITY_EDIT_FORM_PROPS = (_e = {},
836
- _e["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_EDIT_FORM_PROPS,
837
- _e["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_EDIT_FORM_PROPS,
838
- _e);
839
- var IDENTITY_ENTITY_ACTION_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_ENTITY_ACTION_CONTRIBUTORS');
840
- var IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS');
841
- var IDENTITY_ENTITY_PROP_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_ENTITY_PROP_CONTRIBUTORS');
842
- var IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS');
818
+ var _a, _b, _c, _d, _e;
819
+ var DEFAULT_IDENTITY_ENTITY_ACTIONS = (_a = {},
820
+ _a["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_ENTITY_ACTIONS,
821
+ _a["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_ENTITY_ACTIONS,
822
+ _a);
823
+ var DEFAULT_IDENTITY_TOOLBAR_ACTIONS = (_b = {},
824
+ _b["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_TOOLBAR_ACTIONS,
825
+ _b["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_TOOLBAR_ACTIONS,
826
+ _b);
827
+ var DEFAULT_IDENTITY_ENTITY_PROPS = (_c = {},
828
+ _c["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_ENTITY_PROPS,
829
+ _c["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_ENTITY_PROPS,
830
+ _c);
831
+ var DEFAULT_IDENTITY_CREATE_FORM_PROPS = (_d = {},
832
+ _d["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_CREATE_FORM_PROPS,
833
+ _d["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_CREATE_FORM_PROPS,
834
+ _d);
835
+ var DEFAULT_IDENTITY_EDIT_FORM_PROPS = (_e = {},
836
+ _e["Identity.RolesComponent" /* Roles */] = DEFAULT_ROLES_EDIT_FORM_PROPS,
837
+ _e["Identity.UsersComponent" /* Users */] = DEFAULT_USERS_EDIT_FORM_PROPS,
838
+ _e);
839
+ var IDENTITY_ENTITY_ACTION_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_ENTITY_ACTION_CONTRIBUTORS');
840
+ var IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS');
841
+ var IDENTITY_ENTITY_PROP_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_ENTITY_PROP_CONTRIBUTORS');
842
+ var IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS');
843
843
  var IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS = new i0.InjectionToken('IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS');
844
844
 
845
- var IdentityExtensionsGuard = /** @class */ (function () {
846
- function IdentityExtensionsGuard(injector) {
847
- this.injector = injector;
848
- }
849
- IdentityExtensionsGuard.prototype.canActivate = function () {
850
- var extensions = this.injector.get(i4.ExtensionsService);
851
- var actionContributors = this.injector.get(IDENTITY_ENTITY_ACTION_CONTRIBUTORS, null) || {};
852
- var toolbarContributors = this.injector.get(IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
853
- var propContributors = this.injector.get(IDENTITY_ENTITY_PROP_CONTRIBUTORS, null) || {};
854
- var createFormContributors = this.injector.get(IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
855
- var editFormContributors = this.injector.get(IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
856
- var configState = this.injector.get(i1.ConfigStateService);
857
- return i4.getObjectExtensionEntitiesFromStore(configState, 'Identity').pipe(operators.map(function (entities) {
858
- var _a;
859
- return (_a = {},
860
- _a["Identity.RolesComponent" /* Roles */] = entities.Role,
861
- _a["Identity.UsersComponent" /* Users */] = entities.User,
862
- _a);
863
- }), i4.mapEntitiesToContributors(configState, 'AbpIdentity'), operators.tap(function (objectExtensionContributors) {
864
- i4.mergeWithDefaultActions(extensions.entityActions, DEFAULT_IDENTITY_ENTITY_ACTIONS, actionContributors);
865
- i4.mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, toolbarContributors);
866
- i4.mergeWithDefaultProps(extensions.entityProps, DEFAULT_IDENTITY_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
867
- i4.mergeWithDefaultProps(extensions.createFormProps, DEFAULT_IDENTITY_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
868
- i4.mergeWithDefaultProps(extensions.editFormProps, DEFAULT_IDENTITY_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
869
- }), operators.mapTo(true));
870
- };
871
- return IdentityExtensionsGuard;
872
- }());
873
- IdentityExtensionsGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityExtensionsGuard, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
874
- IdentityExtensionsGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityExtensionsGuard });
875
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityExtensionsGuard, decorators: [{
876
- type: i0.Injectable
845
+ var IdentityExtensionsGuard = /** @class */ (function () {
846
+ function IdentityExtensionsGuard(injector) {
847
+ this.injector = injector;
848
+ }
849
+ IdentityExtensionsGuard.prototype.canActivate = function () {
850
+ var extensions = this.injector.get(i4.ExtensionsService);
851
+ var actionContributors = this.injector.get(IDENTITY_ENTITY_ACTION_CONTRIBUTORS, null) || {};
852
+ var toolbarContributors = this.injector.get(IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
853
+ var propContributors = this.injector.get(IDENTITY_ENTITY_PROP_CONTRIBUTORS, null) || {};
854
+ var createFormContributors = this.injector.get(IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
855
+ var editFormContributors = this.injector.get(IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
856
+ var configState = this.injector.get(i1.ConfigStateService);
857
+ return i4.getObjectExtensionEntitiesFromStore(configState, 'Identity').pipe(operators.map(function (entities) {
858
+ var _a;
859
+ return (_a = {},
860
+ _a["Identity.RolesComponent" /* Roles */] = entities.Role,
861
+ _a["Identity.UsersComponent" /* Users */] = entities.User,
862
+ _a);
863
+ }), i4.mapEntitiesToContributors(configState, 'AbpIdentity'), operators.tap(function (objectExtensionContributors) {
864
+ i4.mergeWithDefaultActions(extensions.entityActions, DEFAULT_IDENTITY_ENTITY_ACTIONS, actionContributors);
865
+ i4.mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, toolbarContributors);
866
+ i4.mergeWithDefaultProps(extensions.entityProps, DEFAULT_IDENTITY_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
867
+ i4.mergeWithDefaultProps(extensions.createFormProps, DEFAULT_IDENTITY_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
868
+ i4.mergeWithDefaultProps(extensions.editFormProps, DEFAULT_IDENTITY_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
869
+ }), operators.mapTo(true));
870
+ };
871
+ return IdentityExtensionsGuard;
872
+ }());
873
+ IdentityExtensionsGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityExtensionsGuard, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
874
+ IdentityExtensionsGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityExtensionsGuard });
875
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityExtensionsGuard, decorators: [{
876
+ type: i0.Injectable
877
877
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
878
878
 
879
- var routes = [
880
- { path: '', redirectTo: 'roles', pathMatch: 'full' },
881
- {
882
- path: '',
883
- component: i1.RouterOutletComponent,
884
- canActivate: [i1.AuthGuard, i1.PermissionGuard, IdentityExtensionsGuard],
885
- children: [
886
- {
887
- path: 'roles',
888
- component: i1.ReplaceableRouteContainerComponent,
889
- data: {
890
- requiredPolicy: 'AbpIdentity.Roles',
891
- replaceableComponent: {
892
- key: "Identity.RolesComponent" /* Roles */,
893
- defaultComponent: RolesComponent,
894
- },
895
- },
896
- },
897
- {
898
- path: 'users',
899
- component: i1.ReplaceableRouteContainerComponent,
900
- data: {
901
- requiredPolicy: 'AbpIdentity.Users',
902
- replaceableComponent: {
903
- key: "Identity.UsersComponent" /* Users */,
904
- defaultComponent: UsersComponent,
905
- },
906
- },
907
- },
908
- ],
909
- },
910
- ];
911
- var IdentityRoutingModule = /** @class */ (function () {
912
- function IdentityRoutingModule() {
913
- }
914
- return IdentityRoutingModule;
915
- }());
916
- IdentityRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
917
- IdentityRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, imports: [i1__namespace$1.RouterModule], exports: [i1$1.RouterModule] });
918
- IdentityRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, imports: [[i1$1.RouterModule.forChild(routes)], i1$1.RouterModule] });
919
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, decorators: [{
920
- type: i0.NgModule,
921
- args: [{
922
- imports: [i1$1.RouterModule.forChild(routes)],
923
- exports: [i1$1.RouterModule],
924
- }]
879
+ var routes = [
880
+ { path: '', redirectTo: 'roles', pathMatch: 'full' },
881
+ {
882
+ path: '',
883
+ component: i1.RouterOutletComponent,
884
+ canActivate: [i1.AuthGuard, i1.PermissionGuard, IdentityExtensionsGuard],
885
+ children: [
886
+ {
887
+ path: 'roles',
888
+ component: i1.ReplaceableRouteContainerComponent,
889
+ data: {
890
+ requiredPolicy: 'AbpIdentity.Roles',
891
+ replaceableComponent: {
892
+ key: "Identity.RolesComponent" /* Roles */,
893
+ defaultComponent: RolesComponent,
894
+ },
895
+ },
896
+ },
897
+ {
898
+ path: 'users',
899
+ component: i1.ReplaceableRouteContainerComponent,
900
+ data: {
901
+ requiredPolicy: 'AbpIdentity.Users',
902
+ replaceableComponent: {
903
+ key: "Identity.UsersComponent" /* Users */,
904
+ defaultComponent: UsersComponent,
905
+ },
906
+ },
907
+ },
908
+ ],
909
+ },
910
+ ];
911
+ var IdentityRoutingModule = /** @class */ (function () {
912
+ function IdentityRoutingModule() {
913
+ }
914
+ return IdentityRoutingModule;
915
+ }());
916
+ IdentityRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
917
+ IdentityRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, imports: [i1__namespace$1.RouterModule], exports: [i1$1.RouterModule] });
918
+ IdentityRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, imports: [[i1$1.RouterModule.forChild(routes)], i1$1.RouterModule] });
919
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoutingModule, decorators: [{
920
+ type: i0.NgModule,
921
+ args: [{
922
+ imports: [i1$1.RouterModule.forChild(routes)],
923
+ exports: [i1$1.RouterModule],
924
+ }]
925
925
  }] });
926
926
 
927
- var IdentityModule = /** @class */ (function () {
928
- function IdentityModule() {
929
- }
930
- IdentityModule.forChild = function (options) {
931
- if (options === void 0) { options = {}; }
932
- return {
933
- ngModule: IdentityModule,
934
- providers: [
935
- {
936
- provide: IDENTITY_ENTITY_ACTION_CONTRIBUTORS,
937
- useValue: options.entityActionContributors,
938
- },
939
- {
940
- provide: IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS,
941
- useValue: options.toolbarActionContributors,
942
- },
943
- {
944
- provide: IDENTITY_ENTITY_PROP_CONTRIBUTORS,
945
- useValue: options.entityPropContributors,
946
- },
947
- {
948
- provide: IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS,
949
- useValue: options.createFormPropContributors,
950
- },
951
- {
952
- provide: IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS,
953
- useValue: options.editFormPropContributors,
954
- },
955
- IdentityExtensionsGuard,
956
- ],
957
- };
958
- };
959
- IdentityModule.forLazy = function (options) {
960
- if (options === void 0) { options = {}; }
961
- return new i1.LazyModuleFactory(IdentityModule.forChild(options));
962
- };
963
- return IdentityModule;
964
- }());
965
- IdentityModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
966
- IdentityModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, declarations: [RolesComponent, UsersComponent], imports: [i1.CoreModule,
967
- IdentityRoutingModule,
968
- i6.NgbNavModule,
969
- i2.ThemeSharedModule,
970
- i4.UiExtensionsModule,
971
- i6.NgbDropdownModule,
972
- i5.PermissionManagementModule,
973
- i9.NgxValidateCoreModule], exports: [RolesComponent, UsersComponent] });
974
- IdentityModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, imports: [[
975
- i1.CoreModule,
976
- IdentityRoutingModule,
977
- i6.NgbNavModule,
978
- i2.ThemeSharedModule,
979
- i4.UiExtensionsModule,
980
- i6.NgbDropdownModule,
981
- i5.PermissionManagementModule,
982
- i9.NgxValidateCoreModule,
983
- ]] });
984
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, decorators: [{
985
- type: i0.NgModule,
986
- args: [{
987
- declarations: [RolesComponent, UsersComponent],
988
- exports: [RolesComponent, UsersComponent],
989
- imports: [
990
- i1.CoreModule,
991
- IdentityRoutingModule,
992
- i6.NgbNavModule,
993
- i2.ThemeSharedModule,
994
- i4.UiExtensionsModule,
995
- i6.NgbDropdownModule,
996
- i5.PermissionManagementModule,
997
- i9.NgxValidateCoreModule,
998
- ],
999
- }]
927
+ var IdentityModule = /** @class */ (function () {
928
+ function IdentityModule() {
929
+ }
930
+ IdentityModule.forChild = function (options) {
931
+ if (options === void 0) { options = {}; }
932
+ return {
933
+ ngModule: IdentityModule,
934
+ providers: [
935
+ {
936
+ provide: IDENTITY_ENTITY_ACTION_CONTRIBUTORS,
937
+ useValue: options.entityActionContributors,
938
+ },
939
+ {
940
+ provide: IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS,
941
+ useValue: options.toolbarActionContributors,
942
+ },
943
+ {
944
+ provide: IDENTITY_ENTITY_PROP_CONTRIBUTORS,
945
+ useValue: options.entityPropContributors,
946
+ },
947
+ {
948
+ provide: IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS,
949
+ useValue: options.createFormPropContributors,
950
+ },
951
+ {
952
+ provide: IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS,
953
+ useValue: options.editFormPropContributors,
954
+ },
955
+ IdentityExtensionsGuard,
956
+ ],
957
+ };
958
+ };
959
+ IdentityModule.forLazy = function (options) {
960
+ if (options === void 0) { options = {}; }
961
+ return new i1.LazyModuleFactory(IdentityModule.forChild(options));
962
+ };
963
+ return IdentityModule;
964
+ }());
965
+ IdentityModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
966
+ IdentityModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, declarations: [RolesComponent, UsersComponent], imports: [i1.CoreModule,
967
+ IdentityRoutingModule,
968
+ i6.NgbNavModule,
969
+ i2.ThemeSharedModule,
970
+ i4.UiExtensionsModule,
971
+ i6.NgbDropdownModule,
972
+ i5.PermissionManagementModule,
973
+ i9.NgxValidateCoreModule], exports: [RolesComponent, UsersComponent] });
974
+ IdentityModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, imports: [[
975
+ i1.CoreModule,
976
+ IdentityRoutingModule,
977
+ i6.NgbNavModule,
978
+ i2.ThemeSharedModule,
979
+ i4.UiExtensionsModule,
980
+ i6.NgbDropdownModule,
981
+ i5.PermissionManagementModule,
982
+ i9.NgxValidateCoreModule,
983
+ ]] });
984
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityModule, decorators: [{
985
+ type: i0.NgModule,
986
+ args: [{
987
+ declarations: [RolesComponent, UsersComponent],
988
+ exports: [RolesComponent, UsersComponent],
989
+ imports: [
990
+ i1.CoreModule,
991
+ IdentityRoutingModule,
992
+ i6.NgbNavModule,
993
+ i2.ThemeSharedModule,
994
+ i4.UiExtensionsModule,
995
+ i6.NgbDropdownModule,
996
+ i5.PermissionManagementModule,
997
+ i9.NgxValidateCoreModule,
998
+ ],
999
+ }]
1000
1000
  }] });
1001
1001
 
1002
- /**
1003
- * Generated bundle index. Do not edit.
1002
+ /**
1003
+ * Generated bundle index. Do not edit.
1004
1004
  */
1005
1005
 
1006
1006
  exports.DEFAULT_IDENTITY_CREATE_FORM_PROPS = DEFAULT_IDENTITY_CREATE_FORM_PROPS;