@ts-core/angular 13.0.15 → 13.0.16
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/esm2020/login/LoginGuard.mjs +11 -11
- package/esm2020/login/LoginNotGuard.mjs +11 -11
- package/esm2020/login/LoginRequireResolver.mjs +1 -1
- package/esm2020/public-api.mjs +1 -3
- package/fesm2015/ts-core-angular.mjs +20 -58
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +20 -58
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/login/LoginGuard.d.ts +6 -6
- package/login/LoginNotGuard.d.ts +6 -6
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/esm2020/login/LoginRedirectResolver.mjs +0 -21
- package/esm2020/login/LoginResolver.mjs +0 -29
- package/login/LoginRedirectResolver.d.ts +0 -7
- package/login/LoginResolver.d.ts +0 -11
|
@@ -56,6 +56,7 @@ import * as i3$1 from '@angular/material/progress-bar';
|
|
|
56
56
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
57
57
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
58
58
|
import { TransportTimeoutError, TransportNoConnectionError, TransportEvent } from '@ts-core/common/transport';
|
|
59
|
+
import * as i2$4 from '@angular/router';
|
|
59
60
|
import { NavigationStart, NavigationEnd, NavigationCancel, NavigationError, ActivatedRoute } from '@angular/router';
|
|
60
61
|
import { FilterableMapCollection, MapCollection } from '@ts-core/common/map';
|
|
61
62
|
import * as i1$9 from '@angular/cdk/layout';
|
|
@@ -8249,31 +8250,6 @@ class LoginRequireResolver {
|
|
|
8249
8250
|
}
|
|
8250
8251
|
}
|
|
8251
8252
|
|
|
8252
|
-
class LoginResolver extends LoginRequireResolver {
|
|
8253
|
-
// --------------------------------------------------------------------------
|
|
8254
|
-
//
|
|
8255
|
-
// Constructor
|
|
8256
|
-
//
|
|
8257
|
-
// --------------------------------------------------------------------------
|
|
8258
|
-
constructor(login) {
|
|
8259
|
-
super(login);
|
|
8260
|
-
}
|
|
8261
|
-
}
|
|
8262
|
-
// --------------------------------------------------------------------------
|
|
8263
|
-
//
|
|
8264
|
-
// Properties
|
|
8265
|
-
//
|
|
8266
|
-
// --------------------------------------------------------------------------
|
|
8267
|
-
LoginResolver.logoutUrl = '/login';
|
|
8268
|
-
LoginResolver.loggedInUrl = '/';
|
|
8269
|
-
LoginResolver.notLoggedInUrl = '/login';
|
|
8270
|
-
LoginResolver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, deps: [{ token: LoginBaseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8271
|
-
LoginResolver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, providedIn: 'root' });
|
|
8272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, decorators: [{
|
|
8273
|
-
type: Injectable,
|
|
8274
|
-
args: [{ providedIn: 'root' }]
|
|
8275
|
-
}], ctorParameters: function () { return [{ type: LoginBaseService }]; } });
|
|
8276
|
-
|
|
8277
8253
|
class LoginGuard extends LoginRequireResolver {
|
|
8278
8254
|
// --------------------------------------------------------------------------
|
|
8279
8255
|
//
|
|
@@ -8290,19 +8266,21 @@ class LoginGuard extends LoginRequireResolver {
|
|
|
8290
8266
|
//
|
|
8291
8267
|
// --------------------------------------------------------------------------
|
|
8292
8268
|
canActivate() {
|
|
8293
|
-
|
|
8294
|
-
return true;
|
|
8295
|
-
}
|
|
8296
|
-
let url = !_.isNil(this.redirectUrl) ? this.redirectUrl : LoginResolver.notLoggedInUrl;
|
|
8297
|
-
return this.router.router.parseUrl(url);
|
|
8269
|
+
return this.isLoggedIn() ? true : this.router.parseUrl(LoginGuard.redirectUrl);
|
|
8298
8270
|
}
|
|
8299
8271
|
}
|
|
8300
|
-
|
|
8272
|
+
// --------------------------------------------------------------------------
|
|
8273
|
+
//
|
|
8274
|
+
// Properties
|
|
8275
|
+
//
|
|
8276
|
+
// --------------------------------------------------------------------------
|
|
8277
|
+
LoginGuard.redirectUrl = '/login';
|
|
8278
|
+
LoginGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginGuard, deps: [{ token: LoginBaseService }, { token: i2$4.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8301
8279
|
LoginGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginGuard, providedIn: 'root' });
|
|
8302
8280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginGuard, decorators: [{
|
|
8303
8281
|
type: Injectable,
|
|
8304
8282
|
args: [{ providedIn: 'root' }]
|
|
8305
|
-
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type:
|
|
8283
|
+
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type: i2$4.Router }]; } });
|
|
8306
8284
|
|
|
8307
8285
|
class LoginNotGuard extends LoginRequireResolver {
|
|
8308
8286
|
// --------------------------------------------------------------------------
|
|
@@ -8320,37 +8298,21 @@ class LoginNotGuard extends LoginRequireResolver {
|
|
|
8320
8298
|
//
|
|
8321
8299
|
// --------------------------------------------------------------------------
|
|
8322
8300
|
canActivate() {
|
|
8323
|
-
|
|
8324
|
-
return true;
|
|
8325
|
-
}
|
|
8326
|
-
let url = !_.isNil(this.redirectUrl) ? this.redirectUrl : LoginResolver.loggedInUrl;
|
|
8327
|
-
return this.router.router.parseUrl(url);
|
|
8301
|
+
return !this.isLoggedIn() ? true : this.router.parseUrl(LoginNotGuard.redirectUrl);
|
|
8328
8302
|
}
|
|
8329
8303
|
}
|
|
8330
|
-
|
|
8304
|
+
// --------------------------------------------------------------------------
|
|
8305
|
+
//
|
|
8306
|
+
// Properties
|
|
8307
|
+
//
|
|
8308
|
+
// --------------------------------------------------------------------------
|
|
8309
|
+
LoginNotGuard.redirectUrl = '/';
|
|
8310
|
+
LoginNotGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginNotGuard, deps: [{ token: LoginBaseService }, { token: i2$4.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8331
8311
|
LoginNotGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginNotGuard, providedIn: 'root' });
|
|
8332
8312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginNotGuard, decorators: [{
|
|
8333
8313
|
type: Injectable,
|
|
8334
8314
|
args: [{ providedIn: 'root' }]
|
|
8335
|
-
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type:
|
|
8336
|
-
|
|
8337
|
-
class LoginRedirectResolver {
|
|
8338
|
-
// --------------------------------------------------------------------------
|
|
8339
|
-
//
|
|
8340
|
-
// Public Methods
|
|
8341
|
-
//`
|
|
8342
|
-
// --------------------------------------------------------------------------
|
|
8343
|
-
canActivate(route, state) {
|
|
8344
|
-
LoginResolver.loggedInUrl = state.url;
|
|
8345
|
-
return true;
|
|
8346
|
-
}
|
|
8347
|
-
}
|
|
8348
|
-
LoginRedirectResolver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginRedirectResolver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8349
|
-
LoginRedirectResolver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginRedirectResolver, providedIn: 'root' });
|
|
8350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginRedirectResolver, decorators: [{
|
|
8351
|
-
type: Injectable,
|
|
8352
|
-
args: [{ providedIn: 'root' }]
|
|
8353
|
-
}] });
|
|
8315
|
+
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type: i2$4.Router }]; } });
|
|
8354
8316
|
|
|
8355
8317
|
class MenuItemBase {
|
|
8356
8318
|
// --------------------------------------------------------------------------
|
|
@@ -9691,5 +9653,5 @@ class TransportLazyModule {
|
|
|
9691
9653
|
* Generated bundle index. Do not edit.
|
|
9692
9654
|
*/
|
|
9693
9655
|
|
|
9694
|
-
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BootstrapBreakpoint, BootstrapBreakpointService, BootstrapBreakpointServiceEvent, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, CdkTableBaseComponent, CdkTableCellClassNamePipe, CdkTableColumnClassNamePipe, CdkTableColumnStyleNamePipe, CdkTableColumnValuePipe, CdkTableDataSource, CdkTableFilterableComponent, CdkTableFilterableMapCollection, CdkTablePaginableBookmarkComponent, CdkTablePaginableBookmarkMapCollection, CdkTablePaginableComponent, CdkTablePaginableMapCollection, CdkTableRowClassNamePipe, CdkTableRowStyleNamePipe, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, INotification, INotificationContent, IUser, IVICommonOptions, IWindow, IWindowContent, InfiniteScrollDirective, LANGUAGE_OPTIONS, LanguageDirective, LanguageHasDirective, LanguageMatPaginatorIntl, LanguageModule, LanguageMomentDateAdapter, LanguagePipe, LanguagePipeHas, LanguagePipeHasPure, LanguagePipePure, LanguageRequireResolver, LanguageResolver, LanguageSelectorComponent, LazyModuleLoader, ListItem, ListItems, LoginBaseService, LoginBaseServiceEvent, LoginGuard, LoginNotGuard,
|
|
9656
|
+
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BootstrapBreakpoint, BootstrapBreakpointService, BootstrapBreakpointServiceEvent, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, CdkTableBaseComponent, CdkTableCellClassNamePipe, CdkTableColumnClassNamePipe, CdkTableColumnStyleNamePipe, CdkTableColumnValuePipe, CdkTableDataSource, CdkTableFilterableComponent, CdkTableFilterableMapCollection, CdkTablePaginableBookmarkComponent, CdkTablePaginableBookmarkMapCollection, CdkTablePaginableComponent, CdkTablePaginableMapCollection, CdkTableRowClassNamePipe, CdkTableRowStyleNamePipe, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, INotification, INotificationContent, IUser, IVICommonOptions, IWindow, IWindowContent, InfiniteScrollDirective, LANGUAGE_OPTIONS, LanguageDirective, LanguageHasDirective, LanguageMatPaginatorIntl, LanguageModule, LanguageMomentDateAdapter, LanguagePipe, LanguagePipeHas, LanguagePipeHasPure, LanguagePipePure, LanguageRequireResolver, LanguageResolver, LanguageSelectorComponent, LazyModuleLoader, ListItem, ListItems, LoginBaseService, LoginBaseServiceEvent, LoginGuard, LoginNotGuard, LoginRequireResolver, MenuItem, MenuItemBase, MenuItems, MenuListComponent, MenuTriggerForDirective, MessageBaseComponent, MomentDateAdaptivePipe, MomentDateFromNowPipe, MomentDatePipe, MomentTimePipe, NavigationMenuItem, NgModelErrorPipe, NotificationBaseComponent, NotificationComponent, NotificationConfig, NotificationEvent, NotificationFactory, NotificationModule, NotificationService, NotificationServiceEvent, PipeBaseService, PrettifyPipe, PropertiesManager, QuestionEvent, QuestionManager, QuestionMode, ResizeDirective, ResizeManager, RouterBaseService, SanitizePipe, ScrollCheckDirective, ScrollDirective, SelectListComponent, SelectListItem, SelectListItems, SelectOnFocusDirective, ShellBaseComponent, StartCasePipe, THEME_OPTIONS, TabGroupComponent, ThemeAssetBackgroundDirective, ThemeAssetDirective, ThemeAssetImageDirective, ThemeModule, ThemeStyleDirective, ThemeStyleHoverDirective, ThemeToggleDirective, TimePipe, TransportLazy, TransportLazyModule, TransportLazyModuleLoadedEvent, TruncatePipe, UserBaseService, UserBaseServiceEvent, VICommonModule, VIComponentModule, VI_ANGULAR_OPTIONS, ViewUtil, WINDOW_CONTENT_CONTAINER, WindowAlign, WindowBase, WindowBaseComponent, WindowCloseElementComponent, WindowConfig, WindowDragAreaDirective, WindowEvent, WindowFactory, WindowImpl, WindowMinimizeElementComponent, WindowModule, WindowQuestionBaseComponent, WindowQuestionComponent, WindowResizeElementComponent, WindowService, WindowServiceEvent, cookieServiceFactory, languageServiceFactory, loggerServiceFactory, notificationServiceFactory, themeAssetServiceFactory, themeServiceFactory, windowServiceFactory };
|
|
9695
9657
|
//# sourceMappingURL=ts-core-angular.mjs.map
|