iptdevs-design-system 2.7.113 → 2.7.115
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/lib/cod/logic/calculate-quotes.service.mjs +2 -3
- package/esm2020/lib/cod/logic/local-storage-cod.service.mjs +22 -11
- package/fesm2015/iptdevs-design-system.mjs +22 -12
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +22 -12
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/logic/local-storage-cod.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2226,28 +2226,39 @@ class LocalStorageCODService {
|
|
|
2226
2226
|
constructor() { }
|
|
2227
2227
|
getCodFormData(step, control) {
|
|
2228
2228
|
if (step === 1)
|
|
2229
|
-
return
|
|
2229
|
+
return localStorage.getItem(`COD FORM - step1(${control})`);
|
|
2230
2230
|
if (step === 2)
|
|
2231
|
-
return
|
|
2231
|
+
return localStorage.getItem(`COD FORM - step2(${control})`);
|
|
2232
2232
|
if (step === 3)
|
|
2233
|
-
return
|
|
2233
|
+
return localStorage.getItem(`COD FORM - step3(${control})`);
|
|
2234
2234
|
if (step === 4)
|
|
2235
|
-
return
|
|
2235
|
+
return localStorage.getItem(`COD FORM - step4(${control})`);
|
|
2236
2236
|
if (step === 5)
|
|
2237
|
-
return
|
|
2237
|
+
return localStorage.getItem(`COD FORM - step5(${control})`);
|
|
2238
2238
|
return null;
|
|
2239
2239
|
}
|
|
2240
2240
|
setCodFormData(step, control, value) {
|
|
2241
2241
|
if (step === 1)
|
|
2242
|
-
|
|
2242
|
+
localStorage.setItem(`COD FORM - step1(${control})`, value);
|
|
2243
2243
|
if (step === 2)
|
|
2244
|
-
|
|
2244
|
+
localStorage.setItem(`COD FORM - step2(${control})`, value);
|
|
2245
2245
|
if (step === 3)
|
|
2246
|
-
|
|
2246
|
+
localStorage.setItem(`COD FORM - step3(${control})`, value);
|
|
2247
2247
|
if (step === 4)
|
|
2248
|
-
|
|
2248
|
+
localStorage.setItem(`COD FORM - step4(${control})`, value);
|
|
2249
2249
|
if (step === 5)
|
|
2250
|
-
|
|
2250
|
+
localStorage.setItem(`COD FORM - step5(${control})`, value);
|
|
2251
|
+
}
|
|
2252
|
+
clearData() {
|
|
2253
|
+
let keySessionUser = '606a7d4e73650b75ebb06972e77d6cc4';
|
|
2254
|
+
let sessionUser = localStorage.getItem(keySessionUser);
|
|
2255
|
+
localStorage.clear();
|
|
2256
|
+
if (sessionUser !== null) {
|
|
2257
|
+
localStorage.setItem(keySessionUser, sessionUser);
|
|
2258
|
+
}
|
|
2259
|
+
else {
|
|
2260
|
+
console.log('raro que no haya sesion');
|
|
2261
|
+
}
|
|
2251
2262
|
}
|
|
2252
2263
|
}
|
|
2253
2264
|
LocalStorageCODService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: LocalStorageCODService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -3464,8 +3475,7 @@ class CalculateQuotesService {
|
|
|
3464
3475
|
let oneDayMilis = 1000 * 3600 * 24;
|
|
3465
3476
|
let plusMonthDate = new Date(originDate.getFullYear(), originDate.getMonth() + 1, originDate.getDate());
|
|
3466
3477
|
while (plusMonthDate.getDay() === 0) {
|
|
3467
|
-
|
|
3468
|
-
plusMonthDate = new Date(iterationDate);
|
|
3478
|
+
plusMonthDate.setMilliseconds(originDate.getMilliseconds() + oneDayMilis);
|
|
3469
3479
|
}
|
|
3470
3480
|
return plusMonthDate;
|
|
3471
3481
|
}
|