akpm-datapoint-front 0.0.52 → 0.0.53
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 +5 -6
- package/package.json +1 -1
package/CDN/dp-component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.0.
|
|
1
|
+
/* Version: 0.0.53 */
|
|
2
2
|
var Mc = Object.defineProperty;
|
|
3
3
|
var ao = (r) => {
|
|
4
4
|
throw TypeError(r);
|
|
@@ -4174,7 +4174,7 @@ const Jr = (r) => {
|
|
|
4174
4174
|
})).json()).result;
|
|
4175
4175
|
const o = {};
|
|
4176
4176
|
return n.forEach((u) => {
|
|
4177
|
-
(u.data_assunzione ? new Date(u.data_assunzione) : /* @__PURE__ */ new Date(0)) <= new Date(t, 11, 31) && (!u.data_terminazione || new Date(u.data_terminazione) >= new Date(t, 0, 1)) && (o[u.
|
|
4177
|
+
(u.data_assunzione ? new Date(u.data_assunzione) : /* @__PURE__ */ new Date(0)) <= new Date(t, 11, 31) && (!u.data_terminazione || new Date(u.data_terminazione) >= new Date(t, 0, 1)) && (console.log("DEBUG: Dipendente", u), o[u.id_sede_lavoratori] ? o[u.id_sede_lavoratori]++ : u.id_sede_lavoratori ? o[u.id_sede_lavoratori] = 1 : o[0] = (o[0] || 0) + 1);
|
|
4178
4178
|
}), console.log("DEBUG: Dipendenti per sede", o), o;
|
|
4179
4179
|
};
|
|
4180
4180
|
var uu = /* @__PURE__ */ Y('<div class="text-center"><div class="spinner-border" role="status"><span class="visually-hidden">Loading...</span></div></div>'), mu = /* @__PURE__ */ Y('<tr class="align-middle fs-6 svelte-1drr7ra"><td class="svelte-1drr7ra"></td><td class="svelte-1drr7ra"><input class="form-control form-control-sm" type="text"></td><td class="svelte-1drr7ra"><input class="form-control form-control-sm" type="text"></td><td class="svelte-1drr7ra"><input class="form-control form-control-sm" type="text"></td><td class="svelte-1drr7ra"><input class="form-control form-control-sm" type="text"></td><td class="svelte-1drr7ra"><input class="form-control form-control-sm" type="number"></td><td class="svelte-1drr7ra"><input class="form-control form-control-sm" type="number"></td></tr>'), hu = (r, e) => window.location.href = e, fu = /* @__PURE__ */ Y('<div><table class="table table-bordered" style="min-width: min-content;"><thead class="text-uppercase svelte-1drr7ra"><tr class="text-center svelte-1drr7ra"><th scope="col" class="svelte-1drr7ra">Nr.</th><th scope="col" class="svelte-1drr7ra">Sito Impresa</th><th scope="col" class="svelte-1drr7ra">Indirizzo</th><th scope="col" class="svelte-1drr7ra">Coordinate</th><th scope="col" class="svelte-1drr7ra">Codice NACE</th><th scope="col" class="svelte-1drr7ra">Fatturato</th><th scope="col" class="svelte-1drr7ra">Dipendenti n.</th></tr></thead><tbody class="svelte-1drr7ra"></tbody></table></div> <div><button class="btn btn-primary mb-2"><i class="fa-solid fa-up-right-from-square"></i> Inserisci informazioni</button> <button class="btn btn-primary mb-2"><i class="fa-solid fa-arrows-rotate"></i> <span class="d-none d-md-inline ps-2">Aggiorna</span></button></div>', 1);
|
|
@@ -4205,10 +4205,9 @@ function Z0(r, e) {
|
|
|
4205
4205
|
let E = A(q.indirizzo);
|
|
4206
4206
|
q.indirizzo = E.indirizzo, q.civico = E.civico, q.indirizzo_completo = `${q.indirizzo}, ${q.civico}, ${q.cap}, ${q.provincia}, ${q.comune}, ${q.nazione_descrizione}`, q.nace = m(a(x).descrizione_codice_ateco.split("-")[0]);
|
|
4207
4207
|
}
|
|
4208
|
-
M(g, Q(await vu(t, l, n()))),
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
))), M(k, !1);
|
|
4208
|
+
M(g, Q(await vu(t, l, n()))), Object.entries(a(g)).forEach(([q, E]) => {
|
|
4209
|
+
q === "0" && a(x).id_sede_legale && (a(g)[a(x).id_sede_legale] += E);
|
|
4210
|
+
}), delete a(g)[0], M(k, !1);
|
|
4212
4211
|
}, z = () => {
|
|
4213
4212
|
o().data != null ? (M(y, Q(o().data.sedi)), M(x, Q(o().data.anagrafica)), M(g, Q(o().data.dipendenti)), M(k, !1)) : p();
|
|
4214
4213
|
};
|