mantenimento-app 2.4.11 → 2.4.13

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/app.js CHANGED
@@ -293,7 +293,7 @@ const defaultExpenseItems = [
293
293
  firstHomeLocativeValueHint: "Valore locativo mensile della casa assegnata, usato per valorizzare il beneficio economico implicito.",
294
294
  firstHomeMortgageAmountLabel: "Rata mutuo mensile ({currency})",
295
295
  firstHomeMortgageAmountHint: "Importo mensile complessivo della rata del mutuo prima casa.",
296
- firstHomeMortgageExpiryLabel: "Scadenza mutuo",
296
+ firstHomeMortgageExpiryLabel: "Scadenza",
297
297
  firstHomeMortgageExpiryHint: "Data prevista di estinzione del mutuo prima casa.",
298
298
  firstHomeAssignedToLabel: "Casa assegnata a",
299
299
  firstHomeAssignedToHint: "Seleziona il coniuge a cui e ceduta la prima casa.",
@@ -317,7 +317,7 @@ const defaultExpenseItems = [
317
317
  pdfPrimaryHomeNotDeclared: "Non dichiarato",
318
318
  pdfPrimaryHomeAssignedTo: "Assegnata a",
319
319
  pdfPrimaryHomeMonthlyAmount: "Rata mensile",
320
- pdfPrimaryHomeExpiryDate: "Scadenza mutuo",
320
+ pdfPrimaryHomeExpiryDate: "Scadenza",
321
321
  pdfPrimaryHomeSplit: "Ripartizione mutuo",
322
322
  pdfPrimaryHomeAppliedOnlyColl: "Considerato solo se casa ceduta al collocatario.",
323
323
  pdfExtraordinaryRow: "Spese straordinarie (quota mensile da annuo)",
@@ -664,7 +664,7 @@ const defaultExpenseItems = [
664
664
  firstHomeLocativeValueHint: "Monthly rental value of the assigned home, used to value the implicit economic benefit.",
665
665
  firstHomeMortgageAmountLabel: "Monthly mortgage payment ({currency})",
666
666
  firstHomeMortgageAmountHint: "Total monthly amount of the primary-home mortgage payment.",
667
- firstHomeMortgageExpiryLabel: "Mortgage expiry date",
667
+ firstHomeMortgageExpiryLabel: "Expiry",
668
668
  firstHomeMortgageExpiryHint: "Expected payoff date of the primary-home mortgage.",
669
669
  firstHomeAssignedToLabel: "Home assigned to",
670
670
  firstHomeAssignedToHint: "Select which spouse receives assignment of the primary home.",
@@ -688,7 +688,7 @@ const defaultExpenseItems = [
688
688
  pdfPrimaryHomeNotDeclared: "Not declared",
689
689
  pdfPrimaryHomeAssignedTo: "Assigned to",
690
690
  pdfPrimaryHomeMonthlyAmount: "Monthly payment",
691
- pdfPrimaryHomeExpiryDate: "Mortgage expiry date",
691
+ pdfPrimaryHomeExpiryDate: "Expiry",
692
692
  pdfPrimaryHomeSplit: "Mortgage split",
693
693
  pdfPrimaryHomeAppliedOnlyColl: "Counted only when the home is assigned to the custodial parent.",
694
694
  pdfExtraordinaryRow: "Extraordinary expenses (monthly share from yearly)",
@@ -374,10 +374,15 @@
374
374
  </span>
375
375
  </th>
376
376
  <th>
377
- <span class="label-row"><span id="lblPrimaCasaMutuoScadenza">Scadenza mutuo</span>
377
+ <span class="label-row"><span id="lblPrimaCasaMutuoScadenza">Scadenza</span>
378
378
  <span class="hint" id="hintPrimaCasaMutuoScadenza" title="Data prevista di estinzione del mutuo prima casa.">i</span>
379
379
  </span>
380
380
  </th>
381
+ <th>
382
+ <span class="label-row"><span id="lblPrimaCasaAssegnataA">Casa assegnata a</span>
383
+ <span class="hint" id="hintPrimaCasaAssegnataA" title="Seleziona il coniuge a cui e ceduta la prima casa.">i</span>
384
+ </span>
385
+ </th>
381
386
  </tr>
382
387
  </thead>
383
388
  <tbody>
@@ -385,21 +390,18 @@
385
390
  <td><input id="primaCasaValoreLocativo" type="number" min="0" step="50" value="1000" /></td>
386
391
  <td><input id="primaCasaMutuoImporto" type="number" min="0" step="50" value="0" /></td>
387
392
  <td><input id="primaCasaMutuoScadenza" type="date" value="" /></td>
393
+ <td>
394
+ <select id="primaCasaAssegnataA">
395
+ <option value="">Nessuna cessione</option>
396
+ <option value="1" selected>Coniuge 1</option>
397
+ <option value="2">Coniuge 2</option>
398
+ </select>
399
+ </td>
388
400
  </tr>
389
401
  </tbody>
390
402
  </table>
391
403
  </div>
392
404
  </div>
393
- <div class="field">
394
- <label for="primaCasaAssegnataA" class="label-row"><span id="lblPrimaCasaAssegnataA">Casa assegnata a</span>
395
- <span class="hint" id="hintPrimaCasaAssegnataA" title="Seleziona il coniuge a cui e ceduta la prima casa.">i</span>
396
- </label>
397
- <select id="primaCasaAssegnataA">
398
- <option value="">Nessuna cessione</option>
399
- <option value="1" selected>Coniuge 1</option>
400
- <option value="2">Coniuge 2</option>
401
- </select>
402
- </div>
403
405
  <div class="field first-home-split-field">
404
406
  <label for="primaCasaMutuoPerc1" class="label-row"><span id="lblPrimaCasaMutuoPerc1">Quota mutuo a carico</span>
405
407
  <span class="hint" id="hintPrimaCasaMutuoPerc1" title="Percentuale della rata mutuo pagata da ciascun Coniuge.">i</span>
@@ -650,7 +652,7 @@
650
652
  <script src="supabase.min.js"></script>
651
653
  <script src="fabric.min.js"></script>
652
654
  <script src="html2pdf.bundle.min.js"></script>
653
- <script src="app.js?v=2.4.11"></script>
655
+ <script src="app.js?v=2.4.13"></script>
654
656
  </body>
655
657
  </html>
656
658
 
@@ -954,28 +954,55 @@
954
954
  }
955
955
 
956
956
  .first-home-mortgage-table-wrap {
957
- overflow-x: auto;
957
+ overflow-x: visible;
958
958
  padding-bottom: 2px;
959
959
  }
960
960
 
961
961
  .first-home-mortgage-table {
962
962
  width: 100%;
963
- min-width: 560px;
964
- border-collapse: separate;
965
- border-spacing: 6px;
963
+ min-width: 0;
964
+ border-collapse: collapse;
966
965
  table-layout: fixed;
966
+ border: 1px solid rgba(27, 141, 127, 0.16);
967
+ border-radius: 12px;
968
+ overflow: hidden;
969
+ background: rgba(255, 255, 255, 0.55);
967
970
  }
968
971
 
969
972
  .first-home-mortgage-table th {
970
973
  text-align: left;
971
- font-size: 0.8rem;
974
+ font-size: 0.68rem;
972
975
  color: #2a5954;
973
976
  font-weight: 800;
974
- padding: 0 2px;
977
+ padding: 7px 8px 6px;
978
+ background: linear-gradient(180deg, rgba(232, 246, 243, 0.95), rgba(242, 249, 247, 0.92));
979
+ border-bottom: 1px solid rgba(27, 141, 127, 0.12);
975
980
  }
976
981
 
977
982
  .first-home-mortgage-table td {
978
- padding: 0;
983
+ padding: 7px;
984
+ border-top: 1px solid rgba(27, 141, 127, 0.08);
985
+ }
986
+
987
+ .first-home-mortgage-table th + th,
988
+ .first-home-mortgage-table td + td {
989
+ border-left: 1px solid rgba(27, 141, 127, 0.08);
990
+ }
991
+
992
+ .first-home-mortgage-table .label-row {
993
+ display: flex;
994
+ align-items: center;
995
+ gap: 5px;
996
+ flex-wrap: wrap;
997
+ line-height: 1.15;
998
+ }
999
+
1000
+ .first-home-mortgage-table input {
1001
+ width: 100%;
1002
+ }
1003
+
1004
+ .first-home-mortgage-table select {
1005
+ width: 100%;
979
1006
  }
980
1007
 
981
1008
  .extra-box-first-home .field {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantenimento-app",
3
- "version": "2.4.11",
3
+ "version": "2.4.13",
4
4
  "description": "Frontend + backend architecture for the mantenimento calculator",
5
5
  "type": "commonjs",
6
6
  "main": "backend/calculate-model.js",