@flusys/ng-auth 7.1.0 → 8.0.0-beta.1
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/fesm2022/flusys-ng-auth.mjs +339 -278
- package/fesm2022/flusys-ng-auth.mjs.map +1 -1
- package/package.json +5 -5
- package/types/flusys-ng-auth.d.ts +11 -11
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject,
|
|
3
|
+
import { inject, Service, signal, computed, effect, PLATFORM_ID, InjectionToken, Component, untracked, viewChild, DestroyRef, DOCUMENT, input, Injector, output, resource, makeStateKey, TransferState } from '@angular/core';
|
|
4
4
|
import { APP_CONFIG, getServiceUrl, isCompanyFeatureEnabled, isServiceEnabled, isSignUpEnabled, getPermissionMode, getDefaultCompanySlug, getDefaultBranchSlug } from '@flusys/ng-core';
|
|
5
5
|
import { of, timeout, switchMap, map, tap, catchError, shareReplay, finalize, BehaviorSubject, throwError, filter, take, from, forkJoin, firstValueFrom } from 'rxjs';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { PlatformService, TranslateService, PermissionValidatorService, ApiResourceService, CookieService, USER_PERMISSIONS, COMPANY_PERMISSIONS, BRANCH_PERMISSIONS, SOCIAL_AUTH_CONFIG_PERMISSIONS, resolveTranslationModule, SHARED_MESSAGES, permissionGuard, USER_PROVIDER, COMPANY_API_PROVIDER, USER_PERMISSION_PROVIDER, AUTH_STATE_PROVIDER, RouterTabsComponent, TranslatePipe, AngularModule, HasPermissionDirective, BaseFormComponent, BaseListComponent, BaseListTemplateDirective, FileUrlService, FILE_PROVIDER, PROFILE_PERMISSION_PROVIDER, FileUploaderComponent } from '@flusys/ng-shared';
|
|
6
|
+
import { Router, RouterOutlet, ActivatedRoute, RouterLink } from '@angular/router';
|
|
7
|
+
import { PlatformService, PermissionValidatorService, ApiResourceService, CookieService, TranslateService, USER_PERMISSIONS, COMPANY_PERMISSIONS, BRANCH_PERMISSIONS, SOCIAL_AUTH_CONFIG_PERMISSIONS, resolveTranslationModule, SHARED_MESSAGES, permissionGuard, USER_PROVIDER, COMPANY_API_PROVIDER, USER_PERMISSION_PROVIDER, AUTH_STATE_PROVIDER, RouterTabsComponent, TranslatePipe, HasPermissionDirective, BaseFormComponent, BaseListComponent, BaseListTemplateDirective, FileUrlService, FILE_PROVIDER, PROFILE_PERMISSION_PROVIDER, FileUploaderComponent } from '@flusys/ng-shared';
|
|
9
8
|
import { map as map$1, catchError as catchError$1, tap as tap$1 } from 'rxjs/operators';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import * as i1$1 from '@flusys/ng-ui';
|
|
13
|
-
import { MessageService, UiModule, ConfirmationService } from '@flusys/ng-ui';
|
|
9
|
+
import { isPlatformBrowser, NgComponentOutlet, NgTemplateOutlet } from '@angular/common';
|
|
10
|
+
import { MessageService, CardComponent, CheckboxComponent, FButtonDirective, InputTextDirective, SelectComponent, UiIconComponent, ConfirmationService, TableComponent, TagComponent, TooltipDirective, PasswordComponent, AvatarComponent, SkeletonComponent, TextareaDirective, ToggleSwitchComponent, DialogComponent, ProgressSpinnerComponent } from '@flusys/ng-ui';
|
|
14
11
|
import { LAYOUT_AUTH_STATE, LAYOUT_AUTH_API, AppFloatingConfigurator } from '@flusys/ng-layout';
|
|
15
12
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
16
13
|
import { form, required, FormField, email, minLength } from '@angular/forms/signals';
|
|
17
14
|
import * as i1 from '@angular/forms';
|
|
15
|
+
import { FormsModule } from '@angular/forms';
|
|
18
16
|
|
|
19
17
|
var SocialProviderEnum;
|
|
20
18
|
(function (SocialProviderEnum) {
|
|
@@ -90,12 +88,11 @@ class AuthApiService {
|
|
|
90
88
|
verifyEmail(token) {
|
|
91
89
|
return this.http.post(`${this.baseUrl}/verify-email`, { token });
|
|
92
90
|
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
94
|
-
static ɵprov = i0.ɵɵ
|
|
91
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
92
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthApiService });
|
|
95
93
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
97
|
-
type:
|
|
98
|
-
args: [{ providedIn: 'root' }]
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthApiService, decorators: [{
|
|
95
|
+
type: Service
|
|
99
96
|
}], ctorParameters: () => [] });
|
|
100
97
|
|
|
101
98
|
/**
|
|
@@ -118,9 +115,6 @@ class AuthStateService {
|
|
|
118
115
|
appConfig = inject(APP_CONFIG);
|
|
119
116
|
router = inject(Router);
|
|
120
117
|
platform = inject(PlatformService);
|
|
121
|
-
translateAdapter = inject(TranslateService, {
|
|
122
|
-
optional: true,
|
|
123
|
-
});
|
|
124
118
|
permissionValidator = inject(PermissionValidatorService);
|
|
125
119
|
// Core State (private writable, public readonly)
|
|
126
120
|
_user = signal(null, /* @ts-ignore */
|
|
@@ -319,12 +313,11 @@ class AuthStateService {
|
|
|
319
313
|
if (!this.platform.isServer)
|
|
320
314
|
localStorage.removeItem(key);
|
|
321
315
|
}
|
|
322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
323
|
-
static ɵprov = i0.ɵɵ
|
|
316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthStateService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
317
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthStateService });
|
|
324
318
|
}
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
326
|
-
type:
|
|
327
|
-
args: [{ providedIn: 'root' }]
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthStateService, decorators: [{
|
|
320
|
+
type: Service
|
|
328
321
|
}], ctorParameters: () => [] });
|
|
329
322
|
|
|
330
323
|
class AuthInitService {
|
|
@@ -394,12 +387,11 @@ class AuthInitService {
|
|
|
394
387
|
}));
|
|
395
388
|
return this.initializationCache$;
|
|
396
389
|
}
|
|
397
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
398
|
-
static ɵprov = i0.ɵɵ
|
|
390
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthInitService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
391
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthInitService });
|
|
399
392
|
}
|
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
401
|
-
type:
|
|
402
|
-
args: [{ providedIn: 'root' }]
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthInitService, decorators: [{
|
|
394
|
+
type: Service
|
|
403
395
|
}] });
|
|
404
396
|
|
|
405
397
|
/**
|
|
@@ -413,12 +405,11 @@ class BranchApiService extends ApiResourceService {
|
|
|
413
405
|
fetchByCompany(companyId, search = '') {
|
|
414
406
|
this.fetchList(search, { filter: { companyId } });
|
|
415
407
|
}
|
|
416
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
417
|
-
static ɵprov = i0.ɵɵ
|
|
408
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: BranchApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
409
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: BranchApiService });
|
|
418
410
|
}
|
|
419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
420
|
-
type:
|
|
421
|
-
args: [{ providedIn: 'root' }]
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: BranchApiService, decorators: [{
|
|
412
|
+
type: Service
|
|
422
413
|
}], ctorParameters: () => [] });
|
|
423
414
|
|
|
424
415
|
/**
|
|
@@ -429,12 +420,11 @@ class CompanyApiService extends ApiResourceService {
|
|
|
429
420
|
constructor() {
|
|
430
421
|
super('company', 'administration');
|
|
431
422
|
}
|
|
432
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
433
|
-
static ɵprov = i0.ɵɵ
|
|
423
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CompanyApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
424
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: CompanyApiService });
|
|
434
425
|
}
|
|
435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
436
|
-
type:
|
|
437
|
-
args: [{ providedIn: 'root' }]
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CompanyApiService, decorators: [{
|
|
427
|
+
type: Service
|
|
438
428
|
}], ctorParameters: () => [] });
|
|
439
429
|
|
|
440
430
|
/**
|
|
@@ -501,24 +491,22 @@ class SocialAuthApiService {
|
|
|
501
491
|
callback(request) {
|
|
502
492
|
return this.http.post(`${this.baseUrl}/social/callback`, request);
|
|
503
493
|
}
|
|
504
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
505
|
-
static ɵprov = i0.ɵɵ
|
|
494
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialAuthApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
495
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: SocialAuthApiService });
|
|
506
496
|
}
|
|
507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
508
|
-
type:
|
|
509
|
-
args: [{ providedIn: 'root' }]
|
|
497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialAuthApiService, decorators: [{
|
|
498
|
+
type: Service
|
|
510
499
|
}] });
|
|
511
500
|
|
|
512
501
|
class SocialAuthConfigApiService extends ApiResourceService {
|
|
513
502
|
constructor() {
|
|
514
503
|
super('social-config', 'auth');
|
|
515
504
|
}
|
|
516
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
517
|
-
static ɵprov = i0.ɵɵ
|
|
505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialAuthConfigApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
506
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: SocialAuthConfigApiService });
|
|
518
507
|
}
|
|
519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
520
|
-
type:
|
|
521
|
-
args: [{ providedIn: 'root' }]
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialAuthConfigApiService, decorators: [{
|
|
509
|
+
type: Service
|
|
522
510
|
}], ctorParameters: () => [] });
|
|
523
511
|
|
|
524
512
|
/**
|
|
@@ -543,12 +531,11 @@ class TokenRefreshStateService {
|
|
|
543
531
|
failRefresh() {
|
|
544
532
|
this._isRefreshing.set(false);
|
|
545
533
|
}
|
|
546
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
547
|
-
static ɵprov = i0.ɵɵ
|
|
534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TokenRefreshStateService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
535
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: TokenRefreshStateService });
|
|
548
536
|
}
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
550
|
-
type:
|
|
551
|
-
args: [{ providedIn: 'root' }]
|
|
537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TokenRefreshStateService, decorators: [{
|
|
538
|
+
type: Service
|
|
552
539
|
}] });
|
|
553
540
|
|
|
554
541
|
/**
|
|
@@ -566,12 +553,11 @@ class UserApiService extends ApiResourceService {
|
|
|
566
553
|
const params = search ? { q: search } : undefined;
|
|
567
554
|
return this.http.post(`${this.baseUrl}/lookup`, filter, params ? { params } : undefined);
|
|
568
555
|
}
|
|
569
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
570
|
-
static ɵprov = i0.ɵɵ
|
|
556
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
557
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: UserApiService });
|
|
571
558
|
}
|
|
572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
573
|
-
type:
|
|
574
|
-
args: [{ providedIn: 'root' }]
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserApiService, decorators: [{
|
|
560
|
+
type: Service
|
|
575
561
|
}], ctorParameters: () => [] });
|
|
576
562
|
|
|
577
563
|
/**
|
|
@@ -612,12 +598,11 @@ class UserPermissionApiService {
|
|
|
612
598
|
...(companyId && { companyId }),
|
|
613
599
|
});
|
|
614
600
|
}
|
|
615
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
616
|
-
static ɵprov = i0.ɵɵ
|
|
601
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserPermissionApiService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
602
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: UserPermissionApiService });
|
|
617
603
|
}
|
|
618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
619
|
-
type:
|
|
620
|
-
args: [{ providedIn: 'root' }]
|
|
604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserPermissionApiService, decorators: [{
|
|
605
|
+
type: Service
|
|
621
606
|
}] });
|
|
622
607
|
|
|
623
608
|
function isValidReturnUrl(url) {
|
|
@@ -626,7 +611,7 @@ function isValidReturnUrl(url) {
|
|
|
626
611
|
return url.startsWith('/') && !url.includes('://') && !url.startsWith('//');
|
|
627
612
|
}
|
|
628
613
|
/** Protects routes requiring authentication */
|
|
629
|
-
const authGuard = (
|
|
614
|
+
const authGuard = (_route, state) => {
|
|
630
615
|
const authState = inject(AuthStateService);
|
|
631
616
|
const router = inject(Router);
|
|
632
617
|
const appConfig = inject(APP_CONFIG);
|
|
@@ -1373,12 +1358,11 @@ class AuthLayoutStateAdapter {
|
|
|
1373
1358
|
return null;
|
|
1374
1359
|
}, /* @ts-ignore */
|
|
1375
1360
|
...(ngDevMode ? [{ debugName: "loginUserData" }] : /* istanbul ignore next */ []));
|
|
1376
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1377
|
-
static ɵprov = i0.ɵɵ
|
|
1361
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthLayoutStateAdapter, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
1362
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthLayoutStateAdapter });
|
|
1378
1363
|
}
|
|
1379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1380
|
-
type:
|
|
1381
|
-
args: [{ providedIn: 'root' }]
|
|
1364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthLayoutStateAdapter, decorators: [{
|
|
1365
|
+
type: Service
|
|
1382
1366
|
}] });
|
|
1383
1367
|
// =============================================================================
|
|
1384
1368
|
// Layout API Adapter
|
|
@@ -1446,12 +1430,11 @@ class AuthLayoutApiAdapter {
|
|
|
1446
1430
|
imageId: branch.logoId ?? undefined,
|
|
1447
1431
|
}))));
|
|
1448
1432
|
}
|
|
1449
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1450
|
-
static ɵprov = i0.ɵɵ
|
|
1433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthLayoutApiAdapter, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
1434
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthLayoutApiAdapter });
|
|
1451
1435
|
}
|
|
1452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1453
|
-
type:
|
|
1454
|
-
args: [{ providedIn: 'root' }]
|
|
1436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthLayoutApiAdapter, decorators: [{
|
|
1437
|
+
type: Service
|
|
1455
1438
|
}] });
|
|
1456
1439
|
|
|
1457
1440
|
/**
|
|
@@ -1498,11 +1481,12 @@ class AuthUserProviderAdapter {
|
|
|
1498
1481
|
meta: response.meta,
|
|
1499
1482
|
})));
|
|
1500
1483
|
}
|
|
1501
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1502
|
-
static ɵprov = i0.ɵɵ
|
|
1484
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthUserProviderAdapter, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
1485
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthUserProviderAdapter, autoProvided: false });
|
|
1503
1486
|
}
|
|
1504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1505
|
-
type:
|
|
1487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthUserProviderAdapter, decorators: [{
|
|
1488
|
+
type: Service,
|
|
1489
|
+
args: [{ autoProvided: false }]
|
|
1506
1490
|
}] });
|
|
1507
1491
|
// =============================================================================
|
|
1508
1492
|
// Company API Provider Adapter
|
|
@@ -1530,11 +1514,12 @@ class AuthCompanyApiProviderAdapter {
|
|
|
1530
1514
|
meta: response.meta,
|
|
1531
1515
|
})));
|
|
1532
1516
|
}
|
|
1533
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1534
|
-
static ɵprov = i0.ɵɵ
|
|
1517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthCompanyApiProviderAdapter, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
1518
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthCompanyApiProviderAdapter, autoProvided: false });
|
|
1535
1519
|
}
|
|
1536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1537
|
-
type:
|
|
1520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthCompanyApiProviderAdapter, decorators: [{
|
|
1521
|
+
type: Service,
|
|
1522
|
+
args: [{ autoProvided: false }]
|
|
1538
1523
|
}] });
|
|
1539
1524
|
// =============================================================================
|
|
1540
1525
|
// User Permission Provider Adapter
|
|
@@ -1550,11 +1535,12 @@ class AuthUserPermissionProviderAdapter {
|
|
|
1550
1535
|
data: (response.data ?? []).map((c) => ({ id: c.companyId, name: c.companyName })),
|
|
1551
1536
|
})));
|
|
1552
1537
|
}
|
|
1553
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1554
|
-
static ɵprov = i0.ɵɵ
|
|
1538
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthUserPermissionProviderAdapter, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
1539
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthUserPermissionProviderAdapter, autoProvided: false });
|
|
1555
1540
|
}
|
|
1556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1557
|
-
type:
|
|
1541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthUserPermissionProviderAdapter, decorators: [{
|
|
1542
|
+
type: Service,
|
|
1543
|
+
args: [{ autoProvided: false }]
|
|
1558
1544
|
}] });
|
|
1559
1545
|
// =============================================================================
|
|
1560
1546
|
// Auth State Provider Adapter
|
|
@@ -1568,11 +1554,12 @@ class AuthStateProviderAdapter {
|
|
|
1568
1554
|
initialize() {
|
|
1569
1555
|
return this.authInit.initialize().pipe(map(() => undefined));
|
|
1570
1556
|
}
|
|
1571
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1572
|
-
static ɵprov = i0.ɵɵ
|
|
1557
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthStateProviderAdapter, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
1558
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.5", ngImport: i0, type: AuthStateProviderAdapter, autoProvided: false });
|
|
1573
1559
|
}
|
|
1574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1575
|
-
type:
|
|
1560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AuthStateProviderAdapter, decorators: [{
|
|
1561
|
+
type: Service,
|
|
1562
|
+
args: [{ autoProvided: false }]
|
|
1576
1563
|
}] });
|
|
1577
1564
|
|
|
1578
1565
|
/** Provides auth integration for ng-layout */
|
|
@@ -1705,8 +1692,8 @@ class AdministrationPageComponent {
|
|
|
1705
1692
|
}));
|
|
1706
1693
|
}, /* @ts-ignore */
|
|
1707
1694
|
...(ngDevMode ? [{ debugName: "visibleTabs" }] : /* istanbul ignore next */ []));
|
|
1708
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1709
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.
|
|
1695
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AdministrationPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.5", type: AdministrationPageComponent, isStandalone: true, selector: "lib-administration-page", ngImport: i0, template: `
|
|
1710
1697
|
<div class="p-4">
|
|
1711
1698
|
<div class="mb-4">
|
|
1712
1699
|
<h1 class="text-2xl font-bold m-0">{{ 'administrative.title' | translate }}</h1>
|
|
@@ -1721,7 +1708,7 @@ class AdministrationPageComponent {
|
|
|
1721
1708
|
</div>
|
|
1722
1709
|
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: RouterTabsComponent, selector: "lib-router-tabs", inputs: ["tabs"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
1723
1710
|
}
|
|
1724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AdministrationPageComponent, decorators: [{
|
|
1725
1712
|
type: Component,
|
|
1726
1713
|
args: [{
|
|
1727
1714
|
selector: 'lib-administration-page',
|
|
@@ -1875,7 +1862,8 @@ class BranchFormComponent {
|
|
|
1875
1862
|
this.formModel.update((m) => ({ ...m, slug }));
|
|
1876
1863
|
}
|
|
1877
1864
|
}
|
|
1878
|
-
async onSubmit() {
|
|
1865
|
+
async onSubmit(event) {
|
|
1866
|
+
event.preventDefault();
|
|
1879
1867
|
if (!this.isFormValid()) {
|
|
1880
1868
|
this.messageService.add({
|
|
1881
1869
|
severity: 'error',
|
|
@@ -1951,8 +1939,8 @@ class BranchFormComponent {
|
|
|
1951
1939
|
queryParams: companyId ? { companyId } : {},
|
|
1952
1940
|
});
|
|
1953
1941
|
}
|
|
1954
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1955
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
1942
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: BranchFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1943
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: BranchFormComponent, isStandalone: true, selector: "lib-branch-form", ngImport: i0, template: `
|
|
1956
1944
|
<f-card>
|
|
1957
1945
|
<ng-template #header>
|
|
1958
1946
|
<div class="flex justify-between items-center p-4">
|
|
@@ -1967,7 +1955,7 @@ class BranchFormComponent {
|
|
|
1967
1955
|
</ng-template>
|
|
1968
1956
|
|
|
1969
1957
|
<form
|
|
1970
|
-
(
|
|
1958
|
+
(submit)="onSubmit($event)"
|
|
1971
1959
|
class="grid grid-cols-1 md:grid-cols-2 gap-4"
|
|
1972
1960
|
>
|
|
1973
1961
|
<!-- Company Selection -->
|
|
@@ -2088,13 +2076,22 @@ class BranchFormComponent {
|
|
|
2088
2076
|
</div>
|
|
2089
2077
|
</form>
|
|
2090
2078
|
</f-card>
|
|
2091
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
2079
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CardComponent, selector: "f-card", inputs: ["header", "subheader", "styleClass", "style"] }, { kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2092
2080
|
}
|
|
2093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
2081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: BranchFormComponent, decorators: [{
|
|
2094
2082
|
type: Component,
|
|
2095
2083
|
args: [{
|
|
2096
2084
|
selector: 'lib-branch-form',
|
|
2097
|
-
imports: [
|
|
2085
|
+
imports: [
|
|
2086
|
+
CardComponent,
|
|
2087
|
+
CheckboxComponent,
|
|
2088
|
+
FButtonDirective,
|
|
2089
|
+
InputTextDirective,
|
|
2090
|
+
SelectComponent,
|
|
2091
|
+
UiIconComponent,
|
|
2092
|
+
FormField,
|
|
2093
|
+
TranslatePipe,
|
|
2094
|
+
],
|
|
2098
2095
|
template: `
|
|
2099
2096
|
<f-card>
|
|
2100
2097
|
<ng-template #header>
|
|
@@ -2110,7 +2107,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
2110
2107
|
</ng-template>
|
|
2111
2108
|
|
|
2112
2109
|
<form
|
|
2113
|
-
(
|
|
2110
|
+
(submit)="onSubmit($event)"
|
|
2114
2111
|
class="grid grid-cols-1 md:grid-cols-2 gap-4"
|
|
2115
2112
|
>
|
|
2116
2113
|
<!-- Company Selection -->
|
|
@@ -2344,8 +2341,8 @@ class BranchListComponent {
|
|
|
2344
2341
|
},
|
|
2345
2342
|
});
|
|
2346
2343
|
}
|
|
2347
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
2348
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
2344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: BranchListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2345
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: BranchListComponent, isStandalone: true, selector: "lib-branch-list", ngImport: i0, template: `
|
|
2349
2346
|
<f-card>
|
|
2350
2347
|
<ng-template #header>
|
|
2351
2348
|
<div
|
|
@@ -2467,13 +2464,24 @@ class BranchListComponent {
|
|
|
2467
2464
|
</f-table>
|
|
2468
2465
|
</div>
|
|
2469
2466
|
</f-card>
|
|
2470
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type:
|
|
2467
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CardComponent, selector: "f-card", inputs: ["header", "subheader", "styleClass", "style"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "component", type: TableComponent, selector: "f-table", inputs: ["value", "lazy", "loading", "rows", "totalRecords", "rowHover", "dataKey", "scrollable", "scrollHeight", "paginator", "first", "rowsPerPageOptions", "showCurrentPageReport", "currentPageReportTemplate", "tableStyle", "styleClass", "globalFilterFields", "filterDelay", "responsiveLayout", "selectionMode", "sortMode", "rowExpandMode", "resizableColumns", "rowStyleClass", "virtualScroll", "virtualScrollItemSize", "sortField", "sortOrder", "multiSortMeta", "filters", "selection", "expandedRowKeys", "contextMenuSelection"], outputs: ["sortFieldChange", "sortOrderChange", "multiSortMetaChange", "filtersChange", "selectionChange", "expandedRowKeysChange", "contextMenuSelectionChange", "onLazyLoad", "onSort", "onFilter", "onRowSelect", "onRowUnselect", "onSelectAllChange", "onRowExpand", "onRowCollapse", "onColResize", "onRowContextMenu"] }, { kind: "component", type: TagComponent, selector: "f-tag", inputs: ["value", "severity", "icon", "rounded", "color", "styleClass", "style"] }, { kind: "directive", type: TooltipDirective, selector: "[fTooltip]", inputs: ["fTooltip", "tooltipPosition", "positionStyle", "tooltipStyleClass", "disabled", "tooltipEvent", "showDelay", "hideDelay", "life", "autoHide", "positionTop", "positionLeft", "escape"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: HasPermissionDirective, selector: "[hasPermission]", inputs: ["hasPermission"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2471
2468
|
}
|
|
2472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
2469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: BranchListComponent, decorators: [{
|
|
2473
2470
|
type: Component,
|
|
2474
2471
|
args: [{
|
|
2475
2472
|
selector: 'lib-branch-list',
|
|
2476
|
-
imports: [
|
|
2473
|
+
imports: [
|
|
2474
|
+
FormsModule,
|
|
2475
|
+
CardComponent,
|
|
2476
|
+
FButtonDirective,
|
|
2477
|
+
SelectComponent,
|
|
2478
|
+
TableComponent,
|
|
2479
|
+
TagComponent,
|
|
2480
|
+
TooltipDirective,
|
|
2481
|
+
UiIconComponent,
|
|
2482
|
+
HasPermissionDirective,
|
|
2483
|
+
TranslatePipe,
|
|
2484
|
+
],
|
|
2477
2485
|
template: `
|
|
2478
2486
|
<f-card>
|
|
2479
2487
|
<ng-template #header>
|
|
@@ -2696,8 +2704,8 @@ class CompanyFormComponent {
|
|
|
2696
2704
|
t(key, vars) {
|
|
2697
2705
|
return this.translateAdapter?.translate(key, vars) ?? key;
|
|
2698
2706
|
}
|
|
2699
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
2700
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
2707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CompanyFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2708
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: CompanyFormComponent, isStandalone: true, selector: "lib-company-form", viewQueries: [{ propertyName: "formRef", first: true, predicate: BaseFormComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2701
2709
|
<lib-base-form
|
|
2702
2710
|
[fields]="fields"
|
|
2703
2711
|
[service]="companyService"
|
|
@@ -2712,7 +2720,7 @@ class CompanyFormComponent {
|
|
|
2712
2720
|
/>
|
|
2713
2721
|
`, isInline: true, dependencies: [{ kind: "component", type: BaseFormComponent, selector: "lib-base-form", inputs: ["fields", "title", "createTitle", "editTitle", "columns", "submitLabel", "cancelLabel", "isLoading", "isEditMode", "initialValue", "service", "editId", "cancelRoute", "navigateOnSuccess", "mapToRequest", "mapFromEntity"], outputs: ["onSubmit", "onCancel", "onValueChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2714
2722
|
}
|
|
2715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
2723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CompanyFormComponent, decorators: [{
|
|
2716
2724
|
type: Component,
|
|
2717
2725
|
args: [{
|
|
2718
2726
|
selector: 'lib-company-form',
|
|
@@ -2791,8 +2799,8 @@ class CompanyListComponent {
|
|
|
2791
2799
|
t(key) {
|
|
2792
2800
|
return this.translateAdapter?.translate(key) ?? key;
|
|
2793
2801
|
}
|
|
2794
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
2795
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.
|
|
2802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CompanyListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2803
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.5", type: CompanyListComponent, isStandalone: true, selector: "lib-company-list", ngImport: i0, template: `
|
|
2796
2804
|
<lib-base-list
|
|
2797
2805
|
[columns]="columns"
|
|
2798
2806
|
[actions]="viewBranchesAction"
|
|
@@ -2818,16 +2826,16 @@ class CompanyListComponent {
|
|
|
2818
2826
|
/>
|
|
2819
2827
|
</ng-template>
|
|
2820
2828
|
</lib-base-list>
|
|
2821
|
-
`, isInline: true, dependencies: [{ kind: "component", type: BaseListComponent, selector: "lib-base-list", inputs: ["columns", "actions", "title", "showCreateButton", "searchable", "pageSize", "scrollHeight", "emptyMessage", "createButtonLabel", "createButtonIcon", "data", "total", "isLoading", "service", "filter", "createRoute", "editRoute", "deleteConfirmField", "deleteType", "idField", "canEdit", "canDelete"], outputs: ["onCreate", "onLazyLoad", "onSearch"] }, { kind: "directive", type: BaseListTemplateDirective, selector: "ng-template[baseListTemplate]", inputs: ["baseListTemplate"] }, { kind: "
|
|
2829
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BaseListComponent, selector: "lib-base-list", inputs: ["columns", "actions", "title", "showCreateButton", "searchable", "pageSize", "scrollHeight", "emptyMessage", "createButtonLabel", "createButtonIcon", "data", "total", "isLoading", "service", "filter", "createRoute", "editRoute", "deleteConfirmField", "deleteType", "idField", "canEdit", "canDelete"], outputs: ["onCreate", "onLazyLoad", "onSearch"] }, { kind: "directive", type: BaseListTemplateDirective, selector: "ng-template[baseListTemplate]", inputs: ["baseListTemplate"] }, { kind: "component", type: TagComponent, selector: "f-tag", inputs: ["value", "severity", "icon", "rounded", "color", "styleClass", "style"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2822
2830
|
}
|
|
2823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
2831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CompanyListComponent, decorators: [{
|
|
2824
2832
|
type: Component,
|
|
2825
2833
|
args: [{
|
|
2826
2834
|
selector: 'lib-company-list',
|
|
2827
2835
|
imports: [
|
|
2828
2836
|
BaseListComponent,
|
|
2829
2837
|
BaseListTemplateDirective,
|
|
2830
|
-
|
|
2838
|
+
TagComponent,
|
|
2831
2839
|
TranslatePipe,
|
|
2832
2840
|
],
|
|
2833
2841
|
template: `
|
|
@@ -2893,7 +2901,8 @@ class ForgotPasswordPageComponent {
|
|
|
2893
2901
|
});
|
|
2894
2902
|
isFormValid = computed(() => this.forgotForm().valid(), /* @ts-ignore */
|
|
2895
2903
|
...(ngDevMode ? [{ debugName: "isFormValid" }] : /* istanbul ignore next */ []));
|
|
2896
|
-
onSubmit() {
|
|
2904
|
+
onSubmit(event) {
|
|
2905
|
+
event.preventDefault();
|
|
2897
2906
|
if (!this.isFormValid()) {
|
|
2898
2907
|
this.messageService.add({
|
|
2899
2908
|
severity: 'error',
|
|
@@ -2921,8 +2930,8 @@ class ForgotPasswordPageComponent {
|
|
|
2921
2930
|
this.submittedEmail.set('');
|
|
2922
2931
|
this.formModel.set({ email: '' });
|
|
2923
2932
|
}
|
|
2924
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
2925
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
2933
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ForgotPasswordPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2934
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: ForgotPasswordPageComponent, isStandalone: true, selector: "lib-forgot-password-page", ngImport: i0, template: `
|
|
2926
2935
|
<app-floating-configurator />
|
|
2927
2936
|
<div
|
|
2928
2937
|
class="bg-surface-ground flex items-center justify-center min-h-screen"
|
|
@@ -2948,7 +2957,7 @@ class ForgotPasswordPageComponent {
|
|
|
2948
2957
|
</span>
|
|
2949
2958
|
</div>
|
|
2950
2959
|
|
|
2951
|
-
<form (
|
|
2960
|
+
<form (submit)="onSubmit($event)">
|
|
2952
2961
|
<label
|
|
2953
2962
|
for="email"
|
|
2954
2963
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -3024,15 +3033,17 @@ class ForgotPasswordPageComponent {
|
|
|
3024
3033
|
</div>
|
|
3025
3034
|
</div>
|
|
3026
3035
|
</div>
|
|
3027
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
3036
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: AppFloatingConfigurator, selector: "app-floating-configurator" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
3028
3037
|
}
|
|
3029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
3038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ForgotPasswordPageComponent, decorators: [{
|
|
3030
3039
|
type: Component,
|
|
3031
3040
|
args: [{
|
|
3032
3041
|
selector: 'lib-forgot-password-page',
|
|
3033
3042
|
imports: [
|
|
3034
|
-
|
|
3035
|
-
|
|
3043
|
+
RouterLink,
|
|
3044
|
+
FButtonDirective,
|
|
3045
|
+
InputTextDirective,
|
|
3046
|
+
UiIconComponent,
|
|
3036
3047
|
FormField,
|
|
3037
3048
|
AppFloatingConfigurator,
|
|
3038
3049
|
TranslatePipe,
|
|
@@ -3063,7 +3074,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
3063
3074
|
</span>
|
|
3064
3075
|
</div>
|
|
3065
3076
|
|
|
3066
|
-
<form (
|
|
3077
|
+
<form (submit)="onSubmit($event)">
|
|
3067
3078
|
<label
|
|
3068
3079
|
for="email"
|
|
3069
3080
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -3224,8 +3235,8 @@ class SocialLoginButtonsComponent {
|
|
|
3224
3235
|
translate(key, vars) {
|
|
3225
3236
|
return this.translateAdapter?.translate(key, vars) ?? key;
|
|
3226
3237
|
}
|
|
3227
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
3228
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
3238
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialLoginButtonsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3239
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SocialLoginButtonsComponent, isStandalone: true, selector: "lib-social-login-buttons", inputs: { returnUrl: { classPropertyName: "returnUrl", publicName: "returnUrl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3229
3240
|
@if (providers().length) {
|
|
3230
3241
|
<div class="mt-6">
|
|
3231
3242
|
<div class="flex items-center gap-3 mb-4">
|
|
@@ -3298,13 +3309,13 @@ class SocialLoginButtonsComponent {
|
|
|
3298
3309
|
</div>
|
|
3299
3310
|
</div>
|
|
3300
3311
|
}
|
|
3301
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
3312
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
3302
3313
|
}
|
|
3303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
3314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialLoginButtonsComponent, decorators: [{
|
|
3304
3315
|
type: Component,
|
|
3305
3316
|
args: [{
|
|
3306
3317
|
selector: 'lib-social-login-buttons',
|
|
3307
|
-
imports: [
|
|
3318
|
+
imports: [FButtonDirective, TranslatePipe],
|
|
3308
3319
|
template: `
|
|
3309
3320
|
@if (providers().length) {
|
|
3310
3321
|
<div class="mt-6">
|
|
@@ -3514,7 +3525,8 @@ class LoginPageComponent {
|
|
|
3514
3525
|
this.autoSelectIfSingle();
|
|
3515
3526
|
}
|
|
3516
3527
|
}
|
|
3517
|
-
onSubmit() {
|
|
3528
|
+
onSubmit(event) {
|
|
3529
|
+
event.preventDefault();
|
|
3518
3530
|
if (!this.isLoginFormValid()) {
|
|
3519
3531
|
this.messageService.add({
|
|
3520
3532
|
severity: 'error',
|
|
@@ -3593,7 +3605,8 @@ class LoginPageComponent {
|
|
|
3593
3605
|
}));
|
|
3594
3606
|
}
|
|
3595
3607
|
}
|
|
3596
|
-
onSelectCompany() {
|
|
3608
|
+
onSelectCompany(event) {
|
|
3609
|
+
event.preventDefault();
|
|
3597
3610
|
if (!this.isSelectionFormValid()) {
|
|
3598
3611
|
this.messageService.add({
|
|
3599
3612
|
severity: 'warn',
|
|
@@ -3706,8 +3719,8 @@ class LoginPageComponent {
|
|
|
3706
3719
|
}
|
|
3707
3720
|
}
|
|
3708
3721
|
}
|
|
3709
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
3710
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
3722
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: LoginPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3723
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: LoginPageComponent, isStandalone: true, selector: "lib-login-page", inputs: { returnUrl: { classPropertyName: "returnUrl", publicName: "returnUrl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3711
3724
|
<app-floating-configurator />
|
|
3712
3725
|
<div
|
|
3713
3726
|
class="bg-surface-ground flex items-center justify-center min-h-screen"
|
|
@@ -3774,7 +3787,7 @@ class LoginPageComponent {
|
|
|
3774
3787
|
}}</span>
|
|
3775
3788
|
</div>
|
|
3776
3789
|
|
|
3777
|
-
<form (
|
|
3790
|
+
<form (submit)="onSubmit($event)">
|
|
3778
3791
|
<label
|
|
3779
3792
|
for="email"
|
|
3780
3793
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -3908,7 +3921,7 @@ class LoginPageComponent {
|
|
|
3908
3921
|
</div>
|
|
3909
3922
|
</div>
|
|
3910
3923
|
|
|
3911
|
-
<form (
|
|
3924
|
+
<form (submit)="onSelectCompany($event)">
|
|
3912
3925
|
<label
|
|
3913
3926
|
for="company"
|
|
3914
3927
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -3978,17 +3991,25 @@ class LoginPageComponent {
|
|
|
3978
3991
|
</div>
|
|
3979
3992
|
</div>
|
|
3980
3993
|
</div>
|
|
3981
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
3994
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: PasswordComponent, selector: "f-password", inputs: ["toggleMask", "feedback", "disabled", "placeholder", "inputId", "invalid", "touched", "inputStyleClass", "styleClass", "style", "ariaDescribedby", "autocomplete", "variant", "size", "fluid", "appendTo", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "mediumRegex", "strongRegex"], outputs: ["onBlur", "onFocus"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: AppFloatingConfigurator, selector: "app-floating-configurator" }, { kind: "component", type: SocialLoginButtonsComponent, selector: "lib-social-login-buttons", inputs: ["returnUrl"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
3982
3995
|
}
|
|
3983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
3996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: LoginPageComponent, decorators: [{
|
|
3984
3997
|
type: Component,
|
|
3985
3998
|
args: [{
|
|
3986
3999
|
selector: 'lib-login-page',
|
|
3987
|
-
imports: [
|
|
4000
|
+
imports: [
|
|
4001
|
+
CheckboxComponent,
|
|
4002
|
+
FButtonDirective,
|
|
4003
|
+
InputTextDirective,
|
|
4004
|
+
PasswordComponent,
|
|
4005
|
+
SelectComponent,
|
|
4006
|
+
UiIconComponent,
|
|
4007
|
+
RouterLink,
|
|
3988
4008
|
FormField,
|
|
3989
4009
|
AppFloatingConfigurator,
|
|
3990
4010
|
SocialLoginButtonsComponent,
|
|
3991
|
-
TranslatePipe,
|
|
4011
|
+
TranslatePipe,
|
|
4012
|
+
],
|
|
3992
4013
|
template: `
|
|
3993
4014
|
<app-floating-configurator />
|
|
3994
4015
|
<div
|
|
@@ -4056,7 +4077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4056
4077
|
}}</span>
|
|
4057
4078
|
</div>
|
|
4058
4079
|
|
|
4059
|
-
<form (
|
|
4080
|
+
<form (submit)="onSubmit($event)">
|
|
4060
4081
|
<label
|
|
4061
4082
|
for="email"
|
|
4062
4083
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -4190,7 +4211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4190
4211
|
</div>
|
|
4191
4212
|
</div>
|
|
4192
4213
|
|
|
4193
|
-
<form (
|
|
4214
|
+
<form (submit)="onSelectCompany($event)">
|
|
4194
4215
|
<label
|
|
4195
4216
|
for="company"
|
|
4196
4217
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -4468,6 +4489,14 @@ class ProfilePageComponent {
|
|
|
4468
4489
|
confirmPassword: '',
|
|
4469
4490
|
}, /* @ts-ignore */
|
|
4470
4491
|
...(ngDevMode ? [{ debugName: "passwordModel" }] : /* istanbul ignore next */ []));
|
|
4492
|
+
passwordForm = form(this.passwordModel, (f) => {
|
|
4493
|
+
required(f.currentPassword, {
|
|
4494
|
+
message: this.translate('profile.current.password.required'),
|
|
4495
|
+
});
|
|
4496
|
+
required(f.newPassword, {
|
|
4497
|
+
message: this.translate('profile.new.password.required'),
|
|
4498
|
+
});
|
|
4499
|
+
});
|
|
4471
4500
|
isPasswordLoading = signal(false, /* @ts-ignore */
|
|
4472
4501
|
...(ngDevMode ? [{ debugName: "isPasswordLoading" }] : /* istanbul ignore next */ []));
|
|
4473
4502
|
isPasswordFormValid = computed(() => {
|
|
@@ -4700,8 +4729,8 @@ class ProfilePageComponent {
|
|
|
4700
4729
|
error: () => { },
|
|
4701
4730
|
});
|
|
4702
4731
|
}
|
|
4703
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
4704
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
4732
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ProfilePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4733
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: ProfilePageComponent, isStandalone: true, selector: "lib-profile-page", ngImport: i0, template: `
|
|
4705
4734
|
<div class="mb-4 md:mb-6">
|
|
4706
4735
|
<h1 class="text-2xl font-bold text-color mb-2">
|
|
4707
4736
|
{{ 'profile.title' | translate }}
|
|
@@ -4814,10 +4843,8 @@ class ProfilePageComponent {
|
|
|
4814
4843
|
</label>
|
|
4815
4844
|
@if (field.component) {
|
|
4816
4845
|
<ng-container
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
injector: getFieldInjector(field)
|
|
4820
|
-
"
|
|
4846
|
+
[ngComponentOutlet]="field.component"
|
|
4847
|
+
[ngComponentOutletInjector]="getFieldInjector(field)"
|
|
4821
4848
|
/>
|
|
4822
4849
|
} @else if (field.template) {
|
|
4823
4850
|
<ng-container
|
|
@@ -5032,9 +5059,7 @@ class ProfilePageComponent {
|
|
|
5032
5059
|
>
|
|
5033
5060
|
<f-password
|
|
5034
5061
|
[inputId]="'currentPassword'"
|
|
5035
|
-
|
|
5036
|
-
[ngModel]="passwordModel().currentPassword"
|
|
5037
|
-
(ngModelChange)="updatePasswordField('currentPassword', $event)"
|
|
5062
|
+
[formField]="passwordForm.currentPassword"
|
|
5038
5063
|
[placeholder]="'profile.current.password.placeholder' | translate"
|
|
5039
5064
|
class="w-full"
|
|
5040
5065
|
autocomplete="current-password"
|
|
@@ -5047,9 +5072,7 @@ class ProfilePageComponent {
|
|
|
5047
5072
|
>
|
|
5048
5073
|
<f-password
|
|
5049
5074
|
[inputId]="'newPassword'"
|
|
5050
|
-
|
|
5051
|
-
[ngModel]="passwordModel().newPassword"
|
|
5052
|
-
(ngModelChange)="updatePasswordField('newPassword', $event)"
|
|
5075
|
+
[formField]="passwordForm.newPassword"
|
|
5053
5076
|
[placeholder]="'shared.min.characters' | translate: { count: 6 }"
|
|
5054
5077
|
class="w-full"
|
|
5055
5078
|
autocomplete="new-password"
|
|
@@ -5062,9 +5085,7 @@ class ProfilePageComponent {
|
|
|
5062
5085
|
>
|
|
5063
5086
|
<f-password
|
|
5064
5087
|
[inputId]="'confirmPassword'"
|
|
5065
|
-
|
|
5066
|
-
[ngModel]="passwordModel().confirmPassword"
|
|
5067
|
-
(ngModelChange)="updatePasswordField('confirmPassword', $event)"
|
|
5088
|
+
[formField]="passwordForm.confirmPassword"
|
|
5068
5089
|
[placeholder]="'profile.confirm.password.placeholder' | translate"
|
|
5069
5090
|
class="w-full"
|
|
5070
5091
|
autocomplete="new-password"
|
|
@@ -5109,7 +5130,7 @@ class ProfilePageComponent {
|
|
|
5109
5130
|
</div>
|
|
5110
5131
|
<div class="section-content">
|
|
5111
5132
|
@if (section.component) {
|
|
5112
|
-
<ng-container
|
|
5133
|
+
<ng-container [ngComponentOutlet]="section.component" />
|
|
5113
5134
|
}
|
|
5114
5135
|
</div>
|
|
5115
5136
|
</div>
|
|
@@ -5125,7 +5146,7 @@ class ProfilePageComponent {
|
|
|
5125
5146
|
</div>
|
|
5126
5147
|
<div class="section-content">
|
|
5127
5148
|
@if (section.component) {
|
|
5128
|
-
<ng-container
|
|
5149
|
+
<ng-container [ngComponentOutlet]="section.component" />
|
|
5129
5150
|
}
|
|
5130
5151
|
</div>
|
|
5131
5152
|
</div>
|
|
@@ -5244,15 +5265,26 @@ class ProfilePageComponent {
|
|
|
5244
5265
|
}
|
|
5245
5266
|
</div>
|
|
5246
5267
|
}
|
|
5247
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
5268
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "f-avatar", inputs: ["label", "icon", "image", "shape", "size", "color", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: PasswordComponent, selector: "f-password", inputs: ["toggleMask", "feedback", "disabled", "placeholder", "inputId", "invalid", "touched", "inputStyleClass", "styleClass", "style", "ariaDescribedby", "autocomplete", "variant", "size", "fluid", "appendTo", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "mediumRegex", "strongRegex"], outputs: ["onBlur", "onFocus"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "component", type: SkeletonComponent, selector: "f-skeleton", inputs: ["width", "height", "size", "borderRadius", "shape", "animation", "styleClass"] }, { kind: "component", type: TagComponent, selector: "f-tag", inputs: ["value", "severity", "icon", "rounded", "color", "styleClass", "style"] }, { kind: "directive", type: TextareaDirective, selector: "[fTextarea]", inputs: ["invalid", "touched", "variant", "fluid", "autoResize"], outputs: ["onResize"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: FileUploaderComponent, selector: "lib-file-uploader", inputs: ["uploadFile", "uploadMultipleFiles", "acceptTypes", "multiple", "maxFiles", "maxSizeMb", "uploadOptions", "disabled", "showPreview", "autoUpload"], outputs: ["fileUploaded", "filesUploaded", "onError", "fileSelected"] }, { kind: "directive", type: HasPermissionDirective, selector: "[hasPermission]", inputs: ["hasPermission"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
5248
5269
|
}
|
|
5249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
5270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ProfilePageComponent, decorators: [{
|
|
5250
5271
|
type: Component,
|
|
5251
5272
|
args: [{
|
|
5252
5273
|
selector: 'lib-profile-page',
|
|
5253
5274
|
imports: [
|
|
5254
|
-
|
|
5255
|
-
|
|
5275
|
+
AvatarComponent,
|
|
5276
|
+
CheckboxComponent,
|
|
5277
|
+
FButtonDirective,
|
|
5278
|
+
InputTextDirective,
|
|
5279
|
+
PasswordComponent,
|
|
5280
|
+
SelectComponent,
|
|
5281
|
+
SkeletonComponent,
|
|
5282
|
+
TagComponent,
|
|
5283
|
+
TextareaDirective,
|
|
5284
|
+
UiIconComponent,
|
|
5285
|
+
FormsModule,
|
|
5286
|
+
NgComponentOutlet,
|
|
5287
|
+
NgTemplateOutlet,
|
|
5256
5288
|
FormField,
|
|
5257
5289
|
FileUploaderComponent,
|
|
5258
5290
|
HasPermissionDirective,
|
|
@@ -5371,10 +5403,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
5371
5403
|
</label>
|
|
5372
5404
|
@if (field.component) {
|
|
5373
5405
|
<ng-container
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
injector: getFieldInjector(field)
|
|
5377
|
-
"
|
|
5406
|
+
[ngComponentOutlet]="field.component"
|
|
5407
|
+
[ngComponentOutletInjector]="getFieldInjector(field)"
|
|
5378
5408
|
/>
|
|
5379
5409
|
} @else if (field.template) {
|
|
5380
5410
|
<ng-container
|
|
@@ -5589,9 +5619,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
5589
5619
|
>
|
|
5590
5620
|
<f-password
|
|
5591
5621
|
[inputId]="'currentPassword'"
|
|
5592
|
-
|
|
5593
|
-
[ngModel]="passwordModel().currentPassword"
|
|
5594
|
-
(ngModelChange)="updatePasswordField('currentPassword', $event)"
|
|
5622
|
+
[formField]="passwordForm.currentPassword"
|
|
5595
5623
|
[placeholder]="'profile.current.password.placeholder' | translate"
|
|
5596
5624
|
class="w-full"
|
|
5597
5625
|
autocomplete="current-password"
|
|
@@ -5604,9 +5632,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
5604
5632
|
>
|
|
5605
5633
|
<f-password
|
|
5606
5634
|
[inputId]="'newPassword'"
|
|
5607
|
-
|
|
5608
|
-
[ngModel]="passwordModel().newPassword"
|
|
5609
|
-
(ngModelChange)="updatePasswordField('newPassword', $event)"
|
|
5635
|
+
[formField]="passwordForm.newPassword"
|
|
5610
5636
|
[placeholder]="'shared.min.characters' | translate: { count: 6 }"
|
|
5611
5637
|
class="w-full"
|
|
5612
5638
|
autocomplete="new-password"
|
|
@@ -5619,9 +5645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
5619
5645
|
>
|
|
5620
5646
|
<f-password
|
|
5621
5647
|
[inputId]="'confirmPassword'"
|
|
5622
|
-
|
|
5623
|
-
[ngModel]="passwordModel().confirmPassword"
|
|
5624
|
-
(ngModelChange)="updatePasswordField('confirmPassword', $event)"
|
|
5648
|
+
[formField]="passwordForm.confirmPassword"
|
|
5625
5649
|
[placeholder]="'profile.confirm.password.placeholder' | translate"
|
|
5626
5650
|
class="w-full"
|
|
5627
5651
|
autocomplete="new-password"
|
|
@@ -5666,7 +5690,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
5666
5690
|
</div>
|
|
5667
5691
|
<div class="section-content">
|
|
5668
5692
|
@if (section.component) {
|
|
5669
|
-
<ng-container
|
|
5693
|
+
<ng-container [ngComponentOutlet]="section.component" />
|
|
5670
5694
|
}
|
|
5671
5695
|
</div>
|
|
5672
5696
|
</div>
|
|
@@ -5682,7 +5706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
5682
5706
|
</div>
|
|
5683
5707
|
<div class="section-content">
|
|
5684
5708
|
@if (section.component) {
|
|
5685
|
-
<ng-container
|
|
5709
|
+
<ng-container [ngComponentOutlet]="section.component" />
|
|
5686
5710
|
}
|
|
5687
5711
|
</div>
|
|
5688
5712
|
</div>
|
|
@@ -6136,8 +6160,8 @@ class RegisterPageComponent {
|
|
|
6136
6160
|
},
|
|
6137
6161
|
});
|
|
6138
6162
|
}
|
|
6139
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
6140
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
6163
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: RegisterPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: RegisterPageComponent, isStandalone: true, selector: "lib-register-page", inputs: { returnUrl: { classPropertyName: "returnUrl", publicName: "returnUrl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
6141
6165
|
<app-floating-configurator />
|
|
6142
6166
|
<div
|
|
6143
6167
|
class="bg-surface-ground flex items-center justify-center min-h-screen py-8"
|
|
@@ -6264,10 +6288,8 @@ class RegisterPageComponent {
|
|
|
6264
6288
|
</label>
|
|
6265
6289
|
@if (field.component) {
|
|
6266
6290
|
<ng-container
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
injector: getFieldInjector(field)
|
|
6270
|
-
"
|
|
6291
|
+
[ngComponentOutlet]="field.component"
|
|
6292
|
+
[ngComponentOutletInjector]="getFieldInjector(field)"
|
|
6271
6293
|
></ng-container>
|
|
6272
6294
|
} @else if (field.template) {
|
|
6273
6295
|
<ng-container
|
|
@@ -6605,15 +6627,24 @@ class RegisterPageComponent {
|
|
|
6605
6627
|
</div>
|
|
6606
6628
|
</div>
|
|
6607
6629
|
</div>
|
|
6608
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
6630
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: PasswordComponent, selector: "f-password", inputs: ["toggleMask", "feedback", "disabled", "placeholder", "inputId", "invalid", "touched", "inputStyleClass", "styleClass", "style", "ariaDescribedby", "autocomplete", "variant", "size", "fluid", "appendTo", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "mediumRegex", "strongRegex"], outputs: ["onBlur", "onFocus"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "directive", type: TextareaDirective, selector: "[fTextarea]", inputs: ["invalid", "touched", "variant", "fluid", "autoResize"], outputs: ["onResize"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: AppFloatingConfigurator, selector: "app-floating-configurator" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
6609
6631
|
}
|
|
6610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
6632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: RegisterPageComponent, decorators: [{
|
|
6611
6633
|
type: Component,
|
|
6612
6634
|
args: [{
|
|
6613
6635
|
selector: 'lib-register-page',
|
|
6614
6636
|
imports: [
|
|
6615
|
-
|
|
6616
|
-
|
|
6637
|
+
CheckboxComponent,
|
|
6638
|
+
FButtonDirective,
|
|
6639
|
+
InputTextDirective,
|
|
6640
|
+
PasswordComponent,
|
|
6641
|
+
SelectComponent,
|
|
6642
|
+
TextareaDirective,
|
|
6643
|
+
UiIconComponent,
|
|
6644
|
+
FormsModule,
|
|
6645
|
+
NgComponentOutlet,
|
|
6646
|
+
NgTemplateOutlet,
|
|
6647
|
+
RouterLink,
|
|
6617
6648
|
FormField,
|
|
6618
6649
|
AppFloatingConfigurator,
|
|
6619
6650
|
TranslatePipe,
|
|
@@ -6745,10 +6776,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
6745
6776
|
</label>
|
|
6746
6777
|
@if (field.component) {
|
|
6747
6778
|
<ng-container
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
injector: getFieldInjector(field)
|
|
6751
|
-
"
|
|
6779
|
+
[ngComponentOutlet]="field.component"
|
|
6780
|
+
[ngComponentOutletInjector]="getFieldInjector(field)"
|
|
6752
6781
|
></ng-container>
|
|
6753
6782
|
} @else if (field.template) {
|
|
6754
6783
|
<ng-container
|
|
@@ -7151,7 +7180,8 @@ class ResetPasswordPageComponent {
|
|
|
7151
7180
|
}
|
|
7152
7181
|
});
|
|
7153
7182
|
}
|
|
7154
|
-
onSubmit() {
|
|
7183
|
+
onSubmit(event) {
|
|
7184
|
+
event.preventDefault();
|
|
7155
7185
|
if (!this.canSubmit()) {
|
|
7156
7186
|
this.messageService.add({
|
|
7157
7187
|
severity: 'error',
|
|
@@ -7191,8 +7221,8 @@ class ResetPasswordPageComponent {
|
|
|
7191
7221
|
},
|
|
7192
7222
|
});
|
|
7193
7223
|
}
|
|
7194
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
7195
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
7224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ResetPasswordPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: ResetPasswordPageComponent, isStandalone: true, selector: "lib-reset-password-page", ngImport: i0, template: `
|
|
7196
7226
|
<app-floating-configurator />
|
|
7197
7227
|
<div
|
|
7198
7228
|
class="bg-surface-ground flex items-center justify-center min-h-screen"
|
|
@@ -7219,7 +7249,7 @@ class ResetPasswordPageComponent {
|
|
|
7219
7249
|
</span>
|
|
7220
7250
|
</div>
|
|
7221
7251
|
|
|
7222
|
-
<form (
|
|
7252
|
+
<form (submit)="onSubmit($event)">
|
|
7223
7253
|
<label
|
|
7224
7254
|
for="newPassword"
|
|
7225
7255
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -7340,15 +7370,17 @@ class ResetPasswordPageComponent {
|
|
|
7340
7370
|
</div>
|
|
7341
7371
|
</div>
|
|
7342
7372
|
</div>
|
|
7343
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
7373
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: PasswordComponent, selector: "f-password", inputs: ["toggleMask", "feedback", "disabled", "placeholder", "inputId", "invalid", "touched", "inputStyleClass", "styleClass", "style", "ariaDescribedby", "autocomplete", "variant", "size", "fluid", "appendTo", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "mediumRegex", "strongRegex"], outputs: ["onBlur", "onFocus"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: AppFloatingConfigurator, selector: "app-floating-configurator" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
7344
7374
|
}
|
|
7345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
7375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ResetPasswordPageComponent, decorators: [{
|
|
7346
7376
|
type: Component,
|
|
7347
7377
|
args: [{
|
|
7348
7378
|
selector: 'lib-reset-password-page',
|
|
7349
7379
|
imports: [
|
|
7350
|
-
|
|
7351
|
-
|
|
7380
|
+
RouterLink,
|
|
7381
|
+
FButtonDirective,
|
|
7382
|
+
PasswordComponent,
|
|
7383
|
+
UiIconComponent,
|
|
7352
7384
|
FormField,
|
|
7353
7385
|
AppFloatingConfigurator,
|
|
7354
7386
|
TranslatePipe,
|
|
@@ -7380,7 +7412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
7380
7412
|
</span>
|
|
7381
7413
|
</div>
|
|
7382
7414
|
|
|
7383
|
-
<form (
|
|
7415
|
+
<form (submit)="onSubmit($event)">
|
|
7384
7416
|
<label
|
|
7385
7417
|
for="newPassword"
|
|
7386
7418
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -7597,8 +7629,8 @@ class SocialCallbackPageComponent {
|
|
|
7597
7629
|
translate(key, vars) {
|
|
7598
7630
|
return this.translateAdapter?.translate(key, vars) ?? key;
|
|
7599
7631
|
}
|
|
7600
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
7601
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
7632
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialCallbackPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7633
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SocialCallbackPageComponent, isStandalone: true, selector: "lib-social-callback-page", ngImport: i0, template: `
|
|
7602
7634
|
<app-floating-configurator />
|
|
7603
7635
|
<div class="bg-surface-ground flex items-center justify-center min-h-screen">
|
|
7604
7636
|
<div class="flex flex-col items-center gap-4 text-center px-4">
|
|
@@ -7619,13 +7651,13 @@ class SocialCallbackPageComponent {
|
|
|
7619
7651
|
}
|
|
7620
7652
|
</div>
|
|
7621
7653
|
</div>
|
|
7622
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
7654
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "component", type: AppFloatingConfigurator, selector: "app-floating-configurator" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
7623
7655
|
}
|
|
7624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
7656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialCallbackPageComponent, decorators: [{
|
|
7625
7657
|
type: Component,
|
|
7626
7658
|
args: [{
|
|
7627
7659
|
selector: 'lib-social-callback-page',
|
|
7628
|
-
imports: [
|
|
7660
|
+
imports: [FButtonDirective, UiIconComponent, TranslatePipe, AppFloatingConfigurator],
|
|
7629
7661
|
template: `
|
|
7630
7662
|
<app-floating-configurator />
|
|
7631
7663
|
<div class="bg-surface-ground flex items-center justify-center min-h-screen">
|
|
@@ -7733,8 +7765,8 @@ class SocialConfigPageComponent {
|
|
|
7733
7765
|
translate(key, vars) {
|
|
7734
7766
|
return this.translateAdapter?.translate(key, vars) ?? key;
|
|
7735
7767
|
}
|
|
7736
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
7737
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
7768
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialConfigPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7769
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SocialConfigPageComponent, isStandalone: true, selector: "lib-social-config-page", providers: [MessageService], ngImport: i0, template: `
|
|
7738
7770
|
<div class="card">
|
|
7739
7771
|
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3 mb-4">
|
|
7740
7772
|
<div>
|
|
@@ -7853,13 +7885,21 @@ class SocialConfigPageComponent {
|
|
|
7853
7885
|
</div>
|
|
7854
7886
|
}
|
|
7855
7887
|
</div>
|
|
7856
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
7888
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: PasswordComponent, selector: "f-password", inputs: ["toggleMask", "feedback", "disabled", "placeholder", "inputId", "invalid", "touched", "inputStyleClass", "styleClass", "style", "ariaDescribedby", "autocomplete", "variant", "size", "fluid", "appendTo", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "mediumRegex", "strongRegex"], outputs: ["onBlur", "onFocus"] }, { kind: "component", type: ToggleSwitchComponent, selector: "f-toggleswitch", inputs: ["disabled", "readonly", "invalid", "ariaLabel", "trueValue", "falseValue", "inputId", "size", "tabindex", "styleClass", "style"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
7857
7889
|
}
|
|
7858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
7890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SocialConfigPageComponent, decorators: [{
|
|
7859
7891
|
type: Component,
|
|
7860
7892
|
args: [{
|
|
7861
7893
|
selector: 'lib-social-config-page',
|
|
7862
|
-
imports: [
|
|
7894
|
+
imports: [
|
|
7895
|
+
FButtonDirective,
|
|
7896
|
+
InputTextDirective,
|
|
7897
|
+
PasswordComponent,
|
|
7898
|
+
ToggleSwitchComponent,
|
|
7899
|
+
UiIconComponent,
|
|
7900
|
+
FormsModule,
|
|
7901
|
+
TranslatePipe,
|
|
7902
|
+
],
|
|
7863
7903
|
providers: [MessageService],
|
|
7864
7904
|
template: `
|
|
7865
7905
|
<div class="card">
|
|
@@ -8355,8 +8395,8 @@ class UserFormComponent {
|
|
|
8355
8395
|
onCancel() {
|
|
8356
8396
|
this.router.navigate(['/administration/users']);
|
|
8357
8397
|
}
|
|
8358
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
8359
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
8398
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8399
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UserFormComponent, isStandalone: true, selector: "lib-user-form", ngImport: i0, template: `
|
|
8360
8400
|
<f-card>
|
|
8361
8401
|
<ng-template #header>
|
|
8362
8402
|
<div class="flex justify-between items-center p-4">
|
|
@@ -8451,10 +8491,8 @@ class UserFormComponent {
|
|
|
8451
8491
|
</label>
|
|
8452
8492
|
@if (field.component) {
|
|
8453
8493
|
<ng-container
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
injector: getFieldInjector(field)
|
|
8457
|
-
"
|
|
8494
|
+
[ngComponentOutlet]="field.component"
|
|
8495
|
+
[ngComponentOutletInjector]="getFieldInjector(field)"
|
|
8458
8496
|
/>
|
|
8459
8497
|
} @else if (field.template) {
|
|
8460
8498
|
<ng-container
|
|
@@ -8651,13 +8689,28 @@ class UserFormComponent {
|
|
|
8651
8689
|
</div>
|
|
8652
8690
|
</form>
|
|
8653
8691
|
</f-card>
|
|
8654
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
8692
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CardComponent, selector: "f-card", inputs: ["header", "subheader", "styleClass", "style"] }, { kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: PasswordComponent, selector: "f-password", inputs: ["toggleMask", "feedback", "disabled", "placeholder", "inputId", "invalid", "touched", "inputStyleClass", "styleClass", "style", "ariaDescribedby", "autocomplete", "variant", "size", "fluid", "appendTo", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "mediumRegex", "strongRegex"], outputs: ["onBlur", "onFocus"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "component", type: SkeletonComponent, selector: "f-skeleton", inputs: ["width", "height", "size", "borderRadius", "shape", "animation", "styleClass"] }, { kind: "directive", type: TextareaDirective, selector: "[fTextarea]", inputs: ["invalid", "touched", "variant", "fluid", "autoResize"], outputs: ["onResize"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
8655
8693
|
}
|
|
8656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
8694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserFormComponent, decorators: [{
|
|
8657
8695
|
type: Component,
|
|
8658
8696
|
args: [{
|
|
8659
8697
|
selector: 'lib-user-form',
|
|
8660
|
-
imports: [
|
|
8698
|
+
imports: [
|
|
8699
|
+
CardComponent,
|
|
8700
|
+
CheckboxComponent,
|
|
8701
|
+
FButtonDirective,
|
|
8702
|
+
InputTextDirective,
|
|
8703
|
+
PasswordComponent,
|
|
8704
|
+
SelectComponent,
|
|
8705
|
+
SkeletonComponent,
|
|
8706
|
+
TextareaDirective,
|
|
8707
|
+
UiIconComponent,
|
|
8708
|
+
FormsModule,
|
|
8709
|
+
NgComponentOutlet,
|
|
8710
|
+
NgTemplateOutlet,
|
|
8711
|
+
FormField,
|
|
8712
|
+
TranslatePipe,
|
|
8713
|
+
],
|
|
8661
8714
|
template: `
|
|
8662
8715
|
<f-card>
|
|
8663
8716
|
<ng-template #header>
|
|
@@ -8753,10 +8806,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
8753
8806
|
</label>
|
|
8754
8807
|
@if (field.component) {
|
|
8755
8808
|
<ng-container
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
injector: getFieldInjector(field)
|
|
8759
|
-
"
|
|
8809
|
+
[ngComponentOutlet]="field.component"
|
|
8810
|
+
[ngComponentOutletInjector]="getFieldInjector(field)"
|
|
8760
8811
|
/>
|
|
8761
8812
|
} @else if (field.template) {
|
|
8762
8813
|
<ng-container
|
|
@@ -9069,8 +9120,8 @@ class UserBranchPermissionDialogComponent {
|
|
|
9069
9120
|
onClose() {
|
|
9070
9121
|
this.closed.emit();
|
|
9071
9122
|
}
|
|
9072
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
9073
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
9123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserBranchPermissionDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9124
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UserBranchPermissionDialogComponent, isStandalone: true, selector: "lib-user-branch-permission-dialog", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: true, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { closed: "closed", permissionsChanged: "permissionsChanged" }, ngImport: i0, template: `
|
|
9074
9125
|
<f-dialog
|
|
9075
9126
|
[visible]="visible()"
|
|
9076
9127
|
[modal]="true"
|
|
@@ -9157,15 +9208,19 @@ class UserBranchPermissionDialogComponent {
|
|
|
9157
9208
|
</button>
|
|
9158
9209
|
</ng-template>
|
|
9159
9210
|
</f-dialog>
|
|
9160
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type:
|
|
9211
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "component", type: DialogComponent, selector: "f-dialog", inputs: ["header", "visible", "modal", "closable", "closeOnEscape", "dismissableMask", "resizable", "draggable", "maximizable", "blockScroll", "returnFocusOnClose", "position", "style", "styleClass", "breakpoints"], outputs: ["visibleChange", "onShow", "onHide", "onMaximize"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: ProgressSpinnerComponent, selector: "f-progressspinner", inputs: ["size", "strokeWidth", "animationDuration", "styleClass", "ariaLabel"] }, { kind: "component", type: SelectComponent, selector: "f-select", inputs: ["options", "optionLabel", "optionValue", "placeholder", "disabled", "filter", "filterBy", "filterMatchMode", "filterLocale", "filterPlaceholder", "resetFilterOnHide", "autofocusFilter", "emptyMessage", "emptyFilterMessage", "showClear", "loading", "loadingIcon", "dropdownIcon", "clearIcon", "inputId", "invalid", "touched", "styleClass", "style", "appendTo", "editable", "readonly", "autofocus", "checkmark", "group", "optionGroupLabel", "optionGroupChildren", "virtualScroll", "virtualScrollItemSize", "lazy"], outputs: ["onFilter", "onChange", "onShow", "onHide", "onBlur", "onFocus", "onClear", "onLazyLoad"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
9161
9212
|
}
|
|
9162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
9213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserBranchPermissionDialogComponent, decorators: [{
|
|
9163
9214
|
type: Component,
|
|
9164
9215
|
args: [{
|
|
9165
9216
|
selector: 'lib-user-branch-permission-dialog',
|
|
9166
9217
|
imports: [
|
|
9167
|
-
|
|
9168
|
-
|
|
9218
|
+
FormsModule,
|
|
9219
|
+
CheckboxComponent,
|
|
9220
|
+
DialogComponent,
|
|
9221
|
+
FButtonDirective,
|
|
9222
|
+
ProgressSpinnerComponent,
|
|
9223
|
+
SelectComponent,
|
|
9169
9224
|
TranslatePipe,
|
|
9170
9225
|
],
|
|
9171
9226
|
template: `
|
|
@@ -9320,43 +9375,34 @@ class UserCompanyPermissionDialogComponent {
|
|
|
9320
9375
|
this.isLoading.set(false);
|
|
9321
9376
|
}
|
|
9322
9377
|
}
|
|
9323
|
-
async onCompanyToggle(company) {
|
|
9378
|
+
async onCompanyToggle(company, isAssigned) {
|
|
9324
9379
|
const currentUser = this.user();
|
|
9325
9380
|
if (!currentUser)
|
|
9326
9381
|
return;
|
|
9327
9382
|
this.isSaving.set(true);
|
|
9328
9383
|
try {
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9384
|
+
const response = isAssigned
|
|
9385
|
+
? await firstValueFrom(this.permissionApi.assignUserToCompany(currentUser.id, company.id))
|
|
9386
|
+
: await firstValueFrom(this.permissionApi.revokeUserFromCompany(currentUser.id, company.id));
|
|
9387
|
+
if (response.success) {
|
|
9388
|
+
if (isAssigned)
|
|
9332
9389
|
this.assignedCompanyIds.add(company.id);
|
|
9333
|
-
|
|
9334
|
-
severity: 'success',
|
|
9335
|
-
summary: this.t('shared.success'),
|
|
9336
|
-
detail: response?.messageKey
|
|
9337
|
-
? this.t(response.messageKey, response.messageVariables)
|
|
9338
|
-
: (response?.message ?? ''),
|
|
9339
|
-
});
|
|
9340
|
-
this.permissionsChanged.emit();
|
|
9341
|
-
}
|
|
9342
|
-
}
|
|
9343
|
-
else {
|
|
9344
|
-
const response = await firstValueFrom(this.permissionApi.revokeUserFromCompany(currentUser.id, company.id));
|
|
9345
|
-
if (response.success) {
|
|
9390
|
+
else
|
|
9346
9391
|
this.assignedCompanyIds.delete(company.id);
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9392
|
+
this.companies.update((list) => list.map((c) => (c.id === company.id ? { ...c, isAssigned } : c)));
|
|
9393
|
+
this.messageService.add({
|
|
9394
|
+
severity: 'success',
|
|
9395
|
+
summary: this.t('shared.success'),
|
|
9396
|
+
detail: response?.messageKey
|
|
9397
|
+
? this.t(response.messageKey, response.messageVariables)
|
|
9398
|
+
: (response?.message ?? ''),
|
|
9399
|
+
});
|
|
9400
|
+
this.permissionsChanged.emit();
|
|
9356
9401
|
}
|
|
9357
9402
|
}
|
|
9358
9403
|
catch {
|
|
9359
|
-
|
|
9404
|
+
// Signal was never optimistically updated, so the checkbox already
|
|
9405
|
+
// reflects the pre-toggle state once change detection re-runs below.
|
|
9360
9406
|
}
|
|
9361
9407
|
finally {
|
|
9362
9408
|
this.isSaving.set(false);
|
|
@@ -9365,8 +9411,8 @@ class UserCompanyPermissionDialogComponent {
|
|
|
9365
9411
|
onClose() {
|
|
9366
9412
|
this.closed.emit();
|
|
9367
9413
|
}
|
|
9368
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
9369
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
9414
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserCompanyPermissionDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9415
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UserCompanyPermissionDialogComponent, isStandalone: true, selector: "lib-user-company-permission-dialog", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: true, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { closed: "closed", permissionsChanged: "permissionsChanged" }, ngImport: i0, template: `
|
|
9370
9416
|
<f-dialog
|
|
9371
9417
|
[visible]="visible()"
|
|
9372
9418
|
[modal]="true"
|
|
@@ -9392,11 +9438,11 @@ class UserCompanyPermissionDialogComponent {
|
|
|
9392
9438
|
@for (company of companies(); track company.id) {
|
|
9393
9439
|
<div class="flex items-center p-3 border border-surface rounded">
|
|
9394
9440
|
<f-checkbox
|
|
9395
|
-
[
|
|
9441
|
+
[ngModel]="company.isAssigned"
|
|
9396
9442
|
[binary]="true"
|
|
9397
9443
|
[inputId]="'company-' + company.id"
|
|
9398
9444
|
[disabled]="isSaving()"
|
|
9399
|
-
(onChange)="onCompanyToggle(company)"
|
|
9445
|
+
(onChange)="onCompanyToggle(company, $event.checked)"
|
|
9400
9446
|
/>
|
|
9401
9447
|
<label
|
|
9402
9448
|
[for]="'company-' + company.id"
|
|
@@ -9426,15 +9472,18 @@ class UserCompanyPermissionDialogComponent {
|
|
|
9426
9472
|
</button>
|
|
9427
9473
|
</ng-template>
|
|
9428
9474
|
</f-dialog>
|
|
9429
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type:
|
|
9475
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CheckboxComponent, selector: "f-checkbox", inputs: ["label", "binary", "disabled", "readonly", "inputId", "invalid", "indeterminate", "variant", "size", "touched", "styleClass", "style", "checked"], outputs: ["onChange", "onBlur", "touch", "checkedChange"] }, { kind: "component", type: DialogComponent, selector: "f-dialog", inputs: ["header", "visible", "modal", "closable", "closeOnEscape", "dismissableMask", "resizable", "draggable", "maximizable", "blockScroll", "returnFocusOnClose", "position", "style", "styleClass", "breakpoints"], outputs: ["visibleChange", "onShow", "onHide", "onMaximize"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: ProgressSpinnerComponent, selector: "f-progressspinner", inputs: ["size", "strokeWidth", "animationDuration", "styleClass", "ariaLabel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
9430
9476
|
}
|
|
9431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
9477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserCompanyPermissionDialogComponent, decorators: [{
|
|
9432
9478
|
type: Component,
|
|
9433
9479
|
args: [{
|
|
9434
9480
|
selector: 'lib-user-company-permission-dialog',
|
|
9435
9481
|
imports: [
|
|
9436
|
-
|
|
9437
|
-
|
|
9482
|
+
FormsModule,
|
|
9483
|
+
CheckboxComponent,
|
|
9484
|
+
DialogComponent,
|
|
9485
|
+
FButtonDirective,
|
|
9486
|
+
ProgressSpinnerComponent,
|
|
9438
9487
|
TranslatePipe,
|
|
9439
9488
|
],
|
|
9440
9489
|
template: `
|
|
@@ -9463,11 +9512,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
9463
9512
|
@for (company of companies(); track company.id) {
|
|
9464
9513
|
<div class="flex items-center p-3 border border-surface rounded">
|
|
9465
9514
|
<f-checkbox
|
|
9466
|
-
[
|
|
9515
|
+
[ngModel]="company.isAssigned"
|
|
9467
9516
|
[binary]="true"
|
|
9468
9517
|
[inputId]="'company-' + company.id"
|
|
9469
9518
|
[disabled]="isSaving()"
|
|
9470
|
-
(onChange)="onCompanyToggle(company)"
|
|
9519
|
+
(onChange)="onCompanyToggle(company, $event.checked)"
|
|
9471
9520
|
/>
|
|
9472
9521
|
<label
|
|
9473
9522
|
[for]="'company-' + company.id"
|
|
@@ -9641,8 +9690,8 @@ class UserListComponent {
|
|
|
9641
9690
|
},
|
|
9642
9691
|
});
|
|
9643
9692
|
}
|
|
9644
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
9645
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
9693
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9694
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UserListComponent, isStandalone: true, selector: "lib-user-list", ngImport: i0, template: `
|
|
9646
9695
|
<f-card>
|
|
9647
9696
|
<ng-template #header>
|
|
9648
9697
|
<div
|
|
@@ -9932,17 +9981,26 @@ class UserListComponent {
|
|
|
9932
9981
|
}
|
|
9933
9982
|
</f-dialog>
|
|
9934
9983
|
}
|
|
9935
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
9984
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CardComponent, selector: "f-card", inputs: ["header", "subheader", "styleClass", "style"] }, { kind: "component", type: DialogComponent, selector: "f-dialog", inputs: ["header", "visible", "modal", "closable", "closeOnEscape", "dismissableMask", "resizable", "draggable", "maximizable", "blockScroll", "returnFocusOnClose", "position", "style", "styleClass", "breakpoints"], outputs: ["visibleChange", "onShow", "onHide", "onMaximize"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "component", type: TableComponent, selector: "f-table", inputs: ["value", "lazy", "loading", "rows", "totalRecords", "rowHover", "dataKey", "scrollable", "scrollHeight", "paginator", "first", "rowsPerPageOptions", "showCurrentPageReport", "currentPageReportTemplate", "tableStyle", "styleClass", "globalFilterFields", "filterDelay", "responsiveLayout", "selectionMode", "sortMode", "rowExpandMode", "resizableColumns", "rowStyleClass", "virtualScroll", "virtualScrollItemSize", "sortField", "sortOrder", "multiSortMeta", "filters", "selection", "expandedRowKeys", "contextMenuSelection"], outputs: ["sortFieldChange", "sortOrderChange", "multiSortMetaChange", "filtersChange", "selectionChange", "expandedRowKeysChange", "contextMenuSelectionChange", "onLazyLoad", "onSort", "onFilter", "onRowSelect", "onRowUnselect", "onSelectAllChange", "onRowExpand", "onRowCollapse", "onColResize", "onRowContextMenu"] }, { kind: "component", type: TagComponent, selector: "f-tag", inputs: ["value", "severity", "icon", "rounded", "color", "styleClass", "style"] }, { kind: "directive", type: TooltipDirective, selector: "[fTooltip]", inputs: ["fTooltip", "tooltipPosition", "positionStyle", "tooltipStyleClass", "disabled", "tooltipEvent", "showDelay", "hideDelay", "life", "autoHide", "positionTop", "positionLeft", "escape"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: HasPermissionDirective, selector: "[hasPermission]", inputs: ["hasPermission"] }, { kind: "component", type: UserCompanyPermissionDialogComponent, selector: "lib-user-company-permission-dialog", inputs: ["visible", "user"], outputs: ["closed", "permissionsChanged"] }, { kind: "component", type: UserBranchPermissionDialogComponent, selector: "lib-user-branch-permission-dialog", inputs: ["visible", "user"], outputs: ["closed", "permissionsChanged"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
9936
9985
|
}
|
|
9937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
9986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UserListComponent, decorators: [{
|
|
9938
9987
|
type: Component,
|
|
9939
9988
|
args: [{
|
|
9940
9989
|
selector: 'lib-user-list',
|
|
9941
|
-
imports: [
|
|
9990
|
+
imports: [
|
|
9991
|
+
NgTemplateOutlet,
|
|
9992
|
+
CardComponent,
|
|
9993
|
+
DialogComponent,
|
|
9994
|
+
FButtonDirective,
|
|
9995
|
+
TableComponent,
|
|
9996
|
+
TagComponent,
|
|
9997
|
+
TooltipDirective,
|
|
9998
|
+
UiIconComponent,
|
|
9942
9999
|
HasPermissionDirective,
|
|
9943
10000
|
TranslatePipe,
|
|
9944
10001
|
UserCompanyPermissionDialogComponent,
|
|
9945
|
-
UserBranchPermissionDialogComponent,
|
|
10002
|
+
UserBranchPermissionDialogComponent,
|
|
10003
|
+
],
|
|
9946
10004
|
template: `
|
|
9947
10005
|
<f-card>
|
|
9948
10006
|
<ng-template #header>
|
|
@@ -10338,7 +10396,8 @@ class VerifyEmailPageComponent {
|
|
|
10338
10396
|
this.pageState.set('resend');
|
|
10339
10397
|
this.resendSuccess.set(false);
|
|
10340
10398
|
}
|
|
10341
|
-
onResend() {
|
|
10399
|
+
onResend(event) {
|
|
10400
|
+
event.preventDefault();
|
|
10342
10401
|
if (!this.isResendFormValid()) {
|
|
10343
10402
|
this.messageService.add({
|
|
10344
10403
|
severity: 'error',
|
|
@@ -10371,8 +10430,8 @@ class VerifyEmailPageComponent {
|
|
|
10371
10430
|
this.submittedEmail.set(email);
|
|
10372
10431
|
this.resendSuccess.set(true);
|
|
10373
10432
|
}
|
|
10374
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
10375
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
10433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: VerifyEmailPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10434
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: VerifyEmailPageComponent, isStandalone: true, selector: "lib-verify-email-page", ngImport: i0, template: `
|
|
10376
10435
|
<app-floating-configurator />
|
|
10377
10436
|
<div
|
|
10378
10437
|
class="bg-surface-ground flex items-center justify-center min-h-screen"
|
|
@@ -10465,7 +10524,7 @@ class VerifyEmailPageComponent {
|
|
|
10465
10524
|
</div>
|
|
10466
10525
|
|
|
10467
10526
|
@if (!resendSuccess()) {
|
|
10468
|
-
<form (
|
|
10527
|
+
<form (submit)="onResend($event)">
|
|
10469
10528
|
<label
|
|
10470
10529
|
for="email"
|
|
10471
10530
|
class="block text-lg font-medium mb-2 text-color"
|
|
@@ -10525,15 +10584,17 @@ class VerifyEmailPageComponent {
|
|
|
10525
10584
|
</div>
|
|
10526
10585
|
</div>
|
|
10527
10586
|
</div>
|
|
10528
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
10587
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: FButtonDirective, selector: "[fButton]", inputs: ["severity", "text", "outlined", "link", "variant", "rounded", "raised", "fluid", "disabled", "loading", "loadingIcon", "size", "label", "icon", "iconPos", "ariaLabel", "plain"] }, { kind: "directive", type: InputTextDirective, selector: "[fInputText]", inputs: ["invalid", "touched", "variant", "size", "fluid"] }, { kind: "component", type: UiIconComponent, selector: "ui-icon", inputs: ["name", "size", "spin", "fill", "severity"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: AppFloatingConfigurator, selector: "app-floating-configurator" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
10529
10588
|
}
|
|
10530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
10589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: VerifyEmailPageComponent, decorators: [{
|
|
10531
10590
|
type: Component,
|
|
10532
10591
|
args: [{
|
|
10533
10592
|
selector: 'lib-verify-email-page',
|
|
10534
10593
|
imports: [
|
|
10535
|
-
|
|
10536
|
-
|
|
10594
|
+
RouterLink,
|
|
10595
|
+
FButtonDirective,
|
|
10596
|
+
InputTextDirective,
|
|
10597
|
+
UiIconComponent,
|
|
10537
10598
|
FormField,
|
|
10538
10599
|
AppFloatingConfigurator,
|
|
10539
10600
|
TranslatePipe,
|
|
@@ -10631,7 +10692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
10631
10692
|
</div>
|
|
10632
10693
|
|
|
10633
10694
|
@if (!resendSuccess()) {
|
|
10634
|
-
<form (
|
|
10695
|
+
<form (submit)="onResend($event)">
|
|
10635
10696
|
<label
|
|
10636
10697
|
for="email"
|
|
10637
10698
|
class="block text-lg font-medium mb-2 text-color"
|