@ts-core/angular 13.1.22 → 13.1.23
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/VICommonModule.d.ts +26 -24
- package/directive/IsBrowserDirective.d.ts +8 -0
- package/directive/IsServerDirective.d.ts +8 -0
- package/esm2020/VICommonModule.mjs +9 -1
- package/esm2020/directive/IsBrowserDirective.mjs +24 -0
- package/esm2020/directive/IsServerDirective.mjs +24 -0
- package/esm2020/public-api.mjs +3 -1
- package/esm2020/util/ViewUtil.mjs +7 -4
- package/fesm2015/ts-core-angular.mjs +55 -4
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +55 -4
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/util/ViewUtil.d.ts +1 -0
|
@@ -382,6 +382,9 @@ class ViewUtil {
|
|
|
382
382
|
static set document(value) {
|
|
383
383
|
ViewUtil._document = value;
|
|
384
384
|
}
|
|
385
|
+
static get window() {
|
|
386
|
+
return this.document.defaultView;
|
|
387
|
+
}
|
|
385
388
|
// --------------------------------------------------------------------------
|
|
386
389
|
//
|
|
387
390
|
// Private Methods
|
|
@@ -437,7 +440,7 @@ class ViewUtil {
|
|
|
437
440
|
}
|
|
438
441
|
}
|
|
439
442
|
else {
|
|
440
|
-
let selection = window.getSelection();
|
|
443
|
+
let selection = ViewUtil.window.getSelection();
|
|
441
444
|
selection.removeAllRanges();
|
|
442
445
|
let range = ViewUtil.document.createRange();
|
|
443
446
|
if (!_.isNil(container)) {
|
|
@@ -501,10 +504,10 @@ class ViewUtil {
|
|
|
501
504
|
//
|
|
502
505
|
// --------------------------------------------------------------------------
|
|
503
506
|
static getStageWidth() {
|
|
504
|
-
return window.innerWidth || ViewUtil.document.body.clientWidth;
|
|
507
|
+
return ViewUtil.window.innerWidth || ViewUtil.document.body.clientWidth;
|
|
505
508
|
}
|
|
506
509
|
static getStageHeight() {
|
|
507
|
-
return window.innerHeight || ViewUtil.document.body.clientHeight;
|
|
510
|
+
return ViewUtil.window.innerHeight || ViewUtil.document.body.clientHeight;
|
|
508
511
|
}
|
|
509
512
|
static getWidth(container) {
|
|
510
513
|
container = ViewUtil.parseElement(container);
|
|
@@ -7056,6 +7059,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7056
7059
|
}]
|
|
7057
7060
|
}] });
|
|
7058
7061
|
|
|
7062
|
+
class IsServerDirective {
|
|
7063
|
+
// --------------------------------------------------------------------------
|
|
7064
|
+
//
|
|
7065
|
+
// Constructor
|
|
7066
|
+
//
|
|
7067
|
+
// --------------------------------------------------------------------------
|
|
7068
|
+
constructor(platform, templateRef, viewContainer) {
|
|
7069
|
+
if (platform.isPlatformServer) {
|
|
7070
|
+
viewContainer.createEmbeddedView(templateRef);
|
|
7071
|
+
}
|
|
7072
|
+
}
|
|
7073
|
+
}
|
|
7074
|
+
IsServerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IsServerDirective, deps: [{ token: PlatformService }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7075
|
+
IsServerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: IsServerDirective, selector: "[viIsServer]", ngImport: i0 });
|
|
7076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IsServerDirective, decorators: [{
|
|
7077
|
+
type: Directive,
|
|
7078
|
+
args: [{
|
|
7079
|
+
selector: '[viIsServer]'
|
|
7080
|
+
}]
|
|
7081
|
+
}], ctorParameters: function () { return [{ type: PlatformService }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });
|
|
7082
|
+
|
|
7083
|
+
class IsBrowserDirective {
|
|
7084
|
+
// --------------------------------------------------------------------------
|
|
7085
|
+
//
|
|
7086
|
+
// Constructor
|
|
7087
|
+
//
|
|
7088
|
+
// --------------------------------------------------------------------------
|
|
7089
|
+
constructor(platform, templateRef, viewContainer) {
|
|
7090
|
+
if (platform.isPlatformBrowser) {
|
|
7091
|
+
viewContainer.createEmbeddedView(templateRef);
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
}
|
|
7095
|
+
IsBrowserDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IsBrowserDirective, deps: [{ token: PlatformService }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7096
|
+
IsBrowserDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: IsBrowserDirective, selector: "[viIsBrowser]", ngImport: i0 });
|
|
7097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IsBrowserDirective, decorators: [{
|
|
7098
|
+
type: Directive,
|
|
7099
|
+
args: [{
|
|
7100
|
+
selector: '[viIsBrowser]'
|
|
7101
|
+
}]
|
|
7102
|
+
}], ctorParameters: function () { return [{ type: PlatformService }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });
|
|
7103
|
+
|
|
7059
7104
|
class MenuTriggerForDirective extends MatMenuTrigger {
|
|
7060
7105
|
//--------------------------------------------------------------------------
|
|
7061
7106
|
//
|
|
@@ -7114,6 +7159,8 @@ const DECLARATIONS$1 = [
|
|
|
7114
7159
|
CamelCasePipe,
|
|
7115
7160
|
StartCasePipe,
|
|
7116
7161
|
NgModelErrorPipe,
|
|
7162
|
+
IsServerDirective,
|
|
7163
|
+
IsBrowserDirective,
|
|
7117
7164
|
MomentDatePipe,
|
|
7118
7165
|
MomentTimePipe,
|
|
7119
7166
|
MomentDateFromNowPipe,
|
|
@@ -7173,6 +7220,8 @@ VICommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
7173
7220
|
CamelCasePipe,
|
|
7174
7221
|
StartCasePipe,
|
|
7175
7222
|
NgModelErrorPipe,
|
|
7223
|
+
IsServerDirective,
|
|
7224
|
+
IsBrowserDirective,
|
|
7176
7225
|
MomentDatePipe,
|
|
7177
7226
|
MomentTimePipe,
|
|
7178
7227
|
MomentDateFromNowPipe,
|
|
@@ -7197,6 +7246,8 @@ VICommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
7197
7246
|
CamelCasePipe,
|
|
7198
7247
|
StartCasePipe,
|
|
7199
7248
|
NgModelErrorPipe,
|
|
7249
|
+
IsServerDirective,
|
|
7250
|
+
IsBrowserDirective,
|
|
7200
7251
|
MomentDatePipe,
|
|
7201
7252
|
MomentTimePipe,
|
|
7202
7253
|
MomentDateFromNowPipe,
|
|
@@ -10111,5 +10162,5 @@ class TransportLazyModule {
|
|
|
10111
10162
|
* Generated bundle index. Do not edit.
|
|
10112
10163
|
*/
|
|
10113
10164
|
|
|
10114
|
-
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BootstrapBreakpoint, BootstrapBreakpointService, BootstrapBreakpointServiceEvent, BottomSheetBaseComponent, BottomSheetModule, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, CdkTableBaseComponent, CdkTableCellClassNamePipe, CdkTableCellStyleNamePipe, CdkTableCellValuePipe, CdkTableCellValuePipePure, 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, PlatformService, 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, initializerFactory, languageServiceFactory, loggerServiceFactory, nativeWindowServiceFactory, notificationServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
10165
|
+
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, BootstrapBreakpoint, BootstrapBreakpointService, BootstrapBreakpointServiceEvent, BottomSheetBaseComponent, BottomSheetModule, BottomSheetService, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, CdkTableBaseComponent, CdkTableCellClassNamePipe, CdkTableCellStyleNamePipe, CdkTableCellValuePipe, CdkTableCellValuePipePure, 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, IsBrowserDirective, IsServerDirective, 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, PlatformService, 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, initializerFactory, languageServiceFactory, loggerServiceFactory, nativeWindowServiceFactory, notificationServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
10115
10166
|
//# sourceMappingURL=ts-core-angular.mjs.map
|