@acorex/platform 21.0.0-next.5 → 21.0.0-next.8
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/auth/index.d.ts +228 -3
- package/fesm2022/acorex-platform-auth.mjs +162 -2
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1 -1
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +11 -2
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +7 -7
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +79 -34
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +108 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +224 -89
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs → acorex-platform-themes-default-entity-master-list-view.component-D3qZa5fM.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-D3qZa5fM.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-Dz0cylyQ.mjs} +8 -8
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-Dz0cylyQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +1084 -456
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +6 -0
- package/layout/components/index.d.ts +4 -3
- package/layout/entity/index.d.ts +9 -0
- package/layout/widget-core/index.d.ts +42 -1
- package/layout/widgets/index.d.ts +12 -7
- package/package.json +9 -9
- package/workflow/index.d.ts +798 -939
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs.map +0 -1
package/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, TemplateRef, ViewContainerRef, ModuleWithProviders, Injector } from '@angular/core';
|
|
2
|
+
import { InjectionToken, TemplateRef, ViewContainerRef, ModuleWithProviders, Injector, Type } from '@angular/core';
|
|
3
3
|
import { AXPLogoConfig, AXPOptionsData, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
4
4
|
import { CanActivateFn } from '@angular/router';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -439,5 +439,230 @@ declare class AXPUnauthenticatedError extends Error {
|
|
|
439
439
|
} | undefined);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
/**
|
|
443
|
+
* Supported content types for challenge display
|
|
444
|
+
*/
|
|
445
|
+
type AXPChallengeContentType = 'image-url' | 'image-base64' | 'text' | 'audio-url';
|
|
446
|
+
/**
|
|
447
|
+
* Challenge data returned from the server
|
|
448
|
+
* Contains all information needed to display and submit a challenge
|
|
449
|
+
*/
|
|
450
|
+
interface AXPLoginChallengeData {
|
|
451
|
+
/**
|
|
452
|
+
* Unique identifier for this challenge
|
|
453
|
+
* Must be sent back with credentials when submitting login
|
|
454
|
+
*/
|
|
455
|
+
id: string;
|
|
456
|
+
/**
|
|
457
|
+
* The challenge content to display
|
|
458
|
+
* Could be an image URL, base64 encoded image, text, or audio URL
|
|
459
|
+
*/
|
|
460
|
+
content: string;
|
|
461
|
+
/**
|
|
462
|
+
* Type of content for proper rendering
|
|
463
|
+
*/
|
|
464
|
+
contentType: AXPChallengeContentType;
|
|
465
|
+
/**
|
|
466
|
+
* When this challenge expires (optional)
|
|
467
|
+
* After expiration, a new challenge should be fetched
|
|
468
|
+
*/
|
|
469
|
+
expiresAt?: Date;
|
|
470
|
+
/**
|
|
471
|
+
* Additional metadata from server (optional)
|
|
472
|
+
*/
|
|
473
|
+
metadata?: Record<string, unknown>;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Result of checking a login error response
|
|
477
|
+
* Determines if a challenge should be displayed
|
|
478
|
+
*/
|
|
479
|
+
interface AXPChallengeCheckResult {
|
|
480
|
+
/**
|
|
481
|
+
* Whether a challenge is required
|
|
482
|
+
*/
|
|
483
|
+
required: boolean;
|
|
484
|
+
/**
|
|
485
|
+
* Optional message to display to the user
|
|
486
|
+
*/
|
|
487
|
+
message?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Additional data from server that may be needed for getChallenge()
|
|
490
|
+
* For example: sessionId, attemptId, etc.
|
|
491
|
+
*/
|
|
492
|
+
serverData?: Record<string, unknown>;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Base class for login challenge UI components
|
|
497
|
+
*
|
|
498
|
+
* Providers can extend this class to create custom challenge UIs.
|
|
499
|
+
* The login component will render this component and listen to its outputs.
|
|
500
|
+
*
|
|
501
|
+
* @example
|
|
502
|
+
* ```typescript
|
|
503
|
+
* @Component({
|
|
504
|
+
* selector: 'my-captcha-challenge',
|
|
505
|
+
* template: `
|
|
506
|
+
* <div class="captcha-container">
|
|
507
|
+
* <img [src]="'data:image/png;base64,' + challengeData().content" />
|
|
508
|
+
* <input
|
|
509
|
+
* type="text"
|
|
510
|
+
* [value]="response()"
|
|
511
|
+
* (input)="onResponseChange($event)"
|
|
512
|
+
* />
|
|
513
|
+
* <button (click)="onRefreshClick()">Refresh</button>
|
|
514
|
+
* </div>
|
|
515
|
+
* `
|
|
516
|
+
* })
|
|
517
|
+
* export class MyCaptchaChallengeComponent extends AXPLoginChallengeComponentBase {
|
|
518
|
+
* response = signal('');
|
|
519
|
+
*
|
|
520
|
+
* onResponseChange(event: Event) {
|
|
521
|
+
* const value = (event.target as HTMLInputElement).value;
|
|
522
|
+
* this.response.set(value);
|
|
523
|
+
* this.responseChange.emit(value);
|
|
524
|
+
* }
|
|
525
|
+
*
|
|
526
|
+
* onRefreshClick() {
|
|
527
|
+
* this.refreshRequest.emit();
|
|
528
|
+
* }
|
|
529
|
+
* }
|
|
530
|
+
* ```
|
|
531
|
+
*/
|
|
532
|
+
declare abstract class AXPLoginChallengeComponentBase {
|
|
533
|
+
/**
|
|
534
|
+
* Challenge data to display
|
|
535
|
+
* Contains the image/content and metadata from the server
|
|
536
|
+
*/
|
|
537
|
+
challengeData: i0.InputSignal<AXPLoginChallengeData>;
|
|
538
|
+
/**
|
|
539
|
+
* Whether the challenge is currently loading (e.g., refreshing)
|
|
540
|
+
*/
|
|
541
|
+
isLoading: i0.InputSignal<boolean>;
|
|
542
|
+
/**
|
|
543
|
+
* Emits when the user enters or changes their response
|
|
544
|
+
* The login component will capture this value and include it in credentials
|
|
545
|
+
*/
|
|
546
|
+
responseChange: i0.OutputEmitterRef<string>;
|
|
547
|
+
/**
|
|
548
|
+
* Emits when the user requests a new challenge (e.g., clicks refresh button)
|
|
549
|
+
* The login component will call provider.refreshChallenge()
|
|
550
|
+
*/
|
|
551
|
+
refreshRequest: i0.OutputEmitterRef<void>;
|
|
552
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPLoginChallengeComponentBase, never>;
|
|
553
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPLoginChallengeComponentBase, "ng-component", never, { "challengeData": { "alias": "challengeData"; "required": true; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; }, { "responseChange": "responseChange"; "refreshRequest": "refreshRequest"; }, never, never, true, never>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Abstract base class for login challenge providers
|
|
558
|
+
*
|
|
559
|
+
* Implement this class to create custom challenge mechanisms like:
|
|
560
|
+
* - Image CAPTCHA
|
|
561
|
+
* - reCAPTCHA
|
|
562
|
+
* - SMS verification
|
|
563
|
+
* - Email verification
|
|
564
|
+
*
|
|
565
|
+
* @example
|
|
566
|
+
* ```typescript
|
|
567
|
+
* @Injectable()
|
|
568
|
+
* export class MyImageCaptchaProvider extends AXPLoginChallengeProvider {
|
|
569
|
+
* readonly name = 'image-captcha';
|
|
570
|
+
*
|
|
571
|
+
* checkResponse(error: unknown): AXPChallengeCheckResult | null {
|
|
572
|
+
* if (error instanceof HttpErrorResponse) {
|
|
573
|
+
* if (error.error?.requiresCaptcha) {
|
|
574
|
+
* return { required: true };
|
|
575
|
+
* }
|
|
576
|
+
* }
|
|
577
|
+
* return null;
|
|
578
|
+
* }
|
|
579
|
+
*
|
|
580
|
+
* async getChallenge(): Promise<AXPLoginChallengeData> {
|
|
581
|
+
* const response = await this.http.get('/api/captcha').toPromise();
|
|
582
|
+
* return {
|
|
583
|
+
* id: response.id,
|
|
584
|
+
* content: response.image,
|
|
585
|
+
* contentType: 'image-base64'
|
|
586
|
+
* };
|
|
587
|
+
* }
|
|
588
|
+
*
|
|
589
|
+
* async refreshChallenge(): Promise<AXPLoginChallengeData> {
|
|
590
|
+
* return this.getChallenge();
|
|
591
|
+
* }
|
|
592
|
+
*
|
|
593
|
+
* getChallengeComponent(): Type<AXPLoginChallengeComponentBase> {
|
|
594
|
+
* return MyCaptchaChallengeComponent;
|
|
595
|
+
* }
|
|
596
|
+
* }
|
|
597
|
+
* ```
|
|
598
|
+
*/
|
|
599
|
+
declare abstract class AXPLoginChallengeProvider {
|
|
600
|
+
/**
|
|
601
|
+
* Unique name identifier for this provider
|
|
602
|
+
*/
|
|
603
|
+
abstract readonly name: string;
|
|
604
|
+
/**
|
|
605
|
+
* Checks the login error response to determine if a challenge is required
|
|
606
|
+
*
|
|
607
|
+
* This method is called after a failed login attempt. The implementation
|
|
608
|
+
* should inspect the error and return a result indicating whether a
|
|
609
|
+
* challenge should be displayed.
|
|
610
|
+
*
|
|
611
|
+
* @param error - The error from the failed login attempt (type varies by implementation)
|
|
612
|
+
* @returns Challenge check result, or null if this provider doesn't handle this error
|
|
613
|
+
*/
|
|
614
|
+
abstract checkResponse(error: unknown): AXPChallengeCheckResult | null;
|
|
615
|
+
/**
|
|
616
|
+
* Fetches a new challenge from the server
|
|
617
|
+
*
|
|
618
|
+
* Called when checkResponse indicates a challenge is required.
|
|
619
|
+
* Should make an API call to get challenge data (e.g., CAPTCHA image).
|
|
620
|
+
*
|
|
621
|
+
* @param serverData - Optional data from checkResponse result that may be needed
|
|
622
|
+
* @returns Promise resolving to challenge data for display
|
|
623
|
+
*/
|
|
624
|
+
abstract getChallenge(serverData?: Record<string, unknown>): Promise<AXPLoginChallengeData>;
|
|
625
|
+
/**
|
|
626
|
+
* Fetches a fresh challenge, replacing the current one
|
|
627
|
+
*
|
|
628
|
+
* Called when user requests a new challenge (e.g., clicks "new image" button).
|
|
629
|
+
* Typically delegates to getChallenge() but may have different behavior.
|
|
630
|
+
*
|
|
631
|
+
* @returns Promise resolving to new challenge data
|
|
632
|
+
*/
|
|
633
|
+
abstract refreshChallenge(): Promise<AXPLoginChallengeData>;
|
|
634
|
+
/**
|
|
635
|
+
* Returns the component type for rendering the challenge UI
|
|
636
|
+
*
|
|
637
|
+
* Override this method to provide a custom challenge UI component.
|
|
638
|
+
* If not overridden (returns null), the login component will use
|
|
639
|
+
* a default built-in UI.
|
|
640
|
+
*
|
|
641
|
+
* @returns Component type extending AXPLoginChallengeComponentBase, or null for default UI
|
|
642
|
+
*/
|
|
643
|
+
getChallengeComponent(): Type<AXPLoginChallengeComponentBase> | null;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Injection token for the login challenge provider
|
|
648
|
+
*
|
|
649
|
+
* This token is optional - if not provided, no challenge mechanism will be used.
|
|
650
|
+
*
|
|
651
|
+
* @example
|
|
652
|
+
* ```typescript
|
|
653
|
+
* // In your app module or provider configuration:
|
|
654
|
+
* providers: [
|
|
655
|
+
* {
|
|
656
|
+
* provide: AXP_LOGIN_CHALLENGE_PROVIDER,
|
|
657
|
+
* useClass: MyImageCaptchaProvider
|
|
658
|
+
* }
|
|
659
|
+
* ]
|
|
660
|
+
*
|
|
661
|
+
* // In a component:
|
|
662
|
+
* private challengeProvider = inject(AXP_LOGIN_CHALLENGE_PROVIDER, { optional: true });
|
|
663
|
+
* ```
|
|
664
|
+
*/
|
|
665
|
+
declare const AXP_LOGIN_CHALLENGE_PROVIDER: InjectionToken<AXPLoginChallengeProvider>;
|
|
666
|
+
|
|
667
|
+
export { AXPAuthGuard, AXPAuthModule, AXPAuthStrategy, AXPAuthStrategyRegistryService, AXPFeatureDirective, AXPFeatureGuard, AXPLoginChallengeComponentBase, AXPLoginChallengeProvider, AXPPermissionDefinitionBuilder, AXPPermissionDefinitionGroupBuilder, AXPPermissionDefinitionProviderContext, AXPPermissionDefinitionService, AXPPermissionDirective, AXPPermissionEvaluatorScopeProvider, AXPPermissionGuard, AXPSessionContext, AXPSessionService, AXPSessionStatus, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_CHECKER, AXP_FEATURE_LOADER, AXP_LOGIN_CHALLENGE_PROVIDER, AXP_PERMISSION_CHECKER, AXP_PERMISSION_DEFINITION_PROVIDER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, JwtUtil, PkceUtil, TimeUtil, initializeAppState };
|
|
668
|
+
export type { AXPApplication, AXPApplicationLoader, AXPAuthModuleConfigs, AXPBaseCredentials, AXPChallengeCheckResult, AXPChallengeContentType, AXPEdition, AXPFeature, AXPFeatureChecker, AXPFeatureLoader, AXPLoginChallengeData, AXPPermission, AXPPermissionChecker, AXPPermissionDefinition, AXPPermissionDefinitionProvider, AXPPermissionGroupDefinition, AXPPermissionLoader, AXPSessionData, AXPSignInResult, AXPTenant, AXPTenantLoader, AXPTokenResult, AXPUser };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, Injectable, signal, inject, Input, Directive, provideAppInitializer, Optional, Inject, NgModule } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injector, Injectable, signal, inject, Input, Directive, provideAppInitializer, Optional, Inject, NgModule, input, output, Component } from '@angular/core';
|
|
3
3
|
import { AXPBroadcastEventService, AXP_SESSION_SERVICE } from '@acorex/platform/core';
|
|
4
4
|
import { isEmpty } from 'lodash-es';
|
|
5
5
|
import { map, BehaviorSubject, shareReplay, defaultIfEmpty, switchMap, filter, from, first } from 'rxjs';
|
|
@@ -1100,9 +1100,169 @@ class TimeUtil {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
//#endregion
|
|
1102
1102
|
|
|
1103
|
+
//#region ---- Challenge Data Types ----
|
|
1104
|
+
//#endregion
|
|
1105
|
+
|
|
1106
|
+
//#region ---- Abstract Challenge Provider ----
|
|
1107
|
+
/**
|
|
1108
|
+
* Abstract base class for login challenge providers
|
|
1109
|
+
*
|
|
1110
|
+
* Implement this class to create custom challenge mechanisms like:
|
|
1111
|
+
* - Image CAPTCHA
|
|
1112
|
+
* - reCAPTCHA
|
|
1113
|
+
* - SMS verification
|
|
1114
|
+
* - Email verification
|
|
1115
|
+
*
|
|
1116
|
+
* @example
|
|
1117
|
+
* ```typescript
|
|
1118
|
+
* @Injectable()
|
|
1119
|
+
* export class MyImageCaptchaProvider extends AXPLoginChallengeProvider {
|
|
1120
|
+
* readonly name = 'image-captcha';
|
|
1121
|
+
*
|
|
1122
|
+
* checkResponse(error: unknown): AXPChallengeCheckResult | null {
|
|
1123
|
+
* if (error instanceof HttpErrorResponse) {
|
|
1124
|
+
* if (error.error?.requiresCaptcha) {
|
|
1125
|
+
* return { required: true };
|
|
1126
|
+
* }
|
|
1127
|
+
* }
|
|
1128
|
+
* return null;
|
|
1129
|
+
* }
|
|
1130
|
+
*
|
|
1131
|
+
* async getChallenge(): Promise<AXPLoginChallengeData> {
|
|
1132
|
+
* const response = await this.http.get('/api/captcha').toPromise();
|
|
1133
|
+
* return {
|
|
1134
|
+
* id: response.id,
|
|
1135
|
+
* content: response.image,
|
|
1136
|
+
* contentType: 'image-base64'
|
|
1137
|
+
* };
|
|
1138
|
+
* }
|
|
1139
|
+
*
|
|
1140
|
+
* async refreshChallenge(): Promise<AXPLoginChallengeData> {
|
|
1141
|
+
* return this.getChallenge();
|
|
1142
|
+
* }
|
|
1143
|
+
*
|
|
1144
|
+
* getChallengeComponent(): Type<AXPLoginChallengeComponentBase> {
|
|
1145
|
+
* return MyCaptchaChallengeComponent;
|
|
1146
|
+
* }
|
|
1147
|
+
* }
|
|
1148
|
+
* ```
|
|
1149
|
+
*/
|
|
1150
|
+
class AXPLoginChallengeProvider {
|
|
1151
|
+
/**
|
|
1152
|
+
* Returns the component type for rendering the challenge UI
|
|
1153
|
+
*
|
|
1154
|
+
* Override this method to provide a custom challenge UI component.
|
|
1155
|
+
* If not overridden (returns null), the login component will use
|
|
1156
|
+
* a default built-in UI.
|
|
1157
|
+
*
|
|
1158
|
+
* @returns Component type extending AXPLoginChallengeComponentBase, or null for default UI
|
|
1159
|
+
*/
|
|
1160
|
+
getChallengeComponent() {
|
|
1161
|
+
return null;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
//#endregion
|
|
1165
|
+
|
|
1166
|
+
//#region ---- Injection Token ----
|
|
1167
|
+
/**
|
|
1168
|
+
* Injection token for the login challenge provider
|
|
1169
|
+
*
|
|
1170
|
+
* This token is optional - if not provided, no challenge mechanism will be used.
|
|
1171
|
+
*
|
|
1172
|
+
* @example
|
|
1173
|
+
* ```typescript
|
|
1174
|
+
* // In your app module or provider configuration:
|
|
1175
|
+
* providers: [
|
|
1176
|
+
* {
|
|
1177
|
+
* provide: AXP_LOGIN_CHALLENGE_PROVIDER,
|
|
1178
|
+
* useClass: MyImageCaptchaProvider
|
|
1179
|
+
* }
|
|
1180
|
+
* ]
|
|
1181
|
+
*
|
|
1182
|
+
* // In a component:
|
|
1183
|
+
* private challengeProvider = inject(AXP_LOGIN_CHALLENGE_PROVIDER, { optional: true });
|
|
1184
|
+
* ```
|
|
1185
|
+
*/
|
|
1186
|
+
const AXP_LOGIN_CHALLENGE_PROVIDER = new InjectionToken('AXP_LOGIN_CHALLENGE_PROVIDER');
|
|
1187
|
+
//#endregion
|
|
1188
|
+
|
|
1189
|
+
//#region ---- Base Challenge Component ----
|
|
1190
|
+
/**
|
|
1191
|
+
* Base class for login challenge UI components
|
|
1192
|
+
*
|
|
1193
|
+
* Providers can extend this class to create custom challenge UIs.
|
|
1194
|
+
* The login component will render this component and listen to its outputs.
|
|
1195
|
+
*
|
|
1196
|
+
* @example
|
|
1197
|
+
* ```typescript
|
|
1198
|
+
* @Component({
|
|
1199
|
+
* selector: 'my-captcha-challenge',
|
|
1200
|
+
* template: `
|
|
1201
|
+
* <div class="captcha-container">
|
|
1202
|
+
* <img [src]="'data:image/png;base64,' + challengeData().content" />
|
|
1203
|
+
* <input
|
|
1204
|
+
* type="text"
|
|
1205
|
+
* [value]="response()"
|
|
1206
|
+
* (input)="onResponseChange($event)"
|
|
1207
|
+
* />
|
|
1208
|
+
* <button (click)="onRefreshClick()">Refresh</button>
|
|
1209
|
+
* </div>
|
|
1210
|
+
* `
|
|
1211
|
+
* })
|
|
1212
|
+
* export class MyCaptchaChallengeComponent extends AXPLoginChallengeComponentBase {
|
|
1213
|
+
* response = signal('');
|
|
1214
|
+
*
|
|
1215
|
+
* onResponseChange(event: Event) {
|
|
1216
|
+
* const value = (event.target as HTMLInputElement).value;
|
|
1217
|
+
* this.response.set(value);
|
|
1218
|
+
* this.responseChange.emit(value);
|
|
1219
|
+
* }
|
|
1220
|
+
*
|
|
1221
|
+
* onRefreshClick() {
|
|
1222
|
+
* this.refreshRequest.emit();
|
|
1223
|
+
* }
|
|
1224
|
+
* }
|
|
1225
|
+
* ```
|
|
1226
|
+
*/
|
|
1227
|
+
class AXPLoginChallengeComponentBase {
|
|
1228
|
+
constructor() {
|
|
1229
|
+
//#region ---- Inputs ----
|
|
1230
|
+
/**
|
|
1231
|
+
* Challenge data to display
|
|
1232
|
+
* Contains the image/content and metadata from the server
|
|
1233
|
+
*/
|
|
1234
|
+
this.challengeData = input.required(...(ngDevMode ? [{ debugName: "challengeData" }] : []));
|
|
1235
|
+
/**
|
|
1236
|
+
* Whether the challenge is currently loading (e.g., refreshing)
|
|
1237
|
+
*/
|
|
1238
|
+
this.isLoading = input(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region ---- Outputs ----
|
|
1241
|
+
/**
|
|
1242
|
+
* Emits when the user enters or changes their response
|
|
1243
|
+
* The login component will capture this value and include it in credentials
|
|
1244
|
+
*/
|
|
1245
|
+
this.responseChange = output();
|
|
1246
|
+
/**
|
|
1247
|
+
* Emits when the user requests a new challenge (e.g., clicks refresh button)
|
|
1248
|
+
* The login component will call provider.refreshChallenge()
|
|
1249
|
+
*/
|
|
1250
|
+
this.refreshRequest = output();
|
|
1251
|
+
}
|
|
1252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPLoginChallengeComponentBase, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1253
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.12", type: AXPLoginChallengeComponentBase, isStandalone: true, selector: "ng-component", inputs: { challengeData: { classPropertyName: "challengeData", publicName: "challengeData", isSignal: true, isRequired: true, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { responseChange: "responseChange", refreshRequest: "refreshRequest" }, ngImport: i0, template: '', isInline: true }); }
|
|
1254
|
+
}
|
|
1255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPLoginChallengeComponentBase, decorators: [{
|
|
1256
|
+
type: Component,
|
|
1257
|
+
args: [{
|
|
1258
|
+
template: '',
|
|
1259
|
+
standalone: true,
|
|
1260
|
+
}]
|
|
1261
|
+
}], propDecorators: { challengeData: [{ type: i0.Input, args: [{ isSignal: true, alias: "challengeData", required: true }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], responseChange: [{ type: i0.Output, args: ["responseChange"] }], refreshRequest: [{ type: i0.Output, args: ["refreshRequest"] }] } });
|
|
1262
|
+
|
|
1103
1263
|
/**
|
|
1104
1264
|
* Generated bundle index. Do not edit.
|
|
1105
1265
|
*/
|
|
1106
1266
|
|
|
1107
|
-
export { AXPAuthGuard, AXPAuthModule, AXPAuthStrategy, AXPAuthStrategyRegistryService, AXPFeatureDirective, AXPFeatureGuard, AXPPermissionDefinitionBuilder, AXPPermissionDefinitionGroupBuilder, AXPPermissionDefinitionProviderContext, AXPPermissionDefinitionService, AXPPermissionDirective, AXPPermissionEvaluatorScopeProvider, AXPPermissionGuard, AXPSessionContext, AXPSessionService, AXPSessionStatus, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_CHECKER, AXP_FEATURE_LOADER, AXP_PERMISSION_CHECKER, AXP_PERMISSION_DEFINITION_PROVIDER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, JwtUtil, PkceUtil, TimeUtil, initializeAppState };
|
|
1267
|
+
export { AXPAuthGuard, AXPAuthModule, AXPAuthStrategy, AXPAuthStrategyRegistryService, AXPFeatureDirective, AXPFeatureGuard, AXPLoginChallengeComponentBase, AXPLoginChallengeProvider, AXPPermissionDefinitionBuilder, AXPPermissionDefinitionGroupBuilder, AXPPermissionDefinitionProviderContext, AXPPermissionDefinitionService, AXPPermissionDirective, AXPPermissionEvaluatorScopeProvider, AXPPermissionGuard, AXPSessionContext, AXPSessionService, AXPSessionStatus, AXPUnauthenticatedError, AXPUnauthorizedError, AXP_APPLICATION_LOADER, AXP_FEATURE_CHECKER, AXP_FEATURE_LOADER, AXP_LOGIN_CHALLENGE_PROVIDER, AXP_PERMISSION_CHECKER, AXP_PERMISSION_DEFINITION_PROVIDER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, JwtUtil, PkceUtil, TimeUtil, initializeAppState };
|
|
1108
1268
|
//# sourceMappingURL=acorex-platform-auth.mjs.map
|