@edsis/angular 22.0.13 → 22.0.23
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/edsis-angular-block-shell.mjs +146 -146
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +178 -178
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +23 -23
- package/types/edsis-angular-module-auth.d.ts +4 -4
|
@@ -8,18 +8,18 @@ import { ApiConfiguration, provideApiConfiguration } from '@edsis/sdk/shared';
|
|
|
8
8
|
import { UserProfileService } from '@edsis/sdk/user';
|
|
9
9
|
import { firstValueFrom, throwError, from, startWith, finalize } from 'rxjs';
|
|
10
10
|
import { switchMap, catchError } from 'rxjs/operators';
|
|
11
|
-
import {
|
|
11
|
+
import { LayoutComponent, LayoutFluidComponent } from '@edsis/theme/layout';
|
|
12
12
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
13
|
import * as i1 from '@angular/forms';
|
|
14
14
|
import { FormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
-
import { AspectRatioComponent } from '@edsis/
|
|
16
|
-
import { ButtonComponent } from '@edsis/
|
|
17
|
-
import { CardActionComponent, CardComponent, CardContentComponent, CardDescriptionComponent, CardHeaderComponent, CardTitleComponent, CardFooterComponent } from '@edsis/
|
|
18
|
-
import { InputGroupAddonComponent, InputGroupButtonComponent, InputGroupComponent, InputGroupInputComponent } from '@edsis/
|
|
19
|
-
import { LabelComponent } from '@edsis/
|
|
20
|
-
import { SeparatorComponent } from '@edsis/
|
|
21
|
-
import { AlertComponent, AlertDescriptionComponent } from '@edsis/
|
|
22
|
-
import { SpinnerComponent } from '@edsis/
|
|
15
|
+
import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
|
|
16
|
+
import { ButtonComponent } from '@edsis/component/button';
|
|
17
|
+
import { CardActionComponent, CardComponent, CardContentComponent, CardDescriptionComponent, CardHeaderComponent, CardTitleComponent, CardFooterComponent } from '@edsis/component/card';
|
|
18
|
+
import { InputGroupAddonComponent, InputGroupButtonComponent, InputGroupComponent, InputGroupInputComponent } from '@edsis/component/input-group';
|
|
19
|
+
import { LabelComponent } from '@edsis/component/label';
|
|
20
|
+
import { SeparatorComponent } from '@edsis/component/separator';
|
|
21
|
+
import { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';
|
|
22
|
+
import { SpinnerComponent } from '@edsis/component/spinner';
|
|
23
23
|
|
|
24
24
|
const DEFAULT_LOGIN_PATH = '/login';
|
|
25
25
|
const DEFAULT_LOGOUT_PATH = '/logout';
|
|
@@ -697,8 +697,8 @@ const guestOnlyGuard = async () => {
|
|
|
697
697
|
};
|
|
698
698
|
|
|
699
699
|
class AuthShellPage {
|
|
700
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
701
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthShellPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.1", type: AuthShellPage, isStandalone: true, selector: "edsis-auth-shell-page", host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
702
702
|
<layout surface="grid" appearance="border-rail" width="fluid">
|
|
703
703
|
<layout-fluid>
|
|
704
704
|
<div class="w-full max-w-xl">
|
|
@@ -706,13 +706,13 @@ class AuthShellPage {
|
|
|
706
706
|
</div>
|
|
707
707
|
</layout-fluid>
|
|
708
708
|
</layout>
|
|
709
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type:
|
|
709
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: LayoutComponent, selector: "layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: LayoutFluidComponent, selector: "layout-fluid", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
710
710
|
}
|
|
711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthShellPage, decorators: [{
|
|
712
712
|
type: Component,
|
|
713
713
|
args: [{
|
|
714
714
|
selector: 'edsis-auth-shell-page',
|
|
715
|
-
imports: [RouterOutlet,
|
|
715
|
+
imports: [RouterOutlet, LayoutComponent, LayoutFluidComponent],
|
|
716
716
|
host: {
|
|
717
717
|
class: 'contents',
|
|
718
718
|
},
|
|
@@ -816,6 +816,10 @@ class AuthLoginPage {
|
|
|
816
816
|
}, /* @ts-ignore */
|
|
817
817
|
...(ngDevMode ? [{ debugName: "hasInlineError" }] : /* istanbul ignore next */ []));
|
|
818
818
|
inlineErrorMessage = computed(() => {
|
|
819
|
+
// Depend on the control events directly: `hasInlineError` stays `true`
|
|
820
|
+
// while the error kind changes (e.g. format → required), and a memoized
|
|
821
|
+
// boolean alone would leave a stale message on screen.
|
|
822
|
+
this.emailControlState();
|
|
819
823
|
if (!this.hasInlineError()) {
|
|
820
824
|
return null;
|
|
821
825
|
}
|
|
@@ -885,40 +889,38 @@ class AuthLoginPage {
|
|
|
885
889
|
},
|
|
886
890
|
});
|
|
887
891
|
}
|
|
888
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
889
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
890
|
-
<
|
|
891
|
-
<
|
|
892
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthLoginPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
893
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: AuthLoginPage, isStandalone: true, selector: "edsis-auth-login-page", host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
894
|
+
<Card class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm">
|
|
895
|
+
<CardHeader
|
|
892
896
|
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5">
|
|
893
897
|
<div class="w-16 shrink-0 sm:w-20">
|
|
894
|
-
<
|
|
898
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
895
899
|
<div
|
|
896
900
|
class="flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]"
|
|
897
901
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
898
902
|
{{ messages.brand.mark }}
|
|
899
903
|
</div>
|
|
900
|
-
</
|
|
904
|
+
</AspectRatio>
|
|
901
905
|
</div>
|
|
902
906
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
903
|
-
<
|
|
904
|
-
<p
|
|
907
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{ messages.login.title }}</CardTitle>
|
|
908
|
+
<p CardDescription class="max-w-xl leading-6">
|
|
905
909
|
{{ messages.login.intro }}
|
|
906
910
|
</p>
|
|
907
911
|
</div>
|
|
908
|
-
<
|
|
912
|
+
<CardAction
|
|
909
913
|
class="col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm">
|
|
910
914
|
{{ messages.login.badge }}
|
|
911
|
-
</
|
|
912
|
-
</
|
|
915
|
+
</CardAction>
|
|
916
|
+
</CardHeader>
|
|
913
917
|
|
|
914
|
-
<
|
|
918
|
+
<CardContent class="pt-4 sm:pt-5">
|
|
915
919
|
<form class="space-y-6" [formGroup]="form" (ngSubmit)="submit()">
|
|
916
920
|
<div class="space-y-3">
|
|
917
|
-
<label
|
|
918
|
-
<
|
|
919
|
-
<
|
|
920
|
-
aria-hidden="true"
|
|
921
|
-
class="min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!">
|
|
921
|
+
<label Label for="email" class="sr-only">Alamat email</label>
|
|
922
|
+
<InputGroup [class]="emailFieldClasses()">
|
|
923
|
+
<InputGroupAddon aria-hidden="true" class="min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!">
|
|
922
924
|
<svg
|
|
923
925
|
viewBox="0 0 24 24"
|
|
924
926
|
class="fill-none stroke-current"
|
|
@@ -929,10 +931,10 @@ class AuthLoginPage {
|
|
|
929
931
|
<path d="M5 6h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z" />
|
|
930
932
|
<path d="m5 8 7 5 7-5" />
|
|
931
933
|
</svg>
|
|
932
|
-
</
|
|
934
|
+
</InputGroupAddon>
|
|
933
935
|
|
|
934
936
|
<input
|
|
935
|
-
|
|
937
|
+
InputGroupInput
|
|
936
938
|
class="h-12! px-4! text-base!"
|
|
937
939
|
id="email"
|
|
938
940
|
type="email"
|
|
@@ -944,7 +946,7 @@ class AuthLoginPage {
|
|
|
944
946
|
[placeholder]="messages.login.emailPlaceholder" />
|
|
945
947
|
|
|
946
948
|
<button
|
|
947
|
-
|
|
949
|
+
InputGroupButton
|
|
948
950
|
type="submit"
|
|
949
951
|
variant="default"
|
|
950
952
|
size="sm"
|
|
@@ -952,7 +954,7 @@ class AuthLoginPage {
|
|
|
952
954
|
class="order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium">
|
|
953
955
|
{{ isSubmitting() ? messages.login.submitting : messages.login.submit }}
|
|
954
956
|
</button>
|
|
955
|
-
</
|
|
957
|
+
</InputGroup>
|
|
956
958
|
|
|
957
959
|
@if (feedbackMessage(); as feedback) {
|
|
958
960
|
<p
|
|
@@ -968,16 +970,16 @@ class AuthLoginPage {
|
|
|
968
970
|
</div>
|
|
969
971
|
|
|
970
972
|
<div class="grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 pt-2">
|
|
971
|
-
<
|
|
973
|
+
<Separator class="w-full" />
|
|
972
974
|
<span class="min-w-14 text-center text-sm font-medium uppercase tracking-[0.18em] text-muted-foreground">
|
|
973
975
|
Atau
|
|
974
976
|
</span>
|
|
975
|
-
<
|
|
977
|
+
<Separator class="w-full" />
|
|
976
978
|
</div>
|
|
977
979
|
|
|
978
980
|
<div class="grid gap-3 pt-2 sm:grid-cols-3">
|
|
979
981
|
<button
|
|
980
|
-
|
|
982
|
+
Button
|
|
981
983
|
type="button"
|
|
982
984
|
variant="outline"
|
|
983
985
|
size="lg"
|
|
@@ -1004,7 +1006,7 @@ class AuthLoginPage {
|
|
|
1004
1006
|
Google
|
|
1005
1007
|
</button>
|
|
1006
1008
|
<button
|
|
1007
|
-
|
|
1009
|
+
Button
|
|
1008
1010
|
type="button"
|
|
1009
1011
|
variant="outline"
|
|
1010
1012
|
size="lg"
|
|
@@ -1023,7 +1025,7 @@ class AuthLoginPage {
|
|
|
1023
1025
|
Microsoft
|
|
1024
1026
|
</button>
|
|
1025
1027
|
<button
|
|
1026
|
-
|
|
1028
|
+
Button
|
|
1027
1029
|
type="button"
|
|
1028
1030
|
variant="outline"
|
|
1029
1031
|
size="lg"
|
|
@@ -1041,11 +1043,11 @@ class AuthLoginPage {
|
|
|
1041
1043
|
</button>
|
|
1042
1044
|
</div>
|
|
1043
1045
|
</form>
|
|
1044
|
-
</
|
|
1045
|
-
</
|
|
1046
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: AspectRatioComponent, selector: "
|
|
1046
|
+
</CardContent>
|
|
1047
|
+
</Card>
|
|
1048
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }, { kind: "component", type: CardActionComponent, selector: "CardAction", inputs: ["class"] }, { kind: "component", type: CardComponent, selector: "Card", inputs: ["size", "class"] }, { kind: "component", type: CardContentComponent, selector: "CardContent", inputs: ["class"] }, { kind: "component", type: CardDescriptionComponent, selector: "CardDescription, p[CardDescription]", inputs: ["class"] }, { kind: "component", type: CardHeaderComponent, selector: "CardHeader", inputs: ["class"] }, { kind: "component", type: CardTitleComponent, selector: "CardTitle, h3[CardTitle]", inputs: ["class"] }, { kind: "component", type: InputGroupAddonComponent, selector: "InputGroupAddon", inputs: ["align", "class"] }, { kind: "component", type: InputGroupButtonComponent, selector: "button[InputGroupButton], a[InputGroupButton]", inputs: ["variant", "size", "class"] }, { kind: "component", type: InputGroupComponent, selector: "InputGroup", inputs: ["class"] }, { kind: "component", type: InputGroupInputComponent, selector: "input[InputGroupInput]", inputs: ["class"] }, { kind: "component", type: LabelComponent, selector: "Label, label[Label]", inputs: ["for", "class"] }, { kind: "component", type: SeparatorComponent, selector: "Separator", inputs: ["orientation", "decorative", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1047
1049
|
}
|
|
1048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthLoginPage, decorators: [{
|
|
1049
1051
|
type: Component,
|
|
1050
1052
|
args: [{
|
|
1051
1053
|
selector: 'edsis-auth-login-page',
|
|
@@ -1070,38 +1072,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1070
1072
|
class: 'block',
|
|
1071
1073
|
},
|
|
1072
1074
|
template: `
|
|
1073
|
-
<
|
|
1074
|
-
<
|
|
1075
|
+
<Card class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm">
|
|
1076
|
+
<CardHeader
|
|
1075
1077
|
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5">
|
|
1076
1078
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1077
|
-
<
|
|
1079
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1078
1080
|
<div
|
|
1079
1081
|
class="flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]"
|
|
1080
1082
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
1081
1083
|
{{ messages.brand.mark }}
|
|
1082
1084
|
</div>
|
|
1083
|
-
</
|
|
1085
|
+
</AspectRatio>
|
|
1084
1086
|
</div>
|
|
1085
1087
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1086
|
-
<
|
|
1087
|
-
<p
|
|
1088
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{ messages.login.title }}</CardTitle>
|
|
1089
|
+
<p CardDescription class="max-w-xl leading-6">
|
|
1088
1090
|
{{ messages.login.intro }}
|
|
1089
1091
|
</p>
|
|
1090
1092
|
</div>
|
|
1091
|
-
<
|
|
1093
|
+
<CardAction
|
|
1092
1094
|
class="col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm">
|
|
1093
1095
|
{{ messages.login.badge }}
|
|
1094
|
-
</
|
|
1095
|
-
</
|
|
1096
|
+
</CardAction>
|
|
1097
|
+
</CardHeader>
|
|
1096
1098
|
|
|
1097
|
-
<
|
|
1099
|
+
<CardContent class="pt-4 sm:pt-5">
|
|
1098
1100
|
<form class="space-y-6" [formGroup]="form" (ngSubmit)="submit()">
|
|
1099
1101
|
<div class="space-y-3">
|
|
1100
|
-
<label
|
|
1101
|
-
<
|
|
1102
|
-
<
|
|
1103
|
-
aria-hidden="true"
|
|
1104
|
-
class="min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!">
|
|
1102
|
+
<label Label for="email" class="sr-only">Alamat email</label>
|
|
1103
|
+
<InputGroup [class]="emailFieldClasses()">
|
|
1104
|
+
<InputGroupAddon aria-hidden="true" class="min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!">
|
|
1105
1105
|
<svg
|
|
1106
1106
|
viewBox="0 0 24 24"
|
|
1107
1107
|
class="fill-none stroke-current"
|
|
@@ -1112,10 +1112,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1112
1112
|
<path d="M5 6h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z" />
|
|
1113
1113
|
<path d="m5 8 7 5 7-5" />
|
|
1114
1114
|
</svg>
|
|
1115
|
-
</
|
|
1115
|
+
</InputGroupAddon>
|
|
1116
1116
|
|
|
1117
1117
|
<input
|
|
1118
|
-
|
|
1118
|
+
InputGroupInput
|
|
1119
1119
|
class="h-12! px-4! text-base!"
|
|
1120
1120
|
id="email"
|
|
1121
1121
|
type="email"
|
|
@@ -1127,7 +1127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1127
1127
|
[placeholder]="messages.login.emailPlaceholder" />
|
|
1128
1128
|
|
|
1129
1129
|
<button
|
|
1130
|
-
|
|
1130
|
+
InputGroupButton
|
|
1131
1131
|
type="submit"
|
|
1132
1132
|
variant="default"
|
|
1133
1133
|
size="sm"
|
|
@@ -1135,7 +1135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1135
1135
|
class="order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium">
|
|
1136
1136
|
{{ isSubmitting() ? messages.login.submitting : messages.login.submit }}
|
|
1137
1137
|
</button>
|
|
1138
|
-
</
|
|
1138
|
+
</InputGroup>
|
|
1139
1139
|
|
|
1140
1140
|
@if (feedbackMessage(); as feedback) {
|
|
1141
1141
|
<p
|
|
@@ -1151,16 +1151,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1151
1151
|
</div>
|
|
1152
1152
|
|
|
1153
1153
|
<div class="grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 pt-2">
|
|
1154
|
-
<
|
|
1154
|
+
<Separator class="w-full" />
|
|
1155
1155
|
<span class="min-w-14 text-center text-sm font-medium uppercase tracking-[0.18em] text-muted-foreground">
|
|
1156
1156
|
Atau
|
|
1157
1157
|
</span>
|
|
1158
|
-
<
|
|
1158
|
+
<Separator class="w-full" />
|
|
1159
1159
|
</div>
|
|
1160
1160
|
|
|
1161
1161
|
<div class="grid gap-3 pt-2 sm:grid-cols-3">
|
|
1162
1162
|
<button
|
|
1163
|
-
|
|
1163
|
+
Button
|
|
1164
1164
|
type="button"
|
|
1165
1165
|
variant="outline"
|
|
1166
1166
|
size="lg"
|
|
@@ -1187,7 +1187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1187
1187
|
Google
|
|
1188
1188
|
</button>
|
|
1189
1189
|
<button
|
|
1190
|
-
|
|
1190
|
+
Button
|
|
1191
1191
|
type="button"
|
|
1192
1192
|
variant="outline"
|
|
1193
1193
|
size="lg"
|
|
@@ -1206,7 +1206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1206
1206
|
Microsoft
|
|
1207
1207
|
</button>
|
|
1208
1208
|
<button
|
|
1209
|
-
|
|
1209
|
+
Button
|
|
1210
1210
|
type="button"
|
|
1211
1211
|
variant="outline"
|
|
1212
1212
|
size="lg"
|
|
@@ -1224,8 +1224,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1224
1224
|
</button>
|
|
1225
1225
|
</div>
|
|
1226
1226
|
</form>
|
|
1227
|
-
</
|
|
1228
|
-
</
|
|
1227
|
+
</CardContent>
|
|
1228
|
+
</Card>
|
|
1229
1229
|
`,
|
|
1230
1230
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1231
1231
|
}]
|
|
@@ -1265,60 +1265,60 @@ class AuthLogoutPage {
|
|
|
1265
1265
|
},
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1269
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
1270
|
-
<
|
|
1271
|
-
<
|
|
1268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthLogoutPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1269
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: AuthLogoutPage, isStandalone: true, selector: "edsis-auth-logout-page", host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
1270
|
+
<Card class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm">
|
|
1271
|
+
<CardHeader
|
|
1272
1272
|
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5">
|
|
1273
1273
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1274
|
-
<
|
|
1274
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1275
1275
|
<div
|
|
1276
1276
|
class="flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]"
|
|
1277
1277
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
1278
1278
|
{{ messages.brand.mark }}
|
|
1279
1279
|
</div>
|
|
1280
|
-
</
|
|
1280
|
+
</AspectRatio>
|
|
1281
1281
|
</div>
|
|
1282
1282
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1283
|
-
<
|
|
1284
|
-
<p
|
|
1283
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{ messages.logout.title }}</CardTitle>
|
|
1284
|
+
<p CardDescription class="max-w-xl leading-6">
|
|
1285
1285
|
{{ messages.logout.intro }}
|
|
1286
1286
|
</p>
|
|
1287
1287
|
</div>
|
|
1288
|
-
<
|
|
1288
|
+
<CardAction
|
|
1289
1289
|
class="col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm">
|
|
1290
1290
|
{{ messages.logout.badge }}
|
|
1291
|
-
</
|
|
1292
|
-
</
|
|
1291
|
+
</CardAction>
|
|
1292
|
+
</CardHeader>
|
|
1293
1293
|
|
|
1294
|
-
<
|
|
1295
|
-
<
|
|
1294
|
+
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1295
|
+
<Alert [variant]="state() === 'error' ? 'destructive' : 'default'" class="bg-background/70 shadow-sm">
|
|
1296
1296
|
@if (state() === 'pending') {
|
|
1297
|
-
<
|
|
1297
|
+
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.logout.pendingAria" />
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
|
-
<
|
|
1300
|
+
<AlertDescription>
|
|
1301
1301
|
{{ message() }}
|
|
1302
|
-
</
|
|
1303
|
-
</
|
|
1302
|
+
</AlertDescription>
|
|
1303
|
+
</Alert>
|
|
1304
1304
|
|
|
1305
1305
|
@if (state() === 'error') {
|
|
1306
|
-
<
|
|
1307
|
-
<
|
|
1306
|
+
<Alert variant="destructive" class="shadow-sm">
|
|
1307
|
+
<AlertDescription>
|
|
1308
1308
|
{{ messages.logout.failedNote }}
|
|
1309
|
-
</
|
|
1310
|
-
</
|
|
1309
|
+
</AlertDescription>
|
|
1310
|
+
</Alert>
|
|
1311
1311
|
}
|
|
1312
|
-
</
|
|
1312
|
+
</CardContent>
|
|
1313
1313
|
|
|
1314
|
-
<
|
|
1315
|
-
<a
|
|
1316
|
-
<a
|
|
1317
|
-
</
|
|
1318
|
-
</
|
|
1319
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: AlertComponent, selector: "
|
|
1314
|
+
<CardFooter class="flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5">
|
|
1315
|
+
<a Button [routerLink]="guestHomePath" variant="default"> {{ messages.logout.backToLogin }} </a>
|
|
1316
|
+
<a Button [routerLink]="authenticatedHomePath" variant="outline"> {{ messages.logout.openDashboard }} </a>
|
|
1317
|
+
</CardFooter>
|
|
1318
|
+
</Card>
|
|
1319
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: AlertComponent, selector: "Alert", inputs: ["variant", "class"] }, { kind: "component", type: AlertDescriptionComponent, selector: "AlertDescription", inputs: ["class"] }, { kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }, { kind: "component", type: CardActionComponent, selector: "CardAction", inputs: ["class"] }, { kind: "component", type: CardComponent, selector: "Card", inputs: ["size", "class"] }, { kind: "component", type: CardContentComponent, selector: "CardContent", inputs: ["class"] }, { kind: "component", type: CardDescriptionComponent, selector: "CardDescription, p[CardDescription]", inputs: ["class"] }, { kind: "component", type: CardFooterComponent, selector: "CardFooter", inputs: ["class"] }, { kind: "component", type: CardHeaderComponent, selector: "CardHeader", inputs: ["class"] }, { kind: "component", type: CardTitleComponent, selector: "CardTitle, h3[CardTitle]", inputs: ["class"] }, { kind: "component", type: SpinnerComponent, selector: "Spinner", inputs: ["class", "decorative", "aria-label", "aria-labelledby"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1320
1320
|
}
|
|
1321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthLogoutPage, decorators: [{
|
|
1322
1322
|
type: Component,
|
|
1323
1323
|
args: [{
|
|
1324
1324
|
selector: 'edsis-auth-logout-page',
|
|
@@ -1341,55 +1341,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1341
1341
|
class: 'block',
|
|
1342
1342
|
},
|
|
1343
1343
|
template: `
|
|
1344
|
-
<
|
|
1345
|
-
<
|
|
1344
|
+
<Card class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm">
|
|
1345
|
+
<CardHeader
|
|
1346
1346
|
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5">
|
|
1347
1347
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1348
|
-
<
|
|
1348
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1349
1349
|
<div
|
|
1350
1350
|
class="flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]"
|
|
1351
1351
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
1352
1352
|
{{ messages.brand.mark }}
|
|
1353
1353
|
</div>
|
|
1354
|
-
</
|
|
1354
|
+
</AspectRatio>
|
|
1355
1355
|
</div>
|
|
1356
1356
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1357
|
-
<
|
|
1358
|
-
<p
|
|
1357
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{ messages.logout.title }}</CardTitle>
|
|
1358
|
+
<p CardDescription class="max-w-xl leading-6">
|
|
1359
1359
|
{{ messages.logout.intro }}
|
|
1360
1360
|
</p>
|
|
1361
1361
|
</div>
|
|
1362
|
-
<
|
|
1362
|
+
<CardAction
|
|
1363
1363
|
class="col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm">
|
|
1364
1364
|
{{ messages.logout.badge }}
|
|
1365
|
-
</
|
|
1366
|
-
</
|
|
1365
|
+
</CardAction>
|
|
1366
|
+
</CardHeader>
|
|
1367
1367
|
|
|
1368
|
-
<
|
|
1369
|
-
<
|
|
1368
|
+
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1369
|
+
<Alert [variant]="state() === 'error' ? 'destructive' : 'default'" class="bg-background/70 shadow-sm">
|
|
1370
1370
|
@if (state() === 'pending') {
|
|
1371
|
-
<
|
|
1371
|
+
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.logout.pendingAria" />
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
|
-
<
|
|
1374
|
+
<AlertDescription>
|
|
1375
1375
|
{{ message() }}
|
|
1376
|
-
</
|
|
1377
|
-
</
|
|
1376
|
+
</AlertDescription>
|
|
1377
|
+
</Alert>
|
|
1378
1378
|
|
|
1379
1379
|
@if (state() === 'error') {
|
|
1380
|
-
<
|
|
1381
|
-
<
|
|
1380
|
+
<Alert variant="destructive" class="shadow-sm">
|
|
1381
|
+
<AlertDescription>
|
|
1382
1382
|
{{ messages.logout.failedNote }}
|
|
1383
|
-
</
|
|
1384
|
-
</
|
|
1383
|
+
</AlertDescription>
|
|
1384
|
+
</Alert>
|
|
1385
1385
|
}
|
|
1386
|
-
</
|
|
1386
|
+
</CardContent>
|
|
1387
1387
|
|
|
1388
|
-
<
|
|
1389
|
-
<a
|
|
1390
|
-
<a
|
|
1391
|
-
</
|
|
1392
|
-
</
|
|
1388
|
+
<CardFooter class="flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5">
|
|
1389
|
+
<a Button [routerLink]="guestHomePath" variant="default"> {{ messages.logout.backToLogin }} </a>
|
|
1390
|
+
<a Button [routerLink]="authenticatedHomePath" variant="outline"> {{ messages.logout.openDashboard }} </a>
|
|
1391
|
+
</CardFooter>
|
|
1392
|
+
</Card>
|
|
1393
1393
|
`,
|
|
1394
1394
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1395
1395
|
}]
|
|
@@ -1474,60 +1474,60 @@ class AuthVerifyPage {
|
|
|
1474
1474
|
},
|
|
1475
1475
|
});
|
|
1476
1476
|
}
|
|
1477
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1478
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
1479
|
-
<
|
|
1480
|
-
<
|
|
1477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthVerifyPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1478
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: AuthVerifyPage, isStandalone: true, selector: "edsis-auth-verify-page", inputs: { token: { classPropertyName: "token", publicName: "token", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
1479
|
+
<Card class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm">
|
|
1480
|
+
<CardHeader
|
|
1481
1481
|
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5">
|
|
1482
1482
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1483
|
-
<
|
|
1483
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1484
1484
|
<div
|
|
1485
1485
|
class="flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]"
|
|
1486
1486
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
1487
1487
|
{{ messages.brand.mark }}
|
|
1488
1488
|
</div>
|
|
1489
|
-
</
|
|
1489
|
+
</AspectRatio>
|
|
1490
1490
|
</div>
|
|
1491
1491
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1492
|
-
<
|
|
1493
|
-
<p
|
|
1492
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{ messages.verify.title }}</CardTitle>
|
|
1493
|
+
<p CardDescription class="max-w-xl leading-6">
|
|
1494
1494
|
{{ messages.verify.intro }}
|
|
1495
1495
|
</p>
|
|
1496
1496
|
</div>
|
|
1497
|
-
<
|
|
1497
|
+
<CardAction
|
|
1498
1498
|
class="col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm">
|
|
1499
1499
|
{{ messages.verify.badge }}
|
|
1500
|
-
</
|
|
1501
|
-
</
|
|
1500
|
+
</CardAction>
|
|
1501
|
+
</CardHeader>
|
|
1502
1502
|
|
|
1503
|
-
<
|
|
1504
|
-
<
|
|
1503
|
+
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1504
|
+
<Alert [variant]="state() === 'error' ? 'destructive' : 'default'" class="bg-background/70 shadow-sm">
|
|
1505
1505
|
@if (state() === 'pending') {
|
|
1506
|
-
<
|
|
1506
|
+
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.verify.pendingAria" />
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
-
<
|
|
1509
|
+
<AlertDescription>
|
|
1510
1510
|
{{ message() }}
|
|
1511
|
-
</
|
|
1512
|
-
</
|
|
1511
|
+
</AlertDescription>
|
|
1512
|
+
</Alert>
|
|
1513
1513
|
|
|
1514
1514
|
@if (state() === 'error') {
|
|
1515
|
-
<
|
|
1516
|
-
<
|
|
1515
|
+
<Alert variant="destructive" class="shadow-sm">
|
|
1516
|
+
<AlertDescription>
|
|
1517
1517
|
Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai sebelumnya.
|
|
1518
|
-
</
|
|
1519
|
-
</
|
|
1518
|
+
</AlertDescription>
|
|
1519
|
+
</Alert>
|
|
1520
1520
|
}
|
|
1521
|
-
</
|
|
1521
|
+
</CardContent>
|
|
1522
1522
|
|
|
1523
|
-
<
|
|
1524
|
-
<a
|
|
1525
|
-
<a
|
|
1526
|
-
</
|
|
1527
|
-
</
|
|
1528
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: AlertComponent, selector: "
|
|
1523
|
+
<CardFooter class="flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5">
|
|
1524
|
+
<a Button [routerLink]="guestHomePath" variant="outline"> {{ messages.verify.requestNewLink }} </a>
|
|
1525
|
+
<a Button [routerLink]="authenticatedHomePath" variant="default"> {{ messages.verify.openDashboard }} </a>
|
|
1526
|
+
</CardFooter>
|
|
1527
|
+
</Card>
|
|
1528
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: AlertComponent, selector: "Alert", inputs: ["variant", "class"] }, { kind: "component", type: AlertDescriptionComponent, selector: "AlertDescription", inputs: ["class"] }, { kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }, { kind: "component", type: CardActionComponent, selector: "CardAction", inputs: ["class"] }, { kind: "component", type: CardComponent, selector: "Card", inputs: ["size", "class"] }, { kind: "component", type: CardContentComponent, selector: "CardContent", inputs: ["class"] }, { kind: "component", type: CardDescriptionComponent, selector: "CardDescription, p[CardDescription]", inputs: ["class"] }, { kind: "component", type: CardFooterComponent, selector: "CardFooter", inputs: ["class"] }, { kind: "component", type: CardHeaderComponent, selector: "CardHeader", inputs: ["class"] }, { kind: "component", type: CardTitleComponent, selector: "CardTitle, h3[CardTitle]", inputs: ["class"] }, { kind: "component", type: SpinnerComponent, selector: "Spinner", inputs: ["class", "decorative", "aria-label", "aria-labelledby"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1529
1529
|
}
|
|
1530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AuthVerifyPage, decorators: [{
|
|
1531
1531
|
type: Component,
|
|
1532
1532
|
args: [{
|
|
1533
1533
|
selector: 'edsis-auth-verify-page',
|
|
@@ -1550,55 +1550,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
1550
1550
|
class: 'block',
|
|
1551
1551
|
},
|
|
1552
1552
|
template: `
|
|
1553
|
-
<
|
|
1554
|
-
<
|
|
1553
|
+
<Card class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm">
|
|
1554
|
+
<CardHeader
|
|
1555
1555
|
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5">
|
|
1556
1556
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1557
|
-
<
|
|
1557
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1558
1558
|
<div
|
|
1559
1559
|
class="flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]"
|
|
1560
1560
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
1561
1561
|
{{ messages.brand.mark }}
|
|
1562
1562
|
</div>
|
|
1563
|
-
</
|
|
1563
|
+
</AspectRatio>
|
|
1564
1564
|
</div>
|
|
1565
1565
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1566
|
-
<
|
|
1567
|
-
<p
|
|
1566
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{ messages.verify.title }}</CardTitle>
|
|
1567
|
+
<p CardDescription class="max-w-xl leading-6">
|
|
1568
1568
|
{{ messages.verify.intro }}
|
|
1569
1569
|
</p>
|
|
1570
1570
|
</div>
|
|
1571
|
-
<
|
|
1571
|
+
<CardAction
|
|
1572
1572
|
class="col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm">
|
|
1573
1573
|
{{ messages.verify.badge }}
|
|
1574
|
-
</
|
|
1575
|
-
</
|
|
1574
|
+
</CardAction>
|
|
1575
|
+
</CardHeader>
|
|
1576
1576
|
|
|
1577
|
-
<
|
|
1578
|
-
<
|
|
1577
|
+
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1578
|
+
<Alert [variant]="state() === 'error' ? 'destructive' : 'default'" class="bg-background/70 shadow-sm">
|
|
1579
1579
|
@if (state() === 'pending') {
|
|
1580
|
-
<
|
|
1580
|
+
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.verify.pendingAria" />
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
|
-
<
|
|
1583
|
+
<AlertDescription>
|
|
1584
1584
|
{{ message() }}
|
|
1585
|
-
</
|
|
1586
|
-
</
|
|
1585
|
+
</AlertDescription>
|
|
1586
|
+
</Alert>
|
|
1587
1587
|
|
|
1588
1588
|
@if (state() === 'error') {
|
|
1589
|
-
<
|
|
1590
|
-
<
|
|
1589
|
+
<Alert variant="destructive" class="shadow-sm">
|
|
1590
|
+
<AlertDescription>
|
|
1591
1591
|
Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai sebelumnya.
|
|
1592
|
-
</
|
|
1593
|
-
</
|
|
1592
|
+
</AlertDescription>
|
|
1593
|
+
</Alert>
|
|
1594
1594
|
}
|
|
1595
|
-
</
|
|
1595
|
+
</CardContent>
|
|
1596
1596
|
|
|
1597
|
-
<
|
|
1598
|
-
<a
|
|
1599
|
-
<a
|
|
1600
|
-
</
|
|
1601
|
-
</
|
|
1597
|
+
<CardFooter class="flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5">
|
|
1598
|
+
<a Button [routerLink]="guestHomePath" variant="outline"> {{ messages.verify.requestNewLink }} </a>
|
|
1599
|
+
<a Button [routerLink]="authenticatedHomePath" variant="default"> {{ messages.verify.openDashboard }} </a>
|
|
1600
|
+
</CardFooter>
|
|
1601
|
+
</Card>
|
|
1602
1602
|
`,
|
|
1603
1603
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1604
1604
|
}]
|