@ts-core/angular 13.0.62 → 13.0.65
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/error/WindowClosedError.d.ts +6 -0
- package/esm2020/error/WindowClosedError.mjs +19 -0
- package/esm2020/manager/ResizeManager.mjs +22 -2
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ts-core-angular.mjs +40 -2
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +40 -2
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/manager/ResizeManager.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1482,6 +1482,24 @@ const APPLICATION_INJECTOR = (value) => {
|
|
|
1482
1482
|
return applicationInjector;
|
|
1483
1483
|
};
|
|
1484
1484
|
|
|
1485
|
+
class WindowClosedError extends ExtendedError {
|
|
1486
|
+
// --------------------------------------------------------------------------
|
|
1487
|
+
//
|
|
1488
|
+
// Constructor
|
|
1489
|
+
//
|
|
1490
|
+
// --------------------------------------------------------------------------
|
|
1491
|
+
constructor(message = WindowClosedError.MESSAGE, code = WindowClosedError.CODE) {
|
|
1492
|
+
super(message, code);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
// --------------------------------------------------------------------------
|
|
1496
|
+
//
|
|
1497
|
+
// Static Methods
|
|
1498
|
+
//
|
|
1499
|
+
// --------------------------------------------------------------------------
|
|
1500
|
+
WindowClosedError.CODE = ExtendedError.DEFAULT_ERROR_CODE;
|
|
1501
|
+
WindowClosedError.MESSAGE = 'Window was closed';
|
|
1502
|
+
|
|
1485
1503
|
class AssetBackgroundDirective extends Destroyable {
|
|
1486
1504
|
// --------------------------------------------------------------------------
|
|
1487
1505
|
//
|
|
@@ -1862,13 +1880,33 @@ class ResizeManager {
|
|
|
1862
1880
|
// Event Handlers
|
|
1863
1881
|
//
|
|
1864
1882
|
// --------------------------------------------------------------------------
|
|
1865
|
-
this.handler = (item) =>
|
|
1883
|
+
this.handler = (item) => {
|
|
1884
|
+
if (!ResizeManager.isSizeValid(item)) {
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1887
|
+
if (!_.isNil(this.size) && item.width === this.size.width && item.height === this.size.height) {
|
|
1888
|
+
return;
|
|
1889
|
+
}
|
|
1890
|
+
this.size = item;
|
|
1891
|
+
this.subject.next(item);
|
|
1892
|
+
};
|
|
1866
1893
|
this.element = ViewUtil.parseElement(element);
|
|
1867
1894
|
this.subject = new BehaviorSubject({ width: ViewUtil.getWidth(this.element), height: ViewUtil.getHeight(this.element) });
|
|
1868
1895
|
this.sensor = new ResizeSensor(this.element, this.handler);
|
|
1869
1896
|
}
|
|
1870
1897
|
// --------------------------------------------------------------------------
|
|
1871
1898
|
//
|
|
1899
|
+
// Static Methods
|
|
1900
|
+
//
|
|
1901
|
+
// --------------------------------------------------------------------------
|
|
1902
|
+
static isSizeValid(item) {
|
|
1903
|
+
if (_.isNil(item) || item.width <= 0 || item.height <= 0) {
|
|
1904
|
+
return false;
|
|
1905
|
+
}
|
|
1906
|
+
return true;
|
|
1907
|
+
}
|
|
1908
|
+
// --------------------------------------------------------------------------
|
|
1909
|
+
//
|
|
1872
1910
|
// Public Properties
|
|
1873
1911
|
//
|
|
1874
1912
|
// --------------------------------------------------------------------------
|
|
@@ -9932,5 +9970,5 @@ class TransportLazyModule {
|
|
|
9932
9970
|
* Generated bundle index. Do not edit.
|
|
9933
9971
|
*/
|
|
9934
9972
|
|
|
9935
|
-
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BootstrapBreakpoint, BootstrapBreakpointService, BootstrapBreakpointServiceEvent, BottomSheetBaseComponent, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, CdkTableBaseComponent, CdkTableCellClassNamePipe, CdkTableCellStyleNamePipe, CdkTableCellValuePipe, CdkTableColumnClassNamePipe, CdkTableColumnStyleNamePipe, CdkTableDataSource, CdkTableFilterableComponent, CdkTableFilterableMapCollection, CdkTablePaginableBookmarkComponent, CdkTablePaginableBookmarkMapCollection, CdkTablePaginableComponent, CdkTablePaginableMapCollection, CdkTableRowClassNamePipe, CdkTableRowStyleNamePipe, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, HTMLTitleDirective, 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, LoginIfCanGuard, 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, WindowElement, WindowEvent, WindowExpandElementComponent, WindowFactory, WindowImpl, WindowMinimizeElementComponent, WindowModule, WindowQuestionBaseComponent, WindowQuestionComponent, WindowResizeElementComponent, WindowService, WindowServiceEvent, cookieServiceFactory, languageServiceFactory, loggerServiceFactory, notificationServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
9973
|
+
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BootstrapBreakpoint, BootstrapBreakpointService, BootstrapBreakpointServiceEvent, BottomSheetBaseComponent, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, CdkTableBaseComponent, CdkTableCellClassNamePipe, CdkTableCellStyleNamePipe, CdkTableCellValuePipe, CdkTableColumnClassNamePipe, CdkTableColumnStyleNamePipe, CdkTableDataSource, CdkTableFilterableComponent, CdkTableFilterableMapCollection, CdkTablePaginableBookmarkComponent, CdkTablePaginableBookmarkMapCollection, CdkTablePaginableComponent, CdkTablePaginableMapCollection, CdkTableRowClassNamePipe, CdkTableRowStyleNamePipe, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, HTMLTitleDirective, 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, LoginIfCanGuard, 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, WindowClosedError, WindowConfig, WindowDragAreaDirective, WindowElement, WindowEvent, WindowExpandElementComponent, WindowFactory, WindowImpl, WindowMinimizeElementComponent, WindowModule, WindowQuestionBaseComponent, WindowQuestionComponent, WindowResizeElementComponent, WindowService, WindowServiceEvent, cookieServiceFactory, languageServiceFactory, loggerServiceFactory, notificationServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
9936
9974
|
//# sourceMappingURL=ts-core-angular.mjs.map
|