ngx-techlify-core 11.3.6 → 11.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ngx-techlify-core.umd.js +53 -53
- package/bundles/ngx-techlify-core.umd.js.map +1 -1
- package/bundles/ngx-techlify-core.umd.min.js +1 -1
- package/bundles/ngx-techlify-core.umd.min.js.map +1 -1
- package/esm2015/lib/techlify-feature/on-off-switch/on-off-switch.component.js +27 -0
- package/esm2015/lib/techlify-feature/techlify-feature-enabled.directive.js +77 -0
- package/esm2015/lib/techlify-feature/techlify-feature-listing.component.js +174 -0
- package/esm2015/lib/techlify-feature/techlify-feature.module.js +30 -0
- package/esm2015/lib/techlify-feature/techlify-feature.routing.js +12 -0
- package/esm2015/lib/techlify-feature/techlify-feature.service.js +28 -0
- package/esm2015/ngx-techlify-core.js +3 -2
- package/esm2015/public-api.js +5 -6
- package/fesm2015/ngx-techlify-core.js +26 -26
- package/fesm2015/ngx-techlify-core.js.map +1 -1
- package/lib/{company-feature → techlify-feature}/on-off-switch/on-off-switch.component.d.ts +0 -0
- package/lib/{company-feature/ngx-feature-enabled.directive.d.ts → techlify-feature/techlify-feature-enabled.directive.d.ts} +3 -3
- package/lib/{company-feature/company-feature.component.d.ts → techlify-feature/techlify-feature-listing.component.d.ts} +3 -3
- package/lib/techlify-feature/techlify-feature.module.d.ts +2 -0
- package/lib/techlify-feature/techlify-feature.routing.d.ts +2 -0
- package/lib/{company-feature/company-feature.service.d.ts → techlify-feature/techlify-feature.service.d.ts} +1 -1
- package/ngx-techlify-core.d.ts +2 -1
- package/ngx-techlify-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -5
- package/esm2015/lib/company-feature/company-feature.component.js +0 -174
- package/esm2015/lib/company-feature/company-feature.module.js +0 -30
- package/esm2015/lib/company-feature/company-feature.routing.js +0 -12
- package/esm2015/lib/company-feature/company-feature.service.js +0 -28
- package/esm2015/lib/company-feature/ngx-feature-enabled.directive.js +0 -77
- package/esm2015/lib/company-feature/on-off-switch/on-off-switch.component.js +0 -27
- package/lib/company-feature/company-feature.module.d.ts +0 -2
- package/lib/company-feature/company-feature.routing.d.ts +0 -2
|
@@ -7161,33 +7161,33 @@
|
|
|
7161
7161
|
},] }
|
|
7162
7162
|
];
|
|
7163
7163
|
|
|
7164
|
-
var
|
|
7165
|
-
function
|
|
7164
|
+
var TechlifyFeatureService = /** @class */ (function () {
|
|
7165
|
+
function TechlifyFeatureService(dataManager) {
|
|
7166
7166
|
this.dataManager = dataManager;
|
|
7167
7167
|
}
|
|
7168
|
-
|
|
7168
|
+
TechlifyFeatureService.prototype.getFeatures = function () {
|
|
7169
7169
|
return this.dataManager.GET("api/features");
|
|
7170
7170
|
};
|
|
7171
|
-
|
|
7171
|
+
TechlifyFeatureService.prototype.disableFeature = function (id) {
|
|
7172
7172
|
return this.dataManager.GET("api/feature/" + id + "/disable");
|
|
7173
7173
|
};
|
|
7174
|
-
|
|
7174
|
+
TechlifyFeatureService.prototype.enableFeature = function (id) {
|
|
7175
7175
|
return this.dataManager.GET("api/feature/" + id + "/enable");
|
|
7176
7176
|
};
|
|
7177
|
-
return
|
|
7177
|
+
return TechlifyFeatureService;
|
|
7178
7178
|
}());
|
|
7179
|
-
|
|
7180
|
-
|
|
7179
|
+
TechlifyFeatureService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TechlifyFeatureService_Factory() { return new TechlifyFeatureService(i0.ɵɵinject(DataManager)); }, token: TechlifyFeatureService, providedIn: "root" });
|
|
7180
|
+
TechlifyFeatureService.decorators = [
|
|
7181
7181
|
{ type: i0.Injectable, args: [{
|
|
7182
7182
|
providedIn: 'root'
|
|
7183
7183
|
},] }
|
|
7184
7184
|
];
|
|
7185
|
-
|
|
7185
|
+
TechlifyFeatureService.ctorParameters = function () { return [
|
|
7186
7186
|
{ type: DataManager }
|
|
7187
7187
|
]; };
|
|
7188
7188
|
|
|
7189
|
-
exports.
|
|
7190
|
-
function
|
|
7189
|
+
exports.TechlifyFeatureListingComponent = /** @class */ (function () {
|
|
7190
|
+
function TechlifyFeatureListingComponent(dataManager, errorHandler, fb, alertService, dialog, storage, featureService) {
|
|
7191
7191
|
this.dataManager = dataManager;
|
|
7192
7192
|
this.errorHandler = errorHandler;
|
|
7193
7193
|
this.fb = fb;
|
|
@@ -7210,11 +7210,11 @@
|
|
|
7210
7210
|
num_items: [""]
|
|
7211
7211
|
});
|
|
7212
7212
|
}
|
|
7213
|
-
|
|
7213
|
+
TechlifyFeatureListingComponent.prototype.ngOnInit = function () {
|
|
7214
7214
|
this.loadData();
|
|
7215
7215
|
this.listenForChanges();
|
|
7216
7216
|
};
|
|
7217
|
-
|
|
7217
|
+
TechlifyFeatureListingComponent.prototype.listenForChanges = function () {
|
|
7218
7218
|
var _this = this;
|
|
7219
7219
|
this.filterFormGroup.valueChanges
|
|
7220
7220
|
.pipe(operators.debounceTime(500), untilDestroy.untilDestroyed(this))
|
|
@@ -7222,7 +7222,7 @@
|
|
|
7222
7222
|
_this.reload();
|
|
7223
7223
|
});
|
|
7224
7224
|
};
|
|
7225
|
-
|
|
7225
|
+
TechlifyFeatureListingComponent.prototype.loadData = function () {
|
|
7226
7226
|
return __awaiter(this, void 0, void 0, function () {
|
|
7227
7227
|
var result, filter, error_1;
|
|
7228
7228
|
return __generator(this, function (_a) {
|
|
@@ -7255,7 +7255,7 @@
|
|
|
7255
7255
|
});
|
|
7256
7256
|
});
|
|
7257
7257
|
};
|
|
7258
|
-
|
|
7258
|
+
TechlifyFeatureListingComponent.prototype.toggeleFeature = function (element, feature) {
|
|
7259
7259
|
return __awaiter(this, void 0, void 0, function () {
|
|
7260
7260
|
var status, data, dialogRef;
|
|
7261
7261
|
var _this = this;
|
|
@@ -7312,7 +7312,7 @@
|
|
|
7312
7312
|
});
|
|
7313
7313
|
});
|
|
7314
7314
|
};
|
|
7315
|
-
|
|
7315
|
+
TechlifyFeatureListingComponent.prototype.setStorage = function (features) {
|
|
7316
7316
|
var e_1, _a;
|
|
7317
7317
|
var localFeatures = [];
|
|
7318
7318
|
try {
|
|
@@ -7339,25 +7339,25 @@
|
|
|
7339
7339
|
}
|
|
7340
7340
|
this.storage.setItem("features", localFeatures);
|
|
7341
7341
|
};
|
|
7342
|
-
|
|
7342
|
+
TechlifyFeatureListingComponent.prototype.reload = function () {
|
|
7343
7343
|
this.features = [];
|
|
7344
7344
|
this.page = 1;
|
|
7345
7345
|
if (!this.isWorking) {
|
|
7346
7346
|
this.loadData();
|
|
7347
7347
|
}
|
|
7348
7348
|
};
|
|
7349
|
-
|
|
7349
|
+
TechlifyFeatureListingComponent.prototype.onScroll = function () {
|
|
7350
7350
|
if (!this.isWorking && this.page < this.lastPage) {
|
|
7351
7351
|
this.page += 1;
|
|
7352
7352
|
this.loadData();
|
|
7353
7353
|
}
|
|
7354
7354
|
};
|
|
7355
|
-
|
|
7355
|
+
TechlifyFeatureListingComponent.prototype.sortColumn = function (event) {
|
|
7356
7356
|
var direction = event.direction.toString().toUpperCase();
|
|
7357
7357
|
this.assignFilter(event.active, direction);
|
|
7358
7358
|
this.reload();
|
|
7359
7359
|
};
|
|
7360
|
-
|
|
7360
|
+
TechlifyFeatureListingComponent.prototype.assignFilter = function (column, direction) {
|
|
7361
7361
|
switch (column) {
|
|
7362
7362
|
case 'name': {
|
|
7363
7363
|
return this.filterFormGroup
|
|
@@ -7371,36 +7371,36 @@
|
|
|
7371
7371
|
}
|
|
7372
7372
|
}
|
|
7373
7373
|
};
|
|
7374
|
-
return
|
|
7374
|
+
return TechlifyFeatureListingComponent;
|
|
7375
7375
|
}());
|
|
7376
|
-
exports.
|
|
7376
|
+
exports.TechlifyFeatureListingComponent.decorators = [
|
|
7377
7377
|
{ type: i0.Component, args: [{
|
|
7378
|
-
selector: 'app-
|
|
7378
|
+
selector: 'app-techlify-listing-feature',
|
|
7379
7379
|
template: "<div fxLayout=\"column\" fxLayoutGap=\"3rem\" class=\"p-3\">\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"primary-color mt-3\">\n <h3>Features Configuration</h3>\n <mat-hint>\n <i> Here you can specify which optional features you'd like to have available to your team </i>\n </mat-hint>\n </div>\n\n\n <div>\n <mat-card>\n <mat-card-content fxlayout=\"column\" style=\"overflow: auto; height: 700px\" class=\"classifications-card\">\n <table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z8 w-100\" matSort multiTemplateDataRows\n (matSortChange)=\"sortColumn($event)\" infiniteScroll [infiniteScrollDistance]=\"2\" [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\" [fromRoot]=\"true\" [infiniteScrollContainer]=\"'.classifications-card'\">\n <!-- Index Column -->\n <ng-container matColumnDef=\"index\">\n <th mat-header-cell *matHeaderCellDef>#</th>\n <td mat-cell *matCellDef=\"let element; let i = dataIndex\">\n {{ i + 1 }}\n </td>\n </ng-container>\n\n <!-- Title Column -->\n <ng-container matColumnDef=\"feature\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>\n Feature\n </th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.title }}</td>\n </ng-container>\n\n <!-- Description Column -->\n <ng-container matColumnDef=\"description\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>\n Descriptions\n </th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.description }}\n </td>\n </ng-container>\n\n <!-- Actions Column -->\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>\n Actions\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <div *ngIf=\"!element?.client_feature\">\n <app-on-off-switch [value]=\"element?.is_enabled_default\"\n (click)=\"toggeleFeature(element?.is_enabled_default, element)\"></app-on-off-switch>\n </div>\n <div *ngIf=\"element?.client_feature\">\n <app-on-off-switch [value]=\"element?.client_feature?.is_enabled\"\n (click)=\"toggeleFeature(element?.client_feature?.is_enabled, element)\"></app-on-off-switch>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n </mat-card-content>\n </mat-card>\n </div>\n</div>\n",
|
|
7380
7380
|
styles: [""]
|
|
7381
7381
|
},] }
|
|
7382
7382
|
];
|
|
7383
|
-
exports.
|
|
7383
|
+
exports.TechlifyFeatureListingComponent.ctorParameters = function () { return [
|
|
7384
7384
|
{ type: DataManager },
|
|
7385
7385
|
{ type: ErrorHandlerService },
|
|
7386
7386
|
{ type: forms.FormBuilder },
|
|
7387
7387
|
{ type: AlertService },
|
|
7388
7388
|
{ type: dialog.MatDialog },
|
|
7389
7389
|
{ type: StorageService },
|
|
7390
|
-
{ type:
|
|
7390
|
+
{ type: TechlifyFeatureService }
|
|
7391
7391
|
]; };
|
|
7392
|
-
exports.
|
|
7392
|
+
exports.TechlifyFeatureListingComponent = __decorate([
|
|
7393
7393
|
untilDestroy.UntilDestroy()
|
|
7394
|
-
], exports.
|
|
7394
|
+
], exports.TechlifyFeatureListingComponent);
|
|
7395
7395
|
|
|
7396
7396
|
var routes$n = [
|
|
7397
7397
|
{
|
|
7398
7398
|
path: '',
|
|
7399
|
-
component: exports.
|
|
7399
|
+
component: exports.TechlifyFeatureListingComponent,
|
|
7400
7400
|
canActivate: [AuthenticationGuard]
|
|
7401
7401
|
},
|
|
7402
7402
|
];
|
|
7403
|
-
var
|
|
7403
|
+
var TechlifyFeatureRoutes = i1$2.RouterModule.forChild(routes$n);
|
|
7404
7404
|
|
|
7405
7405
|
var OnOffSwitchComponent = /** @class */ (function () {
|
|
7406
7406
|
function OnOffSwitchComponent(fb) {
|
|
@@ -7428,15 +7428,15 @@
|
|
|
7428
7428
|
value: [{ type: i0.Input }]
|
|
7429
7429
|
};
|
|
7430
7430
|
|
|
7431
|
-
var
|
|
7432
|
-
function
|
|
7431
|
+
var TechlifyFeatureEnabledDirective = /** @class */ (function () {
|
|
7432
|
+
function TechlifyFeatureEnabledDirective(el, featureService, errorHandler, storage) {
|
|
7433
7433
|
this.el = el;
|
|
7434
7434
|
this.featureService = featureService;
|
|
7435
7435
|
this.errorHandler = errorHandler;
|
|
7436
7436
|
this.storage = storage;
|
|
7437
7437
|
this.localFeatures = [];
|
|
7438
7438
|
}
|
|
7439
|
-
|
|
7439
|
+
TechlifyFeatureEnabledDirective.prototype.ngOnInit = function () {
|
|
7440
7440
|
if (!this.storage.getItem('features')) {
|
|
7441
7441
|
this.getFeatures();
|
|
7442
7442
|
}
|
|
@@ -7444,7 +7444,7 @@
|
|
|
7444
7444
|
this.checkForFeatureEnabled();
|
|
7445
7445
|
}
|
|
7446
7446
|
};
|
|
7447
|
-
|
|
7447
|
+
TechlifyFeatureEnabledDirective.prototype.getFeatures = function () {
|
|
7448
7448
|
return __awaiter(this, void 0, void 0, function () {
|
|
7449
7449
|
var features, _a, _b, feature, error_1;
|
|
7450
7450
|
var e_1, _c;
|
|
@@ -7491,7 +7491,7 @@
|
|
|
7491
7491
|
});
|
|
7492
7492
|
});
|
|
7493
7493
|
};
|
|
7494
|
-
|
|
7494
|
+
TechlifyFeatureEnabledDirective.prototype.checkForFeatureEnabled = function () {
|
|
7495
7495
|
try {
|
|
7496
7496
|
var features = this.storage.getItem('features');
|
|
7497
7497
|
var features_split = features.split(',');
|
|
@@ -7506,42 +7506,42 @@
|
|
|
7506
7506
|
this.errorHandler.handleError(error);
|
|
7507
7507
|
}
|
|
7508
7508
|
};
|
|
7509
|
-
return
|
|
7509
|
+
return TechlifyFeatureEnabledDirective;
|
|
7510
7510
|
}());
|
|
7511
|
-
|
|
7511
|
+
TechlifyFeatureEnabledDirective.decorators = [
|
|
7512
7512
|
{ type: i0.Directive, args: [{
|
|
7513
|
-
selector: '[
|
|
7513
|
+
selector: '[techlifyFeatureEnabled]'
|
|
7514
7514
|
},] }
|
|
7515
7515
|
];
|
|
7516
|
-
|
|
7516
|
+
TechlifyFeatureEnabledDirective.ctorParameters = function () { return [
|
|
7517
7517
|
{ type: i0.ElementRef },
|
|
7518
|
-
{ type:
|
|
7518
|
+
{ type: TechlifyFeatureService },
|
|
7519
7519
|
{ type: ErrorHandlerService },
|
|
7520
7520
|
{ type: StorageService }
|
|
7521
7521
|
]; };
|
|
7522
|
-
|
|
7523
|
-
enabledFeature: [{ type: i0.Input, args: ['
|
|
7522
|
+
TechlifyFeatureEnabledDirective.propDecorators = {
|
|
7523
|
+
enabledFeature: [{ type: i0.Input, args: ['techlifyFeatureEnabled',] }]
|
|
7524
7524
|
};
|
|
7525
7525
|
|
|
7526
|
-
var
|
|
7527
|
-
function
|
|
7526
|
+
var TechlifyFeatureModule = /** @class */ (function () {
|
|
7527
|
+
function TechlifyFeatureModule() {
|
|
7528
7528
|
}
|
|
7529
|
-
return
|
|
7529
|
+
return TechlifyFeatureModule;
|
|
7530
7530
|
}());
|
|
7531
|
-
|
|
7531
|
+
TechlifyFeatureModule.decorators = [
|
|
7532
7532
|
{ type: i0.NgModule, args: [{
|
|
7533
7533
|
imports: [
|
|
7534
7534
|
common.CommonModule,
|
|
7535
7535
|
MaterialModule,
|
|
7536
7536
|
flexLayout.FlexLayoutModule,
|
|
7537
|
-
|
|
7537
|
+
TechlifyFeatureRoutes,
|
|
7538
7538
|
slideToggle.MatSlideToggleModule,
|
|
7539
7539
|
forms.FormsModule,
|
|
7540
7540
|
forms.ReactiveFormsModule,
|
|
7541
7541
|
ngxInfiniteScroll.InfiniteScrollModule
|
|
7542
7542
|
],
|
|
7543
|
-
declarations: [exports.
|
|
7544
|
-
exports: [exports.
|
|
7543
|
+
declarations: [exports.TechlifyFeatureListingComponent, OnOffSwitchComponent, TechlifyFeatureEnabledDirective],
|
|
7544
|
+
exports: [exports.TechlifyFeatureListingComponent, TechlifyFeatureEnabledDirective]
|
|
7545
7545
|
},] }
|
|
7546
7546
|
];
|
|
7547
7547
|
|
|
@@ -7578,8 +7578,6 @@
|
|
|
7578
7578
|
exports.AuthenticationService = AuthenticationService;
|
|
7579
7579
|
exports.CacheInterceptor = CacheInterceptor;
|
|
7580
7580
|
exports.CommentFormComponent = CommentFormComponent;
|
|
7581
|
-
exports.CompanyFeatureModule = CompanyFeatureModule;
|
|
7582
|
-
exports.CompanyFeatureRoutes = CompanyFeatureRoutes;
|
|
7583
7581
|
exports.ConfigService = ConfigService;
|
|
7584
7582
|
exports.CoreModule = CoreModule;
|
|
7585
7583
|
exports.CredentialsService = CredentialsService;
|
|
@@ -7646,13 +7644,11 @@
|
|
|
7646
7644
|
exports.LoginHistoryForUserRoutingModule = LoginHistoryForUserRoutingModule;
|
|
7647
7645
|
exports.MatSelectInfiniteScrollDirective = MatSelectInfiniteScrollDirective;
|
|
7648
7646
|
exports.MaterialModule = MaterialModule;
|
|
7649
|
-
exports.NgxFeatureEnabledDirective = NgxFeatureEnabledDirective;
|
|
7650
7647
|
exports.NoteFormComponent = NoteFormComponent;
|
|
7651
7648
|
exports.NoteListComponent = NoteListComponent;
|
|
7652
7649
|
exports.NoteModule = NoteModule;
|
|
7653
7650
|
exports.NumItemsSelector = NumItemsSelector;
|
|
7654
7651
|
exports.NumberSelector = NumberSelector;
|
|
7655
|
-
exports.OnOffSwitchComponent = OnOffSwitchComponent;
|
|
7656
7652
|
exports.PageEvent = PageEvent;
|
|
7657
7653
|
exports.ReadMoreComponent = ReadMoreComponent;
|
|
7658
7654
|
exports.ReadMoreModule = ReadMoreModule;
|
|
@@ -7663,6 +7659,9 @@
|
|
|
7663
7659
|
exports.StorageService = StorageService;
|
|
7664
7660
|
exports.SuccessSnackComponent = SuccessSnackComponent;
|
|
7665
7661
|
exports.TechlifyConfig = TechlifyConfig;
|
|
7662
|
+
exports.TechlifyFeatureEnabledDirective = TechlifyFeatureEnabledDirective;
|
|
7663
|
+
exports.TechlifyFeatureModule = TechlifyFeatureModule;
|
|
7664
|
+
exports.TechlifyFeatureRoutes = TechlifyFeatureRoutes;
|
|
7666
7665
|
exports.TechlifyTaggerTagFormConfigModel = TechlifyTaggerTagFormConfigModel;
|
|
7667
7666
|
exports.TechlifyTaggerTagFormFieldModule = TechlifyTaggerTagFormFieldModule;
|
|
7668
7667
|
exports.TechlifyTaggerTagSelectorModule = TechlifyTaggerTagSelectorModule;
|
|
@@ -7700,8 +7699,9 @@
|
|
|
7700
7699
|
exports.ɵby = AlertService;
|
|
7701
7700
|
exports.ɵbz = StorageService;
|
|
7702
7701
|
exports.ɵc = ErrorSnackComponent;
|
|
7703
|
-
exports.ɵca =
|
|
7702
|
+
exports.ɵca = TechlifyFeatureService;
|
|
7704
7703
|
exports.ɵcb = AuthenticationGuard;
|
|
7704
|
+
exports.ɵcc = OnOffSwitchComponent;
|
|
7705
7705
|
exports.ɵd = HTTP_DYNAMIC_INTERCEPTORS;
|
|
7706
7706
|
exports.ɵe = HttpService;
|
|
7707
7707
|
exports.ɵf = RouteReusableStrategy;
|