@edsis/angular 22.0.40 → 22.0.44
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/README.md +11 -3
- package/fesm2022/edsis-angular-block-shell.mjs +54 -96
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +55 -67
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +6 -15
- package/types/edsis-angular-module-auth.d.ts +3 -18
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edsis/angular",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.44",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=22.0.0",
|
|
6
6
|
"@angular/core": ">=22.0.0",
|
|
7
7
|
"@angular/forms": ">=22.0.0",
|
|
8
8
|
"@angular/router": ">=22.0.0",
|
|
9
|
-
"@edsis/navigation": "^22.0.
|
|
10
|
-
"@edsis/sdk": "^22.0.
|
|
11
|
-
"@edsis/theme": "^22.0.
|
|
12
|
-
"@edsis/component": "^22.0.
|
|
9
|
+
"@edsis/navigation": "^22.0.44",
|
|
10
|
+
"@edsis/sdk": "^22.0.44",
|
|
11
|
+
"@edsis/theme": "^22.0.44",
|
|
12
|
+
"@edsis/component": "^22.0.44",
|
|
13
13
|
"rxjs": ">=7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependenciesMeta": {
|
|
@@ -39,9 +39,8 @@ declare const MAIN_SIDEBAR_NAV_ID = "main";
|
|
|
39
39
|
declare function workspaceNavbarId(workspace: string): `${string}-navbar`;
|
|
40
40
|
|
|
41
41
|
declare class BlockShellTopNavigationComponent {
|
|
42
|
-
private readonly documentRef;
|
|
43
|
-
private readonly destroyRef;
|
|
44
42
|
private readonly layout;
|
|
43
|
+
private readonly navigationService;
|
|
45
44
|
readonly navigation: _angular_core.InputSignal<readonly NavigationItem[]>;
|
|
46
45
|
readonly workspaceLinks: _angular_core.InputSignal<readonly BlockShellWorkspaceLink[]>;
|
|
47
46
|
readonly shellName: _angular_core.InputSignal<string>;
|
|
@@ -55,14 +54,11 @@ declare class BlockShellTopNavigationComponent {
|
|
|
55
54
|
/** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi horizontal. */
|
|
56
55
|
readonly type: _angular_core.InputSignal<NavigationHorizontalType>;
|
|
57
56
|
readonly flyoutLabel: _angular_core.InputSignal<string>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/** localStorage `nav-type` menang atas default input — navbar ↔ flyout ikut perubahan storage. */
|
|
57
|
+
private readonly navigationState;
|
|
58
|
+
/** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
|
|
61
59
|
protected readonly effectiveType: _angular_core.Signal<NavigationHorizontalType>;
|
|
62
60
|
/** Style flyout mengikuti appearance layout (LayoutService): border-rail ↔ border-rail, selain itu default. */
|
|
63
61
|
protected readonly navTypeStyle: _angular_core.Signal<"default" | "border-rail">;
|
|
64
|
-
constructor();
|
|
65
|
-
private readStoredType;
|
|
66
62
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellTopNavigationComponent, never>;
|
|
67
63
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellTopNavigationComponent, "block-shell-top-navigation", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "workspaceLinks": { "alias": "workspaceLinks"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "flyoutLabel": { "alias": "flyoutLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
68
64
|
}
|
|
@@ -70,6 +66,7 @@ declare class BlockShellTopNavigationComponent {
|
|
|
70
66
|
declare class BlockShellSidebarNavigationComponent {
|
|
71
67
|
private readonly documentRef;
|
|
72
68
|
private readonly destroyRef;
|
|
69
|
+
private readonly navigationService;
|
|
73
70
|
readonly navigation: _angular_core.InputSignal<readonly NavigationItem[]>;
|
|
74
71
|
readonly workspaceLinks: _angular_core.InputSignal<readonly BlockShellWorkspaceLink[]>;
|
|
75
72
|
readonly shellName: _angular_core.InputSignal<string>;
|
|
@@ -83,19 +80,13 @@ declare class BlockShellSidebarNavigationComponent {
|
|
|
83
80
|
/** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
|
|
84
81
|
readonly type: _angular_core.InputSignal<NavigationVerticalType>;
|
|
85
82
|
protected readonly responsiveCollapsed: _angular_core.WritableSignal<boolean>;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/** Nilai `nav-type-mode` yang dipersist NavigationService (default/sticky/drawer saat dockbar). */
|
|
89
|
-
private readonly storedDockbarMode;
|
|
90
|
-
/** localStorage `nav-type` menang atas default input — sidebar ↔ dockbar ikut perubahan storage. */
|
|
83
|
+
private readonly navigationState;
|
|
84
|
+
/** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
|
|
91
85
|
protected readonly effectiveType: _angular_core.Signal<NavigationVerticalType>;
|
|
92
86
|
/** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */
|
|
93
87
|
protected readonly dockbarMode: _angular_core.Signal<NavigationDockbarMode>;
|
|
94
88
|
constructor();
|
|
95
89
|
private readResponsiveCollapsed;
|
|
96
|
-
private readStoredType;
|
|
97
|
-
private readStoredDockbarMode;
|
|
98
|
-
private readStorage;
|
|
99
90
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellSidebarNavigationComponent, never>;
|
|
100
91
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellSidebarNavigationComponent, "block-shell-sidebar-navigation", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "workspaceLinks": { "alias": "workspaceLinks"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
101
92
|
}
|
|
@@ -2,10 +2,9 @@ import { HttpInterceptorFn, HttpContextToken } from '@angular/common/http';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { InjectionToken, EnvironmentProviders, OnInit } from '@angular/core';
|
|
4
4
|
import { CanActivateFn, Routes } from '@angular/router';
|
|
5
|
-
import { AuthTokenResponse, AuthSessionService } from '@edsis/sdk/auth';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
5
|
import * as _edsis_angular_module_auth from '@edsis/angular/module/auth';
|
|
8
6
|
import * as _angular_forms from '@angular/forms';
|
|
7
|
+
import { AuthTokenResponse, AuthSessionService } from '@edsis/sdk/auth';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* Seluruh teks yang tampil di halaman auth (login, logout, verify).
|
|
@@ -185,20 +184,6 @@ declare const EDSIS_SKIP_AUTH: HttpContextToken<boolean>;
|
|
|
185
184
|
declare const EDSIS_SKIP_SESSION_REFRESH: HttpContextToken<boolean>;
|
|
186
185
|
declare const edsisAuthInterceptor: HttpInterceptorFn;
|
|
187
186
|
|
|
188
|
-
/**
|
|
189
|
-
* Menukar authorization code Google menjadi sesi lewat backend
|
|
190
|
-
* (`POST {apiUrl}/auth/google`): client secret hanya ada di server, backend
|
|
191
|
-
* men-set refresh cookie (karena itu `withCredentials`), dan respons berformat
|
|
192
|
-
* sama dengan verify magic-link sehingga bisa langsung ke `persistSession`.
|
|
193
|
-
*/
|
|
194
|
-
declare class AuthGoogleOauthService {
|
|
195
|
-
private readonly http;
|
|
196
|
-
private readonly config;
|
|
197
|
-
exchangeAuthorizationCode(code: string): Observable<AuthTokenResponse>;
|
|
198
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthGoogleOauthService, never>;
|
|
199
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuthGoogleOauthService>;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
187
|
declare const GOOGLE_OAUTH_STATE_STORAGE_KEY = "auth-google-state";
|
|
203
188
|
declare const GOOGLE_OAUTH_AUTHORIZE_URL = "https://accounts.google.com/o/oauth2/v2/auth";
|
|
204
189
|
interface GoogleAuthorizeUrlOptions {
|
|
@@ -230,7 +215,7 @@ declare class AuthGoogleCallbackPage {
|
|
|
230
215
|
private readonly route;
|
|
231
216
|
private readonly router;
|
|
232
217
|
private readonly location;
|
|
233
|
-
private readonly
|
|
218
|
+
private readonly authSessionService;
|
|
234
219
|
private readonly authConfig;
|
|
235
220
|
protected readonly messages: _edsis_angular_module_auth.EdsisAuthMessages;
|
|
236
221
|
protected readonly loginPath: `/${string}`;
|
|
@@ -374,5 +359,5 @@ declare function injectSessionState(): Promise<boolean>;
|
|
|
374
359
|
declare function injectSessionRefresh(): Promise<boolean>;
|
|
375
360
|
declare function injectSessionClear(): void;
|
|
376
361
|
|
|
377
|
-
export { AUTH_SESSION_CHANGE_EVENT, AuthGoogleCallbackPage,
|
|
362
|
+
export { AUTH_SESSION_CHANGE_EVENT, AuthGoogleCallbackPage, AuthLoginPage, AuthLogoutPage, AuthShellPage, AuthVerifyPage, DEFAULT_EDSIS_AUTH_MESSAGES, EDSIS_AUTH_CONFIG, EDSIS_AUTH_MESSAGES, EDSIS_SKIP_AUTH, EDSIS_SKIP_SESSION_REFRESH, GOOGLE_OAUTH_AUTHORIZE_URL, GOOGLE_OAUTH_CALLBACK_ROUTE_PATH, GOOGLE_OAUTH_STATE_STORAGE_KEY, authRoutes, authenticatedGuard, buildGoogleAuthorizeUrl, clearStoredSession, consumeGoogleOauthState, createGoogleOauthState, edsisAuthInterceptor, guestOnlyGuard, hasStoredSession, homeRedirectGuard, injectSessionClear, injectSessionRefresh, injectSessionState, mergeEdsisAuthMessages, persistSession, provideEdsisAuth, readStoredAccessToken, readStoredSession, resolveEdsisAuthConfig, shouldClearSessionAfterRefreshFailure, startAuthSessionMonitor, storeGoogleOauthState, validateStoredSession, ɵresetAuthSessionModuleState };
|
|
378
363
|
export type { EdsisAuthConfig, EdsisAuthGoogleOauthConfig, EdsisAuthHealthCheckConfig, EdsisAuthMessages, EdsisAuthMessagesOverride, EdsisAuthOauthConfig, GoogleAuthorizeUrlOptions, ResolvedEdsisAuthConfig, ResolvedEdsisAuthGoogleOauth, ResolvedEdsisAuthHealthCheck, ResolvedEdsisAuthOauth, StoredAuthSession };
|