@ts-core/angular 13.0.14 → 13.0.17
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/login/LoginResolver.mjs +1 -9
- package/esm2020/manager/ResizeManager.mjs +13 -19
- package/esm2020/public-api.mjs +2 -3
- package/fesm2015/ts-core-angular.mjs +41 -68
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +41 -68
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/login/LoginGuard.d.ts +6 -6
- package/login/LoginNotGuard.d.ts +6 -6
- package/login/LoginResolver.d.ts +0 -3
- package/manager/ResizeManager.d.ts +2 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/esm2020/login/LoginRedirectResolver.mjs +0 -21
- package/login/LoginRedirectResolver.d.ts +0 -7
|
@@ -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';
|
|
@@ -1826,19 +1827,10 @@ class ResizeManager {
|
|
|
1826
1827
|
// Event Handlers
|
|
1827
1828
|
//
|
|
1828
1829
|
// --------------------------------------------------------------------------
|
|
1829
|
-
this.
|
|
1830
|
-
this.compare = (previous, current) => previous.width === current.width && previous.height === current.height;
|
|
1830
|
+
this.handler = (item) => this.subject.next(item);
|
|
1831
1831
|
this.element = ViewUtil.parseElement(element);
|
|
1832
|
-
this.subject = new BehaviorSubject(this.
|
|
1833
|
-
this.sensor = new ResizeSensor(this.element, this.
|
|
1834
|
-
}
|
|
1835
|
-
// --------------------------------------------------------------------------
|
|
1836
|
-
//
|
|
1837
|
-
// Private Methods
|
|
1838
|
-
//
|
|
1839
|
-
// --------------------------------------------------------------------------
|
|
1840
|
-
getSize() {
|
|
1841
|
-
return { width: ViewUtil.getWidth(this.element), height: ViewUtil.getHeight(this.element) };
|
|
1832
|
+
this.subject = new BehaviorSubject({ width: ViewUtil.getWidth(this.element), height: ViewUtil.getHeight(this.element) });
|
|
1833
|
+
this.sensor = new ResizeSensor(this.element, this.handler);
|
|
1842
1834
|
}
|
|
1843
1835
|
// --------------------------------------------------------------------------
|
|
1844
1836
|
//
|
|
@@ -1846,7 +1838,10 @@ class ResizeManager {
|
|
|
1846
1838
|
//
|
|
1847
1839
|
// --------------------------------------------------------------------------
|
|
1848
1840
|
get changed() {
|
|
1849
|
-
return this.subject.asObservable().pipe(distinctUntilChanged(
|
|
1841
|
+
return this.subject.asObservable().pipe(distinctUntilChanged(_.isEqual));
|
|
1842
|
+
}
|
|
1843
|
+
get value() {
|
|
1844
|
+
return this.subject.getValue();
|
|
1850
1845
|
}
|
|
1851
1846
|
// --------------------------------------------------------------------------
|
|
1852
1847
|
//
|
|
@@ -1854,15 +1849,15 @@ class ResizeManager {
|
|
|
1854
1849
|
//
|
|
1855
1850
|
// --------------------------------------------------------------------------
|
|
1856
1851
|
destroy() {
|
|
1857
|
-
if (!_.isNil(this.subject)) {
|
|
1858
|
-
this.subject.complete();
|
|
1859
|
-
this.subject = null;
|
|
1860
|
-
}
|
|
1861
1852
|
if (!_.isNil(this.sensor)) {
|
|
1862
|
-
this.sensor.detach(this.
|
|
1853
|
+
this.sensor.detach(this.handler);
|
|
1863
1854
|
this.sensor.reset();
|
|
1864
1855
|
this.sensor = null;
|
|
1865
1856
|
}
|
|
1857
|
+
if (!_.isNil(this.subject)) {
|
|
1858
|
+
this.subject.complete();
|
|
1859
|
+
this.subject = null;
|
|
1860
|
+
}
|
|
1866
1861
|
this.element = null;
|
|
1867
1862
|
}
|
|
1868
1863
|
}
|
|
@@ -8255,31 +8250,6 @@ class LoginRequireResolver {
|
|
|
8255
8250
|
}
|
|
8256
8251
|
}
|
|
8257
8252
|
|
|
8258
|
-
class LoginResolver extends LoginRequireResolver {
|
|
8259
|
-
// --------------------------------------------------------------------------
|
|
8260
|
-
//
|
|
8261
|
-
// Constructor
|
|
8262
|
-
//
|
|
8263
|
-
// --------------------------------------------------------------------------
|
|
8264
|
-
constructor(login) {
|
|
8265
|
-
super(login);
|
|
8266
|
-
}
|
|
8267
|
-
}
|
|
8268
|
-
// --------------------------------------------------------------------------
|
|
8269
|
-
//
|
|
8270
|
-
// Properties
|
|
8271
|
-
//
|
|
8272
|
-
// --------------------------------------------------------------------------
|
|
8273
|
-
LoginResolver.logoutUrl = '/login';
|
|
8274
|
-
LoginResolver.loggedInUrl = '/';
|
|
8275
|
-
LoginResolver.notLoggedInUrl = '/login';
|
|
8276
|
-
LoginResolver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, deps: [{ token: LoginBaseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8277
|
-
LoginResolver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, providedIn: 'root' });
|
|
8278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, decorators: [{
|
|
8279
|
-
type: Injectable,
|
|
8280
|
-
args: [{ providedIn: 'root' }]
|
|
8281
|
-
}], ctorParameters: function () { return [{ type: LoginBaseService }]; } });
|
|
8282
|
-
|
|
8283
8253
|
class LoginGuard extends LoginRequireResolver {
|
|
8284
8254
|
// --------------------------------------------------------------------------
|
|
8285
8255
|
//
|
|
@@ -8296,19 +8266,21 @@ class LoginGuard extends LoginRequireResolver {
|
|
|
8296
8266
|
//
|
|
8297
8267
|
// --------------------------------------------------------------------------
|
|
8298
8268
|
canActivate() {
|
|
8299
|
-
|
|
8300
|
-
return true;
|
|
8301
|
-
}
|
|
8302
|
-
let url = !_.isNil(this.redirectUrl) ? this.redirectUrl : LoginResolver.notLoggedInUrl;
|
|
8303
|
-
return this.router.router.parseUrl(url);
|
|
8269
|
+
return this.isLoggedIn() ? true : this.router.parseUrl(LoginGuard.redirectUrl);
|
|
8304
8270
|
}
|
|
8305
8271
|
}
|
|
8306
|
-
|
|
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 });
|
|
8307
8279
|
LoginGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginGuard, providedIn: 'root' });
|
|
8308
8280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginGuard, decorators: [{
|
|
8309
8281
|
type: Injectable,
|
|
8310
8282
|
args: [{ providedIn: 'root' }]
|
|
8311
|
-
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type:
|
|
8283
|
+
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type: i2$4.Router }]; } });
|
|
8312
8284
|
|
|
8313
8285
|
class LoginNotGuard extends LoginRequireResolver {
|
|
8314
8286
|
// --------------------------------------------------------------------------
|
|
@@ -8326,37 +8298,38 @@ class LoginNotGuard extends LoginRequireResolver {
|
|
|
8326
8298
|
//
|
|
8327
8299
|
// --------------------------------------------------------------------------
|
|
8328
8300
|
canActivate() {
|
|
8329
|
-
|
|
8330
|
-
return true;
|
|
8331
|
-
}
|
|
8332
|
-
let url = !_.isNil(this.redirectUrl) ? this.redirectUrl : LoginResolver.loggedInUrl;
|
|
8333
|
-
return this.router.router.parseUrl(url);
|
|
8301
|
+
return !this.isLoggedIn() ? true : this.router.parseUrl(LoginNotGuard.redirectUrl);
|
|
8334
8302
|
}
|
|
8335
8303
|
}
|
|
8336
|
-
|
|
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 });
|
|
8337
8311
|
LoginNotGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginNotGuard, providedIn: 'root' });
|
|
8338
8312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginNotGuard, decorators: [{
|
|
8339
8313
|
type: Injectable,
|
|
8340
8314
|
args: [{ providedIn: 'root' }]
|
|
8341
|
-
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type:
|
|
8315
|
+
}], ctorParameters: function () { return [{ type: LoginBaseService }, { type: i2$4.Router }]; } });
|
|
8342
8316
|
|
|
8343
|
-
class
|
|
8317
|
+
class LoginResolver extends LoginRequireResolver {
|
|
8344
8318
|
// --------------------------------------------------------------------------
|
|
8345
8319
|
//
|
|
8346
|
-
//
|
|
8347
|
-
|
|
8320
|
+
// Constructor
|
|
8321
|
+
//
|
|
8348
8322
|
// --------------------------------------------------------------------------
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
return true;
|
|
8323
|
+
constructor(login) {
|
|
8324
|
+
super(login);
|
|
8352
8325
|
}
|
|
8353
8326
|
}
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type:
|
|
8327
|
+
LoginResolver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, deps: [{ token: LoginBaseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8328
|
+
LoginResolver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, providedIn: 'root' });
|
|
8329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: LoginResolver, decorators: [{
|
|
8357
8330
|
type: Injectable,
|
|
8358
8331
|
args: [{ providedIn: 'root' }]
|
|
8359
|
-
}] });
|
|
8332
|
+
}], ctorParameters: function () { return [{ type: LoginBaseService }]; } });
|
|
8360
8333
|
|
|
8361
8334
|
class MenuItemBase {
|
|
8362
8335
|
// --------------------------------------------------------------------------
|
|
@@ -9697,5 +9670,5 @@ class TransportLazyModule {
|
|
|
9697
9670
|
* Generated bundle index. Do not edit.
|
|
9698
9671
|
*/
|
|
9699
9672
|
|
|
9700
|
-
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,
|
|
9673
|
+
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, LoginResolver, 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 };
|
|
9701
9674
|
//# sourceMappingURL=ts-core-angular.mjs.map
|