@ts-core/angular 13.1.8 → 13.1.11
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 +2 -0
- package/component/cdk-table/cell/CdkTableCellValuePipe.d.ts +3 -4
- package/esm2020/VICommonModule.mjs +6 -1
- package/esm2020/component/cdk-table/cell/CdkTableCellValuePipe.mjs +14 -17
- package/esm2020/language/LanguagePipe.mjs +21 -14
- package/fesm2015/ts-core-angular.mjs +39 -31
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +39 -31
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/language/LanguagePipe.d.ts +7 -6
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import numeral from 'numeral';
|
|
|
10
10
|
import * as i1 from '@angular/material/dialog';
|
|
11
11
|
import { MatDialogConfig, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
12
12
|
import * as i4 from '@angular/common';
|
|
13
|
-
import { CommonModule, DatePipe } from '@angular/common';
|
|
13
|
+
import { CommonModule, DOCUMENT, DatePipe } from '@angular/common';
|
|
14
14
|
import * as i5 from '@angular/forms';
|
|
15
15
|
import { FormsModule, Validators } from '@angular/forms';
|
|
16
16
|
import * as Cookie from 'ngx-cookie';
|
|
@@ -2571,18 +2571,20 @@ class LanguagePipe extends DestroyableContainer {
|
|
|
2571
2571
|
// Constructor
|
|
2572
2572
|
//
|
|
2573
2573
|
// --------------------------------------------------------------------------
|
|
2574
|
-
constructor(language) {
|
|
2574
|
+
constructor(detection, language) {
|
|
2575
2575
|
super();
|
|
2576
|
+
this.detection = detection;
|
|
2576
2577
|
this.language = language;
|
|
2577
2578
|
// --------------------------------------------------------------------------
|
|
2578
2579
|
//
|
|
2579
2580
|
// Private Methods
|
|
2580
2581
|
//
|
|
2581
2582
|
// --------------------------------------------------------------------------
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2583
|
+
this.lastValueUpdate = () => {
|
|
2584
|
+
this.lastValue = this.language.translate(this.lastKey, this.lastParams);
|
|
2585
|
+
this.detection.markForCheck();
|
|
2584
2586
|
};
|
|
2585
|
-
language.completed.pipe(takeUntil(this.destroyed)).subscribe(this.
|
|
2587
|
+
language.completed.pipe(takeUntil(this.destroyed)).subscribe(this.lastValueUpdate);
|
|
2586
2588
|
}
|
|
2587
2589
|
// --------------------------------------------------------------------------
|
|
2588
2590
|
//
|
|
@@ -2603,12 +2605,15 @@ class LanguagePipe extends DestroyableContainer {
|
|
|
2603
2605
|
//
|
|
2604
2606
|
// --------------------------------------------------------------------------
|
|
2605
2607
|
transform(key, params) {
|
|
2606
|
-
this.
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2608
|
+
if (key === this.lastKey) {
|
|
2609
|
+
if (params === this.lastParams || (_.isNil(params) && _.isNil(this.lastParams))) {
|
|
2610
|
+
return this.lastValue;
|
|
2611
|
+
}
|
|
2610
2612
|
}
|
|
2611
|
-
|
|
2613
|
+
this.lastKey = key;
|
|
2614
|
+
this.lastParams = params;
|
|
2615
|
+
this.lastValueUpdate();
|
|
2616
|
+
return this.lastValue;
|
|
2612
2617
|
}
|
|
2613
2618
|
destroy() {
|
|
2614
2619
|
if (this.isDestroyed) {
|
|
@@ -2616,11 +2621,13 @@ class LanguagePipe extends DestroyableContainer {
|
|
|
2616
2621
|
}
|
|
2617
2622
|
super.destroy();
|
|
2618
2623
|
this.language = null;
|
|
2619
|
-
this.
|
|
2620
|
-
this.
|
|
2624
|
+
this.detection = null;
|
|
2625
|
+
this.lastKey = null;
|
|
2626
|
+
this.lastParams = null;
|
|
2627
|
+
this.lastValue = null;
|
|
2621
2628
|
}
|
|
2622
2629
|
}
|
|
2623
|
-
LanguagePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LanguagePipe, deps: [{ token: i1$1.LanguageService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2630
|
+
LanguagePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LanguagePipe, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.LanguageService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2624
2631
|
LanguagePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LanguagePipe, name: "viTranslate", pure: false });
|
|
2625
2632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LanguagePipe, decorators: [{
|
|
2626
2633
|
type: Pipe,
|
|
@@ -2628,7 +2635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2628
2635
|
name: 'viTranslate',
|
|
2629
2636
|
pure: false
|
|
2630
2637
|
}]
|
|
2631
|
-
}], ctorParameters: function () { return [{ type: i1$1.LanguageService }]; } });
|
|
2638
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.LanguageService }]; } });
|
|
2632
2639
|
|
|
2633
2640
|
class HTMLTitleDirective extends Destroyable {
|
|
2634
2641
|
// --------------------------------------------------------------------------
|
|
@@ -7079,6 +7086,7 @@ class VICommonModule {
|
|
|
7079
7086
|
NativeWindowService,
|
|
7080
7087
|
{ provide: VI_ANGULAR_OPTIONS, useValue: options || {} },
|
|
7081
7088
|
{ provide: Logger, deps: [VI_ANGULAR_OPTIONS], useFactory: loggerServiceFactory },
|
|
7089
|
+
{ provide: NativeWindowService, deps: [DOCUMENT], useFactory: nativeWindowServiceFactory },
|
|
7082
7090
|
...WindowModule.forRoot().providers,
|
|
7083
7091
|
...BottomSheetModule.forRoot().providers,
|
|
7084
7092
|
...NotificationModule.forRoot().providers,
|
|
@@ -7153,6 +7161,9 @@ class IVICommonOptions extends ICookieOptions {
|
|
|
7153
7161
|
function loggerServiceFactory(options) {
|
|
7154
7162
|
return new DefaultLogger(!_.isNil(options.loggerLevel) ? options.loggerLevel : LoggerLevel.LOG);
|
|
7155
7163
|
}
|
|
7164
|
+
function nativeWindowServiceFactory(document) {
|
|
7165
|
+
return new NativeWindowService(document);
|
|
7166
|
+
}
|
|
7156
7167
|
const VI_ANGULAR_OPTIONS = new InjectionToken(`VI_ANGULAR_OPTIONS`);
|
|
7157
7168
|
|
|
7158
7169
|
class LanguageSelectorComponent extends DestroyableContainer {
|
|
@@ -7725,10 +7736,9 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7725
7736
|
// Constructor
|
|
7726
7737
|
//
|
|
7727
7738
|
// --------------------------------------------------------------------------
|
|
7728
|
-
constructor(detection
|
|
7739
|
+
constructor(detection) {
|
|
7729
7740
|
super();
|
|
7730
7741
|
this.detection = detection;
|
|
7731
|
-
this.ngZone = ngZone;
|
|
7732
7742
|
}
|
|
7733
7743
|
// --------------------------------------------------------------------------
|
|
7734
7744
|
//
|
|
@@ -7737,35 +7747,33 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7737
7747
|
// --------------------------------------------------------------------------
|
|
7738
7748
|
transform(item, column) {
|
|
7739
7749
|
if (item === this.lastItem && column === this.lastColumn) {
|
|
7740
|
-
return this.
|
|
7750
|
+
return this.lastValue;
|
|
7741
7751
|
}
|
|
7742
|
-
this.formattedValue = CdkTableCellValuePipe.PENDING_SYMBOL;
|
|
7743
7752
|
if (_.isNil(column.format)) {
|
|
7744
|
-
this.
|
|
7745
|
-
return this.
|
|
7753
|
+
this.lastValue = item[column.name];
|
|
7754
|
+
return this.lastValue;
|
|
7746
7755
|
}
|
|
7747
7756
|
this.lastItem = item;
|
|
7748
7757
|
this.lastColumn = column;
|
|
7758
|
+
this.lastValue = CdkTableCellValuePipe.PENDING_SYMBOL;
|
|
7749
7759
|
let result = column.format(item, column);
|
|
7750
7760
|
if (!(result instanceof Promise)) {
|
|
7751
|
-
this.
|
|
7752
|
-
return this.
|
|
7761
|
+
this.lastValue = result;
|
|
7762
|
+
return this.lastValue;
|
|
7753
7763
|
}
|
|
7754
7764
|
result
|
|
7755
7765
|
.then(item => {
|
|
7756
|
-
|
|
7757
|
-
this.formattedValue = item;
|
|
7758
|
-
}
|
|
7766
|
+
this.lastValue = item;
|
|
7759
7767
|
})
|
|
7760
7768
|
.catch(error => {
|
|
7761
|
-
this.
|
|
7769
|
+
this.lastValue = CdkTableCellValuePipe.ERROR_SYMBOL;
|
|
7762
7770
|
})
|
|
7763
7771
|
.finally(() => {
|
|
7764
7772
|
if (!_.isNil(this.detection)) {
|
|
7765
7773
|
this.detection.markForCheck();
|
|
7766
7774
|
}
|
|
7767
7775
|
});
|
|
7768
|
-
return this.
|
|
7776
|
+
return this.lastValue;
|
|
7769
7777
|
}
|
|
7770
7778
|
destroy() {
|
|
7771
7779
|
if (this.isDestroyed) {
|
|
@@ -7775,7 +7783,7 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7775
7783
|
this.detection = null;
|
|
7776
7784
|
this.lastItem = null;
|
|
7777
7785
|
this.lastColumn = null;
|
|
7778
|
-
this.
|
|
7786
|
+
this.lastValue = null;
|
|
7779
7787
|
}
|
|
7780
7788
|
}
|
|
7781
7789
|
// --------------------------------------------------------------------------
|
|
@@ -7785,7 +7793,7 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7785
7793
|
// --------------------------------------------------------------------------
|
|
7786
7794
|
CdkTableCellValuePipe.ERROR_SYMBOL = 'x';
|
|
7787
7795
|
CdkTableCellValuePipe.PENDING_SYMBOL = '⧗';
|
|
7788
|
-
CdkTableCellValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, deps: [{ token: i0.ChangeDetectorRef }
|
|
7796
|
+
CdkTableCellValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7789
7797
|
CdkTableCellValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, name: "viCdkTableCellValue", pure: false });
|
|
7790
7798
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, decorators: [{
|
|
7791
7799
|
type: Pipe,
|
|
@@ -7793,7 +7801,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7793
7801
|
name: 'viCdkTableCellValue',
|
|
7794
7802
|
pure: false
|
|
7795
7803
|
}]
|
|
7796
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }
|
|
7804
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
7797
7805
|
|
|
7798
7806
|
class CdkTableCellValuePipePure {
|
|
7799
7807
|
// --------------------------------------------------------------------------
|
|
@@ -10031,5 +10039,5 @@ class TransportLazyModule {
|
|
|
10031
10039
|
* Generated bundle index. Do not edit.
|
|
10032
10040
|
*/
|
|
10033
10041
|
|
|
10034
|
-
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, 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, 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 };
|
|
10042
|
+
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, 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, 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, nativeWindowServiceFactory, notificationServiceFactory, themeAssetServiceFactory, themeServiceFactory };
|
|
10035
10043
|
//# sourceMappingURL=ts-core-angular.mjs.map
|