Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-budget-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leximpact
leximpact-budget-ui
Commits
794d5a68
Commit
794d5a68
authored
Dec 3, 2021
by
sandcha
Browse files
Options
Downloads
Patches
Plain Diff
List CSG retraite variables to sum for impact
And rename CSG shared UI variables
parent
8d137ffe
Branches
Branches containing commit
No related tags found
1 merge request
!2
Ajoute la CSG retraite
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/budget/ImpactPane.svelte
+13
-9
13 additions, 9 deletions
src/lib/components/budget/ImpactPane.svelte
with
13 additions
and
9 deletions
src/lib/components/budget/ImpactPane.svelte
+
13
−
9
View file @
794d5a68
...
...
@@ -6,14 +6,18 @@
"
Recettes de CSG des revenus d'activité du secteur privé/public
"
const
CSG_RETRAITE_TITLE
=
"
Recettes de CSG des pensions de retraite du secteur privé/public
"
const
CSG_
DESCRIPTION
=
"
Montants estimés pour l'année 2022
"
const
CSG_
GRAPH
_TITLE
=
const
CSG_
HISTOGRAM_SUBTITLE
=
"
Montants estimés pour l'année 2022
"
const
CSG_
IMAGE
_TITLE
=
"
Périmètre actuel du simulateur par rapport à la CSG totale
"
const
HISTOGRAM_VARIABLES_TO_SUM_CSG_ACTIVITE
=
[
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
HISTOGRAM_VARIABLES_TO_SUM_CSG_RETRAITE
=
[
"
csg_imposable_retraite
"
,
"
csg_deductible_retraite
"
,
]
export
let
csgResponseJson
:
ApiResponse
|
undefined
=
undefined
export
let
updateImpact
:
boolean
=
false
...
...
@@ -22,18 +26,18 @@
<section
class=
"grid grid-cols-1 lg:grid-cols-2 2xl:grid-cols-4 gap-10"
>
<HistogramPane
title=
{
CSG_ACTIVITE_TITLE
}
description=
{
CSG_
DESCRIPTION
}
description=
{
CSG_
HISTOGRAM_SUBTITLE
}
dataJson=
{
csgResponseJson
}
variablesToDraw=
{
HISTOGRAM_VARIABLES_TO_SUM_CSG_ACTIVITE
}
updatingHistogram=
{
updateImpact
}
/>
<!-- image CSG -->
<!-- image CSG
totale
-->
<div
class=
"text-gray-700 flex-col shadow-md rounded bg-white col-span-2 border-8 border-le-bleu-light"
>
<div
class=
"bg-le-bleu-light pb-4 pt-1 px-2"
>
<div>
<p
class=
"font-bold text-lg"
>
{
CSG_
GRAPH
_TITLE
}
</p>
<p
class=
"font-bold text-lg"
>
{
CSG_
IMAGE
_TITLE
}
</p>
<p
class=
"text-sm "
>
Source :
<a
...
...
@@ -49,20 +53,20 @@
<img
class=
"flex sm:hidden lg:flex 2xl:hidden 3xl:flex object-contain"
src=
"/budget-csg-2020.svg"
alt=
{
CSG_
GRAPH
_TITLE
}
alt=
{
CSG_
IMAGE
_TITLE
}
/>
<img
class=
"hidden sm:flex lg:hidden 2xl:flex 3xl:hidden object-contain"
src=
"/budget-csg-2020-vertical.svg"
alt=
{
CSG_
GRAPH
_TITLE
}
alt=
{
CSG_
IMAGE
_TITLE
}
/>
</div>
<HistogramPane
title=
{
CSG_RETRAITE_TITLE
}
description=
{
CSG_
DESCRIPTION
}
description=
{
CSG_
HISTOGRAM_SUBTITLE
}
dataJson=
{
csgResponseJson
}
variablesToDraw=
{
HISTOGRAM_VARIABLES_TO_SUM_CSG_
ACTIV
ITE
}
variablesToDraw=
{
HISTOGRAM_VARIABLES_TO_SUM_CSG_
RETRA
ITE
}
updatingHistogram=
{
updateImpact
}
/>
</section>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment