@esfaenza/core 19.2.149 → 19.2.150
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/components/user_infos/user_infos.component.d.ts +7 -2
- package/fesm2022/esfaenza-core-components.mjs +20 -11
- package/fesm2022/esfaenza-core-components.mjs.map +1 -1
- package/fesm2022/esfaenza-core-services.mjs +6 -5
- package/fesm2022/esfaenza-core-services.mjs.map +1 -1
- package/fesm2022/esfaenza-core.mjs +15 -11
- package/fesm2022/esfaenza-core.mjs.map +1 -1
- package/lib/app.component.d.ts +0 -1
- package/package.json +5 -5
- package/services/classes/app.state.d.ts +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Optional, Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { Optional, Inject, Injectable, signal } from '@angular/core';
|
|
3
3
|
import { JaceIdentity, USE_FAKE_ACCESS_TOKEN, ANONYMOUS_MODE, ActiveModuleView, UpdateProfilePictureDto, UpdateAccountRecoverySettingsDto, UpdatePasswordDto } from '@esfaenza/core/domain';
|
|
4
4
|
import * as i1 from 'ngx-cookie-service';
|
|
5
5
|
import { of, Subject, filter, firstValueFrom } from 'rxjs';
|
|
@@ -1180,10 +1180,11 @@ class AppState {
|
|
|
1180
1180
|
this.emb = emb;
|
|
1181
1181
|
this.fakeToken = fakeToken;
|
|
1182
1182
|
this.anonymousMode = anonymousMode;
|
|
1183
|
+
this.graphicEffects = signal(true);
|
|
1183
1184
|
this.redirectingToLogin = false;
|
|
1184
1185
|
this.handlingError = false;
|
|
1185
|
-
this.christmasTime = false;
|
|
1186
|
-
this.halloweenTime = false;
|
|
1186
|
+
this.christmasTime = signal(false);
|
|
1187
|
+
this.halloweenTime = signal(false);
|
|
1187
1188
|
this.jobsInProgress = 0;
|
|
1188
1189
|
this.allJobs = [];
|
|
1189
1190
|
this.jobWithIdsCache = {};
|
|
@@ -1201,11 +1202,11 @@ class AppState {
|
|
|
1201
1202
|
var thisYear = today.year();
|
|
1202
1203
|
var lowerBound = dayjs("18/12/" + thisYear, "DD/MM/YYYY");
|
|
1203
1204
|
var upperBound = dayjs("07/01/" + (thisYear + 1), "DD/MM/YYYY");
|
|
1204
|
-
this.christmasTime
|
|
1205
|
+
this.christmasTime.set(today > lowerBound && today < upperBound);
|
|
1205
1206
|
//Decide se siamo attorno ad halloween
|
|
1206
1207
|
var lowerBound = dayjs("28/10/" + thisYear, "DD/MM/YYYY");
|
|
1207
1208
|
var upperBound = dayjs("05/11/" + thisYear, "DD/MM/YYYY");
|
|
1208
|
-
this.halloweenTime
|
|
1209
|
+
this.halloweenTime.set(today > lowerBound && today < upperBound);
|
|
1209
1210
|
this.intercom.inbounds.subscribe((t) => { this.handleInboundMessage(t); });
|
|
1210
1211
|
}
|
|
1211
1212
|
getActiveJaceModules() {
|