@edsis/angular 22.0.31 → 22.0.33
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, makeEnvironmentProviders, provideEnvironmentInitializer,
|
|
2
|
+
import { InjectionToken, inject, makeEnvironmentProviders, provideEnvironmentInitializer, Component, DestroyRef, signal, computed, input, effect } from '@angular/core';
|
|
3
3
|
import { DOCUMENT, Location } from '@angular/common';
|
|
4
4
|
import { HttpErrorResponse, HttpContextToken, provideHttpClient, withFetch, withInterceptors, HttpContext } from '@angular/common/http';
|
|
5
5
|
import { Router, RouterOutlet, RouterLink, ActivatedRoute } from '@angular/router';
|
|
@@ -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.5", ngImport: i0, type: AuthShellPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", 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
|
<LayoutFluid>
|
|
704
704
|
<div class="w-full max-w-xl">
|
|
@@ -706,9 +706,9 @@ class AuthShellPage {
|
|
|
706
706
|
</div>
|
|
707
707
|
</LayoutFluid>
|
|
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: LayoutComponent, selector: "Layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: LayoutFluidComponent, selector: "LayoutFluid", inputs: ["class"] }]
|
|
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: "LayoutFluid", inputs: ["class"] }] });
|
|
710
710
|
}
|
|
711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthShellPage, decorators: [{
|
|
712
712
|
type: Component,
|
|
713
713
|
args: [{
|
|
714
714
|
selector: 'edsis-auth-shell-page',
|
|
@@ -725,7 +725,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
725
725
|
</LayoutFluid>
|
|
726
726
|
</Layout>
|
|
727
727
|
`,
|
|
728
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
729
728
|
}]
|
|
730
729
|
}] });
|
|
731
730
|
|
|
@@ -889,28 +888,35 @@ class AuthLoginPage {
|
|
|
889
888
|
},
|
|
890
889
|
});
|
|
891
890
|
}
|
|
892
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
893
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
894
|
-
<Card
|
|
891
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthLoginPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
892
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: AuthLoginPage, isStandalone: true, selector: "edsis-auth-login-page", host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
893
|
+
<Card
|
|
894
|
+
class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm"
|
|
895
|
+
>
|
|
895
896
|
<CardHeader
|
|
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"
|
|
897
|
+
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"
|
|
898
|
+
>
|
|
897
899
|
<div class="w-16 shrink-0 sm:w-20">
|
|
898
900
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
899
901
|
<div
|
|
900
902
|
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]"
|
|
901
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
903
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
904
|
+
>
|
|
902
905
|
{{ messages.brand.mark }}
|
|
903
906
|
</div>
|
|
904
907
|
</AspectRatio>
|
|
905
908
|
</div>
|
|
906
909
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
907
|
-
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
910
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
911
|
+
messages.login.title
|
|
912
|
+
}}</CardTitle>
|
|
908
913
|
<p CardDescription class="max-w-xl leading-6">
|
|
909
914
|
{{ messages.login.intro }}
|
|
910
915
|
</p>
|
|
911
916
|
</div>
|
|
912
917
|
<CardAction
|
|
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"
|
|
918
|
+
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"
|
|
919
|
+
>
|
|
914
920
|
{{ messages.login.badge }}
|
|
915
921
|
</CardAction>
|
|
916
922
|
</CardHeader>
|
|
@@ -920,15 +926,21 @@ class AuthLoginPage {
|
|
|
920
926
|
<div class="space-y-3">
|
|
921
927
|
<label Label for="email" class="sr-only">Alamat email</label>
|
|
922
928
|
<InputGroup [class]="emailFieldClasses()">
|
|
923
|
-
<InputGroupAddon
|
|
929
|
+
<InputGroupAddon
|
|
930
|
+
aria-hidden="true"
|
|
931
|
+
class="min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!"
|
|
932
|
+
>
|
|
924
933
|
<svg
|
|
925
934
|
viewBox="0 0 24 24"
|
|
926
935
|
class="fill-none stroke-current"
|
|
927
936
|
stroke-width="1.8"
|
|
928
937
|
stroke-linecap="round"
|
|
929
|
-
stroke-linejoin="round"
|
|
938
|
+
stroke-linejoin="round"
|
|
939
|
+
>
|
|
930
940
|
<path d="M4 7.5h16" />
|
|
931
|
-
<path
|
|
941
|
+
<path
|
|
942
|
+
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"
|
|
943
|
+
/>
|
|
932
944
|
<path d="m5 8 7 5 7-5" />
|
|
933
945
|
</svg>
|
|
934
946
|
</InputGroupAddon>
|
|
@@ -943,7 +955,8 @@ class AuthLoginPage {
|
|
|
943
955
|
[attr.aria-describedby]="feedbackMessage() ? emailFeedbackId : null"
|
|
944
956
|
[attr.aria-invalid]="fieldTone() === 'error' ? 'true' : null"
|
|
945
957
|
formControlName="email"
|
|
946
|
-
[placeholder]="messages.login.emailPlaceholder"
|
|
958
|
+
[placeholder]="messages.login.emailPlaceholder"
|
|
959
|
+
/>
|
|
947
960
|
|
|
948
961
|
<button
|
|
949
962
|
InputGroupButton
|
|
@@ -951,7 +964,8 @@ class AuthLoginPage {
|
|
|
951
964
|
variant="default"
|
|
952
965
|
size="sm"
|
|
953
966
|
[disabled]="form.invalid || isSubmitting()"
|
|
954
|
-
class="order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium"
|
|
967
|
+
class="order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium"
|
|
968
|
+
>
|
|
955
969
|
{{ isSubmitting() ? messages.login.submitting : messages.login.submit }}
|
|
956
970
|
</button>
|
|
957
971
|
</InputGroup>
|
|
@@ -963,7 +977,8 @@ class AuthLoginPage {
|
|
|
963
977
|
[class.text-destructive]="feedbackTone() === 'error'"
|
|
964
978
|
[class.text-emerald-700]="feedbackTone() === 'success'"
|
|
965
979
|
[attr.role]="feedbackTone() === 'error' ? 'alert' : 'status'"
|
|
966
|
-
[attr.aria-live]="feedbackTone() === 'error' ? 'assertive' : 'polite'"
|
|
980
|
+
[attr.aria-live]="feedbackTone() === 'error' ? 'assertive' : 'polite'"
|
|
981
|
+
>
|
|
967
982
|
{{ feedback }}
|
|
968
983
|
</p>
|
|
969
984
|
}
|
|
@@ -971,7 +986,9 @@ class AuthLoginPage {
|
|
|
971
986
|
|
|
972
987
|
<div class="grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 pt-2">
|
|
973
988
|
<Separator class="w-full" />
|
|
974
|
-
<span
|
|
989
|
+
<span
|
|
990
|
+
class="min-w-14 text-center text-sm font-medium uppercase tracking-[0.18em] text-muted-foreground"
|
|
991
|
+
>
|
|
975
992
|
Atau
|
|
976
993
|
</span>
|
|
977
994
|
<Separator class="w-full" />
|
|
@@ -986,21 +1003,29 @@ class AuthLoginPage {
|
|
|
986
1003
|
disabled
|
|
987
1004
|
[attr.aria-label]="messages.login.oauthGoogleAria"
|
|
988
1005
|
[attr.title]="messages.login.oauthComingSoon"
|
|
989
|
-
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
990
|
-
|
|
1006
|
+
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1007
|
+
>
|
|
1008
|
+
<span
|
|
1009
|
+
class="inline-flex size-6 shrink-0 items-center justify-center"
|
|
1010
|
+
aria-hidden="true"
|
|
1011
|
+
>
|
|
991
1012
|
<svg viewBox="0 0 24 24" class="size-5" xmlns="http://www.w3.org/2000/svg">
|
|
992
1013
|
<path
|
|
993
1014
|
fill="#EA4335"
|
|
994
|
-
d="M12.24 10.285v3.965h5.514c-.24 1.285-.96 2.374-2.045 3.105l3.305 2.565c1.925-1.775 3.03-4.39 3.03-7.49 0-.73-.065-1.43-.185-2.145z"
|
|
1015
|
+
d="M12.24 10.285v3.965h5.514c-.24 1.285-.96 2.374-2.045 3.105l3.305 2.565c1.925-1.775 3.03-4.39 3.03-7.49 0-.73-.065-1.43-.185-2.145z"
|
|
1016
|
+
/>
|
|
995
1017
|
<path
|
|
996
1018
|
fill="#34A853"
|
|
997
|
-
d="M12 22c2.7 0 4.965-.895 6.62-2.425l-3.305-2.565c-.915.615-2.085.985-3.315.985-2.545 0-4.7-1.72-5.47-4.03H3.115v2.53A9.996 9.996 0 0 0 12 22"
|
|
1019
|
+
d="M12 22c2.7 0 4.965-.895 6.62-2.425l-3.305-2.565c-.915.615-2.085.985-3.315.985-2.545 0-4.7-1.72-5.47-4.03H3.115v2.53A9.996 9.996 0 0 0 12 22"
|
|
1020
|
+
/>
|
|
998
1021
|
<path
|
|
999
1022
|
fill="#4A90E2"
|
|
1000
|
-
d="M6.53 13.965A5.996 5.996 0 0 1 6.24 12c0-.68.115-1.34.29-1.965v-2.53H3.115A9.996 9.996 0 0 0 2 12c0 1.61.385 3.135 1.115 4.495z"
|
|
1023
|
+
d="M6.53 13.965A5.996 5.996 0 0 1 6.24 12c0-.68.115-1.34.29-1.965v-2.53H3.115A9.996 9.996 0 0 0 2 12c0 1.61.385 3.135 1.115 4.495z"
|
|
1024
|
+
/>
|
|
1001
1025
|
<path
|
|
1002
1026
|
fill="#FBBC05"
|
|
1003
|
-
d="M12 6.005c1.47 0 2.79.505 3.83 1.495l2.87-2.87C16.96 3.01 14.695 2 12 2a9.996 9.996 0 0 0-8.885 5.505l3.415 2.53c.77-2.31 2.925-4.03 5.47-4.03"
|
|
1027
|
+
d="M12 6.005c1.47 0 2.79.505 3.83 1.495l2.87-2.87C16.96 3.01 14.695 2 12 2a9.996 9.996 0 0 0-8.885 5.505l3.415 2.53c.77-2.31 2.925-4.03 5.47-4.03"
|
|
1028
|
+
/>
|
|
1004
1029
|
</svg>
|
|
1005
1030
|
</span>
|
|
1006
1031
|
Google
|
|
@@ -1013,8 +1038,12 @@ class AuthLoginPage {
|
|
|
1013
1038
|
disabled
|
|
1014
1039
|
[attr.aria-label]="messages.login.oauthMicrosoftAria"
|
|
1015
1040
|
[attr.title]="messages.login.oauthComingSoon"
|
|
1016
|
-
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1017
|
-
|
|
1041
|
+
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1042
|
+
>
|
|
1043
|
+
<span
|
|
1044
|
+
class="inline-flex size-6 shrink-0 items-center justify-center"
|
|
1045
|
+
aria-hidden="true"
|
|
1046
|
+
>
|
|
1018
1047
|
<svg viewBox="0 0 24 24" class="size-5" xmlns="http://www.w3.org/2000/svg">
|
|
1019
1048
|
<path fill="#F25022" d="M2 2h9.5v9.5H2z" />
|
|
1020
1049
|
<path fill="#7FBA00" d="M12.5 2H22v9.5h-9.5z" />
|
|
@@ -1032,11 +1061,20 @@ class AuthLoginPage {
|
|
|
1032
1061
|
disabled
|
|
1033
1062
|
[attr.aria-label]="messages.login.oauthAppleAria"
|
|
1034
1063
|
[attr.title]="messages.login.oauthComingSoon"
|
|
1035
|
-
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1036
|
-
|
|
1037
|
-
|
|
1064
|
+
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1065
|
+
>
|
|
1066
|
+
<span
|
|
1067
|
+
class="inline-flex size-6 shrink-0 items-center justify-center"
|
|
1068
|
+
aria-hidden="true"
|
|
1069
|
+
>
|
|
1070
|
+
<svg
|
|
1071
|
+
viewBox="0 0 24 24"
|
|
1072
|
+
class="size-5 fill-current"
|
|
1073
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1074
|
+
>
|
|
1038
1075
|
<path
|
|
1039
|
-
d="M15.482 2c.13 1.25-.31 2.19-.84 2.81-.55.65-1.47 1.15-2.39 1.08-.12-1.21.38-2.17.92-2.79.6-.68 1.61-1.17 2.31-1.1Zm3.94 16.85c-.41.94-.91 1.8-1.54 2.59-.86 1.07-1.57 1.8-2.39 1.8-.59 0-.99-.17-1.44-.36-.47-.2-.95-.4-1.63-.4-.71 0-1.22.2-1.7.4-.46.19-.85.35-1.38.37-.79.03-1.55-.8-2.42-1.87-1.86-2.28-3.3-6.43-1.38-9.77.96-1.66 2.68-2.72 4.55-2.75.71-.01 1.39.21 1.98.41.45.15.86.29 1.19.29.3 0 .73-.15 1.19-.31.68-.23 1.46-.49 2.28-.42 1.14.09 2.17.55 2.98 1.38-2.66 1.45-2.23 5.2.71 6.54Z"
|
|
1076
|
+
d="M15.482 2c.13 1.25-.31 2.19-.84 2.81-.55.65-1.47 1.15-2.39 1.08-.12-1.21.38-2.17.92-2.79.6-.68 1.61-1.17 2.31-1.1Zm3.94 16.85c-.41.94-.91 1.8-1.54 2.59-.86 1.07-1.57 1.8-2.39 1.8-.59 0-.99-.17-1.44-.36-.47-.2-.95-.4-1.63-.4-.71 0-1.22.2-1.7.4-.46.19-.85.35-1.38.37-.79.03-1.55-.8-2.42-1.87-1.86-2.28-3.3-6.43-1.38-9.77.96-1.66 2.68-2.72 4.55-2.75.71-.01 1.39.21 1.98.41.45.15.86.29 1.19.29.3 0 .73-.15 1.19-.31.68-.23 1.46-.49 2.28-.42 1.14.09 2.17.55 2.98 1.38-2.66 1.45-2.23 5.2.71 6.54Z"
|
|
1077
|
+
/>
|
|
1040
1078
|
</svg>
|
|
1041
1079
|
</span>
|
|
1042
1080
|
Apple
|
|
@@ -1045,9 +1083,9 @@ class AuthLoginPage {
|
|
|
1045
1083
|
</form>
|
|
1046
1084
|
</CardContent>
|
|
1047
1085
|
</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"] }]
|
|
1086
|
+
`, 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"] }] });
|
|
1049
1087
|
}
|
|
1050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthLoginPage, decorators: [{
|
|
1051
1089
|
type: Component,
|
|
1052
1090
|
args: [{
|
|
1053
1091
|
selector: 'edsis-auth-login-page',
|
|
@@ -1072,26 +1110,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1072
1110
|
class: 'block',
|
|
1073
1111
|
},
|
|
1074
1112
|
template: `
|
|
1075
|
-
<Card
|
|
1113
|
+
<Card
|
|
1114
|
+
class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm"
|
|
1115
|
+
>
|
|
1076
1116
|
<CardHeader
|
|
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"
|
|
1117
|
+
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"
|
|
1118
|
+
>
|
|
1078
1119
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1079
1120
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1080
1121
|
<div
|
|
1081
1122
|
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]"
|
|
1082
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1123
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1124
|
+
>
|
|
1083
1125
|
{{ messages.brand.mark }}
|
|
1084
1126
|
</div>
|
|
1085
1127
|
</AspectRatio>
|
|
1086
1128
|
</div>
|
|
1087
1129
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1088
|
-
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1130
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1131
|
+
messages.login.title
|
|
1132
|
+
}}</CardTitle>
|
|
1089
1133
|
<p CardDescription class="max-w-xl leading-6">
|
|
1090
1134
|
{{ messages.login.intro }}
|
|
1091
1135
|
</p>
|
|
1092
1136
|
</div>
|
|
1093
1137
|
<CardAction
|
|
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"
|
|
1138
|
+
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"
|
|
1139
|
+
>
|
|
1095
1140
|
{{ messages.login.badge }}
|
|
1096
1141
|
</CardAction>
|
|
1097
1142
|
</CardHeader>
|
|
@@ -1101,15 +1146,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1101
1146
|
<div class="space-y-3">
|
|
1102
1147
|
<label Label for="email" class="sr-only">Alamat email</label>
|
|
1103
1148
|
<InputGroup [class]="emailFieldClasses()">
|
|
1104
|
-
<InputGroupAddon
|
|
1149
|
+
<InputGroupAddon
|
|
1150
|
+
aria-hidden="true"
|
|
1151
|
+
class="min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!"
|
|
1152
|
+
>
|
|
1105
1153
|
<svg
|
|
1106
1154
|
viewBox="0 0 24 24"
|
|
1107
1155
|
class="fill-none stroke-current"
|
|
1108
1156
|
stroke-width="1.8"
|
|
1109
1157
|
stroke-linecap="round"
|
|
1110
|
-
stroke-linejoin="round"
|
|
1158
|
+
stroke-linejoin="round"
|
|
1159
|
+
>
|
|
1111
1160
|
<path d="M4 7.5h16" />
|
|
1112
|
-
<path
|
|
1161
|
+
<path
|
|
1162
|
+
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"
|
|
1163
|
+
/>
|
|
1113
1164
|
<path d="m5 8 7 5 7-5" />
|
|
1114
1165
|
</svg>
|
|
1115
1166
|
</InputGroupAddon>
|
|
@@ -1124,7 +1175,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1124
1175
|
[attr.aria-describedby]="feedbackMessage() ? emailFeedbackId : null"
|
|
1125
1176
|
[attr.aria-invalid]="fieldTone() === 'error' ? 'true' : null"
|
|
1126
1177
|
formControlName="email"
|
|
1127
|
-
[placeholder]="messages.login.emailPlaceholder"
|
|
1178
|
+
[placeholder]="messages.login.emailPlaceholder"
|
|
1179
|
+
/>
|
|
1128
1180
|
|
|
1129
1181
|
<button
|
|
1130
1182
|
InputGroupButton
|
|
@@ -1132,7 +1184,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1132
1184
|
variant="default"
|
|
1133
1185
|
size="sm"
|
|
1134
1186
|
[disabled]="form.invalid || isSubmitting()"
|
|
1135
|
-
class="order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium"
|
|
1187
|
+
class="order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium"
|
|
1188
|
+
>
|
|
1136
1189
|
{{ isSubmitting() ? messages.login.submitting : messages.login.submit }}
|
|
1137
1190
|
</button>
|
|
1138
1191
|
</InputGroup>
|
|
@@ -1144,7 +1197,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1144
1197
|
[class.text-destructive]="feedbackTone() === 'error'"
|
|
1145
1198
|
[class.text-emerald-700]="feedbackTone() === 'success'"
|
|
1146
1199
|
[attr.role]="feedbackTone() === 'error' ? 'alert' : 'status'"
|
|
1147
|
-
[attr.aria-live]="feedbackTone() === 'error' ? 'assertive' : 'polite'"
|
|
1200
|
+
[attr.aria-live]="feedbackTone() === 'error' ? 'assertive' : 'polite'"
|
|
1201
|
+
>
|
|
1148
1202
|
{{ feedback }}
|
|
1149
1203
|
</p>
|
|
1150
1204
|
}
|
|
@@ -1152,7 +1206,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1152
1206
|
|
|
1153
1207
|
<div class="grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 pt-2">
|
|
1154
1208
|
<Separator class="w-full" />
|
|
1155
|
-
<span
|
|
1209
|
+
<span
|
|
1210
|
+
class="min-w-14 text-center text-sm font-medium uppercase tracking-[0.18em] text-muted-foreground"
|
|
1211
|
+
>
|
|
1156
1212
|
Atau
|
|
1157
1213
|
</span>
|
|
1158
1214
|
<Separator class="w-full" />
|
|
@@ -1167,21 +1223,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1167
1223
|
disabled
|
|
1168
1224
|
[attr.aria-label]="messages.login.oauthGoogleAria"
|
|
1169
1225
|
[attr.title]="messages.login.oauthComingSoon"
|
|
1170
|
-
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1171
|
-
|
|
1226
|
+
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1227
|
+
>
|
|
1228
|
+
<span
|
|
1229
|
+
class="inline-flex size-6 shrink-0 items-center justify-center"
|
|
1230
|
+
aria-hidden="true"
|
|
1231
|
+
>
|
|
1172
1232
|
<svg viewBox="0 0 24 24" class="size-5" xmlns="http://www.w3.org/2000/svg">
|
|
1173
1233
|
<path
|
|
1174
1234
|
fill="#EA4335"
|
|
1175
|
-
d="M12.24 10.285v3.965h5.514c-.24 1.285-.96 2.374-2.045 3.105l3.305 2.565c1.925-1.775 3.03-4.39 3.03-7.49 0-.73-.065-1.43-.185-2.145z"
|
|
1235
|
+
d="M12.24 10.285v3.965h5.514c-.24 1.285-.96 2.374-2.045 3.105l3.305 2.565c1.925-1.775 3.03-4.39 3.03-7.49 0-.73-.065-1.43-.185-2.145z"
|
|
1236
|
+
/>
|
|
1176
1237
|
<path
|
|
1177
1238
|
fill="#34A853"
|
|
1178
|
-
d="M12 22c2.7 0 4.965-.895 6.62-2.425l-3.305-2.565c-.915.615-2.085.985-3.315.985-2.545 0-4.7-1.72-5.47-4.03H3.115v2.53A9.996 9.996 0 0 0 12 22"
|
|
1239
|
+
d="M12 22c2.7 0 4.965-.895 6.62-2.425l-3.305-2.565c-.915.615-2.085.985-3.315.985-2.545 0-4.7-1.72-5.47-4.03H3.115v2.53A9.996 9.996 0 0 0 12 22"
|
|
1240
|
+
/>
|
|
1179
1241
|
<path
|
|
1180
1242
|
fill="#4A90E2"
|
|
1181
|
-
d="M6.53 13.965A5.996 5.996 0 0 1 6.24 12c0-.68.115-1.34.29-1.965v-2.53H3.115A9.996 9.996 0 0 0 2 12c0 1.61.385 3.135 1.115 4.495z"
|
|
1243
|
+
d="M6.53 13.965A5.996 5.996 0 0 1 6.24 12c0-.68.115-1.34.29-1.965v-2.53H3.115A9.996 9.996 0 0 0 2 12c0 1.61.385 3.135 1.115 4.495z"
|
|
1244
|
+
/>
|
|
1182
1245
|
<path
|
|
1183
1246
|
fill="#FBBC05"
|
|
1184
|
-
d="M12 6.005c1.47 0 2.79.505 3.83 1.495l2.87-2.87C16.96 3.01 14.695 2 12 2a9.996 9.996 0 0 0-8.885 5.505l3.415 2.53c.77-2.31 2.925-4.03 5.47-4.03"
|
|
1247
|
+
d="M12 6.005c1.47 0 2.79.505 3.83 1.495l2.87-2.87C16.96 3.01 14.695 2 12 2a9.996 9.996 0 0 0-8.885 5.505l3.415 2.53c.77-2.31 2.925-4.03 5.47-4.03"
|
|
1248
|
+
/>
|
|
1185
1249
|
</svg>
|
|
1186
1250
|
</span>
|
|
1187
1251
|
Google
|
|
@@ -1194,8 +1258,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1194
1258
|
disabled
|
|
1195
1259
|
[attr.aria-label]="messages.login.oauthMicrosoftAria"
|
|
1196
1260
|
[attr.title]="messages.login.oauthComingSoon"
|
|
1197
|
-
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1198
|
-
|
|
1261
|
+
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1262
|
+
>
|
|
1263
|
+
<span
|
|
1264
|
+
class="inline-flex size-6 shrink-0 items-center justify-center"
|
|
1265
|
+
aria-hidden="true"
|
|
1266
|
+
>
|
|
1199
1267
|
<svg viewBox="0 0 24 24" class="size-5" xmlns="http://www.w3.org/2000/svg">
|
|
1200
1268
|
<path fill="#F25022" d="M2 2h9.5v9.5H2z" />
|
|
1201
1269
|
<path fill="#7FBA00" d="M12.5 2H22v9.5h-9.5z" />
|
|
@@ -1213,11 +1281,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1213
1281
|
disabled
|
|
1214
1282
|
[attr.aria-label]="messages.login.oauthAppleAria"
|
|
1215
1283
|
[attr.title]="messages.login.oauthComingSoon"
|
|
1216
|
-
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1217
|
-
|
|
1218
|
-
|
|
1284
|
+
class="h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]"
|
|
1285
|
+
>
|
|
1286
|
+
<span
|
|
1287
|
+
class="inline-flex size-6 shrink-0 items-center justify-center"
|
|
1288
|
+
aria-hidden="true"
|
|
1289
|
+
>
|
|
1290
|
+
<svg
|
|
1291
|
+
viewBox="0 0 24 24"
|
|
1292
|
+
class="size-5 fill-current"
|
|
1293
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1294
|
+
>
|
|
1219
1295
|
<path
|
|
1220
|
-
d="M15.482 2c.13 1.25-.31 2.19-.84 2.81-.55.65-1.47 1.15-2.39 1.08-.12-1.21.38-2.17.92-2.79.6-.68 1.61-1.17 2.31-1.1Zm3.94 16.85c-.41.94-.91 1.8-1.54 2.59-.86 1.07-1.57 1.8-2.39 1.8-.59 0-.99-.17-1.44-.36-.47-.2-.95-.4-1.63-.4-.71 0-1.22.2-1.7.4-.46.19-.85.35-1.38.37-.79.03-1.55-.8-2.42-1.87-1.86-2.28-3.3-6.43-1.38-9.77.96-1.66 2.68-2.72 4.55-2.75.71-.01 1.39.21 1.98.41.45.15.86.29 1.19.29.3 0 .73-.15 1.19-.31.68-.23 1.46-.49 2.28-.42 1.14.09 2.17.55 2.98 1.38-2.66 1.45-2.23 5.2.71 6.54Z"
|
|
1296
|
+
d="M15.482 2c.13 1.25-.31 2.19-.84 2.81-.55.65-1.47 1.15-2.39 1.08-.12-1.21.38-2.17.92-2.79.6-.68 1.61-1.17 2.31-1.1Zm3.94 16.85c-.41.94-.91 1.8-1.54 2.59-.86 1.07-1.57 1.8-2.39 1.8-.59 0-.99-.17-1.44-.36-.47-.2-.95-.4-1.63-.4-.71 0-1.22.2-1.7.4-.46.19-.85.35-1.38.37-.79.03-1.55-.8-2.42-1.87-1.86-2.28-3.3-6.43-1.38-9.77.96-1.66 2.68-2.72 4.55-2.75.71-.01 1.39.21 1.98.41.45.15.86.29 1.19.29.3 0 .73-.15 1.19-.31.68-.23 1.46-.49 2.28-.42 1.14.09 2.17.55 2.98 1.38-2.66 1.45-2.23 5.2.71 6.54Z"
|
|
1297
|
+
/>
|
|
1221
1298
|
</svg>
|
|
1222
1299
|
</span>
|
|
1223
1300
|
Apple
|
|
@@ -1227,7 +1304,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1227
1304
|
</CardContent>
|
|
1228
1305
|
</Card>
|
|
1229
1306
|
`,
|
|
1230
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1231
1307
|
}]
|
|
1232
1308
|
}] });
|
|
1233
1309
|
|
|
@@ -1265,34 +1341,44 @@ class AuthLogoutPage {
|
|
|
1265
1341
|
},
|
|
1266
1342
|
});
|
|
1267
1343
|
}
|
|
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
|
-
<Card
|
|
1344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthLogoutPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1345
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: AuthLogoutPage, isStandalone: true, selector: "edsis-auth-logout-page", host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
1346
|
+
<Card
|
|
1347
|
+
class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm"
|
|
1348
|
+
>
|
|
1271
1349
|
<CardHeader
|
|
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"
|
|
1350
|
+
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"
|
|
1351
|
+
>
|
|
1273
1352
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1274
1353
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1275
1354
|
<div
|
|
1276
1355
|
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
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1356
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1357
|
+
>
|
|
1278
1358
|
{{ messages.brand.mark }}
|
|
1279
1359
|
</div>
|
|
1280
1360
|
</AspectRatio>
|
|
1281
1361
|
</div>
|
|
1282
1362
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1283
|
-
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1363
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1364
|
+
messages.logout.title
|
|
1365
|
+
}}</CardTitle>
|
|
1284
1366
|
<p CardDescription class="max-w-xl leading-6">
|
|
1285
1367
|
{{ messages.logout.intro }}
|
|
1286
1368
|
</p>
|
|
1287
1369
|
</div>
|
|
1288
1370
|
<CardAction
|
|
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"
|
|
1371
|
+
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"
|
|
1372
|
+
>
|
|
1290
1373
|
{{ messages.logout.badge }}
|
|
1291
1374
|
</CardAction>
|
|
1292
1375
|
</CardHeader>
|
|
1293
1376
|
|
|
1294
1377
|
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1295
|
-
<Alert
|
|
1378
|
+
<Alert
|
|
1379
|
+
[variant]="state() === 'error' ? 'destructive' : 'default'"
|
|
1380
|
+
class="bg-background/70 shadow-sm"
|
|
1381
|
+
>
|
|
1296
1382
|
@if (state() === 'pending') {
|
|
1297
1383
|
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.logout.pendingAria" />
|
|
1298
1384
|
}
|
|
@@ -1312,13 +1398,17 @@ class AuthLogoutPage {
|
|
|
1312
1398
|
</CardContent>
|
|
1313
1399
|
|
|
1314
1400
|
<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">
|
|
1316
|
-
|
|
1401
|
+
<a Button [routerLink]="guestHomePath" variant="default">
|
|
1402
|
+
{{ messages.logout.backToLogin }}
|
|
1403
|
+
</a>
|
|
1404
|
+
<a Button [routerLink]="authenticatedHomePath" variant="outline">
|
|
1405
|
+
{{ messages.logout.openDashboard }}
|
|
1406
|
+
</a>
|
|
1317
1407
|
</CardFooter>
|
|
1318
1408
|
</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"] }]
|
|
1409
|
+
`, 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"] }] });
|
|
1320
1410
|
}
|
|
1321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthLogoutPage, decorators: [{
|
|
1322
1412
|
type: Component,
|
|
1323
1413
|
args: [{
|
|
1324
1414
|
selector: 'edsis-auth-logout-page',
|
|
@@ -1341,32 +1431,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1341
1431
|
class: 'block',
|
|
1342
1432
|
},
|
|
1343
1433
|
template: `
|
|
1344
|
-
<Card
|
|
1434
|
+
<Card
|
|
1435
|
+
class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm"
|
|
1436
|
+
>
|
|
1345
1437
|
<CardHeader
|
|
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"
|
|
1438
|
+
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"
|
|
1439
|
+
>
|
|
1347
1440
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1348
1441
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1349
1442
|
<div
|
|
1350
1443
|
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
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1444
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1445
|
+
>
|
|
1352
1446
|
{{ messages.brand.mark }}
|
|
1353
1447
|
</div>
|
|
1354
1448
|
</AspectRatio>
|
|
1355
1449
|
</div>
|
|
1356
1450
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1357
|
-
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1451
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1452
|
+
messages.logout.title
|
|
1453
|
+
}}</CardTitle>
|
|
1358
1454
|
<p CardDescription class="max-w-xl leading-6">
|
|
1359
1455
|
{{ messages.logout.intro }}
|
|
1360
1456
|
</p>
|
|
1361
1457
|
</div>
|
|
1362
1458
|
<CardAction
|
|
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"
|
|
1459
|
+
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"
|
|
1460
|
+
>
|
|
1364
1461
|
{{ messages.logout.badge }}
|
|
1365
1462
|
</CardAction>
|
|
1366
1463
|
</CardHeader>
|
|
1367
1464
|
|
|
1368
1465
|
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1369
|
-
<Alert
|
|
1466
|
+
<Alert
|
|
1467
|
+
[variant]="state() === 'error' ? 'destructive' : 'default'"
|
|
1468
|
+
class="bg-background/70 shadow-sm"
|
|
1469
|
+
>
|
|
1370
1470
|
@if (state() === 'pending') {
|
|
1371
1471
|
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.logout.pendingAria" />
|
|
1372
1472
|
}
|
|
@@ -1386,12 +1486,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1386
1486
|
</CardContent>
|
|
1387
1487
|
|
|
1388
1488
|
<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">
|
|
1390
|
-
|
|
1489
|
+
<a Button [routerLink]="guestHomePath" variant="default">
|
|
1490
|
+
{{ messages.logout.backToLogin }}
|
|
1491
|
+
</a>
|
|
1492
|
+
<a Button [routerLink]="authenticatedHomePath" variant="outline">
|
|
1493
|
+
{{ messages.logout.openDashboard }}
|
|
1494
|
+
</a>
|
|
1391
1495
|
</CardFooter>
|
|
1392
1496
|
</Card>
|
|
1393
1497
|
`,
|
|
1394
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1395
1498
|
}]
|
|
1396
1499
|
}] });
|
|
1397
1500
|
|
|
@@ -1474,34 +1577,44 @@ class AuthVerifyPage {
|
|
|
1474
1577
|
},
|
|
1475
1578
|
});
|
|
1476
1579
|
}
|
|
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
|
-
<Card
|
|
1580
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthVerifyPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1581
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", 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: `
|
|
1582
|
+
<Card
|
|
1583
|
+
class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm"
|
|
1584
|
+
>
|
|
1480
1585
|
<CardHeader
|
|
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"
|
|
1586
|
+
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"
|
|
1587
|
+
>
|
|
1482
1588
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1483
1589
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1484
1590
|
<div
|
|
1485
1591
|
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
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1592
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1593
|
+
>
|
|
1487
1594
|
{{ messages.brand.mark }}
|
|
1488
1595
|
</div>
|
|
1489
1596
|
</AspectRatio>
|
|
1490
1597
|
</div>
|
|
1491
1598
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1492
|
-
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1599
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1600
|
+
messages.verify.title
|
|
1601
|
+
}}</CardTitle>
|
|
1493
1602
|
<p CardDescription class="max-w-xl leading-6">
|
|
1494
1603
|
{{ messages.verify.intro }}
|
|
1495
1604
|
</p>
|
|
1496
1605
|
</div>
|
|
1497
1606
|
<CardAction
|
|
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"
|
|
1607
|
+
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"
|
|
1608
|
+
>
|
|
1499
1609
|
{{ messages.verify.badge }}
|
|
1500
1610
|
</CardAction>
|
|
1501
1611
|
</CardHeader>
|
|
1502
1612
|
|
|
1503
1613
|
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1504
|
-
<Alert
|
|
1614
|
+
<Alert
|
|
1615
|
+
[variant]="state() === 'error' ? 'destructive' : 'default'"
|
|
1616
|
+
class="bg-background/70 shadow-sm"
|
|
1617
|
+
>
|
|
1505
1618
|
@if (state() === 'pending') {
|
|
1506
1619
|
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.verify.pendingAria" />
|
|
1507
1620
|
}
|
|
@@ -1514,20 +1627,25 @@ class AuthVerifyPage {
|
|
|
1514
1627
|
@if (state() === 'error') {
|
|
1515
1628
|
<Alert variant="destructive" class="shadow-sm">
|
|
1516
1629
|
<AlertDescription>
|
|
1517
|
-
Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai
|
|
1630
|
+
Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai
|
|
1631
|
+
sebelumnya.
|
|
1518
1632
|
</AlertDescription>
|
|
1519
1633
|
</Alert>
|
|
1520
1634
|
}
|
|
1521
1635
|
</CardContent>
|
|
1522
1636
|
|
|
1523
1637
|
<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">
|
|
1525
|
-
|
|
1638
|
+
<a Button [routerLink]="guestHomePath" variant="outline">
|
|
1639
|
+
{{ messages.verify.requestNewLink }}
|
|
1640
|
+
</a>
|
|
1641
|
+
<a Button [routerLink]="authenticatedHomePath" variant="default">
|
|
1642
|
+
{{ messages.verify.openDashboard }}
|
|
1643
|
+
</a>
|
|
1526
1644
|
</CardFooter>
|
|
1527
1645
|
</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"] }]
|
|
1646
|
+
`, 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"] }] });
|
|
1529
1647
|
}
|
|
1530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AuthVerifyPage, decorators: [{
|
|
1531
1649
|
type: Component,
|
|
1532
1650
|
args: [{
|
|
1533
1651
|
selector: 'edsis-auth-verify-page',
|
|
@@ -1550,32 +1668,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1550
1668
|
class: 'block',
|
|
1551
1669
|
},
|
|
1552
1670
|
template: `
|
|
1553
|
-
<Card
|
|
1671
|
+
<Card
|
|
1672
|
+
class="w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm"
|
|
1673
|
+
>
|
|
1554
1674
|
<CardHeader
|
|
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"
|
|
1675
|
+
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"
|
|
1676
|
+
>
|
|
1556
1677
|
<div class="w-16 shrink-0 sm:w-20">
|
|
1557
1678
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
1558
1679
|
<div
|
|
1559
1680
|
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
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1681
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
1682
|
+
>
|
|
1561
1683
|
{{ messages.brand.mark }}
|
|
1562
1684
|
</div>
|
|
1563
1685
|
</AspectRatio>
|
|
1564
1686
|
</div>
|
|
1565
1687
|
<div class="min-w-0 space-y-0.5 pt-0.5 sm:pt-1">
|
|
1566
|
-
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1688
|
+
<CardTitle class="text-xl leading-tight sm:text-2xl">{{
|
|
1689
|
+
messages.verify.title
|
|
1690
|
+
}}</CardTitle>
|
|
1567
1691
|
<p CardDescription class="max-w-xl leading-6">
|
|
1568
1692
|
{{ messages.verify.intro }}
|
|
1569
1693
|
</p>
|
|
1570
1694
|
</div>
|
|
1571
1695
|
<CardAction
|
|
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"
|
|
1696
|
+
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"
|
|
1697
|
+
>
|
|
1573
1698
|
{{ messages.verify.badge }}
|
|
1574
1699
|
</CardAction>
|
|
1575
1700
|
</CardHeader>
|
|
1576
1701
|
|
|
1577
1702
|
<CardContent class="space-y-4 pt-6 sm:pt-7">
|
|
1578
|
-
<Alert
|
|
1703
|
+
<Alert
|
|
1704
|
+
[variant]="state() === 'error' ? 'destructive' : 'default'"
|
|
1705
|
+
class="bg-background/70 shadow-sm"
|
|
1706
|
+
>
|
|
1579
1707
|
@if (state() === 'pending') {
|
|
1580
1708
|
<Spinner class="mt-0.5 size-4" [attr.aria-label]="messages.verify.pendingAria" />
|
|
1581
1709
|
}
|
|
@@ -1588,19 +1716,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
1588
1716
|
@if (state() === 'error') {
|
|
1589
1717
|
<Alert variant="destructive" class="shadow-sm">
|
|
1590
1718
|
<AlertDescription>
|
|
1591
|
-
Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai
|
|
1719
|
+
Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai
|
|
1720
|
+
sebelumnya.
|
|
1592
1721
|
</AlertDescription>
|
|
1593
1722
|
</Alert>
|
|
1594
1723
|
}
|
|
1595
1724
|
</CardContent>
|
|
1596
1725
|
|
|
1597
1726
|
<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">
|
|
1599
|
-
|
|
1727
|
+
<a Button [routerLink]="guestHomePath" variant="outline">
|
|
1728
|
+
{{ messages.verify.requestNewLink }}
|
|
1729
|
+
</a>
|
|
1730
|
+
<a Button [routerLink]="authenticatedHomePath" variant="default">
|
|
1731
|
+
{{ messages.verify.openDashboard }}
|
|
1732
|
+
</a>
|
|
1600
1733
|
</CardFooter>
|
|
1601
1734
|
</Card>
|
|
1602
1735
|
`,
|
|
1603
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1604
1736
|
}]
|
|
1605
1737
|
}], ctorParameters: () => [], propDecorators: { token: [{ type: i0.Input, args: [{ isSignal: true, alias: "token", required: false }] }] } });
|
|
1606
1738
|
|