@@ -46,47 +46,76 @@ const forandringarTable = computed(() =>
4646 belopprader .value ,
4747 ),
4848);
49+
50+ // Vanligt förekommande celler - vi markerar dessa för att göra dem enklare att
51+ // hitta i tabellen.
52+ const commonTaxonomyItemNames = [
53+ " se-gen-base:Aktiekapital" ,
54+ " se-gen-base:BalanseratResultat" ,
55+ " se-gen-base:AretsResultatEgetKapital" ,
56+ " se-gen-base:ForandringEgetKapitalBalanseratResultatUtdelning" ,
57+ " se-gen-base:ForandringEgetKapitalAretsResultatUtdelning" ,
58+ " se-gen-base:ForandringEgetKapitalTotaltUtdelning" ,
59+ " se-gen-base:ForandringEgetKapitalBalanseratResultatBalanserasNyRakning" ,
60+ " se-gen-base:ForandringEgetKapitalAretsResultatBalanserasNyRakning" ,
61+ " se-gen-base:ForandringEgetKapitalTotaltBalanserasNyRakning" ,
62+ " se-gen-base:ForandringEgetKapitalAretsResultatAretsResultat" ,
63+ " se-gen-base:ForandringEgetKapitalTotaltAretsResultat" ,
64+ " se-gen-base:ForandringEgetKapitalTotalt" ,
65+ ];
4966 </script >
5067
5168<template >
52- <table class =" edit-forandringar-table" >
53- <thead >
54- <tr >
55- <th ></th >
56- <th
57- v-for =" columnName in forandringarTable.columnNames"
58- :key =" columnName"
59- class =" value-container"
60- scope =" col"
61- >
62- {{ columnName }}
63- </th >
64- </tr >
65- </thead >
66- <tbody >
67- <tr v-for =" (row, rowIndex) in forandringarTable.table" :key =" rowIndex" >
68- <td >
69- <div class =" row-label" >
70- {{ forandringarTable.rowNames[rowIndex] }}
71- </div >
72- </td >
73- <td
74- v-for =" (cell, columnIndex) in row"
75- :key =" columnIndex"
76- :class =" { 'empty-container': cell == null }"
77- class =" value-container"
78- >
79- <div v-if =" cell != null" class =" value-contents" >
80- <input
81- v-model.trim =" cell.belopprad.beloppNuvarandeAr"
82- class =" form-control"
83- type =" text"
84- />
85- </div >
86- </td >
87- </tr >
88- </tbody >
89- </table >
69+ <div class =" d-flex flex-col" >
70+ <span class =" text-center" >
71+ Du kan behöva skrolla i tabellen. De vanligaste cellerna är
72+ <strong class =" common-hint" >blåmarkerade</strong >.
73+ </span >
74+
75+ <table class =" edit-forandringar-table" >
76+ <thead >
77+ <tr >
78+ <th ></th >
79+ <th
80+ v-for =" columnName in forandringarTable.columnNames"
81+ :key =" columnName"
82+ class =" value-container"
83+ scope =" col"
84+ >
85+ {{ columnName }}
86+ </th >
87+ </tr >
88+ </thead >
89+ <tbody >
90+ <tr v-for =" (row, rowIndex) in forandringarTable.table" :key =" rowIndex" >
91+ <td >
92+ <div class =" row-label" >
93+ {{ forandringarTable.rowNames[rowIndex] }}
94+ </div >
95+ </td >
96+ <td
97+ v-for =" (cell, columnIndex) in row"
98+ :key =" columnIndex"
99+ :class =" {
100+ 'empty-container': cell == null,
101+ 'common-container':
102+ cell != null &&
103+ commonTaxonomyItemNames.includes(cell.taxonomyItem.xmlName),
104+ }"
105+ class =" value-container"
106+ >
107+ <div v-if =" cell != null" class =" value-contents" >
108+ <input
109+ v-model.trim =" cell.belopprad.beloppNuvarandeAr"
110+ class =" form-control"
111+ type =" text"
112+ />
113+ </div >
114+ </td >
115+ </tr >
116+ </tbody >
117+ </table >
118+ </div >
90119</template >
91120
92121<style lang="scss" scoped>
@@ -106,6 +135,10 @@ const forandringarTable = computed(() =>
106135 }
107136}
108137
138+ .common-hint {
139+ color : #7070ff ;
140+ }
141+
109142table .edit-forandringar-table {
110143 width : min-content ;
111144
@@ -122,7 +155,7 @@ table.edit-forandringar-table {
122155 td {
123156 @include auto-font-sizes ;
124157
125- border : 1px solid lightgray ;
158+ border : 1px solid #c4c4c4 ;
126159
127160 & :not (:last-child ) {
128161 border-right : none ;
@@ -147,7 +180,15 @@ table.edit-forandringar-table {
147180
148181 & .value-container {
149182 & .empty-container {
150- background : lightgray ;
183+ background : #d9d9d9 ;
184+ }
185+
186+ & .common-container {
187+ background : #e0e0ff ;
188+
189+ .value-contents input {
190+ background : #f6f6ff ;
191+ }
151192 }
152193
153194 .value-contents input {
0 commit comments