Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-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
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
5424686f
Commit
5424686f
authored
6 months ago
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
Corrige les couleurs du chomage_brut et de la retraite_brute
parent
f0acbd4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/test_cases/TestCaseGraph.svelte
+39
-46
39 additions, 46 deletions
src/lib/components/test_cases/TestCaseGraph.svelte
with
39 additions
and
46 deletions
src/lib/components/test_cases/TestCaseGraph.svelte
+
39
−
46
View file @
5424686f
...
...
@@ -129,7 +129,9 @@
let
svgPadding
=
{
bottom
:
20
,
left
:
8
,
right
:
20
,
top
:
20
}
let
grapheExplanationOpen
=
$state
(
false
)
let
variableCustomizations
=
$state
(
variableCustomizationsBase
)
let
variableCustomizations
=
$state
(
structuredClone
(
variableCustomizationsBase
),
)
let
variableValues
:
VariableGraph
[][]
=
$state
([])
let
variableGroups
:
{
css
?:
string
...
...
@@ -137,7 +139,7 @@
name
?:
string
hideOpen
?:
boolean
variables
:
VariableGraph
[]
}[]
=
$state
()
}[]
=
$state
(
[]
)
let
visibleDecompositionsGraph
:
VisibleDecompositionForGraph
[]
|
undefined
=
$state
(
undefined
)
...
...
@@ -168,8 +170,8 @@
)
{
untrack
(()
=>
{
const
ressourcesBrutes
=
[
"
remuneration_brute
"
,
"
chomage_brut
"
,
"
remuneration_brute
"
,
"
retraite_brute
"
,
]
...
...
@@ -240,10 +242,9 @@
]
const
splitIndex
=
prelevementsValues
.
findIndex
(
(
variable
)
=>
variable
.
name
===
"
remuneration_brute
"
,
prelevementsValues
.
find
Last
Index
(
(
variable
)
=>
ressourcesBrutes
.
includes
(
variable
.
name
)
,
)
+
1
variableGroups
=
[
{
variables
:
[
...
...
@@ -273,16 +274,13 @@
for
(
const
row
of
variable
.
rows
)
{
const
key
=
`
${
variable
.
name
}
_
${
row
.
calculationName
}
`
if
(
!
Object
.
keys
(
variableCustomizations
).
includes
(
key
)
&&
((
row
.
calculationName
!==
"
law
"
&&
row
.
calculationName
!==
"
revaluation
"
)
||
!
Object
.
keys
(
variableCustomizations
).
includes
(
variable
.
name
,
))
variableCustomizations
[
variable
.
name
]
===
undefined
||
(
variableCustomizations
[
key
]
===
undefined
&&
row
.
calculationName
!==
"
law
"
&&
row
.
calculationName
!==
"
revaluation
"
)
)
{
const
types
=
[
"
base
"
,
"
prelevement
"
,
"
prestation
"
]
variableCustomizations
[
key
]
=
JSON
.
parse
(
JSON
.
stringify
(
variableCustomizations
[
key
]
=
structuredClone
(
variableCustomizations
[
getVariableCustomizationName
(
variable
.
parent
,
...
...
@@ -294,7 +292,6 @@
?
"
law
"
:
row
.
calculationName
],
),
)
}
}
...
...
@@ -369,16 +366,13 @@
for
(
const
row
of
variable
.
rows
)
{
const
key
=
`
${
variable
.
name
}
_
${
row
.
calculationName
}
`
if
(
!
Object
.
keys
(
variableCustomizations
).
includes
(
key
)
&&
((
row
.
calculationName
!==
"
law
"
&&
row
.
calculationName
!==
"
revaluation
"
)
||
!
Object
.
keys
(
variableCustomizations
).
includes
(
variable
.
name
,
))
variableCustomizations
[
variable
.
name
]
===
undefined
||
(
variableCustomizations
[
key
]
===
undefined
&&
row
.
calculationName
!==
"
law
"
&&
row
.
calculationName
!==
"
revaluation
"
)
)
{
const
types
=
[
"
base
"
,
"
cotisation
"
,
"
allegement
"
]
variableCustomizations
[
key
]
=
JSON
.
parse
(
JSON
.
stringify
(
variableCustomizations
[
key
]
=
structuredClone
(
variableCustomizations
[
getVariableCustomizationName
(
variable
.
parent
,
...
...
@@ -390,7 +384,6 @@
?
"
law
"
:
row
.
calculationName
],
),
)
}
}
...
...
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