mantenimento-app 2.4.12 → 2.4.14

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.
@@ -352,12 +352,6 @@
352
352
  <div class="extra-box-title" id="firstHomeBoxTitle">Mutuo prima casa ceduta</div>
353
353
  <div class="extra-box-note" id="firstHomeBoxNote">Dichiara se esiste un mutuo sulla prima casa dei coniugi ceduta a uno dei due: il modello considera il trasferimento implicito quando la casa e assegnata al collocatario.</div>
354
354
  <div class="extra-grid">
355
- <div class="field">
356
- <label for="primaCasaMutuoEnabled" class="label-row"><span id="lblPrimaCasaMutuoEnabled">Mutuo su prima casa dei coniugi</span>
357
- <span class="hint" id="hintPrimaCasaMutuoEnabled" title="Attiva per includere il mutuo della prima casa ceduta nei benefici compensativi.">i</span>
358
- </label>
359
- <input id="primaCasaMutuoEnabled" type="checkbox" />
360
- </div>
361
355
  <div class="field first-home-mortgage-table-field">
362
356
  <div class="first-home-mortgage-table-wrap">
363
357
  <table class="first-home-mortgage-table" aria-label="Dati mutuo prima casa">
@@ -378,6 +372,16 @@
378
372
  <span class="hint" id="hintPrimaCasaMutuoScadenza" title="Data prevista di estinzione del mutuo prima casa.">i</span>
379
373
  </span>
380
374
  </th>
375
+ <th>
376
+ <span class="label-row"><span id="lblPrimaCasaAssegnataA">Casa assegnata a</span>
377
+ <span class="hint" id="hintPrimaCasaAssegnataA" title="Seleziona il coniuge a cui e ceduta la prima casa.">i</span>
378
+ </span>
379
+ </th>
380
+ <th class="first-home-mortgage-table-check-col">
381
+ <span class="label-row"><span id="lblPrimaCasaMutuoEnabled">Mutuo su prima casa dei coniugi</span>
382
+ <span class="hint" id="hintPrimaCasaMutuoEnabled" title="Attiva per includere il mutuo della prima casa ceduta nei benefici compensativi.">i</span>
383
+ </span>
384
+ </th>
381
385
  </tr>
382
386
  </thead>
383
387
  <tbody>
@@ -385,21 +389,19 @@
385
389
  <td><input id="primaCasaValoreLocativo" type="number" min="0" step="50" value="1000" /></td>
386
390
  <td><input id="primaCasaMutuoImporto" type="number" min="0" step="50" value="0" /></td>
387
391
  <td><input id="primaCasaMutuoScadenza" type="date" value="" /></td>
392
+ <td>
393
+ <select id="primaCasaAssegnataA">
394
+ <option value="">Nessuna cessione</option>
395
+ <option value="1" selected>Coniuge 1</option>
396
+ <option value="2">Coniuge 2</option>
397
+ </select>
398
+ </td>
399
+ <td class="first-home-mortgage-table-check-cell"><input id="primaCasaMutuoEnabled" type="checkbox" /></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.12"></script>
655
+ <script src="app.js?v=2.4.14"></script>
654
656
  </body>
655
657
  </html>
656
658
 
@@ -954,15 +954,15 @@
954
954
  }
955
955
 
956
956
  .first-home-mortgage-table-wrap {
957
- overflow-x: visible;
957
+ overflow-x: auto;
958
958
  padding-bottom: 2px;
959
959
  }
960
960
 
961
961
  .first-home-mortgage-table {
962
- width: 100%;
963
- min-width: 0;
962
+ width: max-content;
963
+ min-width: 100%;
964
964
  border-collapse: collapse;
965
- table-layout: fixed;
965
+ table-layout: auto;
966
966
  border: 1px solid rgba(27, 141, 127, 0.16);
967
967
  border-radius: 12px;
968
968
  overflow: hidden;
@@ -971,16 +971,16 @@
971
971
 
972
972
  .first-home-mortgage-table th {
973
973
  text-align: left;
974
- font-size: 0.72rem;
974
+ font-size: 0.68rem;
975
975
  color: #2a5954;
976
976
  font-weight: 800;
977
- padding: 8px 10px 6px;
977
+ padding: 7px 8px 6px;
978
978
  background: linear-gradient(180deg, rgba(232, 246, 243, 0.95), rgba(242, 249, 247, 0.92));
979
979
  border-bottom: 1px solid rgba(27, 141, 127, 0.12);
980
980
  }
981
981
 
982
982
  .first-home-mortgage-table td {
983
- padding: 8px;
983
+ padding: 7px;
984
984
  border-top: 1px solid rgba(27, 141, 127, 0.08);
985
985
  }
986
986
 
@@ -993,7 +993,7 @@
993
993
  display: flex;
994
994
  align-items: center;
995
995
  gap: 5px;
996
- flex-wrap: wrap;
996
+ flex-wrap: nowrap;
997
997
  line-height: 1.15;
998
998
  }
999
999
 
@@ -1001,6 +1001,38 @@
1001
1001
  width: 100%;
1002
1002
  }
1003
1003
 
1004
+ .first-home-mortgage-table select {
1005
+ width: 100%;
1006
+ }
1007
+
1008
+ .first-home-mortgage-table #primaCasaValoreLocativo,
1009
+ .first-home-mortgage-table #primaCasaMutuoImporto {
1010
+ min-width: 116px;
1011
+ }
1012
+
1013
+ .first-home-mortgage-table #primaCasaMutuoScadenza {
1014
+ min-width: 132px;
1015
+ }
1016
+
1017
+ .first-home-mortgage-table #primaCasaAssegnataA {
1018
+ min-width: 220px;
1019
+ }
1020
+
1021
+ .first-home-mortgage-table-check-col {
1022
+ width: 132px;
1023
+ }
1024
+
1025
+ .first-home-mortgage-table-check-cell {
1026
+ text-align: center;
1027
+ vertical-align: middle;
1028
+ }
1029
+
1030
+ .first-home-mortgage-table-check-cell input[type="checkbox"] {
1031
+ width: 22px;
1032
+ height: 22px;
1033
+ margin: 0;
1034
+ }
1035
+
1004
1036
  .extra-box-first-home .field {
1005
1037
  border-radius: 12px;
1006
1038
  padding: 8px 9px 7px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantenimento-app",
3
- "version": "2.4.12",
3
+ "version": "2.4.14",
4
4
  "description": "Frontend + backend architecture for the mantenimento calculator",
5
5
  "type": "commonjs",
6
6
  "main": "backend/calculate-model.js",