diff --git a/src/lib/components/variables/InflationLawButton.svelte b/src/lib/components/variables/InflationLawButton.svelte index 59e71e21777fcd6e632cb6016250ab4b06627166..88b839b0081c306efdb872be4ce7beac4d7416ef 100644 --- a/src/lib/components/variables/InflationLawButton.svelte +++ b/src/lib/components/variables/InflationLawButton.svelte @@ -54,32 +54,55 @@ </script> <button - class="flex w-full items-center rounded-md border-2 border-white bg-white px-2 py-1 pr-4 text-sm text-le-gris-dispositif-dark shadow-md transition-all duration-500 ease-out-back hover:border-2 hover:border-le-gris-dispositif" + class=" flex w-full items-center rounded-md border-2 border-white bg-white px-2 py-0.5 pr-4 text-sm text-le-gris-dispositif-dark shadow-md transition-all duration-500 ease-out-back hover:border-2 hover:border-le-gris-dispositif" onclick={bubble("click")} > - <iconify-icon class="mr-2 align-[-0.2rem] text-2xl" icon="ri-question-line" + <iconify-icon class="mr-2 align-[-0.2rem] text-xl" icon="ri-question-line" ></iconify-icon> - <p class="text-left font-bold tracking-wider"> - {#if !parameterName?.startsWith("impot_revenu")} - Revalorisation {yearPLF} - <br />{/if} - <span class="text-sm font-normal tracking-wide"> - {#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")} - Indexation d'usage du barème de l'IR par le PLF de - {:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.decote")} - Indexation d'usage des plafonds de la décote par le PLF de - {:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.plafond_avantages_procures_par_demi_part")} - Indexation d'usage des plafonds du quotient familial par le PLF de - {:else if parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.enfant_marie.montant")} - Indexation d'usage de l'abattement par le PLF de - {:else if parameterName?.startsWith("impot_revenu")} - Revalorisation, suite à l'indexation d'usage du barème de l'IR par le - PLF, de - {:else} - Indexation sur l'inflation à - {/if} - {billInflatorValueFormatted}. - </span> + <p class="text-left leading-4 tracking-wider"> + {#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")} + Indexation d'usage du barème de l'IR, par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.decote")} + Indexation d'usage des plafonds de la décote, par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.plafond_avantages_procures_par_demi_part")} + Indexation d'usage des plafonds du quotient familial, par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.enfant_marie.montant")} + Indexation d'usage de l'abattement, par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu")} + Revalorisation de {billInflatorValueFormatted}, suite à l'indexation + d'usage du barème de l'IR par le PLF. + {:else} + Indexation sur l'inflation à {billInflatorValueFormatted}. + {/if} </p> </button> + +<!-- +<button + class="mt-4 flex w-full items-center rounded-md border-2 border-white bg-white px-2 py-0.5 pr-4 text-sm text-le-gris-dispositif-dark shadow-md transition-all duration-500 ease-out-back hover:border-2 hover:border-le-gris-dispositif" + onclick={bubble("click")} +> + <iconify-icon class="mr-2 align-[-0.2rem] text-xl" icon="ri-file-text-line" + ></iconify-icon> + + <p class="text-left leading-4 tracking-wider"> + <span class="font-bold">Prévisions {yearPLF} :</span> + + {#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")} + Indexation d'usage du barème de l'IR par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.decote")} + Indexation d'usage des plafonds de la décote par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.plafond_avantages_procures_par_demi_part")} + Indexation d'usage des plafonds du quotient familial par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.enfant_marie.montant")} + Indexation d'usage de l'abattement par le PLF, de {billInflatorValueFormatted}. + {:else if parameterName?.startsWith("impot_revenu")} + Revalorisation de {billInflatorValueFormatted}, suite à l'indexation + d'usage du barème de l'IR par le PLF. + {:else} + Indexation sur l'inflation à {billInflatorValueFormatted}. + {/if} + </p> +</button> +--> diff --git a/src/lib/components/variables/InflationLawInfoModal.svelte b/src/lib/components/variables/InflationLawInfoModal.svelte index 3ad8efc9d615ebd0b6395adc043485319408ee0e..b924083416b751bd9ac9182cf8c9cd7958373ee1 100644 --- a/src/lib/components/variables/InflationLawInfoModal.svelte +++ b/src/lib/components/variables/InflationLawInfoModal.svelte @@ -73,12 +73,12 @@ {#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")} Indexation d'usage <br />du barème de l'impôt par le PLF {:else if parameterName?.startsWith("impot_revenu.calcul_reductions_impots.dons.dons_coluche.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.personne_agee_ou_invalide") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.charges_deductibles.accueil_personne_agee.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_bnc.marchandises.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpen.min") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpen.max") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpro.min") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpro.max") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_ba.plafond_recettes") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_bnc.services.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.charges_deductibles.pensions_alimentaires.plafond")} - Revalorisation prévue pour {yearPLF} + Revalorisation attendue pour {yearPLF} <br /><span class="font-normal" >si le barème de l'impôt est indexé sur l'inflation</span > {:else} - Revalorisation prévue pour {yearPLF} + Revalorisation attendue pour {yearPLF} {/if}<br /> <!-- <div class="text-sm">{billParameter.name}</div>--> </Dialog.Title> diff --git a/src/lib/components/variables/VariableReferredScaleParameter.svelte b/src/lib/components/variables/VariableReferredScaleParameter.svelte index 104bb48e5de12383c3fb6e2f8cf019d88335b742..45ed9f7dbd30d046b9c0a3e5c2cad68181de633f 100644 --- a/src/lib/components/variables/VariableReferredScaleParameter.svelte +++ b/src/lib/components/variables/VariableReferredScaleParameter.svelte @@ -294,23 +294,7 @@ /> </div> - <div class="flex justify-between bg-gray-100 py-2 pl-2 pr-4"> - {#if hasInflator} - <InflationLawButton - {inflatorByReformName} - on:click={() => (isInflationLawInfoModalOpen = true)} - parameterName={billParameter.name} - /> - - <InflationLawInfoModal - bind:isOpen={isInflationLawInfoModalOpen} - {billParameter} - {inflatorByReformName} - {lawParameter} - {revaluationParameter} - parameterName={billParameter.name} - /> - {/if} + <div class="flex justify-end bg-gray-100 py-2 pl-2 pr-4"> <a class="lx-link-simple ml-2 flex items-center text-sm text-gray-600" rel="noreferrer" @@ -415,5 +399,24 @@ /> {/if} {/if} + {#if hasInflator} + <p class="mt-4 pb-1 text-xs"> + Barème attendu en {yearPLF} : + </p> + <InflationLawButton + {inflatorByReformName} + on:click={() => (isInflationLawInfoModalOpen = true)} + parameterName={billParameter.name} + /> + + <InflationLawInfoModal + bind:isOpen={isInflationLawInfoModalOpen} + {billParameter} + {inflatorByReformName} + {lawParameter} + {revaluationParameter} + parameterName={billParameter.name} + /> + {/if} </div> </section> diff --git a/src/lib/components/variables/VariableReferredValueParameter.svelte b/src/lib/components/variables/VariableReferredValueParameter.svelte index e05f44ed0f8c5bfb80a9ec58e3530f6efa1d33f5..e01e3e49d7567939f264af009ead3897090e84de 100644 --- a/src/lib/components/variables/VariableReferredValueParameter.svelte +++ b/src/lib/components/variables/VariableReferredValueParameter.svelte @@ -328,23 +328,6 @@ {/if} </div> {/if} - - {#if hasInflator} - <InflationLawButton - {inflatorByReformName} - on:click={() => (isLawInfoModalOpen = true)} - parameterName={billParameter.name} - /> - - <InflationLawInfoModal - bind:isOpen={isLawInfoModalOpen} - {billParameter} - {inflatorByReformName} - {lawParameter} - {revaluationParameter} - parameterName={billParameter.name} - /> - {/if} </div> <!--Spécial PLF 2025 : Alerte paramètre modifié par le PLF mais pas modifié par LexImpact --> {#if billActive && billParameter.name?.startsWith("prelevements_sociaux.reductions_cotisations_sociales.allegement_general.ensemble_des_entreprises.plafond")} @@ -461,6 +444,25 @@ /> {/if} {/if} + {#if hasInflator} + <p class="mt-4 pb-1 text-xs"> + Valeur attendue en {yearPLF} : + </p> + <InflationLawButton + {inflatorByReformName} + on:click={() => (isLawInfoModalOpen = true)} + parameterName={billParameter.name} + /> + + <InflationLawInfoModal + bind:isOpen={isLawInfoModalOpen} + {billParameter} + {inflatorByReformName} + {lawParameter} + {revaluationParameter} + parameterName={billParameter.name} + /> + {/if} </div> </section> {/if}