@abp/ng.tenant-management 5.0.0 → 5.1.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.
- package/config/package.json +5 -5
- package/{esm2015/abp-ng.tenant-management.js → esm2020/abp-ng.tenant-management.mjs} +0 -0
- package/{esm2015/config/abp-ng.tenant-management-config.js → esm2020/config/abp-ng.tenant-management-config.mjs} +0 -0
- package/{esm2015/config/enums/index.js → esm2020/config/enums/index.mjs} +0 -0
- package/{esm2015/config/enums/policy-names.js → esm2020/config/enums/policy-names.mjs} +0 -0
- package/{esm2015/config/enums/route-names.js → esm2020/config/enums/route-names.mjs} +0 -0
- package/{esm2015/config/providers/index.js → esm2020/config/providers/index.mjs} +0 -0
- package/{esm2015/config/providers/route.provider.js → esm2020/config/providers/route.provider.mjs} +0 -0
- package/{esm2015/config/public-api.js → esm2020/config/public-api.mjs} +0 -0
- package/{esm2015/config/tenant-management-config.module.js → esm2020/config/tenant-management-config.module.mjs} +5 -5
- package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
- package/esm2020/lib/components/tenants/tenants.component.mjs +125 -0
- package/{esm2015/lib/defaults/default-tenants-entity-actions.js → esm2020/lib/defaults/default-tenants-entity-actions.mjs} +0 -0
- package/{esm2015/lib/defaults/default-tenants-entity-props.js → esm2020/lib/defaults/default-tenants-entity-props.mjs} +0 -0
- package/{esm2015/lib/defaults/default-tenants-form-props.js → esm2020/lib/defaults/default-tenants-form-props.mjs} +0 -0
- package/{esm2015/lib/defaults/default-tenants-toolbar-actions.js → esm2020/lib/defaults/default-tenants-toolbar-actions.mjs} +0 -0
- package/{esm2015/lib/enums/components.js → esm2020/lib/enums/components.mjs} +0 -0
- package/{esm2015/lib/enums/index.js → esm2020/lib/enums/index.mjs} +0 -0
- package/{esm2015/lib/guards/extensions.guard.js → esm2020/lib/guards/extensions.guard.mjs} +4 -4
- package/{esm2015/lib/guards/index.js → esm2020/lib/guards/index.mjs} +0 -0
- package/{esm2015/lib/models/config-options.js → esm2020/lib/models/config-options.mjs} +0 -0
- package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +0 -0
- package/{esm2015/lib/models/tenant-management.js → esm2020/lib/models/tenant-management.mjs} +0 -0
- package/{esm2015/lib/tenant-management-routing.module.js → esm2020/lib/tenant-management-routing.module.mjs} +5 -5
- package/{esm2015/lib/tenant-management.module.js → esm2020/lib/tenant-management.module.mjs} +5 -5
- package/{esm2015/lib/tokens/extensions.token.js → esm2020/lib/tokens/extensions.token.mjs} +0 -0
- package/{esm2015/lib/tokens/index.js → esm2020/lib/tokens/index.mjs} +0 -0
- package/{esm2015/proxy/abp-ng.tenant-management-proxy.js → esm2020/proxy/abp-ng.tenant-management-proxy.mjs} +0 -0
- package/{esm2015/proxy/lib/index.js → esm2020/proxy/lib/index.mjs} +0 -0
- package/{esm2015/proxy/lib/proxy/index.js → esm2020/proxy/lib/proxy/index.mjs} +0 -0
- package/{esm2015/proxy/lib/proxy/models.js → esm2020/proxy/lib/proxy/models.mjs} +0 -0
- package/{esm2015/proxy/lib/proxy/tenant.service.js → esm2020/proxy/lib/proxy/tenant.service.mjs} +4 -4
- package/{esm2015/proxy/public-api.js → esm2020/proxy/public-api.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/{abp-ng.tenant-management-config.js → abp-ng.tenant-management-config.mjs} +5 -5
- package/fesm2015/abp-ng.tenant-management-config.mjs.map +1 -0
- package/fesm2015/{abp-ng.tenant-management-proxy.js → abp-ng.tenant-management-proxy.mjs} +5 -5
- package/fesm2015/abp-ng.tenant-management-proxy.mjs.map +1 -0
- package/fesm2015/{abp-ng.tenant-management.js → abp-ng.tenant-management.mjs} +19 -23
- package/fesm2015/abp-ng.tenant-management.mjs.map +1 -0
- package/fesm2020/abp-ng.tenant-management-config.mjs +51 -0
- package/fesm2020/abp-ng.tenant-management-config.mjs.map +1 -0
- package/fesm2020/abp-ng.tenant-management-proxy.mjs +62 -0
- package/fesm2020/abp-ng.tenant-management-proxy.mjs.map +1 -0
- package/fesm2020/abp-ng.tenant-management.mjs +370 -0
- package/fesm2020/abp-ng.tenant-management.mjs.map +1 -0
- package/package.json +38 -9
- package/proxy/package.json +5 -5
- package/proxy/src/lib/proxy/README.md +17 -0
- package/bundles/abp-ng.tenant-management-config.umd.js +0 -82
- package/bundles/abp-ng.tenant-management-config.umd.js.map +0 -1
- package/bundles/abp-ng.tenant-management-proxy.umd.js +0 -91
- package/bundles/abp-ng.tenant-management-proxy.umd.js.map +0 -1
- package/bundles/abp-ng.tenant-management.umd.js +0 -746
- package/bundles/abp-ng.tenant-management.umd.js.map +0 -1
- package/esm2015/lib/components/tenants/tenants.component.js +0 -129
- package/fesm2015/abp-ng.tenant-management-config.js.map +0 -1
- package/fesm2015/abp-ng.tenant-management-proxy.js.map +0 -1
- package/fesm2015/abp-ng.tenant-management.js.map +0 -1
|
@@ -1,746 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@abp/ng.theme.shared/extensions'), require('@angular/core'), require('rxjs/operators'), require('@abp/ng.tenant-management/proxy'), require('@angular/forms'), require('@abp/ng.feature-management'), require('@ngx-validate/core'), require('@ng-bootstrap/ng-bootstrap'), require('@angular/router')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@abp/ng.tenant-management', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@abp/ng.theme.shared/extensions', '@angular/core', 'rxjs/operators', '@abp/ng.tenant-management/proxy', '@angular/forms', '@abp/ng.feature-management', '@ngx-validate/core', '@ng-bootstrap/ng-bootstrap', '@angular/router'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng["tenant-management"] = {}), global.i1, global.i2, global.i5, global.ng.core, global.rxjs.operators, global.abp.ng["tenant-management"].proxy, global.ng.forms, global.i6, global.i7, global.ngBootstrap, global.ng.router));
|
|
5
|
-
})(this, (function (exports, i1, i2, i5, i0, operators, i3, i4, i6, i7, ngBootstrap, i1$1) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
26
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
28
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
29
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
30
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
31
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
32
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
33
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
34
|
-
|
|
35
|
-
var TenantsComponent = /** @class */ (function () {
|
|
36
|
-
function TenantsComponent(list, injector, confirmationService, service, fb) {
|
|
37
|
-
var _this = this;
|
|
38
|
-
this.list = list;
|
|
39
|
-
this.injector = injector;
|
|
40
|
-
this.confirmationService = confirmationService;
|
|
41
|
-
this.service = service;
|
|
42
|
-
this.fb = fb;
|
|
43
|
-
this.data = { items: [], totalCount: 0 };
|
|
44
|
-
this.visibleFeatures = false;
|
|
45
|
-
this.modalBusy = false;
|
|
46
|
-
this.featureManagementKey = "FeatureManagement.FeatureManagementComponent" /* FeatureManagement */;
|
|
47
|
-
this.onVisibleFeaturesChange = function (value) {
|
|
48
|
-
_this.visibleFeatures = value;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
Object.defineProperty(TenantsComponent.prototype, "hasSelectedTenant", {
|
|
52
|
-
get: function () {
|
|
53
|
-
return Boolean(this.selected.id);
|
|
54
|
-
},
|
|
55
|
-
enumerable: false,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
TenantsComponent.prototype.ngOnInit = function () {
|
|
59
|
-
this.hookToQuery();
|
|
60
|
-
};
|
|
61
|
-
TenantsComponent.prototype.createTenantForm = function () {
|
|
62
|
-
var data = new i5.FormPropData(this.injector, this.selected);
|
|
63
|
-
this.tenantForm = i5.generateFormFromProps(data);
|
|
64
|
-
};
|
|
65
|
-
TenantsComponent.prototype.addTenant = function () {
|
|
66
|
-
this.selected = {};
|
|
67
|
-
this.createTenantForm();
|
|
68
|
-
this.isModalVisible = true;
|
|
69
|
-
};
|
|
70
|
-
TenantsComponent.prototype.editTenant = function (id) {
|
|
71
|
-
var _this = this;
|
|
72
|
-
this.service.get(id).subscribe(function (res) {
|
|
73
|
-
_this.selected = res;
|
|
74
|
-
_this.createTenantForm();
|
|
75
|
-
_this.isModalVisible = true;
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
TenantsComponent.prototype.save = function () {
|
|
79
|
-
var _this = this;
|
|
80
|
-
if (!this.tenantForm.valid || this.modalBusy)
|
|
81
|
-
return;
|
|
82
|
-
this.modalBusy = true;
|
|
83
|
-
var id = this.selected.id;
|
|
84
|
-
(id
|
|
85
|
-
? this.service.update(id, Object.assign(Object.assign({}, this.selected), this.tenantForm.value))
|
|
86
|
-
: this.service.create(this.tenantForm.value))
|
|
87
|
-
.pipe(operators.finalize(function () { return (_this.modalBusy = false); }))
|
|
88
|
-
.subscribe(function () {
|
|
89
|
-
_this.isModalVisible = false;
|
|
90
|
-
_this.list.get();
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
TenantsComponent.prototype.delete = function (id, name) {
|
|
94
|
-
var _this = this;
|
|
95
|
-
this.confirmationService
|
|
96
|
-
.warn('AbpTenantManagement::TenantDeletionConfirmationMessage', 'AbpTenantManagement::AreYouSure', {
|
|
97
|
-
messageLocalizationParams: [name],
|
|
98
|
-
})
|
|
99
|
-
.subscribe(function (status) {
|
|
100
|
-
if (status === i2.Confirmation.Status.confirm) {
|
|
101
|
-
_this.service.delete(id).subscribe(function () { return _this.list.get(); });
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
TenantsComponent.prototype.hookToQuery = function () {
|
|
106
|
-
var _this = this;
|
|
107
|
-
this.list
|
|
108
|
-
.hookToQuery(function (query) { return _this.service.getList(query); })
|
|
109
|
-
.subscribe(function (res) {
|
|
110
|
-
_this.data = res;
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
TenantsComponent.prototype.onSharedDatabaseChange = function (value) {
|
|
114
|
-
if (!value) {
|
|
115
|
-
setTimeout(function () {
|
|
116
|
-
var defaultConnectionString = document.getElementById('defaultConnectionString');
|
|
117
|
-
if (defaultConnectionString) {
|
|
118
|
-
defaultConnectionString.focus();
|
|
119
|
-
}
|
|
120
|
-
}, 0);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
TenantsComponent.prototype.openFeaturesModal = function (providerKey) {
|
|
124
|
-
var _this = this;
|
|
125
|
-
this.providerKey = providerKey;
|
|
126
|
-
setTimeout(function () {
|
|
127
|
-
_this.visibleFeatures = true;
|
|
128
|
-
}, 0);
|
|
129
|
-
};
|
|
130
|
-
TenantsComponent.prototype.sort = function (data) {
|
|
131
|
-
var _a = data.sorts[0], prop = _a.prop, dir = _a.dir;
|
|
132
|
-
this.list.sortKey = prop;
|
|
133
|
-
this.list.sortOrder = dir;
|
|
134
|
-
};
|
|
135
|
-
return TenantsComponent;
|
|
136
|
-
}());
|
|
137
|
-
TenantsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantsComponent, deps: [{ token: i1__namespace.ListService }, { token: i0__namespace.Injector }, { token: i2__namespace.ConfirmationService }, { token: i3__namespace.TenantService }, { token: i4__namespace.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
138
|
-
TenantsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: TenantsComponent, selector: "abp-tenants", providers: [
|
|
139
|
-
i1.ListService,
|
|
140
|
-
{
|
|
141
|
-
provide: i5.EXTENSIONS_IDENTIFIER,
|
|
142
|
-
useValue: "TenantManagement.TenantsComponent" /* Tenants */,
|
|
143
|
-
},
|
|
144
|
-
], ngImport: i0__namespace, template: "<div id=\"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\">{{ 'AbpTenantManagement::Tenants' | 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 <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 || 0\"\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>\r\n {{\r\n (selected?.id ? 'AbpTenantManagement::Edit' : 'AbpTenantManagement::NewTenant')\r\n | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"tenantForm\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\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 abpClose type=\"button\" class=\"btn btn-secondary\">\r\n {{ 'AbpTenantManagement::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"tenantForm?.invalid\">{{\r\n 'AbpTenantManagement::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-feature-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'T' },\r\n providerKey: { value: providerKey },\r\n visible: { value: visibleFeatures, twoWay: true }\r\n },\r\n outputs: { visibleChange: $any(onVisibleFeaturesChange) },\r\n componentKey: featureManagementKey\r\n }\"\r\n [(visible)]=\"visibleFeatures\"\r\n providerName=\"T\"\r\n [providerKey]=\"providerKey\"\r\n>\r\n</abp-feature-management>\r\n", components: [{ type: i5__namespace.PageToolbarComponent, selector: "abp-page-toolbar", exportAs: ["abpPageToolbar"] }, { type: i5__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: i5__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: i6__namespace.FeatureManagementComponent, selector: "abp-feature-management", inputs: ["providerKey", "providerName", "visible"], outputs: ["visibleChange"], exportAs: ["abpFeatureManagement"] }], directives: [{ type: i4__namespace.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i7__namespace.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i4__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace.ModalCloseDirective, selector: "[abpClose]" }, { type: i1__namespace.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }], pipes: { "abpLocalization": i1__namespace.LocalizationPipe } });
|
|
145
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantsComponent, decorators: [{
|
|
146
|
-
type: i0.Component,
|
|
147
|
-
args: [{
|
|
148
|
-
selector: 'abp-tenants',
|
|
149
|
-
templateUrl: './tenants.component.html',
|
|
150
|
-
providers: [
|
|
151
|
-
i1.ListService,
|
|
152
|
-
{
|
|
153
|
-
provide: i5.EXTENSIONS_IDENTIFIER,
|
|
154
|
-
useValue: "TenantManagement.TenantsComponent" /* Tenants */,
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
}]
|
|
158
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.ListService }, { type: i0__namespace.Injector }, { type: i2__namespace.ConfirmationService }, { type: i3__namespace.TenantService }, { type: i4__namespace.FormBuilder }]; } });
|
|
159
|
-
|
|
160
|
-
var DEFAULT_TENANTS_ENTITY_ACTIONS = i5.EntityAction.createMany([
|
|
161
|
-
{
|
|
162
|
-
text: 'AbpTenantManagement::Edit',
|
|
163
|
-
action: function (data) {
|
|
164
|
-
var component = data.getInjected(TenantsComponent);
|
|
165
|
-
component.editTenant(data.record.id);
|
|
166
|
-
},
|
|
167
|
-
permission: 'AbpTenantManagement.Tenants.Update',
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
text: 'AbpTenantManagement::Permission:ManageFeatures',
|
|
171
|
-
action: function (data) {
|
|
172
|
-
var component = data.getInjected(TenantsComponent);
|
|
173
|
-
component.openFeaturesModal(data.record.id);
|
|
174
|
-
},
|
|
175
|
-
permission: 'AbpTenantManagement.Tenants.ManageFeatures',
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
text: 'AbpTenantManagement::Delete',
|
|
179
|
-
action: function (data) {
|
|
180
|
-
var component = data.getInjected(TenantsComponent);
|
|
181
|
-
component.delete(data.record.id, data.record.name);
|
|
182
|
-
},
|
|
183
|
-
permission: 'AbpTenantManagement.Tenants.Delete',
|
|
184
|
-
},
|
|
185
|
-
]);
|
|
186
|
-
|
|
187
|
-
var DEFAULT_TENANTS_ENTITY_PROPS = i5.EntityProp.createMany([
|
|
188
|
-
{
|
|
189
|
-
type: "string" /* String */,
|
|
190
|
-
name: 'name',
|
|
191
|
-
displayName: 'AbpTenantManagement::TenantName',
|
|
192
|
-
sortable: true,
|
|
193
|
-
},
|
|
194
|
-
]);
|
|
195
|
-
|
|
196
|
-
/*! *****************************************************************************
|
|
197
|
-
Copyright (c) Microsoft Corporation.
|
|
198
|
-
|
|
199
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
200
|
-
purpose with or without fee is hereby granted.
|
|
201
|
-
|
|
202
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
203
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
204
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
205
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
206
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
207
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
208
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
209
|
-
***************************************************************************** */
|
|
210
|
-
/* global Reflect, Promise */
|
|
211
|
-
var extendStatics = function (d, b) {
|
|
212
|
-
extendStatics = Object.setPrototypeOf ||
|
|
213
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
214
|
-
function (d, b) { for (var p in b)
|
|
215
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
216
|
-
d[p] = b[p]; };
|
|
217
|
-
return extendStatics(d, b);
|
|
218
|
-
};
|
|
219
|
-
function __extends(d, b) {
|
|
220
|
-
if (typeof b !== "function" && b !== null)
|
|
221
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
222
|
-
extendStatics(d, b);
|
|
223
|
-
function __() { this.constructor = d; }
|
|
224
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
225
|
-
}
|
|
226
|
-
var __assign = function () {
|
|
227
|
-
__assign = Object.assign || function __assign(t) {
|
|
228
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
229
|
-
s = arguments[i];
|
|
230
|
-
for (var p in s)
|
|
231
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
232
|
-
t[p] = s[p];
|
|
233
|
-
}
|
|
234
|
-
return t;
|
|
235
|
-
};
|
|
236
|
-
return __assign.apply(this, arguments);
|
|
237
|
-
};
|
|
238
|
-
function __rest(s, e) {
|
|
239
|
-
var t = {};
|
|
240
|
-
for (var p in s)
|
|
241
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
242
|
-
t[p] = s[p];
|
|
243
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
244
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
245
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
246
|
-
t[p[i]] = s[p[i]];
|
|
247
|
-
}
|
|
248
|
-
return t;
|
|
249
|
-
}
|
|
250
|
-
function __decorate(decorators, target, key, desc) {
|
|
251
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
252
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
253
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
254
|
-
else
|
|
255
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
256
|
-
if (d = decorators[i])
|
|
257
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
258
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
259
|
-
}
|
|
260
|
-
function __param(paramIndex, decorator) {
|
|
261
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
262
|
-
}
|
|
263
|
-
function __metadata(metadataKey, metadataValue) {
|
|
264
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
265
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
266
|
-
}
|
|
267
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
268
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
269
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
270
|
-
function fulfilled(value) { try {
|
|
271
|
-
step(generator.next(value));
|
|
272
|
-
}
|
|
273
|
-
catch (e) {
|
|
274
|
-
reject(e);
|
|
275
|
-
} }
|
|
276
|
-
function rejected(value) { try {
|
|
277
|
-
step(generator["throw"](value));
|
|
278
|
-
}
|
|
279
|
-
catch (e) {
|
|
280
|
-
reject(e);
|
|
281
|
-
} }
|
|
282
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
283
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
function __generator(thisArg, body) {
|
|
287
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
288
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
289
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
290
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
291
|
-
function step(op) {
|
|
292
|
-
if (f)
|
|
293
|
-
throw new TypeError("Generator is already executing.");
|
|
294
|
-
while (_)
|
|
295
|
-
try {
|
|
296
|
-
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)
|
|
297
|
-
return t;
|
|
298
|
-
if (y = 0, t)
|
|
299
|
-
op = [op[0] & 2, t.value];
|
|
300
|
-
switch (op[0]) {
|
|
301
|
-
case 0:
|
|
302
|
-
case 1:
|
|
303
|
-
t = op;
|
|
304
|
-
break;
|
|
305
|
-
case 4:
|
|
306
|
-
_.label++;
|
|
307
|
-
return { value: op[1], done: false };
|
|
308
|
-
case 5:
|
|
309
|
-
_.label++;
|
|
310
|
-
y = op[1];
|
|
311
|
-
op = [0];
|
|
312
|
-
continue;
|
|
313
|
-
case 7:
|
|
314
|
-
op = _.ops.pop();
|
|
315
|
-
_.trys.pop();
|
|
316
|
-
continue;
|
|
317
|
-
default:
|
|
318
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
319
|
-
_ = 0;
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
323
|
-
_.label = op[1];
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
327
|
-
_.label = t[1];
|
|
328
|
-
t = op;
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
if (t && _.label < t[2]) {
|
|
332
|
-
_.label = t[2];
|
|
333
|
-
_.ops.push(op);
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
if (t[2])
|
|
337
|
-
_.ops.pop();
|
|
338
|
-
_.trys.pop();
|
|
339
|
-
continue;
|
|
340
|
-
}
|
|
341
|
-
op = body.call(thisArg, _);
|
|
342
|
-
}
|
|
343
|
-
catch (e) {
|
|
344
|
-
op = [6, e];
|
|
345
|
-
y = 0;
|
|
346
|
-
}
|
|
347
|
-
finally {
|
|
348
|
-
f = t = 0;
|
|
349
|
-
}
|
|
350
|
-
if (op[0] & 5)
|
|
351
|
-
throw op[1];
|
|
352
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
356
|
-
if (k2 === undefined)
|
|
357
|
-
k2 = k;
|
|
358
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
359
|
-
}) : (function (o, m, k, k2) {
|
|
360
|
-
if (k2 === undefined)
|
|
361
|
-
k2 = k;
|
|
362
|
-
o[k2] = m[k];
|
|
363
|
-
});
|
|
364
|
-
function __exportStar(m, o) {
|
|
365
|
-
for (var p in m)
|
|
366
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
367
|
-
__createBinding(o, m, p);
|
|
368
|
-
}
|
|
369
|
-
function __values(o) {
|
|
370
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
371
|
-
if (m)
|
|
372
|
-
return m.call(o);
|
|
373
|
-
if (o && typeof o.length === "number")
|
|
374
|
-
return {
|
|
375
|
-
next: function () {
|
|
376
|
-
if (o && i >= o.length)
|
|
377
|
-
o = void 0;
|
|
378
|
-
return { value: o && o[i++], done: !o };
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
382
|
-
}
|
|
383
|
-
function __read(o, n) {
|
|
384
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
385
|
-
if (!m)
|
|
386
|
-
return o;
|
|
387
|
-
var i = m.call(o), r, ar = [], e;
|
|
388
|
-
try {
|
|
389
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
390
|
-
ar.push(r.value);
|
|
391
|
-
}
|
|
392
|
-
catch (error) {
|
|
393
|
-
e = { error: error };
|
|
394
|
-
}
|
|
395
|
-
finally {
|
|
396
|
-
try {
|
|
397
|
-
if (r && !r.done && (m = i["return"]))
|
|
398
|
-
m.call(i);
|
|
399
|
-
}
|
|
400
|
-
finally {
|
|
401
|
-
if (e)
|
|
402
|
-
throw e.error;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
return ar;
|
|
406
|
-
}
|
|
407
|
-
/** @deprecated */
|
|
408
|
-
function __spread() {
|
|
409
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
410
|
-
ar = ar.concat(__read(arguments[i]));
|
|
411
|
-
return ar;
|
|
412
|
-
}
|
|
413
|
-
/** @deprecated */
|
|
414
|
-
function __spreadArrays() {
|
|
415
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
416
|
-
s += arguments[i].length;
|
|
417
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
418
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
419
|
-
r[k] = a[j];
|
|
420
|
-
return r;
|
|
421
|
-
}
|
|
422
|
-
function __spreadArray(to, from, pack) {
|
|
423
|
-
if (pack || arguments.length === 2)
|
|
424
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
425
|
-
if (ar || !(i in from)) {
|
|
426
|
-
if (!ar)
|
|
427
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
428
|
-
ar[i] = from[i];
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
432
|
-
}
|
|
433
|
-
function __await(v) {
|
|
434
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
435
|
-
}
|
|
436
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
437
|
-
if (!Symbol.asyncIterator)
|
|
438
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
439
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
440
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
441
|
-
function verb(n) { if (g[n])
|
|
442
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
443
|
-
function resume(n, v) { try {
|
|
444
|
-
step(g[n](v));
|
|
445
|
-
}
|
|
446
|
-
catch (e) {
|
|
447
|
-
settle(q[0][3], e);
|
|
448
|
-
} }
|
|
449
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
450
|
-
function fulfill(value) { resume("next", value); }
|
|
451
|
-
function reject(value) { resume("throw", value); }
|
|
452
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
453
|
-
resume(q[0][0], q[0][1]); }
|
|
454
|
-
}
|
|
455
|
-
function __asyncDelegator(o) {
|
|
456
|
-
var i, p;
|
|
457
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
458
|
-
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; }
|
|
459
|
-
}
|
|
460
|
-
function __asyncValues(o) {
|
|
461
|
-
if (!Symbol.asyncIterator)
|
|
462
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
463
|
-
var m = o[Symbol.asyncIterator], i;
|
|
464
|
-
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);
|
|
465
|
-
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); }); }; }
|
|
466
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
467
|
-
}
|
|
468
|
-
function __makeTemplateObject(cooked, raw) {
|
|
469
|
-
if (Object.defineProperty) {
|
|
470
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
cooked.raw = raw;
|
|
474
|
-
}
|
|
475
|
-
return cooked;
|
|
476
|
-
}
|
|
477
|
-
;
|
|
478
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
479
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
480
|
-
}) : function (o, v) {
|
|
481
|
-
o["default"] = v;
|
|
482
|
-
};
|
|
483
|
-
function __importStar(mod) {
|
|
484
|
-
if (mod && mod.__esModule)
|
|
485
|
-
return mod;
|
|
486
|
-
var result = {};
|
|
487
|
-
if (mod != null)
|
|
488
|
-
for (var k in mod)
|
|
489
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
490
|
-
__createBinding(result, mod, k);
|
|
491
|
-
__setModuleDefault(result, mod);
|
|
492
|
-
return result;
|
|
493
|
-
}
|
|
494
|
-
function __importDefault(mod) {
|
|
495
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
496
|
-
}
|
|
497
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
498
|
-
if (kind === "a" && !f)
|
|
499
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
500
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
501
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
502
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
503
|
-
}
|
|
504
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
505
|
-
if (kind === "m")
|
|
506
|
-
throw new TypeError("Private method is not writable");
|
|
507
|
-
if (kind === "a" && !f)
|
|
508
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
509
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
510
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
511
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
var DEFAULT_TENANTS_CREATE_FORM_PROPS = i5.FormProp.createMany([
|
|
515
|
-
{
|
|
516
|
-
type: "string" /* String */,
|
|
517
|
-
name: 'name',
|
|
518
|
-
id: 'name',
|
|
519
|
-
displayName: 'AbpTenantManagement::TenantName',
|
|
520
|
-
validators: function () { return [i4.Validators.required, i4.Validators.maxLength(256)]; },
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
type: "email" /* Email */,
|
|
524
|
-
name: 'adminEmailAddress',
|
|
525
|
-
displayName: 'AbpTenantManagement::DisplayName:AdminEmailAddress',
|
|
526
|
-
id: 'admin-email-address',
|
|
527
|
-
validators: function () { return [i4.Validators.required, i4.Validators.maxLength(256), i4.Validators.email]; },
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
type: "password" /* Password */,
|
|
531
|
-
name: 'adminPassword',
|
|
532
|
-
displayName: 'AbpTenantManagement::DisplayName:AdminPassword',
|
|
533
|
-
id: 'admin-password',
|
|
534
|
-
autocomplete: 'new-password',
|
|
535
|
-
validators: function (data) { return __spreadArray([i4.Validators.required], __read(i2.getPasswordValidators({ get: data.getInjected }))); },
|
|
536
|
-
},
|
|
537
|
-
]);
|
|
538
|
-
var DEFAULT_TENANTS_EDIT_FORM_PROPS = DEFAULT_TENANTS_CREATE_FORM_PROPS.slice(0, 1);
|
|
539
|
-
|
|
540
|
-
var DEFAULT_TENANTS_TOOLBAR_ACTIONS = i5.ToolbarAction.createMany([
|
|
541
|
-
{
|
|
542
|
-
text: 'AbpTenantManagement::ManageHostFeatures',
|
|
543
|
-
action: function (data) {
|
|
544
|
-
var component = data.getInjected(TenantsComponent);
|
|
545
|
-
component.openFeaturesModal('');
|
|
546
|
-
},
|
|
547
|
-
permission: 'FeatureManagement.ManageHostFeatures',
|
|
548
|
-
icon: 'fa fa-cog',
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
text: 'AbpTenantManagement::NewTenant',
|
|
552
|
-
action: function (data) {
|
|
553
|
-
var component = data.getInjected(TenantsComponent);
|
|
554
|
-
component.addTenant();
|
|
555
|
-
},
|
|
556
|
-
permission: 'AbpTenantManagement.Tenants.Create',
|
|
557
|
-
icon: 'fa fa-plus',
|
|
558
|
-
},
|
|
559
|
-
]);
|
|
560
|
-
|
|
561
|
-
var _a, _b, _c, _d, _e;
|
|
562
|
-
var DEFAULT_TENANT_MANAGEMENT_ENTITY_ACTIONS = (_a = {},
|
|
563
|
-
_a["TenantManagement.TenantsComponent" /* Tenants */] = DEFAULT_TENANTS_ENTITY_ACTIONS,
|
|
564
|
-
_a);
|
|
565
|
-
var DEFAULT_TENANT_MANAGEMENT_TOOLBAR_ACTIONS = (_b = {},
|
|
566
|
-
_b["TenantManagement.TenantsComponent" /* Tenants */] = DEFAULT_TENANTS_TOOLBAR_ACTIONS,
|
|
567
|
-
_b);
|
|
568
|
-
var DEFAULT_TENANT_MANAGEMENT_ENTITY_PROPS = (_c = {},
|
|
569
|
-
_c["TenantManagement.TenantsComponent" /* Tenants */] = DEFAULT_TENANTS_ENTITY_PROPS,
|
|
570
|
-
_c);
|
|
571
|
-
var DEFAULT_TENANT_MANAGEMENT_CREATE_FORM_PROPS = (_d = {},
|
|
572
|
-
_d["TenantManagement.TenantsComponent" /* Tenants */] = DEFAULT_TENANTS_CREATE_FORM_PROPS,
|
|
573
|
-
_d);
|
|
574
|
-
var DEFAULT_TENANT_MANAGEMENT_EDIT_FORM_PROPS = (_e = {},
|
|
575
|
-
_e["TenantManagement.TenantsComponent" /* Tenants */] = DEFAULT_TENANTS_EDIT_FORM_PROPS,
|
|
576
|
-
_e);
|
|
577
|
-
var TENANT_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS = new i0.InjectionToken('TENANT_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS');
|
|
578
|
-
var TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS = new i0.InjectionToken('TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS');
|
|
579
|
-
var TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS = new i0.InjectionToken('TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS');
|
|
580
|
-
var TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS = new i0.InjectionToken('TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS');
|
|
581
|
-
var TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS = new i0.InjectionToken('TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS');
|
|
582
|
-
|
|
583
|
-
var TenantManagementExtensionsGuard = /** @class */ (function () {
|
|
584
|
-
function TenantManagementExtensionsGuard(injector) {
|
|
585
|
-
this.injector = injector;
|
|
586
|
-
}
|
|
587
|
-
TenantManagementExtensionsGuard.prototype.canActivate = function () {
|
|
588
|
-
var extensions = this.injector.get(i5.ExtensionsService);
|
|
589
|
-
var actionContributors = this.injector.get(TENANT_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, null) || {};
|
|
590
|
-
var toolbarContributors = this.injector.get(TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
|
|
591
|
-
var propContributors = this.injector.get(TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
592
|
-
var createFormContributors = this.injector.get(TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
593
|
-
var editFormContributors = this.injector.get(TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
594
|
-
var configState = this.injector.get(i1.ConfigStateService);
|
|
595
|
-
return i5.getObjectExtensionEntitiesFromStore(configState, 'TenantManagement').pipe(operators.map(function (entities) {
|
|
596
|
-
var _a;
|
|
597
|
-
return (_a = {},
|
|
598
|
-
_a["TenantManagement.TenantsComponent" /* Tenants */] = entities.Tenant,
|
|
599
|
-
_a);
|
|
600
|
-
}), i5.mapEntitiesToContributors(configState, 'TenantManagement'), operators.tap(function (objectExtensionContributors) {
|
|
601
|
-
i5.mergeWithDefaultActions(extensions.entityActions, DEFAULT_TENANT_MANAGEMENT_ENTITY_ACTIONS, actionContributors);
|
|
602
|
-
i5.mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_TENANT_MANAGEMENT_TOOLBAR_ACTIONS, toolbarContributors);
|
|
603
|
-
i5.mergeWithDefaultProps(extensions.entityProps, DEFAULT_TENANT_MANAGEMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
604
|
-
i5.mergeWithDefaultProps(extensions.createFormProps, DEFAULT_TENANT_MANAGEMENT_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
|
|
605
|
-
i5.mergeWithDefaultProps(extensions.editFormProps, DEFAULT_TENANT_MANAGEMENT_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
606
|
-
}), operators.mapTo(true));
|
|
607
|
-
};
|
|
608
|
-
return TenantManagementExtensionsGuard;
|
|
609
|
-
}());
|
|
610
|
-
TenantManagementExtensionsGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementExtensionsGuard, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
611
|
-
TenantManagementExtensionsGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementExtensionsGuard });
|
|
612
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementExtensionsGuard, decorators: [{
|
|
613
|
-
type: i0.Injectable
|
|
614
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
615
|
-
|
|
616
|
-
var routes = [
|
|
617
|
-
{ path: '', redirectTo: 'tenants', pathMatch: 'full' },
|
|
618
|
-
{
|
|
619
|
-
path: '',
|
|
620
|
-
component: i1.RouterOutletComponent,
|
|
621
|
-
canActivate: [i1.AuthGuard, i1.PermissionGuard, TenantManagementExtensionsGuard],
|
|
622
|
-
children: [
|
|
623
|
-
{
|
|
624
|
-
path: 'tenants',
|
|
625
|
-
component: i1.ReplaceableRouteContainerComponent,
|
|
626
|
-
data: {
|
|
627
|
-
requiredPolicy: 'AbpTenantManagement.Tenants',
|
|
628
|
-
replaceableComponent: {
|
|
629
|
-
key: "TenantManagement.TenantsComponent" /* Tenants */,
|
|
630
|
-
defaultComponent: TenantsComponent,
|
|
631
|
-
},
|
|
632
|
-
},
|
|
633
|
-
},
|
|
634
|
-
],
|
|
635
|
-
},
|
|
636
|
-
];
|
|
637
|
-
var TenantManagementRoutingModule = /** @class */ (function () {
|
|
638
|
-
function TenantManagementRoutingModule() {
|
|
639
|
-
}
|
|
640
|
-
return TenantManagementRoutingModule;
|
|
641
|
-
}());
|
|
642
|
-
TenantManagementRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
643
|
-
TenantManagementRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementRoutingModule, imports: [i1__namespace$1.RouterModule], exports: [i1$1.RouterModule] });
|
|
644
|
-
TenantManagementRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementRoutingModule, imports: [[i1$1.RouterModule.forChild(routes)], i1$1.RouterModule] });
|
|
645
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementRoutingModule, decorators: [{
|
|
646
|
-
type: i0.NgModule,
|
|
647
|
-
args: [{
|
|
648
|
-
imports: [i1$1.RouterModule.forChild(routes)],
|
|
649
|
-
exports: [i1$1.RouterModule],
|
|
650
|
-
}]
|
|
651
|
-
}] });
|
|
652
|
-
|
|
653
|
-
var TenantManagementModule = /** @class */ (function () {
|
|
654
|
-
function TenantManagementModule() {
|
|
655
|
-
}
|
|
656
|
-
TenantManagementModule.forChild = function (options) {
|
|
657
|
-
if (options === void 0) { options = {}; }
|
|
658
|
-
return {
|
|
659
|
-
ngModule: TenantManagementModule,
|
|
660
|
-
providers: [
|
|
661
|
-
{
|
|
662
|
-
provide: TENANT_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS,
|
|
663
|
-
useValue: options.entityActionContributors,
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
provide: TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
667
|
-
useValue: options.toolbarActionContributors,
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
provide: TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS,
|
|
671
|
-
useValue: options.entityPropContributors,
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
provide: TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS,
|
|
675
|
-
useValue: options.createFormPropContributors,
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
provide: TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS,
|
|
679
|
-
useValue: options.editFormPropContributors,
|
|
680
|
-
},
|
|
681
|
-
TenantManagementExtensionsGuard,
|
|
682
|
-
],
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
TenantManagementModule.forLazy = function (options) {
|
|
686
|
-
if (options === void 0) { options = {}; }
|
|
687
|
-
return new i1.LazyModuleFactory(TenantManagementModule.forChild(options));
|
|
688
|
-
};
|
|
689
|
-
return TenantManagementModule;
|
|
690
|
-
}());
|
|
691
|
-
TenantManagementModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
692
|
-
TenantManagementModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementModule, declarations: [TenantsComponent], imports: [TenantManagementRoutingModule,
|
|
693
|
-
i7.NgxValidateCoreModule,
|
|
694
|
-
i1.CoreModule,
|
|
695
|
-
i2.ThemeSharedModule,
|
|
696
|
-
ngBootstrap.NgbDropdownModule,
|
|
697
|
-
i6.FeatureManagementModule,
|
|
698
|
-
i5.UiExtensionsModule], exports: [TenantsComponent] });
|
|
699
|
-
TenantManagementModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementModule, imports: [[
|
|
700
|
-
TenantManagementRoutingModule,
|
|
701
|
-
i7.NgxValidateCoreModule,
|
|
702
|
-
i1.CoreModule,
|
|
703
|
-
i2.ThemeSharedModule,
|
|
704
|
-
ngBootstrap.NgbDropdownModule,
|
|
705
|
-
i6.FeatureManagementModule,
|
|
706
|
-
i5.UiExtensionsModule,
|
|
707
|
-
]] });
|
|
708
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TenantManagementModule, decorators: [{
|
|
709
|
-
type: i0.NgModule,
|
|
710
|
-
args: [{
|
|
711
|
-
declarations: [TenantsComponent],
|
|
712
|
-
exports: [TenantsComponent],
|
|
713
|
-
imports: [
|
|
714
|
-
TenantManagementRoutingModule,
|
|
715
|
-
i7.NgxValidateCoreModule,
|
|
716
|
-
i1.CoreModule,
|
|
717
|
-
i2.ThemeSharedModule,
|
|
718
|
-
ngBootstrap.NgbDropdownModule,
|
|
719
|
-
i6.FeatureManagementModule,
|
|
720
|
-
i5.UiExtensionsModule,
|
|
721
|
-
],
|
|
722
|
-
}]
|
|
723
|
-
}] });
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Generated bundle index. Do not edit.
|
|
727
|
-
*/
|
|
728
|
-
|
|
729
|
-
exports.DEFAULT_TENANT_MANAGEMENT_CREATE_FORM_PROPS = DEFAULT_TENANT_MANAGEMENT_CREATE_FORM_PROPS;
|
|
730
|
-
exports.DEFAULT_TENANT_MANAGEMENT_EDIT_FORM_PROPS = DEFAULT_TENANT_MANAGEMENT_EDIT_FORM_PROPS;
|
|
731
|
-
exports.DEFAULT_TENANT_MANAGEMENT_ENTITY_ACTIONS = DEFAULT_TENANT_MANAGEMENT_ENTITY_ACTIONS;
|
|
732
|
-
exports.DEFAULT_TENANT_MANAGEMENT_ENTITY_PROPS = DEFAULT_TENANT_MANAGEMENT_ENTITY_PROPS;
|
|
733
|
-
exports.DEFAULT_TENANT_MANAGEMENT_TOOLBAR_ACTIONS = DEFAULT_TENANT_MANAGEMENT_TOOLBAR_ACTIONS;
|
|
734
|
-
exports.TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS = TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS;
|
|
735
|
-
exports.TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS = TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS;
|
|
736
|
-
exports.TENANT_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS = TENANT_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS;
|
|
737
|
-
exports.TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS = TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS;
|
|
738
|
-
exports.TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS = TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS;
|
|
739
|
-
exports.TenantManagementExtensionsGuard = TenantManagementExtensionsGuard;
|
|
740
|
-
exports.TenantManagementModule = TenantManagementModule;
|
|
741
|
-
exports.TenantsComponent = TenantsComponent;
|
|
742
|
-
|
|
743
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
744
|
-
|
|
745
|
-
}));
|
|
746
|
-
//# sourceMappingURL=abp-ng.tenant-management.umd.js.map
|