akpm-datapoint-front 0.0.60 → 0.0.62
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/CDN/dp-component.js +7 -2
- package/package.json +1 -1
package/CDN/dp-component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.0.
|
|
1
|
+
/* Version: 0.0.62 */
|
|
2
2
|
var Pc = Object.defineProperty;
|
|
3
3
|
var to = (r) => {
|
|
4
4
|
throw TypeError(r);
|
|
@@ -3373,6 +3373,7 @@ const $v = (r) => {
|
|
|
3373
3373
|
let t;
|
|
3374
3374
|
return r ? t = await e.refreshData("anagrafica_indirizzi") : t = await e.getData("anagrafica_indirizzi"), t.result;
|
|
3375
3375
|
}, eu = (r, e) => {
|
|
3376
|
+
console.log("DEBUG: Dipendenti", r);
|
|
3376
3377
|
let t = new Date(e, 11, 31);
|
|
3377
3378
|
const l = {
|
|
3378
3379
|
contratto_indeterminato: {
|
|
@@ -3395,7 +3396,11 @@ const $v = (r) => {
|
|
|
3395
3396
|
}
|
|
3396
3397
|
};
|
|
3397
3398
|
return r.forEach((i) => {
|
|
3398
|
-
(i.data_terminazione && new Date(i.data_terminazione) >= t || !i.data_terminazione)
|
|
3399
|
+
if (i.data_terminazione && new Date(i.data_terminazione) >= t || !i.data_terminazione) {
|
|
3400
|
+
const s = i.data_assunzione ? new Date(i.data_assunzione) : /* @__PURE__ */ new Date(0);
|
|
3401
|
+
let n = i.id_genere ?? i.id_sesso;
|
|
3402
|
+
s <= t && (i.id_contratti_durata ? i.id_contratti_durata === 1 ? n ? n === 1 ? l.contratto_determinato.maschio++ : n === 2 ? l.contratto_determinato.femmina++ : l.contratto_determinato.altro++ : l.contratto_determinato.non_segnalato++ : i.id_contratti_durata === 2 && (n ? n === 1 ? l.contratto_indeterminato.maschio++ : n === 2 ? l.contratto_indeterminato.femmina++ : l.contratto_indeterminato.altro++ : l.contratto_indeterminato.non_segnalato++) : n ? n === 1 ? l.non_segnalato.maschio++ : n === 2 ? l.non_segnalato.femmina++ : l.non_segnalato.altro++ : l.non_segnalato.non_segnalato++);
|
|
3403
|
+
}
|
|
3399
3404
|
}), l;
|
|
3400
3405
|
}, G0 = async (r, e) => {
|
|
3401
3406
|
const t = Jt.getInstance();
|