@ts-core/angular 15.0.8 → 15.0.10
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/public-api.mjs +2 -1
- package/esm2020/window/IWindowConfig.mjs +1 -1
- package/esm2020/window/WindowConfig.mjs +197 -0
- package/fesm2015/ts-core-angular.mjs +196 -2
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +196 -2
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/window/IWindowConfig.d.ts +1 -0
- package/window/WindowConfig.d.ts +59 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ViewContainerRef, Directive, Input, Pipe, NgModule, PLATFORM_ID, Injectable, Inject, InjectionToken, EventEmitter, Output, HostListener, RendererStyleFlags2, Optional, NgModuleFactory, APP_INITIALIZER, RendererFactory2 } from '@angular/core';
|
|
3
|
-
import { DestroyableContainer, PromiseHandler, LoadableEvent, ExtendedError, Destroyable, DateUtil, Loadable, LoadableStatus, ObservableData, TransportTimeoutError, TransportNoConnectionError, ArrayUtil, FilterableMapCollection, RemoveFilterableCondition, GetFilterableCondition, MapCollection, TransportEvent, TransportLocal, Logger, LoggerLevel } from '@ts-core/common';
|
|
3
|
+
import { DestroyableContainer, PromiseHandler, LoadableEvent, ExtendedError, Destroyable, DateUtil, Loadable, LoadableStatus, ObservableData, TransportTimeoutError, TransportNoConnectionError, ArrayUtil, FilterableMapCollection, RemoveFilterableCondition, GetFilterableCondition, IDestroyable, MapCollection, TransportEvent, TransportLocal, Logger, LoggerLevel } from '@ts-core/common';
|
|
4
4
|
import * as _ from 'lodash';
|
|
5
5
|
import * as i1 from '@ts-core/frontend';
|
|
6
6
|
import { Assets, AssetUrlProvider, NativeWindowService, LanguageService, ThemeService, ThemeAssetService, LoadingService, ICookieOptions, DefaultLogger } from '@ts-core/frontend';
|
|
@@ -5747,6 +5747,200 @@ class WindowBase extends DestroyableContainer {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
}
|
|
5749
5749
|
|
|
5750
|
+
class WindowConfig {
|
|
5751
|
+
// --------------------------------------------------------------------------
|
|
5752
|
+
//
|
|
5753
|
+
// Constructor
|
|
5754
|
+
//
|
|
5755
|
+
// --------------------------------------------------------------------------
|
|
5756
|
+
constructor(isModal = false, isResizeable = false, width = NaN, height = NaN) {
|
|
5757
|
+
this.isModal = false;
|
|
5758
|
+
this.isExpandable = false;
|
|
5759
|
+
this.isResizeable = false;
|
|
5760
|
+
this.isMinimizable = false;
|
|
5761
|
+
this.isDisableClose = false;
|
|
5762
|
+
this.isContentDragable = true;
|
|
5763
|
+
this.x = NaN;
|
|
5764
|
+
this.y = NaN;
|
|
5765
|
+
this.defaultWidth = NaN;
|
|
5766
|
+
this.defaultMinWidth = NaN;
|
|
5767
|
+
this.defaultMaxWidth = NaN;
|
|
5768
|
+
this.defaultHeight = NaN;
|
|
5769
|
+
this.defaultMinHeight = NaN;
|
|
5770
|
+
this.defaultMaxHeight = NaN;
|
|
5771
|
+
this.paddingTop = NaN;
|
|
5772
|
+
this.paddingLeft = NaN;
|
|
5773
|
+
this.paddingRight = NaN;
|
|
5774
|
+
this.paddingBottom = NaN;
|
|
5775
|
+
this._elementMaxX = NaN;
|
|
5776
|
+
this._elementMinX = NaN;
|
|
5777
|
+
this._elementMaxY = NaN;
|
|
5778
|
+
this._elementMinY = NaN;
|
|
5779
|
+
this._elementMinWidth = NaN;
|
|
5780
|
+
this._elementMaxWidth = NaN;
|
|
5781
|
+
this._elementMinHeight = NaN;
|
|
5782
|
+
this._elementMaxHeight = NaN;
|
|
5783
|
+
this.isModal = isModal;
|
|
5784
|
+
this.isResizeable = isResizeable;
|
|
5785
|
+
if (!_.isNaN(width)) {
|
|
5786
|
+
this.defaultWidth = width;
|
|
5787
|
+
}
|
|
5788
|
+
if (!_.isNaN(height)) {
|
|
5789
|
+
this.defaultHeight = height;
|
|
5790
|
+
}
|
|
5791
|
+
}
|
|
5792
|
+
// --------------------------------------------------------------------------
|
|
5793
|
+
//
|
|
5794
|
+
// Public Methods
|
|
5795
|
+
//
|
|
5796
|
+
// --------------------------------------------------------------------------
|
|
5797
|
+
setDefaultProperties() {
|
|
5798
|
+
this.width = this.elementWidth;
|
|
5799
|
+
this.maxWidth = this.elementMaxWidth;
|
|
5800
|
+
this.minWidth = this.elementMinWidth;
|
|
5801
|
+
this.height = this.elementHeight;
|
|
5802
|
+
this.maxHeight = this.elementMaxHeight;
|
|
5803
|
+
this.minHeight = this.elementMinHeight;
|
|
5804
|
+
}
|
|
5805
|
+
destroy() {
|
|
5806
|
+
if (!_.isNil(this.data) && IDestroyable.instanceOf(this.data)) {
|
|
5807
|
+
this.data.destroy();
|
|
5808
|
+
}
|
|
5809
|
+
this.data = null;
|
|
5810
|
+
}
|
|
5811
|
+
// --------------------------------------------------------------------------
|
|
5812
|
+
//
|
|
5813
|
+
// Public Properties
|
|
5814
|
+
//
|
|
5815
|
+
// --------------------------------------------------------------------------
|
|
5816
|
+
get elementMinY() {
|
|
5817
|
+
if (!_.isNaN(this._elementMinY)) {
|
|
5818
|
+
return this._elementMinY;
|
|
5819
|
+
}
|
|
5820
|
+
this._elementMinY = 0 - ViewUtil.getStageHeight();
|
|
5821
|
+
if (!_.isNaN(this.paddingTop)) {
|
|
5822
|
+
this._elementMinY += this.paddingTop;
|
|
5823
|
+
}
|
|
5824
|
+
return this._elementMinY;
|
|
5825
|
+
}
|
|
5826
|
+
get elementMaxY() {
|
|
5827
|
+
if (!_.isNaN(this._elementMaxY)) {
|
|
5828
|
+
return this._elementMaxY;
|
|
5829
|
+
}
|
|
5830
|
+
this._elementMaxY = ViewUtil.getStageHeight();
|
|
5831
|
+
if (!_.isNaN(this.paddingBottom)) {
|
|
5832
|
+
this._elementMaxY -= this.paddingBottom;
|
|
5833
|
+
}
|
|
5834
|
+
return this._elementMaxY;
|
|
5835
|
+
}
|
|
5836
|
+
get elementMinX() {
|
|
5837
|
+
if (!_.isNaN(this._elementMinX)) {
|
|
5838
|
+
return this._elementMinX;
|
|
5839
|
+
}
|
|
5840
|
+
this._elementMinX = -ViewUtil.getStageWidth();
|
|
5841
|
+
if (!_.isNaN(this.paddingLeft)) {
|
|
5842
|
+
this._elementMinX += this.paddingLeft;
|
|
5843
|
+
}
|
|
5844
|
+
return this._elementMinX;
|
|
5845
|
+
}
|
|
5846
|
+
get elementMaxX() {
|
|
5847
|
+
if (!_.isNaN(this._elementMaxX)) {
|
|
5848
|
+
return this._elementMaxX;
|
|
5849
|
+
}
|
|
5850
|
+
this._elementMaxX = ViewUtil.getStageWidth();
|
|
5851
|
+
if (!_.isNaN(this.paddingRight)) {
|
|
5852
|
+
this._elementMaxX -= this.paddingRight;
|
|
5853
|
+
}
|
|
5854
|
+
return this._elementMaxX;
|
|
5855
|
+
}
|
|
5856
|
+
get elementWidth() {
|
|
5857
|
+
if (this._elementWidth) {
|
|
5858
|
+
return this._elementWidth;
|
|
5859
|
+
}
|
|
5860
|
+
this._elementWidth = 'auto';
|
|
5861
|
+
if (this.defaultWidth) {
|
|
5862
|
+
this._elementWidth = this.defaultWidth + 'px';
|
|
5863
|
+
}
|
|
5864
|
+
return this._elementWidth;
|
|
5865
|
+
}
|
|
5866
|
+
get elementMinWidth() {
|
|
5867
|
+
if (!_.isNaN(this._elementMinWidth)) {
|
|
5868
|
+
return this._elementMinWidth;
|
|
5869
|
+
}
|
|
5870
|
+
this._elementMinWidth = 0;
|
|
5871
|
+
if (!_.isNaN(this.defaultMinWidth)) {
|
|
5872
|
+
let value = ViewUtil.getStageWidth();
|
|
5873
|
+
if (!_.isNaN(this.paddingLeft)) {
|
|
5874
|
+
value -= this.paddingLeft;
|
|
5875
|
+
}
|
|
5876
|
+
if (!_.isNaN(this.paddingRight)) {
|
|
5877
|
+
value -= this.paddingRight;
|
|
5878
|
+
}
|
|
5879
|
+
this._elementMinWidth = Math.min(this.defaultMinWidth, value);
|
|
5880
|
+
}
|
|
5881
|
+
return this._elementMinWidth;
|
|
5882
|
+
}
|
|
5883
|
+
get elementMaxWidth() {
|
|
5884
|
+
if (!_.isNaN(this._elementMaxWidth)) {
|
|
5885
|
+
return this._elementMaxWidth;
|
|
5886
|
+
}
|
|
5887
|
+
this._elementMaxWidth = ViewUtil.getStageWidth();
|
|
5888
|
+
if (!_.isNaN(this.paddingLeft)) {
|
|
5889
|
+
this._elementMaxWidth -= this.paddingLeft;
|
|
5890
|
+
}
|
|
5891
|
+
if (!_.isNaN(this.paddingRight)) {
|
|
5892
|
+
this._elementMaxWidth -= this.paddingRight;
|
|
5893
|
+
}
|
|
5894
|
+
if (!_.isNaN(this.defaultMaxWidth)) {
|
|
5895
|
+
this._elementMaxWidth = Math.min(this.defaultMaxWidth, this._elementMaxWidth);
|
|
5896
|
+
}
|
|
5897
|
+
return this._elementMaxWidth;
|
|
5898
|
+
}
|
|
5899
|
+
get elementHeight() {
|
|
5900
|
+
if (this._elementHeight) {
|
|
5901
|
+
return this._elementHeight;
|
|
5902
|
+
}
|
|
5903
|
+
this._elementHeight = 'auto';
|
|
5904
|
+
if (this.defaultHeight) {
|
|
5905
|
+
this._elementHeight = this.defaultHeight + 'px';
|
|
5906
|
+
}
|
|
5907
|
+
return this._elementHeight;
|
|
5908
|
+
}
|
|
5909
|
+
get elementMinHeight() {
|
|
5910
|
+
if (!_.isNaN(this._elementMinHeight)) {
|
|
5911
|
+
return this._elementMinHeight;
|
|
5912
|
+
}
|
|
5913
|
+
this._elementMinHeight = 0;
|
|
5914
|
+
if (!_.isNaN(this.defaultMinHeight)) {
|
|
5915
|
+
let value = ViewUtil.getStageHeight();
|
|
5916
|
+
if (!_.isNaN(this.paddingTop)) {
|
|
5917
|
+
value -= this.paddingTop;
|
|
5918
|
+
}
|
|
5919
|
+
if (!_.isNaN(this.paddingBottom)) {
|
|
5920
|
+
value -= this.paddingBottom;
|
|
5921
|
+
}
|
|
5922
|
+
this._elementMinHeight = Math.min(this.defaultMinHeight, value);
|
|
5923
|
+
}
|
|
5924
|
+
return this._elementMinHeight;
|
|
5925
|
+
}
|
|
5926
|
+
get elementMaxHeight() {
|
|
5927
|
+
if (!_.isNaN(this._elementMaxHeight)) {
|
|
5928
|
+
return this._elementMaxHeight;
|
|
5929
|
+
}
|
|
5930
|
+
this._elementMaxHeight = ViewUtil.getStageHeight();
|
|
5931
|
+
if (!_.isNaN(this.paddingTop)) {
|
|
5932
|
+
this._elementMaxHeight -= this.paddingTop;
|
|
5933
|
+
}
|
|
5934
|
+
if (!_.isNaN(this.paddingBottom)) {
|
|
5935
|
+
this._elementMaxHeight -= this.paddingBottom;
|
|
5936
|
+
}
|
|
5937
|
+
if (!_.isNaN(this.defaultMaxHeight)) {
|
|
5938
|
+
this._elementMaxHeight = Math.min(this.defaultMaxHeight, this._elementMaxHeight);
|
|
5939
|
+
}
|
|
5940
|
+
return this._elementMaxHeight;
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
|
|
5750
5944
|
class IWindowContent extends DestroyableContainer {
|
|
5751
5945
|
// --------------------------------------------------------------------------
|
|
5752
5946
|
//
|
|
@@ -6246,5 +6440,5 @@ const VI_ANGULAR_OPTIONS = new InjectionToken(`VI_ANGULAR_OPTIONS`);
|
|
|
6246
6440
|
* Generated bundle index. Do not edit.
|
|
6247
6441
|
*/
|
|
6248
6442
|
|
|
6249
|
-
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, HTMLTitleDirective, IUser, IVIOptions, IWindow, IWindowContent, InfiniteScrollDirective, IsBrowserDirective, IsServerDirective, LANGUAGE_OPTIONS, LanguageDirective, LanguageHasDirective, LanguageModule, LanguagePipe, LanguagePipeHas, LanguagePipeHasPure, LanguagePipePure, LanguageRequireResolver, LanguageResolver, LazyModuleLoader, ListItem, ListItems, LoginBaseService, LoginBaseServiceEvent, LoginGuard, LoginIfCanGuard, LoginNotGuard, LoginRequireResolver, LoginResolver, MenuItem, MenuItemBase, MenuItems, MessageBaseComponent, MomentDateAdaptivePipe, MomentDateFromNowPipe, MomentDatePipe, MomentTimePipe, NavigationMenuItem, NgModelErrorPipe, PipeBaseService, PlatformService, PrettifyPipe, QuestionEvent, QuestionManager, QuestionMode, ResizeDirective, ResizeManager, RouterBaseService, SanitizePipe, ScrollCheckDirective, ScrollDirective, SelectListItem, SelectListItems, SelectOnFocusDirective, StartCasePipe, THEME_OPTIONS, ThemeAssetBackgroundDirective, ThemeAssetDirective, ThemeAssetIconDirective, ThemeAssetImageDirective, ThemeModule, ThemeStyleDirective, ThemeStyleHoverDirective, ThemeToggleDirective, TimePipe, TransportLazy, TransportLazyModule, TransportLazyModuleLoadedEvent, TruncatePipe, UserBaseService, UserBaseServiceEvent, VIModule, VI_ANGULAR_OPTIONS, ViewUtil, WINDOW_CONTENT_CONTAINER, WindowAlign, WindowBase, WindowClosedError, WindowEvent, cookieServiceFactory, initializerFactory, languageServiceFactory, loggerServiceFactory, nativeWindowServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
6443
|
+
export { APPLICATION_INJECTOR, ApplicationBaseComponent, ApplicationComponent, AspectRatioResizeDirective, AssetBackgroundDirective, AssetBackgroundPipe, AssetFilePipe, AssetIconPipe, AssetImagePipe, AssetModule, AssetSoundPipe, AssetVideoPipe, AutoScrollBottomDirective, COOKIE_OPTIONS, CamelCasePipe, CanDeactivateGuard, ClickToCopyDirective, ClickToSelectDirective, CookieModule, CookieOptions, CookieService, Direction, FinancePipe, FocusDirective, FocusManager, FormElementAsync, FormElementSync, HTMLContentTitleDirective, HTMLTitleDirective, IUser, IVIOptions, IWindow, IWindowContent, InfiniteScrollDirective, IsBrowserDirective, IsServerDirective, LANGUAGE_OPTIONS, LanguageDirective, LanguageHasDirective, LanguageModule, LanguagePipe, LanguagePipeHas, LanguagePipeHasPure, LanguagePipePure, LanguageRequireResolver, LanguageResolver, LazyModuleLoader, ListItem, ListItems, LoginBaseService, LoginBaseServiceEvent, LoginGuard, LoginIfCanGuard, LoginNotGuard, LoginRequireResolver, LoginResolver, MenuItem, MenuItemBase, MenuItems, MessageBaseComponent, MomentDateAdaptivePipe, MomentDateFromNowPipe, MomentDatePipe, MomentTimePipe, NavigationMenuItem, NgModelErrorPipe, PipeBaseService, PlatformService, PrettifyPipe, QuestionEvent, QuestionManager, QuestionMode, ResizeDirective, ResizeManager, RouterBaseService, SanitizePipe, ScrollCheckDirective, ScrollDirective, SelectListItem, SelectListItems, SelectOnFocusDirective, StartCasePipe, THEME_OPTIONS, ThemeAssetBackgroundDirective, ThemeAssetDirective, ThemeAssetIconDirective, ThemeAssetImageDirective, ThemeModule, ThemeStyleDirective, ThemeStyleHoverDirective, ThemeToggleDirective, TimePipe, TransportLazy, TransportLazyModule, TransportLazyModuleLoadedEvent, TruncatePipe, UserBaseService, UserBaseServiceEvent, VIModule, VI_ANGULAR_OPTIONS, ViewUtil, WINDOW_CONTENT_CONTAINER, WindowAlign, WindowBase, WindowClosedError, WindowConfig, WindowEvent, cookieServiceFactory, initializerFactory, languageServiceFactory, loggerServiceFactory, nativeWindowServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
6250
6444
|
//# sourceMappingURL=ts-core-angular.mjs.map
|