@ts-core/angular 13.1.9 → 13.1.12
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 -2
- package/esm2020/component/cdk-table/cell/CdkTableCellValuePipe.mjs +5 -6
- package/esm2020/language/LanguagePipe.mjs +21 -14
- package/fesm2015/ts-core-angular.mjs +30 -21
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +30 -21
- 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
|
// --------------------------------------------------------------------------
|
|
@@ -7076,9 +7083,9 @@ class VICommonModule {
|
|
|
7076
7083
|
providers: [
|
|
7077
7084
|
LoadingService,
|
|
7078
7085
|
CanDeactivateGuard,
|
|
7079
|
-
NativeWindowService,
|
|
7080
7086
|
{ provide: VI_ANGULAR_OPTIONS, useValue: options || {} },
|
|
7081
7087
|
{ provide: Logger, deps: [VI_ANGULAR_OPTIONS], useFactory: loggerServiceFactory },
|
|
7088
|
+
{ provide: NativeWindowService, deps: [DOCUMENT], useFactory: nativeWindowServiceFactory },
|
|
7082
7089
|
...WindowModule.forRoot().providers,
|
|
7083
7090
|
...BottomSheetModule.forRoot().providers,
|
|
7084
7091
|
...NotificationModule.forRoot().providers,
|
|
@@ -7153,6 +7160,9 @@ class IVICommonOptions extends ICookieOptions {
|
|
|
7153
7160
|
function loggerServiceFactory(options) {
|
|
7154
7161
|
return new DefaultLogger(!_.isNil(options.loggerLevel) ? options.loggerLevel : LoggerLevel.LOG);
|
|
7155
7162
|
}
|
|
7163
|
+
function nativeWindowServiceFactory(document) {
|
|
7164
|
+
return new NativeWindowService(document);
|
|
7165
|
+
}
|
|
7156
7166
|
const VI_ANGULAR_OPTIONS = new InjectionToken(`VI_ANGULAR_OPTIONS`);
|
|
7157
7167
|
|
|
7158
7168
|
class LanguageSelectorComponent extends DestroyableContainer {
|
|
@@ -7725,10 +7735,9 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7725
7735
|
// Constructor
|
|
7726
7736
|
//
|
|
7727
7737
|
// --------------------------------------------------------------------------
|
|
7728
|
-
constructor(detection
|
|
7738
|
+
constructor(detection) {
|
|
7729
7739
|
super();
|
|
7730
7740
|
this.detection = detection;
|
|
7731
|
-
this.ngZone = ngZone;
|
|
7732
7741
|
}
|
|
7733
7742
|
// --------------------------------------------------------------------------
|
|
7734
7743
|
//
|
|
@@ -7772,8 +7781,8 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7772
7781
|
super.destroy();
|
|
7773
7782
|
this.detection = null;
|
|
7774
7783
|
this.lastItem = null;
|
|
7775
|
-
this.lastValue = null;
|
|
7776
7784
|
this.lastColumn = null;
|
|
7785
|
+
this.lastValue = null;
|
|
7777
7786
|
}
|
|
7778
7787
|
}
|
|
7779
7788
|
// --------------------------------------------------------------------------
|
|
@@ -7783,7 +7792,7 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7783
7792
|
// --------------------------------------------------------------------------
|
|
7784
7793
|
CdkTableCellValuePipe.ERROR_SYMBOL = 'x';
|
|
7785
7794
|
CdkTableCellValuePipe.PENDING_SYMBOL = '⧗';
|
|
7786
|
-
CdkTableCellValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, deps: [{ token: i0.ChangeDetectorRef }
|
|
7795
|
+
CdkTableCellValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7787
7796
|
CdkTableCellValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, name: "viCdkTableCellValue", pure: false });
|
|
7788
7797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CdkTableCellValuePipe, decorators: [{
|
|
7789
7798
|
type: Pipe,
|
|
@@ -7791,7 +7800,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7791
7800
|
name: 'viCdkTableCellValue',
|
|
7792
7801
|
pure: false
|
|
7793
7802
|
}]
|
|
7794
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }
|
|
7803
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
7795
7804
|
|
|
7796
7805
|
class CdkTableCellValuePipePure {
|
|
7797
7806
|
// --------------------------------------------------------------------------
|
|
@@ -10029,5 +10038,5 @@ class TransportLazyModule {
|
|
|
10029
10038
|
* Generated bundle index. Do not edit.
|
|
10030
10039
|
*/
|
|
10031
10040
|
|
|
10032
|
-
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 };
|
|
10041
|
+
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 };
|
|
10033
10042
|
//# sourceMappingURL=ts-core-angular.mjs.map
|