mirror of https://github.com/abpframework/abp.git
67 changed files with 2600 additions and 78 deletions
@ -0,0 +1 @@ |
|||
<h1> @abp/ng.feature-management </h1> |
|||
@ -0,0 +1,10 @@ |
|||
/** |
|||
* Generated bundle index. Do not edit. |
|||
*/ |
|||
export * from './public-api'; |
|||
export { GetFeatures as ɵe, UpdateFeatures as ɵf } from './lib/actions/feature-management.actions'; |
|||
export { FeatureManagementComponent as ɵa } from './lib/components/feature-management/feature-management.component'; |
|||
export { FeatureManagement as ɵg } from './lib/models'; |
|||
export { FeatureManagementService as ɵd } from './lib/services/feature-management.service'; |
|||
export { FeatureManagementState as ɵb } from './lib/states'; |
|||
export { FeatureManagementState as ɵc } from './lib/states/feature-management.state'; |
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,596 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@angular/core'), require('@ngxs/store'), require('rxjs'), require('rxjs/operators'), require('@angular/forms')) : |
|||
typeof define === 'function' && define.amd ? define('@abp/ng.feature-management', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@angular/core', '@ngxs/store', 'rxjs', 'rxjs/operators', '@angular/forms'], factory) : |
|||
(global = global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng['feature-management'] = {}), global.ng_core, global.ng_theme_shared, global.ng.core, global.store, global.rxjs, global.rxjs.operators, global.ng.forms)); |
|||
}(this, function (exports, ng_core, ng_theme_shared, core, store, rxjs, operators, forms) { 'use strict'; |
|||
|
|||
/*! ***************************************************************************** |
|||
Copyright (c) Microsoft Corporation. All rights reserved. |
|||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use |
|||
this file except in compliance with the License. You may obtain a copy of the |
|||
License at http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED |
|||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
|||
MERCHANTABLITY OR NON-INFRINGEMENT. |
|||
|
|||
See the Apache Version 2.0 License for specific language governing permissions |
|||
and limitations under the License. |
|||
***************************************************************************** */ |
|||
/* global Reflect, Promise */ |
|||
|
|||
var extendStatics = function(d, b) { |
|||
extendStatics = Object.setPrototypeOf || |
|||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
|||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; |
|||
return extendStatics(d, b); |
|||
}; |
|||
|
|||
function __extends(d, b) { |
|||
extendStatics(d, b); |
|||
function __() { this.constructor = d; } |
|||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
|||
} |
|||
|
|||
var __assign = function() { |
|||
__assign = Object.assign || function __assign(t) { |
|||
for (var s, i = 1, n = arguments.length; i < n; i++) { |
|||
s = arguments[i]; |
|||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; |
|||
} |
|||
return t; |
|||
}; |
|||
return __assign.apply(this, arguments); |
|||
}; |
|||
|
|||
function __rest(s, e) { |
|||
var t = {}; |
|||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) |
|||
t[p] = s[p]; |
|||
if (s != null && typeof Object.getOwnPropertySymbols === "function") |
|||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { |
|||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) |
|||
t[p[i]] = s[p[i]]; |
|||
} |
|||
return t; |
|||
} |
|||
|
|||
function __decorate(decorators, target, key, desc) { |
|||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
|||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
|||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
|||
return c > 3 && r && Object.defineProperty(target, key, r), r; |
|||
} |
|||
|
|||
function __param(paramIndex, decorator) { |
|||
return function (target, key) { decorator(target, key, paramIndex); } |
|||
} |
|||
|
|||
function __metadata(metadataKey, metadataValue) { |
|||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); |
|||
} |
|||
|
|||
function __awaiter(thisArg, _arguments, P, generator) { |
|||
return new (P || (P = Promise))(function (resolve, reject) { |
|||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } |
|||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } |
|||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } |
|||
step((generator = generator.apply(thisArg, _arguments || [])).next()); |
|||
}); |
|||
} |
|||
|
|||
function __generator(thisArg, body) { |
|||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
|||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
|||
function verb(n) { return function (v) { return step([n, v]); }; } |
|||
function step(op) { |
|||
if (f) throw new TypeError("Generator is already executing."); |
|||
while (_) try { |
|||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
|||
if (y = 0, t) op = [op[0] & 2, t.value]; |
|||
switch (op[0]) { |
|||
case 0: case 1: t = op; break; |
|||
case 4: _.label++; return { value: op[1], done: false }; |
|||
case 5: _.label++; y = op[1]; op = [0]; continue; |
|||
case 7: op = _.ops.pop(); _.trys.pop(); continue; |
|||
default: |
|||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } |
|||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } |
|||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } |
|||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } |
|||
if (t[2]) _.ops.pop(); |
|||
_.trys.pop(); continue; |
|||
} |
|||
op = body.call(thisArg, _); |
|||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } |
|||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; |
|||
} |
|||
} |
|||
|
|||
function __exportStar(m, exports) { |
|||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; |
|||
} |
|||
|
|||
function __values(o) { |
|||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; |
|||
if (m) return m.call(o); |
|||
return { |
|||
next: function () { |
|||
if (o && i >= o.length) o = void 0; |
|||
return { value: o && o[i++], done: !o }; |
|||
} |
|||
}; |
|||
} |
|||
|
|||
function __read(o, n) { |
|||
var m = typeof Symbol === "function" && o[Symbol.iterator]; |
|||
if (!m) return o; |
|||
var i = m.call(o), r, ar = [], e; |
|||
try { |
|||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); |
|||
} |
|||
catch (error) { e = { error: error }; } |
|||
finally { |
|||
try { |
|||
if (r && !r.done && (m = i["return"])) m.call(i); |
|||
} |
|||
finally { if (e) throw e.error; } |
|||
} |
|||
return ar; |
|||
} |
|||
|
|||
function __spread() { |
|||
for (var ar = [], i = 0; i < arguments.length; i++) |
|||
ar = ar.concat(__read(arguments[i])); |
|||
return ar; |
|||
} |
|||
|
|||
function __spreadArrays() { |
|||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; |
|||
for (var r = Array(s), k = 0, i = 0; i < il; i++) |
|||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) |
|||
r[k] = a[j]; |
|||
return r; |
|||
}; |
|||
|
|||
function __await(v) { |
|||
return this instanceof __await ? (this.v = v, this) : new __await(v); |
|||
} |
|||
|
|||
function __asyncGenerator(thisArg, _arguments, generator) { |
|||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
|||
var g = generator.apply(thisArg, _arguments || []), i, q = []; |
|||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
|||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
|||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
|||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
|||
function fulfill(value) { resume("next", value); } |
|||
function reject(value) { resume("throw", value); } |
|||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
|||
} |
|||
|
|||
function __asyncDelegator(o) { |
|||
var i, p; |
|||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; |
|||
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; } |
|||
} |
|||
|
|||
function __asyncValues(o) { |
|||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
|||
var m = o[Symbol.asyncIterator], i; |
|||
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); |
|||
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); }); }; } |
|||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } |
|||
} |
|||
|
|||
function __makeTemplateObject(cooked, raw) { |
|||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } |
|||
return cooked; |
|||
}; |
|||
|
|||
function __importStar(mod) { |
|||
if (mod && mod.__esModule) return mod; |
|||
var result = {}; |
|||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; |
|||
result.default = mod; |
|||
return result; |
|||
} |
|||
|
|||
function __importDefault(mod) { |
|||
return (mod && mod.__esModule) ? mod : { default: mod }; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var GetFeatures = /** @class */ (function () { |
|||
function GetFeatures(payload) { |
|||
this.payload = payload; |
|||
} |
|||
GetFeatures.type = '[FeatureManagement] Get Features'; |
|||
return GetFeatures; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
GetFeatures.type; |
|||
/** @type {?} */ |
|||
GetFeatures.prototype.payload; |
|||
} |
|||
var UpdateFeatures = /** @class */ (function () { |
|||
function UpdateFeatures(payload) { |
|||
this.payload = payload; |
|||
} |
|||
UpdateFeatures.type = '[FeatureManagement] Update Features'; |
|||
return UpdateFeatures; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
UpdateFeatures.type; |
|||
/** @type {?} */ |
|||
UpdateFeatures.prototype.payload; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementService = /** @class */ (function () { |
|||
function FeatureManagementService(rest, store) { |
|||
this.rest = rest; |
|||
this.store = store; |
|||
} |
|||
/** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementService.prototype.getFeatures = /** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
function (params) { |
|||
/** @type {?} */ |
|||
var request = { |
|||
method: 'GET', |
|||
url: '/api/abp/features', |
|||
params: params, |
|||
}; |
|||
return this.rest.request(request); |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementService.prototype.updateFeatures = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features, providerKey = _a.providerKey, providerName = _a.providerName; |
|||
/** @type {?} */ |
|||
var request = { |
|||
method: 'PUT', |
|||
url: '/api/abp/features', |
|||
body: { features: features }, |
|||
params: { providerKey: providerKey, providerName: providerName }, |
|||
}; |
|||
return this.rest.request(request); |
|||
}; |
|||
FeatureManagementService.decorators = [ |
|||
{ type: core.Injectable, args: [{ |
|||
providedIn: 'root', |
|||
},] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementService.ctorParameters = function () { return [ |
|||
{ type: ng_core.RestService }, |
|||
{ type: store.Store } |
|||
]; }; |
|||
/** @nocollapse */ FeatureManagementService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function FeatureManagementService_Factory() { return new FeatureManagementService(core.ɵɵinject(ng_core.RestService), core.ɵɵinject(store.Store)); }, token: FeatureManagementService, providedIn: "root" }); |
|||
return FeatureManagementService; |
|||
}()); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.rest; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementState = /** @class */ (function () { |
|||
function FeatureManagementState(featureManagementService) { |
|||
this.featureManagementService = featureManagementService; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.getFeatures = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features; |
|||
return features; |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.prototype.getFeatures = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var patchState = _a.patchState; |
|||
var payload = _b.payload; |
|||
return this.featureManagementService.getFeatures(payload).pipe(operators.tap((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features; |
|||
return patchState({ |
|||
features: features, |
|||
}); |
|||
}))); |
|||
}; |
|||
/** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.prototype.updateFeatures = /** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_, _a) { |
|||
var payload = _a.payload; |
|||
return this.featureManagementService.updateFeatures(payload); |
|||
}; |
|||
__decorate([ |
|||
store.Action(GetFeatures), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, GetFeatures]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "getFeatures", null); |
|||
__decorate([ |
|||
store.Action(UpdateFeatures), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, UpdateFeatures]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "updateFeatures", null); |
|||
__decorate([ |
|||
store.Selector(), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState, "getFeatures", null); |
|||
FeatureManagementState = __decorate([ |
|||
store.State({ |
|||
name: 'FeatureManagementState', |
|||
defaults: (/** @type {?} */ ({ features: {} })), |
|||
}), |
|||
__metadata("design:paramtypes", [FeatureManagementService]) |
|||
], FeatureManagementState); |
|||
return FeatureManagementState; |
|||
}()); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementState.prototype.featureManagementService; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementComponent = /** @class */ (function () { |
|||
function FeatureManagementComponent(store) { |
|||
this.store = store; |
|||
this.visibleChange = new core.EventEmitter(); |
|||
this.modalBusy = false; |
|||
} |
|||
Object.defineProperty(FeatureManagementComponent.prototype, "visible", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this._visible; |
|||
}, |
|||
set: /** |
|||
* @param {?} value |
|||
* @return {?} |
|||
*/ |
|||
function (value) { |
|||
this._visible = value; |
|||
this.visibleChange.emit(value); |
|||
if (value) |
|||
this.openModal(); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.openModal = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
if (!this.providerKey || !this.providerName) { |
|||
throw new Error('Provider Key and Provider Name are required.'); |
|||
} |
|||
this.getFeatures(); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.getFeatures = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
this.store |
|||
.dispatch(new GetFeatures({ providerKey: this.providerKey, providerName: this.providerName })) |
|||
.pipe(operators.pluck('FeatureManagementState', 'features')) |
|||
.subscribe((/** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
function (features) { |
|||
_this.buildForm(features); |
|||
})); |
|||
}; |
|||
/** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.buildForm = /** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
function (features) { |
|||
/** @type {?} */ |
|||
var formGroupObj = {}; |
|||
for (var i = 0; i < features.length; i++) { |
|||
formGroupObj[i] = new forms.FormControl(features[i].value === 'false' ? null : features[i].value); |
|||
} |
|||
this.form = new forms.FormGroup(formGroupObj); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.save = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
this.modalBusy = true; |
|||
/** @type {?} */ |
|||
var features = this.store.selectSnapshot(FeatureManagementState.getFeatures); |
|||
features = features.map((/** |
|||
* @param {?} feature |
|||
* @param {?} i |
|||
* @return {?} |
|||
*/ |
|||
function (feature, i) { return ({ |
|||
name: feature.name, |
|||
value: !_this.form.value[i] || _this.form.value[i] === 'false' ? null : _this.form.value[i], |
|||
}); })); |
|||
this.store |
|||
.dispatch(new UpdateFeatures({ |
|||
providerKey: this.providerKey, |
|||
providerName: this.providerName, |
|||
features: features, |
|||
})) |
|||
.subscribe((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
_this.modalBusy = false; |
|||
_this.visible = false; |
|||
})); |
|||
}; |
|||
FeatureManagementComponent.decorators = [ |
|||
{ type: core.Component, args: [{ |
|||
selector: 'abp-feature-management', |
|||
template: "<abp-modal size=\"md\" [(visible)]=\"visible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpTenantManagement::Permission:ManageFeatures' | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form *ngIf=\"form\" (ngSubmit)=\"save()\" [formGroup]=\"form\">\n <div\n class=\"row my-3\"\n *ngFor=\"let feature of features$ | async; let i = index\"\n [ngSwitch]=\"feature.valueType.name\"\n >\n <div class=\"col-4\">{{ feature.name }}</div>\n <div class=\"col-8\" *ngSwitchCase=\"'ToggleStringValueType'\">\n <input type=\"checkbox\" name=\"feature.name\" [formControlName]=\"i\" />\n </div>\n <div class=\"col-8\" *ngSwitchCase=\"'FreeTextStringValueType'\">\n <input type=\"text\" name=\"feature.name\" [formControlName]=\"i\" />\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button #abpClose type=\"button\" class=\"btn btn-secondary\">\n {{ 'AbpFeatureManagement::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">\n {{ 'AbpFeatureManagement::Save' | abpLocalization }}\n </abp-button>\n </ng-template>\n</abp-modal>\n" |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementComponent.ctorParameters = function () { return [ |
|||
{ type: store.Store } |
|||
]; }; |
|||
FeatureManagementComponent.propDecorators = { |
|||
providerKey: [{ type: core.Input }], |
|||
providerName: [{ type: core.Input }], |
|||
visible: [{ type: core.Input }], |
|||
visibleChange: [{ type: core.Output }] |
|||
}; |
|||
__decorate([ |
|||
store.Select(FeatureManagementState.getFeatures), |
|||
__metadata("design:type", rxjs.Observable) |
|||
], FeatureManagementComponent.prototype, "features$", void 0); |
|||
return FeatureManagementComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.providerKey; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.providerName; |
|||
/** |
|||
* @type {?} |
|||
* @protected |
|||
*/ |
|||
FeatureManagementComponent.prototype._visible; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.visibleChange; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.features$; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.modalBusy; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.form; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementComponent.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementModule = /** @class */ (function () { |
|||
function FeatureManagementModule() { |
|||
} |
|||
FeatureManagementModule.decorators = [ |
|||
{ type: core.NgModule, args: [{ |
|||
declarations: [FeatureManagementComponent], |
|||
imports: [ng_core.CoreModule, ng_theme_shared.ThemeSharedModule, store.NgxsModule.forFeature([FeatureManagementState])], |
|||
exports: [FeatureManagementComponent], |
|||
},] } |
|||
]; |
|||
return FeatureManagementModule; |
|||
}()); |
|||
|
|||
exports.FeatureManagementComponent = FeatureManagementComponent; |
|||
exports.FeatureManagementModule = FeatureManagementModule; |
|||
exports.ɵa = FeatureManagementComponent; |
|||
exports.ɵb = FeatureManagementState; |
|||
exports.ɵc = FeatureManagementState; |
|||
exports.ɵd = FeatureManagementService; |
|||
exports.ɵe = GetFeatures; |
|||
exports.ɵf = UpdateFeatures; |
|||
|
|||
Object.defineProperty(exports, '__esModule', { value: true }); |
|||
|
|||
})); |
|||
//# sourceMappingURL=abp-ng.feature-management.umd.js.map
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,14 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** |
|||
* Generated bundle index. Do not edit. |
|||
*/ |
|||
export { FeatureManagementModule, FeatureManagementComponent } from './public-api'; |
|||
export { GetFeatures as ɵe, UpdateFeatures as ɵf } from './lib/actions/feature-management.actions'; |
|||
export { FeatureManagementComponent as ɵa } from './lib/components/feature-management/feature-management.component'; |
|||
export { FeatureManagementService as ɵd } from './lib/services/feature-management.service'; |
|||
export { FeatureManagementState as ɵb } from './lib/states'; |
|||
export { FeatureManagementState as ɵc } from './lib/states/feature-management.state'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJwLW5nLmZlYXR1cmUtbWFuYWdlbWVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcuZmVhdHVyZS1tYW5hZ2VtZW50LyIsInNvdXJjZXMiOlsiYWJwLW5nLmZlYXR1cmUtbWFuYWdlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0VBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxXQUFXLElBQUksRUFBRSxFQUFDLGNBQWMsSUFBSSxFQUFFLEVBQUMsTUFBTSwwQ0FBMEMsQ0FBQztBQUNoRyxPQUFPLEVBQUMsMEJBQTBCLElBQUksRUFBRSxFQUFDLE1BQU0sa0VBQWtFLENBQUM7QUFFbEgsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJDQUEyQyxDQUFDO0FBQ3pGLE9BQU8sRUFBQyxzQkFBc0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDMUQsT0FBTyxFQUFDLHNCQUFzQixJQUFJLEVBQUUsRUFBQyxNQUFNLHVDQUF1QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0dldEZlYXR1cmVzIGFzIMm1ZSxVcGRhdGVGZWF0dXJlcyBhcyDJtWZ9IGZyb20gJy4vbGliL2FjdGlvbnMvZmVhdHVyZS1tYW5hZ2VtZW50LmFjdGlvbnMnO1xuZXhwb3J0IHtGZWF0dXJlTWFuYWdlbWVudENvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvZmVhdHVyZS1tYW5hZ2VtZW50L2ZlYXR1cmUtbWFuYWdlbWVudC5jb21wb25lbnQnO1xuZXhwb3J0IHtGZWF0dXJlTWFuYWdlbWVudCBhcyDJtWd9IGZyb20gJy4vbGliL21vZGVscyc7XG5leHBvcnQge0ZlYXR1cmVNYW5hZ2VtZW50U2VydmljZSBhcyDJtWR9IGZyb20gJy4vbGliL3NlcnZpY2VzL2ZlYXR1cmUtbWFuYWdlbWVudC5zZXJ2aWNlJztcbmV4cG9ydCB7RmVhdHVyZU1hbmFnZW1lbnRTdGF0ZSBhcyDJtWJ9IGZyb20gJy4vbGliL3N0YXRlcyc7XG5leHBvcnQge0ZlYXR1cmVNYW5hZ2VtZW50U3RhdGUgYXMgybVjfSBmcm9tICcuL2xpYi9zdGF0ZXMvZmVhdHVyZS1tYW5hZ2VtZW50LnN0YXRlJzsiXX0=
|
|||
@ -0,0 +1,35 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export class GetFeatures { |
|||
/** |
|||
* @param {?} payload |
|||
*/ |
|||
constructor(payload) { |
|||
this.payload = payload; |
|||
} |
|||
} |
|||
GetFeatures.type = '[FeatureManagement] Get Features'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
GetFeatures.type; |
|||
/** @type {?} */ |
|||
GetFeatures.prototype.payload; |
|||
} |
|||
export class UpdateFeatures { |
|||
/** |
|||
* @param {?} payload |
|||
*/ |
|||
constructor(payload) { |
|||
this.payload = payload; |
|||
} |
|||
} |
|||
UpdateFeatures.type = '[FeatureManagement] Update Features'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
UpdateFeatures.type; |
|||
/** @type {?} */ |
|||
UpdateFeatures.prototype.payload; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50LmFjdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9hY3Rpb25zL2ZlYXR1cmUtbWFuYWdlbWVudC5hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxNQUFNLE9BQU8sV0FBVzs7OztJQUV0QixZQUFtQixPQUFtQztRQUFuQyxZQUFPLEdBQVAsT0FBTyxDQUE0QjtJQUFHLENBQUM7O0FBRDFDLGdCQUFJLEdBQUcsa0NBQWtDLENBQUM7OztJQUExRCxpQkFBMEQ7O0lBQzlDLDhCQUEwQzs7QUFHeEQsTUFBTSxPQUFPLGNBQWM7Ozs7SUFFekIsWUFBbUIsT0FBZ0U7UUFBaEUsWUFBTyxHQUFQLE9BQU8sQ0FBeUQ7SUFBRyxDQUFDOztBQUR2RSxtQkFBSSxHQUFHLHFDQUFxQyxDQUFDOzs7SUFBN0Qsb0JBQTZEOztJQUNqRCxpQ0FBdUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGZWF0dXJlTWFuYWdlbWVudCB9IGZyb20gJy4uL21vZGVscyc7XG5cbmV4cG9ydCBjbGFzcyBHZXRGZWF0dXJlcyB7XG4gIHN0YXRpYyByZWFkb25seSB0eXBlID0gJ1tGZWF0dXJlTWFuYWdlbWVudF0gR2V0IEZlYXR1cmVzJztcbiAgY29uc3RydWN0b3IocHVibGljIHBheWxvYWQ6IEZlYXR1cmVNYW5hZ2VtZW50LlByb3ZpZGVyKSB7fVxufVxuXG5leHBvcnQgY2xhc3MgVXBkYXRlRmVhdHVyZXMge1xuICBzdGF0aWMgcmVhZG9ubHkgdHlwZSA9ICdbRmVhdHVyZU1hbmFnZW1lbnRdIFVwZGF0ZSBGZWF0dXJlcyc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBwYXlsb2FkOiBGZWF0dXJlTWFuYWdlbWVudC5Qcm92aWRlciAmIEZlYXR1cmVNYW5hZ2VtZW50LkZlYXR1cmVzKSB7fVxufVxuIl19
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { GetFeatures, UpdateFeatures } from './feature-management.actions'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9hY3Rpb25zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSw0Q0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmVhdHVyZS1tYW5hZ2VtZW50LmFjdGlvbnMnO1xuIl19
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { FeatureManagementComponent } from './feature-management/feature-management.component'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSwyQ0FBYyxtREFBbUQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmVhdHVyZS1tYW5hZ2VtZW50L2ZlYXR1cmUtbWFuYWdlbWVudC5jb21wb25lbnQnO1xuIl19
|
|||
@ -0,0 +1,20 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { CoreModule } from '@abp/ng.core'; |
|||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { NgModule } from '@angular/core'; |
|||
import { FeatureManagementComponent } from './components/feature-management/feature-management.component'; |
|||
import { NgxsModule } from '@ngxs/store'; |
|||
import { FeatureManagementState } from './states/feature-management.state'; |
|||
export class FeatureManagementModule { |
|||
} |
|||
FeatureManagementModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: [FeatureManagementComponent], |
|||
imports: [CoreModule, ThemeSharedModule, NgxsModule.forFeature([FeatureManagementState])], |
|||
exports: [FeatureManagementComponent], |
|||
},] } |
|||
]; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcuZmVhdHVyZS1tYW5hZ2VtZW50LyIsInNvdXJjZXMiOlsibGliL2ZlYXR1cmUtbWFuYWdlbWVudC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDMUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsT0FBTyxFQUFF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M6IFtGZWF0dXJlTWFuYWdlbWVudENvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtDb3JlTW9kdWxlLCBUaGVtZVNoYXJlZE1vZHVsZSwgTmd4c01vZHVsZS5mb3JGZWF0dXJlKFtGZWF0dXJlTWFuYWdlbWVudFN0YXRlXSldLFxuICBleHBvcnRzOiBbRmVhdHVyZU1hbmFnZW1lbnRDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBGZWF0dXJlTWFuYWdlbWVudE1vZHVsZSB7fVxuIl19
|
|||
@ -0,0 +1,69 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export var FeatureManagement; |
|||
(function (FeatureManagement) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
FeatureManagement.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.features; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function ValueType() { } |
|||
FeatureManagement.ValueType = ValueType; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
ValueType.prototype.name; |
|||
/** @type {?} */ |
|||
ValueType.prototype.properties; |
|||
/** @type {?} */ |
|||
ValueType.prototype.validator; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function Feature() { } |
|||
FeatureManagement.Feature = Feature; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
Feature.prototype.name; |
|||
/** @type {?} */ |
|||
Feature.prototype.value; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.description; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.valueType; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.depth; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.parentName; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function Features() { } |
|||
FeatureManagement.Features = Features; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
Features.prototype.features; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function Provider() { } |
|||
FeatureManagement.Provider = Provider; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
Provider.prototype.providerName; |
|||
/** @type {?} */ |
|||
Provider.prototype.providerKey; |
|||
} |
|||
})(FeatureManagement || (FeatureManagement = {})); |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy5mZWF0dXJlLW1hbmFnZW1lbnQvIiwic291cmNlcyI6WyJsaWIvbW9kZWxzL2ZlYXR1cmUtbWFuYWdlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsTUFBTSxLQUFXLGlCQUFpQixDQTRCakM7QUE1QkQsV0FBaUIsaUJBQWlCOzs7O0lBQ2hDLG9CQUVDOzs7O1FBREMseUJBQW9COzs7OztJQUd0Qix3QkFJQzs7OztRQUhDLHlCQUFhOztRQUNiLCtCQUFtQjs7UUFDbkIsOEJBQWtCOzs7OztJQUdwQixzQkFPQzs7OztRQU5DLHVCQUFhOztRQUNiLHdCQUFjOztRQUNkLDhCQUFxQjs7UUFDckIsNEJBQXNCOztRQUN0Qix3QkFBZTs7UUFDZiw2QkFBb0I7Ozs7O0lBR3RCLHVCQUVDOzs7O1FBREMsNEJBQW9COzs7OztJQUd0Qix1QkFHQzs7OztRQUZDLGdDQUFxQjs7UUFDckIsK0JBQW9COztBQUV4QixDQUFDLEVBNUJnQixpQkFBaUIsS0FBakIsaUJBQWlCLFFBNEJqQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBuYW1lc3BhY2UgRmVhdHVyZU1hbmFnZW1lbnQge1xuICBleHBvcnQgaW50ZXJmYWNlIFN0YXRlIHtcbiAgICBmZWF0dXJlczogRmVhdHVyZVtdO1xuICB9XG5cbiAgZXhwb3J0IGludGVyZmFjZSBWYWx1ZVR5cGUge1xuICAgIG5hbWU6IHN0cmluZztcbiAgICBwcm9wZXJ0aWVzOiBvYmplY3Q7XG4gICAgdmFsaWRhdG9yOiBvYmplY3Q7XG4gIH1cblxuICBleHBvcnQgaW50ZXJmYWNlIEZlYXR1cmUge1xuICAgIG5hbWU6IHN0cmluZztcbiAgICB2YWx1ZTogc3RyaW5nO1xuICAgIGRlc2NyaXB0aW9uPzogc3RyaW5nO1xuICAgIHZhbHVlVHlwZT86IFZhbHVlVHlwZTtcbiAgICBkZXB0aD86IG51bWJlcjtcbiAgICBwYXJlbnROYW1lPzogc3RyaW5nO1xuICB9XG5cbiAgZXhwb3J0IGludGVyZmFjZSBGZWF0dXJlcyB7XG4gICAgZmVhdHVyZXM6IEZlYXR1cmVbXTtcbiAgfVxuXG4gIGV4cG9ydCBpbnRlcmZhY2UgUHJvdmlkZXIge1xuICAgIHByb3ZpZGVyTmFtZTogc3RyaW5nO1xuICAgIHByb3ZpZGVyS2V5OiBzdHJpbmc7XG4gIH1cbn1cbiJdfQ==
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export {} from './feature-management'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZlYXR1cmUtbWFuYWdlbWVudCc7XG4iXX0=
|
|||
@ -0,0 +1,71 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { Injectable } from '@angular/core'; |
|||
import { RestService } from '@abp/ng.core'; |
|||
import { Store } from '@ngxs/store'; |
|||
import * as i0 from "@angular/core"; |
|||
import * as i1 from "@abp/ng.core"; |
|||
import * as i2 from "@ngxs/store"; |
|||
export class FeatureManagementService { |
|||
/** |
|||
* @param {?} rest |
|||
* @param {?} store |
|||
*/ |
|||
constructor(rest, store) { |
|||
this.rest = rest; |
|||
this.store = store; |
|||
} |
|||
/** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
getFeatures(params) { |
|||
/** @type {?} */ |
|||
const request = { |
|||
method: 'GET', |
|||
url: '/api/abp/features', |
|||
params, |
|||
}; |
|||
return this.rest.request(request); |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
updateFeatures({ features, providerKey, providerName, }) { |
|||
/** @type {?} */ |
|||
const request = { |
|||
method: 'PUT', |
|||
url: '/api/abp/features', |
|||
body: { features }, |
|||
params: { providerKey, providerName }, |
|||
}; |
|||
return this.rest.request(request); |
|||
} |
|||
} |
|||
FeatureManagementService.decorators = [ |
|||
{ type: Injectable, args: [{ |
|||
providedIn: 'root', |
|||
},] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementService.ctorParameters = () => [ |
|||
{ type: RestService }, |
|||
{ type: Store } |
|||
]; |
|||
/** @nocollapse */ FeatureManagementService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function FeatureManagementService_Factory() { return new FeatureManagementService(i0.ɵɵinject(i1.RestService), i0.ɵɵinject(i2.Store)); }, token: FeatureManagementService, providedIn: "root" }); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.rest; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.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ICAgICAgcGFyYW1zLFxuICAgIH07XG4gICAgcmV0dXJuIHRoaXMucmVzdC5yZXF1ZXN0PEZlYXR1cmVNYW5hZ2VtZW50LlByb3ZpZGVyLCBGZWF0dXJlTWFuYWdlbWVudC5GZWF0dXJlcz4ocmVxdWVzdCk7XG4gIH1cblxuICB1cGRhdGVGZWF0dXJlcyh7XG4gICAgZmVhdHVyZXMsXG4gICAgcHJvdmlkZXJLZXksXG4gICAgcHJvdmlkZXJOYW1lLFxuICB9OiBGZWF0dXJlTWFuYWdlbWVudC5Qcm92aWRlciAmIEZlYXR1cmVNYW5hZ2VtZW50LkZlYXR1cmVzKTogT2JzZXJ2YWJsZTxudWxsPiB7XG4gICAgY29uc3QgcmVxdWVzdDogUmVzdC5SZXF1ZXN0PEZlYXR1cmVNYW5hZ2VtZW50LkZlYXR1cmVzPiA9IHtcbiAgICAgIG1ldGhvZDogJ1BVVCcsXG4gICAgICB1cmw6ICcvYXBpL2FicC9mZWF0dXJlcycsXG4gICAgICBib2R5OiB7IGZlYXR1cmVzIH0sXG4gICAgICBwYXJhbXM6IHsgcHJvdmlkZXJLZXksIHByb3ZpZGVyTmFtZSB9LFxuICAgIH07XG4gICAgcmV0dXJuIHRoaXMucmVzdC5yZXF1ZXN0PEZlYXR1cmVNYW5hZ2VtZW50LkZlYXR1cmVzLCBudWxsPihyZXF1ZXN0KTtcbiAgfVxufVxuIl19
|
|||
@ -0,0 +1,80 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import * as tslib_1 from "tslib"; |
|||
import { Action, Selector, State } from '@ngxs/store'; |
|||
import { tap } from 'rxjs/operators'; |
|||
import { GetFeatures, UpdateFeatures } from '../actions/feature-management.actions'; |
|||
import { FeatureManagementService } from '../services/feature-management.service'; |
|||
let FeatureManagementState = class FeatureManagementState { |
|||
/** |
|||
* @param {?} featureManagementService |
|||
*/ |
|||
constructor(featureManagementService) { |
|||
this.featureManagementService = featureManagementService; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
static getFeatures({ features }) { |
|||
return features; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
getFeatures({ patchState }, { payload }) { |
|||
return this.featureManagementService.getFeatures(payload).pipe(tap((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
({ features }) => patchState({ |
|||
features, |
|||
})))); |
|||
} |
|||
/** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
updateFeatures(_, { payload }) { |
|||
return this.featureManagementService.updateFeatures(payload); |
|||
} |
|||
}; |
|||
tslib_1.__decorate([ |
|||
Action(GetFeatures), |
|||
tslib_1.__metadata("design:type", Function), |
|||
tslib_1.__metadata("design:paramtypes", [Object, GetFeatures]), |
|||
tslib_1.__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "getFeatures", null); |
|||
tslib_1.__decorate([ |
|||
Action(UpdateFeatures), |
|||
tslib_1.__metadata("design:type", Function), |
|||
tslib_1.__metadata("design:paramtypes", [Object, UpdateFeatures]), |
|||
tslib_1.__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "updateFeatures", null); |
|||
tslib_1.__decorate([ |
|||
Selector(), |
|||
tslib_1.__metadata("design:type", Function), |
|||
tslib_1.__metadata("design:paramtypes", [Object]), |
|||
tslib_1.__metadata("design:returntype", void 0) |
|||
], FeatureManagementState, "getFeatures", null); |
|||
FeatureManagementState = tslib_1.__decorate([ |
|||
State({ |
|||
name: 'FeatureManagementState', |
|||
defaults: (/** @type {?} */ ({ features: {} })), |
|||
}), |
|||
tslib_1.__metadata("design:paramtypes", [FeatureManagementService]) |
|||
], FeatureManagementState); |
|||
export { FeatureManagementState }; |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |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B7XG4gICAgcmV0dXJuIHRoaXMuZmVhdHVyZU1hbmFnZW1lbnRTZXJ2aWNlLnVwZGF0ZUZlYXR1cmVzKHBheWxvYWQpO1xuICB9XG59XG4iXX0=
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { FeatureManagementState } from "./feature-management.state"; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9zdGF0ZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHVDQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZmVhdHVyZS1tYW5hZ2VtZW50LnN0YXRlXCI7XG4iXX0=
|
|||
@ -0,0 +1,7 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { FeatureManagementModule } from './lib/feature-management.module'; |
|||
export { FeatureManagementComponent } from './lib/components'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcuZmVhdHVyZS1tYW5hZ2VtZW50LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsd0NBQWMsaUNBQWlDLENBQUM7QUFDaEQsMkNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9mZWF0dXJlLW1hbmFnZW1lbnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMnO1xuIl19
|
|||
@ -0,0 +1,14 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** |
|||
* Generated bundle index. Do not edit. |
|||
*/ |
|||
export { FeatureManagementModule, FeatureManagementComponent } from './public-api'; |
|||
export { GetFeatures as ɵe, UpdateFeatures as ɵf } from './lib/actions/feature-management.actions'; |
|||
export { FeatureManagementComponent as ɵa } from './lib/components/feature-management/feature-management.component'; |
|||
export { FeatureManagementService as ɵd } from './lib/services/feature-management.service'; |
|||
export { FeatureManagementState as ɵb } from './lib/states'; |
|||
export { FeatureManagementState as ɵc } from './lib/states/feature-management.state'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJwLW5nLmZlYXR1cmUtbWFuYWdlbWVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcuZmVhdHVyZS1tYW5hZ2VtZW50LyIsInNvdXJjZXMiOlsiYWJwLW5nLmZlYXR1cmUtbWFuYWdlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0VBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxXQUFXLElBQUksRUFBRSxFQUFDLGNBQWMsSUFBSSxFQUFFLEVBQUMsTUFBTSwwQ0FBMEMsQ0FBQztBQUNoRyxPQUFPLEVBQUMsMEJBQTBCLElBQUksRUFBRSxFQUFDLE1BQU0sa0VBQWtFLENBQUM7QUFFbEgsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLDJDQUEyQyxDQUFDO0FBQ3pGLE9BQU8sRUFBQyxzQkFBc0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDMUQsT0FBTyxFQUFDLHNCQUFzQixJQUFJLEVBQUUsRUFBQyxNQUFNLHVDQUF1QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0dldEZlYXR1cmVzIGFzIMm1ZSxVcGRhdGVGZWF0dXJlcyBhcyDJtWZ9IGZyb20gJy4vbGliL2FjdGlvbnMvZmVhdHVyZS1tYW5hZ2VtZW50LmFjdGlvbnMnO1xuZXhwb3J0IHtGZWF0dXJlTWFuYWdlbWVudENvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvZmVhdHVyZS1tYW5hZ2VtZW50L2ZlYXR1cmUtbWFuYWdlbWVudC5jb21wb25lbnQnO1xuZXhwb3J0IHtGZWF0dXJlTWFuYWdlbWVudCBhcyDJtWd9IGZyb20gJy4vbGliL21vZGVscyc7XG5leHBvcnQge0ZlYXR1cmVNYW5hZ2VtZW50U2VydmljZSBhcyDJtWR9IGZyb20gJy4vbGliL3NlcnZpY2VzL2ZlYXR1cmUtbWFuYWdlbWVudC5zZXJ2aWNlJztcbmV4cG9ydCB7RmVhdHVyZU1hbmFnZW1lbnRTdGF0ZSBhcyDJtWJ9IGZyb20gJy4vbGliL3N0YXRlcyc7XG5leHBvcnQge0ZlYXR1cmVNYW5hZ2VtZW50U3RhdGUgYXMgybVjfSBmcm9tICcuL2xpYi9zdGF0ZXMvZmVhdHVyZS1tYW5hZ2VtZW50LnN0YXRlJzsiXX0=
|
|||
@ -0,0 +1,33 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var GetFeatures = /** @class */ (function () { |
|||
function GetFeatures(payload) { |
|||
this.payload = payload; |
|||
} |
|||
GetFeatures.type = '[FeatureManagement] Get Features'; |
|||
return GetFeatures; |
|||
}()); |
|||
export { GetFeatures }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
GetFeatures.type; |
|||
/** @type {?} */ |
|||
GetFeatures.prototype.payload; |
|||
} |
|||
var UpdateFeatures = /** @class */ (function () { |
|||
function UpdateFeatures(payload) { |
|||
this.payload = payload; |
|||
} |
|||
UpdateFeatures.type = '[FeatureManagement] Update Features'; |
|||
return UpdateFeatures; |
|||
}()); |
|||
export { UpdateFeatures }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
UpdateFeatures.type; |
|||
/** @type {?} */ |
|||
UpdateFeatures.prototype.payload; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50LmFjdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9hY3Rpb25zL2ZlYXR1cmUtbWFuYWdlbWVudC5hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQTtJQUVFLHFCQUFtQixPQUFtQztRQUFuQyxZQUFPLEdBQVAsT0FBTyxDQUE0QjtJQUFHLENBQUM7SUFEMUMsZ0JBQUksR0FBRyxrQ0FBa0MsQ0FBQztJQUU1RCxrQkFBQztDQUFBLEFBSEQsSUFHQztTQUhZLFdBQVc7OztJQUN0QixpQkFBMEQ7O0lBQzlDLDhCQUEwQzs7QUFHeEQ7SUFFRSx3QkFBbUIsT0FBZ0U7UUFBaEUsWUFBTyxHQUFQLE9BQU8sQ0FBeUQ7SUFBRyxDQUFDO0lBRHZFLG1CQUFJLEdBQUcscUNBQXFDLENBQUM7SUFFL0QscUJBQUM7Q0FBQSxBQUhELElBR0M7U0FIWSxjQUFjOzs7SUFDekIsb0JBQTZEOztJQUNqRCxpQ0FBdUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGZWF0dXJlTWFuYWdlbWVudCB9IGZyb20gJy4uL21vZGVscyc7XG5cbmV4cG9ydCBjbGFzcyBHZXRGZWF0dXJlcyB7XG4gIHN0YXRpYyByZWFkb25seSB0eXBlID0gJ1tGZWF0dXJlTWFuYWdlbWVudF0gR2V0IEZlYXR1cmVzJztcbiAgY29uc3RydWN0b3IocHVibGljIHBheWxvYWQ6IEZlYXR1cmVNYW5hZ2VtZW50LlByb3ZpZGVyKSB7fVxufVxuXG5leHBvcnQgY2xhc3MgVXBkYXRlRmVhdHVyZXMge1xuICBzdGF0aWMgcmVhZG9ubHkgdHlwZSA9ICdbRmVhdHVyZU1hbmFnZW1lbnRdIFVwZGF0ZSBGZWF0dXJlcyc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBwYXlsb2FkOiBGZWF0dXJlTWFuYWdlbWVudC5Qcm92aWRlciAmIEZlYXR1cmVNYW5hZ2VtZW50LkZlYXR1cmVzKSB7fVxufVxuIl19
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { GetFeatures, UpdateFeatures } from './feature-management.actions'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9hY3Rpb25zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSw0Q0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmVhdHVyZS1tYW5hZ2VtZW50LmFjdGlvbnMnO1xuIl19
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { FeatureManagementComponent } from './feature-management/feature-management.component'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSwyQ0FBYyxtREFBbUQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmVhdHVyZS1tYW5hZ2VtZW50L2ZlYXR1cmUtbWFuYWdlbWVudC5jb21wb25lbnQnO1xuIl19
|
|||
@ -0,0 +1,24 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { CoreModule } from '@abp/ng.core'; |
|||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { NgModule } from '@angular/core'; |
|||
import { FeatureManagementComponent } from './components/feature-management/feature-management.component'; |
|||
import { NgxsModule } from '@ngxs/store'; |
|||
import { FeatureManagementState } from './states/feature-management.state'; |
|||
var FeatureManagementModule = /** @class */ (function () { |
|||
function FeatureManagementModule() { |
|||
} |
|||
FeatureManagementModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: [FeatureManagementComponent], |
|||
imports: [CoreModule, ThemeSharedModule, NgxsModule.forFeature([FeatureManagementState])], |
|||
exports: [FeatureManagementComponent], |
|||
},] } |
|||
]; |
|||
return FeatureManagementModule; |
|||
}()); |
|||
export { FeatureManagementModule }; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcuZmVhdHVyZS1tYW5hZ2VtZW50LyIsInNvdXJjZXMiOlsibGliL2ZlYXR1cmUtbWFuYWdlbWVudC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDMUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSw4REFBOEQsQ0FBQztBQUMxRyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBRTNFO0lBQUE7SUFLc0MsQ0FBQzs7Z0JBTHRDLFFBQVEsU0FBQztvQkFDUixZQUFZLEVBQUUsQ0FBQywwQkFBMEIsQ0FBQztvQkFDMUMsT0FBTyxFQUFFLENBQUMsVUFBVSxFQUFFLGlCQUFpQixFQUFFLFVBQVUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxzQkFBc0IsQ0FBQyxDQUFDLENBQUM7b0JBQ3pGLE9BQU8sRUFBRSxDQUFDLDBCQUEwQixDQUFDO2lCQUN0Qzs7SUFDcUMsOEJBQUM7Q0FBQSxBQUx2QyxJQUt1QztTQUExQix1QkFBdUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb3JlTW9kdWxlIH0gZnJvbSAnQGFicC9uZy5jb3JlJztcbmltcG9ydCB7IFRoZW1lU2hhcmVkTW9kdWxlIH0gZnJvbSAnQGFicC9uZy50aGVtZS5zaGFyZWQnO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZlYXR1cmVNYW5hZ2VtZW50Q29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL2ZlYXR1cmUtbWFuYWdlbWVudC9mZWF0dXJlLW1hbmFnZW1lbnQuY29tcG9uZW50JztcbmltcG9ydCB7IE5neHNNb2R1bGUgfSBmcm9tICdAbmd4cy9zdG9yZSc7XG5pbXBvcnQgeyBGZWF0dXJlTWFuYWdlbWVudFN0YXRlIH0gZnJvbSAnLi9zdGF0ZXMvZmVhdHVyZS1tYW5hZ2VtZW50LnN0YXRlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbRmVhdHVyZU1hbmFnZW1lbnRDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29yZU1vZHVsZSwgVGhlbWVTaGFyZWRNb2R1bGUsIE5neHNNb2R1bGUuZm9yRmVhdHVyZShbRmVhdHVyZU1hbmFnZW1lbnRTdGF0ZV0pXSxcbiAgZXhwb3J0czogW0ZlYXR1cmVNYW5hZ2VtZW50Q29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgRmVhdHVyZU1hbmFnZW1lbnRNb2R1bGUge31cbiJdfQ==
|
|||
@ -0,0 +1,69 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export var FeatureManagement; |
|||
(function (FeatureManagement) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
FeatureManagement.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.features; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function ValueType() { } |
|||
FeatureManagement.ValueType = ValueType; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
ValueType.prototype.name; |
|||
/** @type {?} */ |
|||
ValueType.prototype.properties; |
|||
/** @type {?} */ |
|||
ValueType.prototype.validator; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function Feature() { } |
|||
FeatureManagement.Feature = Feature; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
Feature.prototype.name; |
|||
/** @type {?} */ |
|||
Feature.prototype.value; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.description; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.valueType; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.depth; |
|||
/** @type {?|undefined} */ |
|||
Feature.prototype.parentName; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function Features() { } |
|||
FeatureManagement.Features = Features; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
Features.prototype.features; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function Provider() { } |
|||
FeatureManagement.Provider = Provider; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
Provider.prototype.providerName; |
|||
/** @type {?} */ |
|||
Provider.prototype.providerKey; |
|||
} |
|||
})(FeatureManagement || (FeatureManagement = {})); |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy5mZWF0dXJlLW1hbmFnZW1lbnQvIiwic291cmNlcyI6WyJsaWIvbW9kZWxzL2ZlYXR1cmUtbWFuYWdlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsTUFBTSxLQUFXLGlCQUFpQixDQTRCakM7QUE1QkQsV0FBaUIsaUJBQWlCOzs7O0lBQ2hDLG9CQUVDOzs7O1FBREMseUJB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yS2V5OiBzdHJpbmc7XG4gIH1cbn1cbiJdfQ==
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export {} from './feature-management'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZlYXR1cmUtbWFuYWdlbWVudCc7XG4iXX0=
|
|||
@ -0,0 +1,78 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { Injectable } from '@angular/core'; |
|||
import { RestService } from '@abp/ng.core'; |
|||
import { Store } from '@ngxs/store'; |
|||
import * as i0 from "@angular/core"; |
|||
import * as i1 from "@abp/ng.core"; |
|||
import * as i2 from "@ngxs/store"; |
|||
var FeatureManagementService = /** @class */ (function () { |
|||
function FeatureManagementService(rest, store) { |
|||
this.rest = rest; |
|||
this.store = store; |
|||
} |
|||
/** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementService.prototype.getFeatures = /** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
function (params) { |
|||
/** @type {?} */ |
|||
var request = { |
|||
method: 'GET', |
|||
url: '/api/abp/features', |
|||
params: params, |
|||
}; |
|||
return this.rest.request(request); |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementService.prototype.updateFeatures = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features, providerKey = _a.providerKey, providerName = _a.providerName; |
|||
/** @type {?} */ |
|||
var request = { |
|||
method: 'PUT', |
|||
url: '/api/abp/features', |
|||
body: { features: features }, |
|||
params: { providerKey: providerKey, providerName: providerName }, |
|||
}; |
|||
return this.rest.request(request); |
|||
}; |
|||
FeatureManagementService.decorators = [ |
|||
{ type: Injectable, args: [{ |
|||
providedIn: 'root', |
|||
},] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementService.ctorParameters = function () { return [ |
|||
{ type: RestService }, |
|||
{ type: Store } |
|||
]; }; |
|||
/** @nocollapse */ FeatureManagementService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function FeatureManagementService_Factory() { return new FeatureManagementService(i0.ɵɵinject(i1.RestService), i0.ɵɵinject(i2.Store)); }, token: FeatureManagementService, providedIn: "root" }); |
|||
return FeatureManagementService; |
|||
}()); |
|||
export { FeatureManagementService }; |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.rest; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.store; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS1tYW5hZ2VtZW50LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9mZWF0dXJlLW1hbmFnZW1lbnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsV0FB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lbnQuUHJvdmlkZXIgJiBGZWF0dXJlTWFuYWdlbWVudC5GZWF0dXJlcyk6IE9ic2VydmFibGU8bnVsbD4ge1xuICAgIGNvbnN0IHJlcXVlc3Q6IFJlc3QuUmVxdWVzdDxGZWF0dXJlTWFuYWdlbWVudC5GZWF0dXJlcz4gPSB7XG4gICAgICBtZXRob2Q6ICdQVVQnLFxuICAgICAgdXJsOiAnL2FwaS9hYnAvZmVhdHVyZXMnLFxuICAgICAgYm9keTogeyBmZWF0dXJlcyB9LFxuICAgICAgcGFyYW1zOiB7IHByb3ZpZGVyS2V5LCBwcm92aWRlck5hbWUgfSxcbiAgICB9O1xuICAgIHJldHVybiB0aGlzLnJlc3QucmVxdWVzdDxGZWF0dXJlTWFuYWdlbWVudC5GZWF0dXJlcywgbnVsbD4ocmVxdWVzdCk7XG4gIH1cbn1cbiJdfQ==
|
|||
@ -0,0 +1,99 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import * as tslib_1 from "tslib"; |
|||
import { Action, Selector, State } from '@ngxs/store'; |
|||
import { tap } from 'rxjs/operators'; |
|||
import { GetFeatures, UpdateFeatures } from '../actions/feature-management.actions'; |
|||
import { FeatureManagementService } from '../services/feature-management.service'; |
|||
var FeatureManagementState = /** @class */ (function () { |
|||
function FeatureManagementState(featureManagementService) { |
|||
this.featureManagementService = featureManagementService; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.getFeatures = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features; |
|||
return features; |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.prototype.getFeatures = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var patchState = _a.patchState; |
|||
var payload = _b.payload; |
|||
return this.featureManagementService.getFeatures(payload).pipe(tap((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features; |
|||
return patchState({ |
|||
features: features, |
|||
}); |
|||
}))); |
|||
}; |
|||
/** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.prototype.updateFeatures = /** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_, _a) { |
|||
var payload = _a.payload; |
|||
return this.featureManagementService.updateFeatures(payload); |
|||
}; |
|||
tslib_1.__decorate([ |
|||
Action(GetFeatures), |
|||
tslib_1.__metadata("design:type", Function), |
|||
tslib_1.__metadata("design:paramtypes", [Object, GetFeatures]), |
|||
tslib_1.__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "getFeatures", null); |
|||
tslib_1.__decorate([ |
|||
Action(UpdateFeatures), |
|||
tslib_1.__metadata("design:type", Function), |
|||
tslib_1.__metadata("design:paramtypes", [Object, UpdateFeatures]), |
|||
tslib_1.__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "updateFeatures", null); |
|||
tslib_1.__decorate([ |
|||
Selector(), |
|||
tslib_1.__metadata("design:type", Function), |
|||
tslib_1.__metadata("design:paramtypes", [Object]), |
|||
tslib_1.__metadata("design:returntype", void 0) |
|||
], FeatureManagementState, "getFeatures", null); |
|||
FeatureManagementState = tslib_1.__decorate([ |
|||
State({ |
|||
name: 'FeatureManagementState', |
|||
defaults: (/** @type {?} */ ({ features: {} })), |
|||
}), |
|||
tslib_1.__metadata("design:paramtypes", [FeatureManagementService]) |
|||
], FeatureManagementState); |
|||
return FeatureManagementState; |
|||
}()); |
|||
export { FeatureManagementState }; |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
Feat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fTogVXBkYXRlRmVhdHVyZXMpIHtcbiAgICByZXR1cm4gdGhpcy5mZWF0dXJlTWFuYWdlbWVudFNlcnZpY2UudXBkYXRlRmVhdHVyZXMocGF5bG9hZCk7XG4gIH1cbn1cbiJdfQ==
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { FeatureManagementState } from "./feature-management.state"; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLmZlYXR1cmUtbWFuYWdlbWVudC8iLCJzb3VyY2VzIjpbImxpYi9zdGF0ZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHVDQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZmVhdHVyZS1tYW5hZ2VtZW50LnN0YXRlXCI7XG4iXX0=
|
|||
@ -0,0 +1,7 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { FeatureManagementModule } from './lib/feature-management.module'; |
|||
export { FeatureManagementComponent } from './lib/components'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcuZmVhdHVyZS1tYW5hZ2VtZW50LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsd0NBQWMsaUNBQWlDLENBQUM7QUFDaEQsMkNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9mZWF0dXJlLW1hbmFnZW1lbnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMnO1xuIl19
|
|||
@ -0,0 +1,365 @@ |
|||
import { RestService, CoreModule } from '@abp/ng.core'; |
|||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, Component, Input, Output, NgModule } from '@angular/core'; |
|||
import { __decorate, __metadata } from 'tslib'; |
|||
import { Store, Action, Selector, State, Select, NgxsModule } from '@ngxs/store'; |
|||
import { Observable } from 'rxjs'; |
|||
import { tap, pluck } from 'rxjs/operators'; |
|||
import { FormControl, FormGroup } from '@angular/forms'; |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class GetFeatures { |
|||
/** |
|||
* @param {?} payload |
|||
*/ |
|||
constructor(payload) { |
|||
this.payload = payload; |
|||
} |
|||
} |
|||
GetFeatures.type = '[FeatureManagement] Get Features'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
GetFeatures.type; |
|||
/** @type {?} */ |
|||
GetFeatures.prototype.payload; |
|||
} |
|||
class UpdateFeatures { |
|||
/** |
|||
* @param {?} payload |
|||
*/ |
|||
constructor(payload) { |
|||
this.payload = payload; |
|||
} |
|||
} |
|||
UpdateFeatures.type = '[FeatureManagement] Update Features'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
UpdateFeatures.type; |
|||
/** @type {?} */ |
|||
UpdateFeatures.prototype.payload; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class FeatureManagementService { |
|||
/** |
|||
* @param {?} rest |
|||
* @param {?} store |
|||
*/ |
|||
constructor(rest, store) { |
|||
this.rest = rest; |
|||
this.store = store; |
|||
} |
|||
/** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
getFeatures(params) { |
|||
/** @type {?} */ |
|||
const request = { |
|||
method: 'GET', |
|||
url: '/api/abp/features', |
|||
params, |
|||
}; |
|||
return this.rest.request(request); |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
updateFeatures({ features, providerKey, providerName, }) { |
|||
/** @type {?} */ |
|||
const request = { |
|||
method: 'PUT', |
|||
url: '/api/abp/features', |
|||
body: { features }, |
|||
params: { providerKey, providerName }, |
|||
}; |
|||
return this.rest.request(request); |
|||
} |
|||
} |
|||
FeatureManagementService.decorators = [ |
|||
{ type: Injectable, args: [{ |
|||
providedIn: 'root', |
|||
},] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementService.ctorParameters = () => [ |
|||
{ type: RestService }, |
|||
{ type: Store } |
|||
]; |
|||
/** @nocollapse */ FeatureManagementService.ngInjectableDef = ɵɵdefineInjectable({ factory: function FeatureManagementService_Factory() { return new FeatureManagementService(ɵɵinject(RestService), ɵɵinject(Store)); }, token: FeatureManagementService, providedIn: "root" }); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.rest; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
let FeatureManagementState = class FeatureManagementState { |
|||
/** |
|||
* @param {?} featureManagementService |
|||
*/ |
|||
constructor(featureManagementService) { |
|||
this.featureManagementService = featureManagementService; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
static getFeatures({ features }) { |
|||
return features; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
getFeatures({ patchState }, { payload }) { |
|||
return this.featureManagementService.getFeatures(payload).pipe(tap((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
({ features }) => patchState({ |
|||
features, |
|||
})))); |
|||
} |
|||
/** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
updateFeatures(_, { payload }) { |
|||
return this.featureManagementService.updateFeatures(payload); |
|||
} |
|||
}; |
|||
__decorate([ |
|||
Action(GetFeatures), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, GetFeatures]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "getFeatures", null); |
|||
__decorate([ |
|||
Action(UpdateFeatures), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, UpdateFeatures]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "updateFeatures", null); |
|||
__decorate([ |
|||
Selector(), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState, "getFeatures", null); |
|||
FeatureManagementState = __decorate([ |
|||
State({ |
|||
name: 'FeatureManagementState', |
|||
defaults: (/** @type {?} */ ({ features: {} })), |
|||
}), |
|||
__metadata("design:paramtypes", [FeatureManagementService]) |
|||
], FeatureManagementState); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementState.prototype.featureManagementService; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class FeatureManagementComponent { |
|||
/** |
|||
* @param {?} store |
|||
*/ |
|||
constructor(store) { |
|||
this.store = store; |
|||
this.visibleChange = new EventEmitter(); |
|||
this.modalBusy = false; |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get visible() { |
|||
return this._visible; |
|||
} |
|||
/** |
|||
* @param {?} value |
|||
* @return {?} |
|||
*/ |
|||
set visible(value) { |
|||
this._visible = value; |
|||
this.visibleChange.emit(value); |
|||
if (value) |
|||
this.openModal(); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
openModal() { |
|||
if (!this.providerKey || !this.providerName) { |
|||
throw new Error('Provider Key and Provider Name are required.'); |
|||
} |
|||
this.getFeatures(); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
getFeatures() { |
|||
this.store |
|||
.dispatch(new GetFeatures({ providerKey: this.providerKey, providerName: this.providerName })) |
|||
.pipe(pluck('FeatureManagementState', 'features')) |
|||
.subscribe((/** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
features => { |
|||
this.buildForm(features); |
|||
})); |
|||
} |
|||
/** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
buildForm(features) { |
|||
/** @type {?} */ |
|||
const formGroupObj = {}; |
|||
for (let i = 0; i < features.length; i++) { |
|||
formGroupObj[i] = new FormControl(features[i].value === 'false' ? null : features[i].value); |
|||
} |
|||
this.form = new FormGroup(formGroupObj); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
save() { |
|||
this.modalBusy = true; |
|||
/** @type {?} */ |
|||
let features = this.store.selectSnapshot(FeatureManagementState.getFeatures); |
|||
features = features.map((/** |
|||
* @param {?} feature |
|||
* @param {?} i |
|||
* @return {?} |
|||
*/ |
|||
(feature, i) => ({ |
|||
name: feature.name, |
|||
value: !this.form.value[i] || this.form.value[i] === 'false' ? null : this.form.value[i], |
|||
}))); |
|||
this.store |
|||
.dispatch(new UpdateFeatures({ |
|||
providerKey: this.providerKey, |
|||
providerName: this.providerName, |
|||
features, |
|||
})) |
|||
.subscribe((/** |
|||
* @return {?} |
|||
*/ |
|||
() => { |
|||
this.modalBusy = false; |
|||
this.visible = false; |
|||
})); |
|||
} |
|||
} |
|||
FeatureManagementComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-feature-management', |
|||
template: "<abp-modal size=\"md\" [(visible)]=\"visible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpTenantManagement::Permission:ManageFeatures' | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form *ngIf=\"form\" (ngSubmit)=\"save()\" [formGroup]=\"form\">\n <div\n class=\"row my-3\"\n *ngFor=\"let feature of features$ | async; let i = index\"\n [ngSwitch]=\"feature.valueType.name\"\n >\n <div class=\"col-4\">{{ feature.name }}</div>\n <div class=\"col-8\" *ngSwitchCase=\"'ToggleStringValueType'\">\n <input type=\"checkbox\" name=\"feature.name\" [formControlName]=\"i\" />\n </div>\n <div class=\"col-8\" *ngSwitchCase=\"'FreeTextStringValueType'\">\n <input type=\"text\" name=\"feature.name\" [formControlName]=\"i\" />\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button #abpClose type=\"button\" class=\"btn btn-secondary\">\n {{ 'AbpFeatureManagement::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">\n {{ 'AbpFeatureManagement::Save' | abpLocalization }}\n </abp-button>\n </ng-template>\n</abp-modal>\n" |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementComponent.ctorParameters = () => [ |
|||
{ type: Store } |
|||
]; |
|||
FeatureManagementComponent.propDecorators = { |
|||
providerKey: [{ type: Input }], |
|||
providerName: [{ type: Input }], |
|||
visible: [{ type: Input }], |
|||
visibleChange: [{ type: Output }] |
|||
}; |
|||
__decorate([ |
|||
Select(FeatureManagementState.getFeatures), |
|||
__metadata("design:type", Observable) |
|||
], FeatureManagementComponent.prototype, "features$", void 0); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.providerKey; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.providerName; |
|||
/** |
|||
* @type {?} |
|||
* @protected |
|||
*/ |
|||
FeatureManagementComponent.prototype._visible; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.visibleChange; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.features$; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.modalBusy; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.form; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementComponent.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class FeatureManagementModule { |
|||
} |
|||
FeatureManagementModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: [FeatureManagementComponent], |
|||
imports: [CoreModule, ThemeSharedModule, NgxsModule.forFeature([FeatureManagementState])], |
|||
exports: [FeatureManagementComponent], |
|||
},] } |
|||
]; |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
export { FeatureManagementComponent, FeatureManagementModule, FeatureManagementComponent as ɵa, FeatureManagementState as ɵb, FeatureManagementState as ɵc, FeatureManagementService as ɵd, GetFeatures as ɵe, UpdateFeatures as ɵf }; |
|||
//# sourceMappingURL=abp-ng.feature-management.js.map
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,406 @@ |
|||
import { RestService, CoreModule } from '@abp/ng.core'; |
|||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, Component, Input, Output, NgModule } from '@angular/core'; |
|||
import { __decorate, __metadata } from 'tslib'; |
|||
import { Store, Action, Selector, State, Select, NgxsModule } from '@ngxs/store'; |
|||
import { Observable } from 'rxjs'; |
|||
import { tap, pluck } from 'rxjs/operators'; |
|||
import { FormControl, FormGroup } from '@angular/forms'; |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var GetFeatures = /** @class */ (function () { |
|||
function GetFeatures(payload) { |
|||
this.payload = payload; |
|||
} |
|||
GetFeatures.type = '[FeatureManagement] Get Features'; |
|||
return GetFeatures; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
GetFeatures.type; |
|||
/** @type {?} */ |
|||
GetFeatures.prototype.payload; |
|||
} |
|||
var UpdateFeatures = /** @class */ (function () { |
|||
function UpdateFeatures(payload) { |
|||
this.payload = payload; |
|||
} |
|||
UpdateFeatures.type = '[FeatureManagement] Update Features'; |
|||
return UpdateFeatures; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
UpdateFeatures.type; |
|||
/** @type {?} */ |
|||
UpdateFeatures.prototype.payload; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementService = /** @class */ (function () { |
|||
function FeatureManagementService(rest, store) { |
|||
this.rest = rest; |
|||
this.store = store; |
|||
} |
|||
/** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementService.prototype.getFeatures = /** |
|||
* @param {?} params |
|||
* @return {?} |
|||
*/ |
|||
function (params) { |
|||
/** @type {?} */ |
|||
var request = { |
|||
method: 'GET', |
|||
url: '/api/abp/features', |
|||
params: params, |
|||
}; |
|||
return this.rest.request(request); |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementService.prototype.updateFeatures = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features, providerKey = _a.providerKey, providerName = _a.providerName; |
|||
/** @type {?} */ |
|||
var request = { |
|||
method: 'PUT', |
|||
url: '/api/abp/features', |
|||
body: { features: features }, |
|||
params: { providerKey: providerKey, providerName: providerName }, |
|||
}; |
|||
return this.rest.request(request); |
|||
}; |
|||
FeatureManagementService.decorators = [ |
|||
{ type: Injectable, args: [{ |
|||
providedIn: 'root', |
|||
},] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementService.ctorParameters = function () { return [ |
|||
{ type: RestService }, |
|||
{ type: Store } |
|||
]; }; |
|||
/** @nocollapse */ FeatureManagementService.ngInjectableDef = ɵɵdefineInjectable({ factory: function FeatureManagementService_Factory() { return new FeatureManagementService(ɵɵinject(RestService), ɵɵinject(Store)); }, token: FeatureManagementService, providedIn: "root" }); |
|||
return FeatureManagementService; |
|||
}()); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.rest; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementService.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementState = /** @class */ (function () { |
|||
function FeatureManagementState(featureManagementService) { |
|||
this.featureManagementService = featureManagementService; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.getFeatures = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features; |
|||
return features; |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.prototype.getFeatures = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var patchState = _a.patchState; |
|||
var payload = _b.payload; |
|||
return this.featureManagementService.getFeatures(payload).pipe(tap((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var features = _a.features; |
|||
return patchState({ |
|||
features: features, |
|||
}); |
|||
}))); |
|||
}; |
|||
/** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementState.prototype.updateFeatures = /** |
|||
* @param {?} _ |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_, _a) { |
|||
var payload = _a.payload; |
|||
return this.featureManagementService.updateFeatures(payload); |
|||
}; |
|||
__decorate([ |
|||
Action(GetFeatures), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, GetFeatures]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "getFeatures", null); |
|||
__decorate([ |
|||
Action(UpdateFeatures), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, UpdateFeatures]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState.prototype, "updateFeatures", null); |
|||
__decorate([ |
|||
Selector(), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object]), |
|||
__metadata("design:returntype", void 0) |
|||
], FeatureManagementState, "getFeatures", null); |
|||
FeatureManagementState = __decorate([ |
|||
State({ |
|||
name: 'FeatureManagementState', |
|||
defaults: (/** @type {?} */ ({ features: {} })), |
|||
}), |
|||
__metadata("design:paramtypes", [FeatureManagementService]) |
|||
], FeatureManagementState); |
|||
return FeatureManagementState; |
|||
}()); |
|||
if (false) { |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementState.prototype.featureManagementService; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementComponent = /** @class */ (function () { |
|||
function FeatureManagementComponent(store) { |
|||
this.store = store; |
|||
this.visibleChange = new EventEmitter(); |
|||
this.modalBusy = false; |
|||
} |
|||
Object.defineProperty(FeatureManagementComponent.prototype, "visible", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this._visible; |
|||
}, |
|||
set: /** |
|||
* @param {?} value |
|||
* @return {?} |
|||
*/ |
|||
function (value) { |
|||
this._visible = value; |
|||
this.visibleChange.emit(value); |
|||
if (value) |
|||
this.openModal(); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.openModal = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
if (!this.providerKey || !this.providerName) { |
|||
throw new Error('Provider Key and Provider Name are required.'); |
|||
} |
|||
this.getFeatures(); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.getFeatures = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
this.store |
|||
.dispatch(new GetFeatures({ providerKey: this.providerKey, providerName: this.providerName })) |
|||
.pipe(pluck('FeatureManagementState', 'features')) |
|||
.subscribe((/** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
function (features) { |
|||
_this.buildForm(features); |
|||
})); |
|||
}; |
|||
/** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.buildForm = /** |
|||
* @param {?} features |
|||
* @return {?} |
|||
*/ |
|||
function (features) { |
|||
/** @type {?} */ |
|||
var formGroupObj = {}; |
|||
for (var i = 0; i < features.length; i++) { |
|||
formGroupObj[i] = new FormControl(features[i].value === 'false' ? null : features[i].value); |
|||
} |
|||
this.form = new FormGroup(formGroupObj); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
FeatureManagementComponent.prototype.save = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
this.modalBusy = true; |
|||
/** @type {?} */ |
|||
var features = this.store.selectSnapshot(FeatureManagementState.getFeatures); |
|||
features = features.map((/** |
|||
* @param {?} feature |
|||
* @param {?} i |
|||
* @return {?} |
|||
*/ |
|||
function (feature, i) { return ({ |
|||
name: feature.name, |
|||
value: !_this.form.value[i] || _this.form.value[i] === 'false' ? null : _this.form.value[i], |
|||
}); })); |
|||
this.store |
|||
.dispatch(new UpdateFeatures({ |
|||
providerKey: this.providerKey, |
|||
providerName: this.providerName, |
|||
features: features, |
|||
})) |
|||
.subscribe((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
_this.modalBusy = false; |
|||
_this.visible = false; |
|||
})); |
|||
}; |
|||
FeatureManagementComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-feature-management', |
|||
template: "<abp-modal size=\"md\" [(visible)]=\"visible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpTenantManagement::Permission:ManageFeatures' | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form *ngIf=\"form\" (ngSubmit)=\"save()\" [formGroup]=\"form\">\n <div\n class=\"row my-3\"\n *ngFor=\"let feature of features$ | async; let i = index\"\n [ngSwitch]=\"feature.valueType.name\"\n >\n <div class=\"col-4\">{{ feature.name }}</div>\n <div class=\"col-8\" *ngSwitchCase=\"'ToggleStringValueType'\">\n <input type=\"checkbox\" name=\"feature.name\" [formControlName]=\"i\" />\n </div>\n <div class=\"col-8\" *ngSwitchCase=\"'FreeTextStringValueType'\">\n <input type=\"text\" name=\"feature.name\" [formControlName]=\"i\" />\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button #abpClose type=\"button\" class=\"btn btn-secondary\">\n {{ 'AbpFeatureManagement::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">\n {{ 'AbpFeatureManagement::Save' | abpLocalization }}\n </abp-button>\n </ng-template>\n</abp-modal>\n" |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
FeatureManagementComponent.ctorParameters = function () { return [ |
|||
{ type: Store } |
|||
]; }; |
|||
FeatureManagementComponent.propDecorators = { |
|||
providerKey: [{ type: Input }], |
|||
providerName: [{ type: Input }], |
|||
visible: [{ type: Input }], |
|||
visibleChange: [{ type: Output }] |
|||
}; |
|||
__decorate([ |
|||
Select(FeatureManagementState.getFeatures), |
|||
__metadata("design:type", Observable) |
|||
], FeatureManagementComponent.prototype, "features$", void 0); |
|||
return FeatureManagementComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.providerKey; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.providerName; |
|||
/** |
|||
* @type {?} |
|||
* @protected |
|||
*/ |
|||
FeatureManagementComponent.prototype._visible; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.visibleChange; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.features$; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.modalBusy; |
|||
/** @type {?} */ |
|||
FeatureManagementComponent.prototype.form; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
FeatureManagementComponent.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var FeatureManagementModule = /** @class */ (function () { |
|||
function FeatureManagementModule() { |
|||
} |
|||
FeatureManagementModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: [FeatureManagementComponent], |
|||
imports: [CoreModule, ThemeSharedModule, NgxsModule.forFeature([FeatureManagementState])], |
|||
exports: [FeatureManagementComponent], |
|||
},] } |
|||
]; |
|||
return FeatureManagementModule; |
|||
}()); |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
|
|||
export { FeatureManagementComponent, FeatureManagementModule, FeatureManagementComponent as ɵa, FeatureManagementState as ɵb, FeatureManagementState as ɵc, FeatureManagementService as ɵd, GetFeatures as ɵe, UpdateFeatures as ɵf }; |
|||
//# sourceMappingURL=abp-ng.feature-management.js.map
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@ |
|||
import { FeatureManagement } from '../models'; |
|||
export declare class GetFeatures { |
|||
payload: FeatureManagement.Provider; |
|||
static readonly type = "[FeatureManagement] Get Features"; |
|||
constructor(payload: FeatureManagement.Provider); |
|||
} |
|||
export declare class UpdateFeatures { |
|||
payload: FeatureManagement.Provider & FeatureManagement.Features; |
|||
static readonly type = "[FeatureManagement] Update Features"; |
|||
constructor(payload: FeatureManagement.Provider & FeatureManagement.Features); |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from './feature-management.actions'; |
|||
@ -0,0 +1,21 @@ |
|||
import { EventEmitter } from '@angular/core'; |
|||
import { Store } from '@ngxs/store'; |
|||
import { Observable } from 'rxjs'; |
|||
import { FeatureManagement } from '../../models/feature-management'; |
|||
import { FormGroup } from '@angular/forms'; |
|||
export declare class FeatureManagementComponent { |
|||
private store; |
|||
providerKey: string; |
|||
providerName: string; |
|||
protected _visible: any; |
|||
visible: boolean; |
|||
visibleChange: EventEmitter<boolean>; |
|||
features$: Observable<FeatureManagement.Feature[]>; |
|||
modalBusy: boolean; |
|||
form: FormGroup; |
|||
constructor(store: Store); |
|||
openModal(): void; |
|||
getFeatures(): void; |
|||
buildForm(features: any): void; |
|||
save(): void; |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from './feature-management/feature-management.component'; |
|||
@ -0,0 +1,2 @@ |
|||
export declare class FeatureManagementModule { |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
export declare namespace FeatureManagement { |
|||
interface State { |
|||
features: Feature[]; |
|||
} |
|||
interface ValueType { |
|||
name: string; |
|||
properties: object; |
|||
validator: object; |
|||
} |
|||
interface Feature { |
|||
name: string; |
|||
value: string; |
|||
description?: string; |
|||
valueType?: ValueType; |
|||
depth?: number; |
|||
parentName?: string; |
|||
} |
|||
interface Features { |
|||
features: Feature[]; |
|||
} |
|||
interface Provider { |
|||
providerName: string; |
|||
providerKey: string; |
|||
} |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from './feature-management'; |
|||
@ -0,0 +1,11 @@ |
|||
import { RestService } from '@abp/ng.core'; |
|||
import { Store } from '@ngxs/store'; |
|||
import { Observable } from 'rxjs'; |
|||
import { FeatureManagement } from '../models'; |
|||
export declare class FeatureManagementService { |
|||
private rest; |
|||
private store; |
|||
constructor(rest: RestService, store: Store); |
|||
getFeatures(params: FeatureManagement.Provider): Observable<FeatureManagement.Features>; |
|||
updateFeatures({ features, providerKey, providerName, }: FeatureManagement.Provider & FeatureManagement.Features): Observable<null>; |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
import { StateContext } from '@ngxs/store'; |
|||
import { GetFeatures, UpdateFeatures } from '../actions/feature-management.actions'; |
|||
import { FeatureManagement } from '../models/feature-management'; |
|||
import { FeatureManagementService } from '../services/feature-management.service'; |
|||
export declare class FeatureManagementState { |
|||
private featureManagementService; |
|||
static getFeatures({ features }: FeatureManagement.State): FeatureManagement.Feature[]; |
|||
constructor(featureManagementService: FeatureManagementService); |
|||
getFeatures({ patchState }: StateContext<FeatureManagement.State>, { payload }: GetFeatures): import("rxjs").Observable<FeatureManagement.Features>; |
|||
updateFeatures(_: any, { payload }: UpdateFeatures): import("rxjs").Observable<null>; |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from "./feature-management.state"; |
|||
@ -0,0 +1,21 @@ |
|||
{ |
|||
"name": "@abp/ng.feature-management", |
|||
"version": "0.0.83", |
|||
"dependencies": { |
|||
"@abp/ng.theme.shared": "^0.8.3", |
|||
"tslib": "^1.9.0" |
|||
}, |
|||
"publishConfig": { |
|||
"access": "public" |
|||
}, |
|||
"main": "bundles/abp-ng.feature-management.umd.js", |
|||
"module": "fesm5/abp-ng.feature-management.js", |
|||
"es2015": "fesm2015/abp-ng.feature-management.js", |
|||
"esm5": "esm5/abp-ng.feature-management.js", |
|||
"esm2015": "esm2015/abp-ng.feature-management.js", |
|||
"fesm5": "fesm5/abp-ng.feature-management.js", |
|||
"fesm2015": "fesm2015/abp-ng.feature-management.js", |
|||
"typings": "abp-ng.feature-management.d.ts", |
|||
"metadata": "abp-ng.feature-management.metadata.json", |
|||
"sideEffects": false |
|||
} |
|||
@ -0,0 +1,2 @@ |
|||
export * from './lib/feature-management.module'; |
|||
export * from './lib/components'; |
|||
@ -1,4 +1,10 @@ |
|||
{ |
|||
"name": "@abp/ng.feature-management", |
|||
"version": "0.0.1" |
|||
"version": "0.8.3", |
|||
"dependencies": { |
|||
"@abp/ng.theme.shared": "^0.8.3" |
|||
}, |
|||
"publishConfig": { |
|||
"access": "public" |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue