ngx-techlify-core 14.12.0-beta.4 → 14.12.0-beta.5
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/esm2020/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.mjs +12 -13
- package/fesm2015/ngx-techlify-core.mjs +8 -8
- package/fesm2015/ngx-techlify-core.mjs.map +1 -1
- package/fesm2020/ngx-techlify-core.mjs +8 -8
- package/fesm2020/ngx-techlify-core.mjs.map +1 -1
- package/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.d.ts +5 -6
- package/package.json +1 -1
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "../../core";
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "@angular/
|
|
6
|
-
import * as i4 from "@angular/material/menu";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/material/menu";
|
|
7
6
|
export class TechlifyCompanySwitcherComponent {
|
|
8
|
-
constructor(http, credentialsService,
|
|
7
|
+
constructor(http, credentialsService, authenticationService) {
|
|
9
8
|
this.http = http;
|
|
10
9
|
this.credentialsService = credentialsService;
|
|
11
|
-
this.alertService = alertService;
|
|
12
|
-
this.currentUserService = currentUserService;
|
|
13
10
|
this.authenticationService = authenticationService;
|
|
14
11
|
this.userClients = [];
|
|
15
12
|
this.user = this.credentialsService.credentials?.user;
|
|
@@ -34,7 +31,7 @@ export class TechlifyCompanySwitcherComponent {
|
|
|
34
31
|
*/
|
|
35
32
|
switchClient(userClient) {
|
|
36
33
|
// Do nothing is same client selected
|
|
37
|
-
if (this.user.client_id === userClient.client_id) {
|
|
34
|
+
if (this.user.client_id === userClient.client_id || userClient?.is_disabled) {
|
|
38
35
|
return;
|
|
39
36
|
}
|
|
40
37
|
this.authenticationService.switchCompany(userClient?.id)
|
|
@@ -44,10 +41,12 @@ export class TechlifyCompanySwitcherComponent {
|
|
|
44
41
|
});
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
|
-
TechlifyCompanySwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TechlifyCompanySwitcherComponent, deps: [{ token: i1.HttpService }, { token: i1.CredentialsService }, { token: i1.
|
|
48
|
-
TechlifyCompanySwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TechlifyCompanySwitcherComponent, selector: "app-techlify-company-switcher", ngImport: i0, template: "<div
|
|
44
|
+
TechlifyCompanySwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TechlifyCompanySwitcherComponent, deps: [{ token: i1.HttpService }, { token: i1.CredentialsService }, { token: i1.AuthenticationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
+
TechlifyCompanySwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TechlifyCompanySwitcherComponent, selector: "app-techlify-company-switcher", inputs: { menuTitle: "menuTitle" }, ngImport: i0, template: "<div mat-menu-item [matMenuTriggerFor]=\"menu\" type=\"button\">\n {{ menuTitle ?? user.client?.name }}\n</div>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let userClient of userClients\" (click)=\"switchClient(userClient)\"\n [disabled]=\"!userClient.is_enabled || userClient.client?.status_id == 3\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span>\n {{ userClient?.client?.name }}\n </span>\n <span *ngIf=\"userClient?.client_id === user.client_id\" class=\"active-company\"></span>\n <span *ngIf=\"!userClient.is_enabled\">(disabled)</span>\n <span *ngIf=\"userClient.client?.status_id == 3\">(Inactive)</span>\n </div>\n </button>\n</mat-menu>", styles: [".active-company{width:10px;height:10px;background-color:#00ce00;border-radius:50%}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
49
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TechlifyCompanySwitcherComponent, decorators: [{
|
|
50
47
|
type: Component,
|
|
51
|
-
args: [{ selector: 'app-techlify-company-switcher', template: "<div
|
|
52
|
-
}], ctorParameters: function () { return [{ type: i1.HttpService }, { type: i1.CredentialsService }, { type: i1.
|
|
53
|
-
|
|
48
|
+
args: [{ selector: 'app-techlify-company-switcher', template: "<div mat-menu-item [matMenuTriggerFor]=\"menu\" type=\"button\">\n {{ menuTitle ?? user.client?.name }}\n</div>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let userClient of userClients\" (click)=\"switchClient(userClient)\"\n [disabled]=\"!userClient.is_enabled || userClient.client?.status_id == 3\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span>\n {{ userClient?.client?.name }}\n </span>\n <span *ngIf=\"userClient?.client_id === user.client_id\" class=\"active-company\"></span>\n <span *ngIf=\"!userClient.is_enabled\">(disabled)</span>\n <span *ngIf=\"userClient.client?.status_id == 3\">(Inactive)</span>\n </div>\n </button>\n</mat-menu>", styles: [".active-company{width:10px;height:10px;background-color:#00ce00;border-radius:50%}\n"] }]
|
|
49
|
+
}], ctorParameters: function () { return [{ type: i1.HttpService }, { type: i1.CredentialsService }, { type: i1.AuthenticationService }]; }, propDecorators: { menuTitle: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}] } });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVjaGxpZnktY29tcGFueS1zd2l0Y2hlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdGVjaGxpZnktY29yZS9zcmMvbGliL3RlY2hsaWZ5LWNvbXBhbnktc3dpdGNoZXIvdGVjaGxpZnktY29tcGFueS1zd2l0Y2hlci90ZWNobGlmeS1jb21wYW55LXN3aXRjaGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC10ZWNobGlmeS1jb3JlL3NyYy9saWIvdGVjaGxpZnktY29tcGFueS1zd2l0Y2hlci90ZWNobGlmeS1jb21wYW55LXN3aXRjaGVyL3RlY2hsaWZ5LWNvbXBhbnktc3dpdGNoZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBY3pELE1BQU0sT0FBTyxnQ0FBZ0M7SUFLM0MsWUFDVSxJQUFpQixFQUNqQixrQkFBc0MsRUFDdEMscUJBQTRDO1FBRjVDLFNBQUksR0FBSixJQUFJLENBQWE7UUFDakIsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFvQjtRQUN0QywwQkFBcUIsR0FBckIscUJBQXFCLENBQXVCO1FBTHRELGdCQUFXLEdBQVUsRUFBRSxDQUFDO1FBT3RCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixDQUFDLFdBQVcsRUFBRSxJQUFJLENBQUM7SUFDeEQsQ0FBQztJQUVELF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2spPVwic3dpdGNoQ2xpZW50KHVzZXJDbGllbnQpXCJcbiAgICBbZGlzYWJsZWRdPVwiIXVzZXJDbGllbnQuaXNfZW5hYmxlZCB8fCB1c2VyQ2xpZW50LmNsaWVudD8uc3RhdHVzX2lkID09IDNcIj5cbiAgICA8ZGl2IGNsYXNzPVwiZC1mbGV4IGp1c3RpZnktY29udGVudC1zdGFydCBhbGlnbi1pdGVtcy1jZW50ZXIgZ2FwLTJcIj5cbiAgICAgIDxzcGFuPlxuICAgICAgICB7eyB1c2VyQ2xpZW50Py5jbGllbnQ/Lm5hbWUgfX1cbiAgICAgIDwvc3Bhbj5cbiAgICAgIDxzcGFuICpuZ0lmPVwidXNlckNsaWVudD8uY2xpZW50X2lkID09PSB1c2VyLmNsaWVudF9pZFwiIGNsYXNzPVwiYWN0aXZlLWNvbXBhbnlcIj48L3NwYW4+XG4gICAgICA8c3BhbiAqbmdJZj1cIiF1c2VyQ2xpZW50LmlzX2VuYWJsZWRcIj4oZGlzYWJsZWQpPC9zcGFuPlxuICAgICAgPHNwYW4gKm5nSWY9XCJ1c2VyQ2xpZW50LmNsaWVudD8uc3RhdHVzX2lkID09IDNcIj4oSW5hY3RpdmUpPC9zcGFuPlxuICAgIDwvZGl2PlxuICA8L2J1dHRvbj5cbjwvbWF0LW1lbnU+Il19
|
|
@@ -13240,12 +13240,10 @@ var restrictors_module = /*#__PURE__*/Object.freeze({
|
|
|
13240
13240
|
});
|
|
13241
13241
|
|
|
13242
13242
|
class TechlifyCompanySwitcherComponent {
|
|
13243
|
-
constructor(http, credentialsService,
|
|
13243
|
+
constructor(http, credentialsService, authenticationService) {
|
|
13244
13244
|
var _a;
|
|
13245
13245
|
this.http = http;
|
|
13246
13246
|
this.credentialsService = credentialsService;
|
|
13247
|
-
this.alertService = alertService;
|
|
13248
|
-
this.currentUserService = currentUserService;
|
|
13249
13247
|
this.authenticationService = authenticationService;
|
|
13250
13248
|
this.userClients = [];
|
|
13251
13249
|
this.user = (_a = this.credentialsService.credentials) === null || _a === void 0 ? void 0 : _a.user;
|
|
@@ -13270,7 +13268,7 @@ class TechlifyCompanySwitcherComponent {
|
|
|
13270
13268
|
*/
|
|
13271
13269
|
switchClient(userClient) {
|
|
13272
13270
|
// Do nothing is same client selected
|
|
13273
|
-
if (this.user.client_id === userClient.client_id) {
|
|
13271
|
+
if (this.user.client_id === userClient.client_id || (userClient === null || userClient === void 0 ? void 0 : userClient.is_disabled)) {
|
|
13274
13272
|
return;
|
|
13275
13273
|
}
|
|
13276
13274
|
this.authenticationService.switchCompany(userClient === null || userClient === void 0 ? void 0 : userClient.id)
|
|
@@ -13280,12 +13278,14 @@ class TechlifyCompanySwitcherComponent {
|
|
|
13280
13278
|
});
|
|
13281
13279
|
}
|
|
13282
13280
|
}
|
|
13283
|
-
TechlifyCompanySwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TechlifyCompanySwitcherComponent, deps: [{ token: HttpService }, { token: CredentialsService }, { token:
|
|
13284
|
-
TechlifyCompanySwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TechlifyCompanySwitcherComponent, selector: "app-techlify-company-switcher", ngImport: i0, template: "<div
|
|
13281
|
+
TechlifyCompanySwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TechlifyCompanySwitcherComponent, deps: [{ token: HttpService }, { token: CredentialsService }, { token: AuthenticationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13282
|
+
TechlifyCompanySwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TechlifyCompanySwitcherComponent, selector: "app-techlify-company-switcher", inputs: { menuTitle: "menuTitle" }, ngImport: i0, template: "<div mat-menu-item [matMenuTriggerFor]=\"menu\" type=\"button\">\n {{ menuTitle ?? user.client?.name }}\n</div>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let userClient of userClients\" (click)=\"switchClient(userClient)\"\n [disabled]=\"!userClient.is_enabled || userClient.client?.status_id == 3\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span>\n {{ userClient?.client?.name }}\n </span>\n <span *ngIf=\"userClient?.client_id === user.client_id\" class=\"active-company\"></span>\n <span *ngIf=\"!userClient.is_enabled\">(disabled)</span>\n <span *ngIf=\"userClient.client?.status_id == 3\">(Inactive)</span>\n </div>\n </button>\n</mat-menu>", styles: [".active-company{width:10px;height:10px;background-color:#00ce00;border-radius:50%}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i8$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i8$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
13285
13283
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TechlifyCompanySwitcherComponent, decorators: [{
|
|
13286
13284
|
type: Component,
|
|
13287
|
-
args: [{ selector: 'app-techlify-company-switcher', template: "<div
|
|
13288
|
-
}], ctorParameters: function () { return [{ type: HttpService }, { type: CredentialsService }, { type:
|
|
13285
|
+
args: [{ selector: 'app-techlify-company-switcher', template: "<div mat-menu-item [matMenuTriggerFor]=\"menu\" type=\"button\">\n {{ menuTitle ?? user.client?.name }}\n</div>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let userClient of userClients\" (click)=\"switchClient(userClient)\"\n [disabled]=\"!userClient.is_enabled || userClient.client?.status_id == 3\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span>\n {{ userClient?.client?.name }}\n </span>\n <span *ngIf=\"userClient?.client_id === user.client_id\" class=\"active-company\"></span>\n <span *ngIf=\"!userClient.is_enabled\">(disabled)</span>\n <span *ngIf=\"userClient.client?.status_id == 3\">(Inactive)</span>\n </div>\n </button>\n</mat-menu>", styles: [".active-company{width:10px;height:10px;background-color:#00ce00;border-radius:50%}\n"] }]
|
|
13286
|
+
}], ctorParameters: function () { return [{ type: HttpService }, { type: CredentialsService }, { type: AuthenticationService }]; }, propDecorators: { menuTitle: [{
|
|
13287
|
+
type: Input
|
|
13288
|
+
}] } });
|
|
13289
13289
|
|
|
13290
13290
|
class TechlifyCompanySwitcherModule {
|
|
13291
13291
|
}
|