@ts-core/angular 15.0.39 → 15.0.41
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/VIModule.mjs +2 -2
- package/esm2020/asset/AssetModule.mjs +4 -3
- package/esm2020/language/LanguageModule.mjs +5 -4
- package/esm2020/notification/NotificationService.mjs +1 -1
- package/esm2020/storage/DateValueStorage.mjs +15 -2
- package/esm2020/storage/IValueStorage.mjs +1 -1
- package/esm2020/storage/ValueStorage.mjs +2 -1
- package/fesm2015/ts-core-angular.mjs +20 -5
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +20 -5
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/storage/DateValueStorage.d.ts +1 -0
- package/storage/IValueStorage.d.ts +1 -1
- package/storage/ValueStorage.d.ts +1 -1
|
@@ -1040,6 +1040,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1040
1040
|
}]
|
|
1041
1041
|
}] });
|
|
1042
1042
|
|
|
1043
|
+
let declarations$2 = [AssetBackgroundDirective, AssetImagePipe, AssetIconPipe, AssetFilePipe, AssetSoundPipe, AssetVideoPipe, AssetBackgroundPipe];
|
|
1043
1044
|
class AssetModule {
|
|
1044
1045
|
}
|
|
1045
1046
|
AssetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1049,8 +1050,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1049
1050
|
type: NgModule,
|
|
1050
1051
|
args: [{
|
|
1051
1052
|
imports: [CommonModule],
|
|
1052
|
-
|
|
1053
|
-
|
|
1053
|
+
exports: declarations$2,
|
|
1054
|
+
declarations: declarations$2
|
|
1054
1055
|
}]
|
|
1055
1056
|
}] });
|
|
1056
1057
|
|
|
@@ -2942,6 +2943,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2942
2943
|
args: ['viTranslateHasIsOnlyIfNotEmpty']
|
|
2943
2944
|
}] } });
|
|
2944
2945
|
|
|
2946
|
+
let declarations$1 = [LanguagePipe, LanguagePipePure, LanguagePipeHas, LanguagePipeHasPure, LanguageHasDirective, LanguageDirective];
|
|
2945
2947
|
class LanguageModule {
|
|
2946
2948
|
// --------------------------------------------------------------------------
|
|
2947
2949
|
//
|
|
@@ -2977,8 +2979,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2977
2979
|
type: NgModule,
|
|
2978
2980
|
args: [{
|
|
2979
2981
|
imports: [CookieModule],
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
+
exports: declarations$1,
|
|
2983
|
+
declarations: declarations$1
|
|
2982
2984
|
}]
|
|
2983
2985
|
}] });
|
|
2984
2986
|
function languageServiceFactory(cookie, options) {
|
|
@@ -3387,6 +3389,7 @@ class ValueStorage extends DestroyableContainer {
|
|
|
3387
3389
|
let item = !_.isNil(value) ? this.deserialize(value) : null;
|
|
3388
3390
|
this.cookies.put(this.name, item);
|
|
3389
3391
|
this.storage.set(this.name, item);
|
|
3392
|
+
return value;
|
|
3390
3393
|
}
|
|
3391
3394
|
destroy() {
|
|
3392
3395
|
if (this.isDestroyed) {
|
|
@@ -6454,6 +6457,15 @@ class LocalStorageService extends DestroyableContainer {
|
|
|
6454
6457
|
}
|
|
6455
6458
|
|
|
6456
6459
|
class DateValueStorage extends ValueStorage {
|
|
6460
|
+
constructor() {
|
|
6461
|
+
//--------------------------------------------------------------------------
|
|
6462
|
+
//
|
|
6463
|
+
// Public Methods
|
|
6464
|
+
//
|
|
6465
|
+
//--------------------------------------------------------------------------
|
|
6466
|
+
super(...arguments);
|
|
6467
|
+
this.defaultExpirationDelta = 0;
|
|
6468
|
+
}
|
|
6457
6469
|
//--------------------------------------------------------------------------
|
|
6458
6470
|
//
|
|
6459
6471
|
// Protected Methods
|
|
@@ -6482,7 +6494,10 @@ class DateValueStorage extends ValueStorage {
|
|
|
6482
6494
|
isExpired(item) {
|
|
6483
6495
|
return this.has() ? this.isLess(item) : true;
|
|
6484
6496
|
}
|
|
6485
|
-
isExpiredFromNow(delta
|
|
6497
|
+
isExpiredFromNow(delta) {
|
|
6498
|
+
if (_.isNil(delta)) {
|
|
6499
|
+
delta = this.defaultExpirationDelta;
|
|
6500
|
+
}
|
|
6486
6501
|
return this.isExpired(DateUtil.getDate(Date.now() + delta));
|
|
6487
6502
|
}
|
|
6488
6503
|
}
|