ixbrl-viewer 1.4.39__py3-none-any.whl → 1.4.41__py3-none-any.whl

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.

Potentially problematic release.


This version of ixbrl-viewer might be problematic. Click here for more details.

Files changed (95) hide show
  1. iXBRLViewerPlugin/__init__.py +25 -22
  2. iXBRLViewerPlugin/_version.py +2 -2
  3. iXBRLViewerPlugin/constants.py +86 -1
  4. iXBRLViewerPlugin/featureConfig.py +4 -1
  5. iXBRLViewerPlugin/iXBRLViewer.py +28 -14
  6. iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js +1 -1
  7. iXBRLViewerPlugin/viewer/i18next-parser.config.js +1 -1
  8. iXBRLViewerPlugin/viewer/src/html/fact-details.html +69 -38
  9. iXBRLViewerPlugin/viewer/src/html/footer-logo.html +4 -0
  10. iXBRLViewerPlugin/viewer/src/html/footnote-details.html +1 -1
  11. iXBRLViewerPlugin/viewer/src/html/inspector.html +318 -211
  12. iXBRLViewerPlugin/viewer/src/i18n/cy/balancetypes.json +1 -0
  13. iXBRLViewerPlugin/viewer/src/i18n/cy/currencies.json +13 -0
  14. iXBRLViewerPlugin/viewer/src/i18n/cy/datatypes.json +9 -0
  15. iXBRLViewerPlugin/viewer/src/i18n/cy/labelroles.json +24 -0
  16. iXBRLViewerPlugin/viewer/src/i18n/cy/referenceparts.json +10 -0
  17. iXBRLViewerPlugin/viewer/src/i18n/cy/scale.json +16 -0
  18. iXBRLViewerPlugin/viewer/src/i18n/cy/tooltips.json +17 -0
  19. iXBRLViewerPlugin/viewer/src/i18n/cy/translation.json +179 -0
  20. iXBRLViewerPlugin/viewer/src/i18n/en/balancetypes.json +4 -0
  21. iXBRLViewerPlugin/viewer/src/i18n/en/datatypes.json +10 -0
  22. iXBRLViewerPlugin/viewer/src/i18n/en/labelroles.json +4 -0
  23. iXBRLViewerPlugin/viewer/src/i18n/en/scale.json +16 -0
  24. iXBRLViewerPlugin/viewer/src/i18n/en/tooltips.json +17 -0
  25. iXBRLViewerPlugin/viewer/src/i18n/en/translation.json +50 -25
  26. iXBRLViewerPlugin/viewer/src/i18n/es/balancetypes.json +4 -0
  27. iXBRLViewerPlugin/viewer/src/i18n/es/datatypes.json +10 -0
  28. iXBRLViewerPlugin/viewer/src/i18n/es/labelroles.json +24 -0
  29. iXBRLViewerPlugin/viewer/src/i18n/es/scale.json +16 -0
  30. iXBRLViewerPlugin/viewer/src/i18n/es/tooltips.json +17 -0
  31. iXBRLViewerPlugin/viewer/src/i18n/es/translation.json +66 -40
  32. iXBRLViewerPlugin/viewer/src/icons/dark-mode.svg +4 -0
  33. iXBRLViewerPlugin/viewer/src/img/arelle-dark.svg +179 -0
  34. iXBRLViewerPlugin/viewer/src/img/inline-viewer-dark.svg +59 -0
  35. iXBRLViewerPlugin/viewer/src/js/accordian.js +2 -1
  36. iXBRLViewerPlugin/viewer/src/js/aspect.js +18 -7
  37. iXBRLViewerPlugin/viewer/src/js/balance.js +14 -0
  38. iXBRLViewerPlugin/viewer/src/js/chart.js +10 -6
  39. iXBRLViewerPlugin/viewer/src/js/concept.js +28 -1
  40. iXBRLViewerPlugin/viewer/src/js/concept.test.js +23 -2
  41. iXBRLViewerPlugin/viewer/src/js/datatype.js +20 -0
  42. iXBRLViewerPlugin/viewer/src/js/datatype.test.js +62 -0
  43. iXBRLViewerPlugin/viewer/src/js/dialog.js +3 -1
  44. iXBRLViewerPlugin/viewer/src/js/fact.js +16 -0
  45. iXBRLViewerPlugin/viewer/src/js/fact.test.js +3 -0
  46. iXBRLViewerPlugin/viewer/src/js/index.js +11 -3
  47. iXBRLViewerPlugin/viewer/src/js/inspector.js +499 -121
  48. iXBRLViewerPlugin/viewer/src/js/inspector.test.js +1 -1
  49. iXBRLViewerPlugin/viewer/src/js/ixbrlviewer.js +128 -30
  50. iXBRLViewerPlugin/viewer/src/js/ixbrlviewer.test.js +133 -20
  51. iXBRLViewerPlugin/viewer/src/js/menu.js +21 -3
  52. iXBRLViewerPlugin/viewer/src/js/outline.js +2 -2
  53. iXBRLViewerPlugin/viewer/src/js/report.js +60 -8
  54. iXBRLViewerPlugin/viewer/src/js/report.test.js +51 -5
  55. iXBRLViewerPlugin/viewer/src/js/reportset.js +20 -0
  56. iXBRLViewerPlugin/viewer/src/js/reportset.test.js +3 -3
  57. iXBRLViewerPlugin/viewer/src/js/search.js +23 -2
  58. iXBRLViewerPlugin/viewer/src/js/search.test.js +2 -2
  59. iXBRLViewerPlugin/viewer/src/js/summary.js +14 -0
  60. iXBRLViewerPlugin/viewer/src/js/tableExport.js +2 -1
  61. iXBRLViewerPlugin/viewer/src/js/taxonomynamer.js +34 -0
  62. iXBRLViewerPlugin/viewer/src/js/taxonomynamer.test.js +32 -0
  63. iXBRLViewerPlugin/viewer/src/js/theme.js +36 -0
  64. iXBRLViewerPlugin/viewer/src/js/unit.js +17 -2
  65. iXBRLViewerPlugin/viewer/src/js/util.js +16 -16
  66. iXBRLViewerPlugin/viewer/src/js/viewer.js +13 -7
  67. iXBRLViewerPlugin/viewer/src/less/accordian.less +8 -4
  68. iXBRLViewerPlugin/viewer/src/less/block-list.less +12 -6
  69. iXBRLViewerPlugin/viewer/src/less/calculation-inspector.less +2 -2
  70. iXBRLViewerPlugin/viewer/src/less/chart.less +8 -5
  71. iXBRLViewerPlugin/viewer/src/less/colours-dark-mode.less +40 -0
  72. iXBRLViewerPlugin/viewer/src/less/colours.less +28 -21
  73. iXBRLViewerPlugin/viewer/src/less/common.less +1 -1
  74. iXBRLViewerPlugin/viewer/src/less/components.less +3 -3
  75. iXBRLViewerPlugin/viewer/src/less/core.less +2 -0
  76. iXBRLViewerPlugin/viewer/src/less/dialog.less +13 -10
  77. iXBRLViewerPlugin/viewer/src/less/form-controls.less +33 -11
  78. iXBRLViewerPlugin/viewer/src/less/inspector.less +538 -299
  79. iXBRLViewerPlugin/viewer/src/less/loader.less +2 -2
  80. iXBRLViewerPlugin/viewer/src/less/menu.less +33 -15
  81. iXBRLViewerPlugin/viewer/src/less/summary.less +16 -6
  82. iXBRLViewerPlugin/viewer/src/less/tabs.less +5 -5
  83. iXBRLViewerPlugin/viewer/src/less/text-mixins.less +2 -1
  84. iXBRLViewerPlugin/viewer/src/less/validation-report.less +1 -1
  85. iXBRLViewerPlugin/viewer/src/less/viewer.less +30 -18
  86. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/METADATA +33 -5
  87. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/RECORD +95 -66
  88. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/WHEEL +1 -1
  89. tests/puppeteer/framework/page_objects/doc_frame.js +1 -1
  90. tests/puppeteer/tests/fact_properties.test.js +4 -4
  91. tests/unit_tests/iXBRLViewerPlugin/test_iXBRLViewer.py +69 -28
  92. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/LICENSE +0 -0
  93. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/NOTICE +0 -0
  94. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/entry_points.txt +0 -0
  95. {ixbrl_viewer-1.4.39.dist-info → ixbrl_viewer-1.4.41.dist-info}/top_level.txt +0 -0
@@ -6,11 +6,14 @@
6
6
  "does-not-bind": "",
7
7
  "inconsistent-duplicate-facts-present": "",
8
8
  "maximum": "",
9
- "mininum": "",
9
+ "minimum": "",
10
10
  "reported-total": "",
11
11
  "reported-value": "",
12
12
  "useCalculations11": ""
13
13
  },
14
+ "chart": {
15
+ "comparisonChart": ""
16
+ },
14
17
  "common": {
15
18
  "accuracyInfinite": "Precisió infinita",
16
19
  "none": "Ninguno",
@@ -18,16 +21,22 @@
18
21
  "unscaled": "Sin escala",
19
22
  "unspecified": "Sin especificar"
20
23
  },
24
+ "dialog": {
25
+ "close": ""
26
+ },
21
27
  "factDetails": {
22
28
  "accuracy": "Precisión",
29
+ "balance": "",
23
30
  "calculationIsConsistent": "",
24
31
  "calculationIsInconsistent": "",
25
32
  "calculationUnchecked": "",
33
+ "calculationUncheckedIncorrectVersion": "",
26
34
  "change": "Cambio",
27
35
  "changeFromIn": "Anteriormente {{from}} en ",
28
36
  "changePercentageDecrease": "{{decrease}}% menos que en ",
29
37
  "changePercentageIncrease": "{{increase}}% más que en ",
30
38
  "concept": "Concepto",
39
+ "datatype": "",
31
40
  "date": "Fecha",
32
41
  "dimensions": "Dimensiones",
33
42
  "duplicatesCount": "{{current}} de {{total}}",
@@ -51,64 +60,73 @@
51
60
  "concealedFact": "",
52
61
  "conceptType": "Tipo de concepto",
53
62
  "contributor": "",
54
- "dimensions": "",
55
- "documentOutline": "",
56
- "documentSummary": "",
63
+ "datatypes": "Tipos de datos",
64
+ "dimensions": "Tipo de dimensión",
65
+ "documentOutline": "Esquema del documento",
66
+ "documentSummary": "Resumen del documento",
57
67
  "explicitDimension": "",
58
68
  "fact-groups": "",
59
69
  "factProperties": "Propiedades del hecho",
60
70
  "factSearch": "Búsqueda de hechos",
61
71
  "factValue": "",
62
- "filter": "Filtro",
63
72
  "footnoteProperties": "Propiedades de la nota al pie de página",
64
73
  "footnotes": "Notas al pie de página",
74
+ "hidden": "Oculto",
65
75
  "hiddenFact": "Hecho oculto",
66
- "hiddenFacts": "Hechos ocultos",
67
76
  "highlight": "Destacar",
68
77
  "initializing": "",
78
+ "ixbrlInspector": "",
79
+ "labels": "",
69
80
  "loadingViewer": "Preparando el visor iXBRL",
70
- "matchingFacts": "",
71
- "namespaces": "",
81
+ "mandatoryFacts": "Sólo hechos obligatorios",
82
+ "namespaces": "Espacios de nombres",
72
83
  "narrowerAnchor": "Anclaje angosto",
73
- "negative": "",
84
+ "negative": "Negativo",
74
85
  "nextTag": "",
75
86
  "noFactSelected": "Ningún hecho seleccionado",
76
87
  "numericOption": "Numérico",
77
88
  "outlineUnavailable": "",
78
89
  "period": "Periodo",
79
- "positive": "",
90
+ "positive": "Positivo",
80
91
  "previousTag": "",
81
92
  "printDocument": "",
82
93
  "references": "Referencias",
83
94
  "reset": "Limpiar",
84
95
  "scales": "Escalas",
96
+ "search": "Buscar",
97
+ "searchReport": "",
98
+ "searchResults": "",
85
99
  "searchTitle": "Búsqueda de hechos",
100
+ "settingsMenu": "",
101
+ "showAnalysisChart": "",
86
102
  "showTextOnly": "",
87
103
  "summary": {
88
104
  "fact": {
89
- "header": "",
90
- "title": ""
105
+ "header": "Resumen de los hechos",
106
+ "hidden": "Hechos ocultos",
107
+ "mandatory": "Hechos obligatorios",
108
+ "total": "Hechos totales"
91
109
  },
92
110
  "file": {
93
111
  "calculations": "",
94
112
  "definitions": "",
95
- "header": "",
96
- "inline": "",
113
+ "header": "Resumen del archivo",
114
+ "inline": "Documentos en línea",
97
115
  "labels": "",
98
116
  "other": "",
99
117
  "presentation": "",
100
118
  "references": "",
101
- "schemas": "",
102
- "reportCreation": ""
119
+ "schemas": ""
103
120
  },
121
+ "reportCreation": "",
104
122
  "tag": {
105
- "colDimensions": "",
106
- "colMembers": "",
107
- "colNamespace": "",
108
- "colPrimaryItems": "",
109
- "colTotal": "",
110
- "header": "",
111
- "rowTotal": ""
123
+ "colConcepts": "Conceptos",
124
+ "colDimensions": "Dimensiones",
125
+ "colMembers": "Miembros",
126
+ "colNamespace": "Espacio de nombres",
127
+ "colTotal": "Total",
128
+ "header": "Resumen de la etiqueta",
129
+ "rowTotal": "Total"
112
130
  }
113
131
  },
114
132
  "summation": "",
@@ -120,34 +138,42 @@
120
138
  "validationMessage": "",
121
139
  "validationResults": "",
122
140
  "validationSeverity": "",
123
- "visibleFacts": "Hechos visibles",
124
- "widerAnchor": "Anclaje amplio"
141
+ "visibility": "Visibilidad",
142
+ "visible": "Visible",
143
+ "widerAnchor": "Anclaje amplio",
144
+ "xbrlGlossaryOpensInNewTab": ""
125
145
  },
126
- "scale": {
127
- "-3": "mil\u00E9simos",
128
- "-2": "cent\u00E9simos",
129
- "-1": "d\u00E9cimas",
130
- "0": "unidades",
131
- "1": "d\u00E9cimos",
132
- "2": "cientos",
133
- "3": "miles",
134
- "4": "diez miles",
135
- "5": "cien miles",
136
- "6": "millones",
137
- "7": "diez millones",
138
- "8": "cien millones",
139
- "9": "billones"
146
+ "menu": {
147
+ "actions": "Comportamientos",
148
+ "applicationLanguage": "Idioma de Aplicación",
149
+ "documentLanguage": "Idioma del Documento",
150
+ "help": "Ayuda",
151
+ "options": "Opciones",
152
+ "reportAnIssue": "Informar un Problema",
153
+ "survey": "Encuesta",
154
+ "userGuide": "Guía del Usuario"
140
155
  },
141
156
  "search": {
142
157
  "concealedFact": "",
158
+ "dataTypeConflictWarning": "",
143
159
  "default": "",
160
+ "filter": "Filtro",
144
161
  "hiddenFact": "Hecho oculto",
162
+ "matchingFactsSummary": "",
145
163
  "noMatchFound": "No se encontró ninguna coincidencia",
164
+ "reset": "",
146
165
  "selected": "seleccionados",
147
166
  "showMoreResults": "Mostrar más resultados",
148
- "tryAgainDifferentKeywords": "Intente nuevamente con palabras clave diferentes"
167
+ "toggleFilterControls": "",
168
+ "tryAgainDifferentKeywords": "Intente nuevamente con palabras clave diferentes",
169
+ "viewFact": ""
149
170
  },
150
171
  "toolbar": {
172
+ "homePage": "Inicio",
173
+ "toggleDarkMode": "Alternar modo oscuro",
151
174
  "xbrlElements": "Elementos XBRL"
175
+ },
176
+ "viewer": {
177
+ "ixbrlDocumentView": ""
152
178
  }
153
179
  }
@@ -0,0 +1,4 @@
1
+ <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
2
+ <defs/>
3
+ <path d="M 513.169 106.004 L 513.169 919.438 C 288.909 919.438 106.452 736.981 106.452 512.711 C 106.452 288.488 288.909 106.031 513.169 106.031 M 513.169 4.338 C 232.375 4.338 4.759 231.946 4.759 512.748 C 4.759 793.55 232.386 1021.214 513.169 1021.214 C 793.952 1021.214 1021.635 793.512 1021.635 512.748 C 1021.635 231.983 793.952 4.375 513.169 4.375 L 513.169 4.338 Z" style=""/>
4
+ </svg>
@@ -0,0 +1,179 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ version="1.1"
13
+ id="svg2"
14
+ xml:space="preserve"
15
+ width="536.36475"
16
+ height="150.31003"
17
+ viewBox="0 0 536.36473 150.31003"
18
+ sodipodi:docname="arelle-logo.svg"
19
+ inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"><metadata
20
+ id="metadata8"><rdf:RDF><cc:Work
21
+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
22
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
23
+ id="defs6"><clipPath
24
+ clipPathUnits="userSpaceOnUse"
25
+ id="clipPath18"><path
26
+ d="M 0,122 H 768.505 V 0 H 0 Z"
27
+ id="path16"
28
+ inkscape:connector-curvature="0" /></clipPath></defs><sodipodi:namedview
29
+ pagecolor="#000000"
30
+ bordercolor="#666666"
31
+ borderopacity="1"
32
+ objecttolerance="10"
33
+ gridtolerance="10"
34
+ guidetolerance="10"
35
+ inkscape:pageopacity="0"
36
+ inkscape:pageshadow="2"
37
+ inkscape:window-width="1864"
38
+ inkscape:window-height="1024"
39
+ id="namedview4"
40
+ showgrid="false"
41
+ inkscape:zoom="0.72022953"
42
+ inkscape:cx="788.72058"
43
+ inkscape:cy="-84.442204"
44
+ inkscape:window-x="56"
45
+ inkscape:window-y="27"
46
+ inkscape:window-maximized="1"
47
+ inkscape:current-layer="g10"
48
+ fit-margin-top="0"
49
+ fit-margin-left="0"
50
+ fit-margin-right="0"
51
+ fit-margin-bottom="0" /><g
52
+ id="g10"
53
+ inkscape:groupmode="layer"
54
+ inkscape:label="arelle-logo"
55
+ transform="matrix(1.3333333,0,0,-1.3333333,-3.6508141,159.32777)"><g
56
+ id="g12"><g
57
+ id="g14"
58
+ clip-path="url(#clipPath18)"><g
59
+ id="g20"
60
+ transform="translate(109.6689,67.1631)"><path
61
+ d="m 0,0 c -1.598,2.653 -7.292,5.987 -8.808,15.307 -0.804,4.949 0.569,7.994 1.955,12.181 1.488,4.471 -1.059,7.244 -5.38,7.408 -8.644,0.33 -31.907,-2.211 -57.638,11.288 -10.066,5.28 -10.759,3.922 -7.076,-2.566 5.645,-9.952 19.378,-15.334 35.687,-18.005 -45.397,9.825 -17.166,-2.174 5.098,-7.127 -41.056,8.484 -15.625,-3.035 4.448,-6.711 -38.475,6.821 -11.387,-2.978 1.477,-5.428 3.862,-0.736 12.391,-13.026 18.054,-10.273 6.317,3.069 4.488,0.689 7.479,2.026 C 0.566,0.458 0,0 0,0"
62
+ style="fill:#aa118e;fill-opacity:1;fill-rule:nonzero;stroke:none"
63
+ id="path22"
64
+ inkscape:connector-curvature="0" /></g><g
65
+ id="g24"
66
+ transform="translate(109.6689,67.1631)"><path
67
+ d="m 0,0 c -1.598,2.653 -7.292,5.987 -8.808,15.307 -0.804,4.949 0.569,7.994 1.955,12.181 1.488,4.471 -1.059,7.244 -5.38,7.408 -8.644,0.33 -31.907,-2.211 -57.638,11.288 -10.066,5.28 -10.759,3.922 -7.076,-2.566 5.645,-9.952 19.378,-15.334 35.687,-18.005 -45.397,9.825 -17.166,-2.174 5.098,-7.127 -41.056,8.484 -15.625,-3.035 4.448,-6.711 -38.475,6.821 -11.387,-2.978 1.477,-5.428 3.862,-0.736 12.391,-13.026 18.054,-10.273 6.317,3.069 4.488,0.689 7.479,2.026 C 0.566,0.458 0,0 0,0 Z"
68
+ style="fill:none;stroke:#000000;stroke-width:1.03100002;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
69
+ id="path26"
70
+ inkscape:connector-curvature="0" /></g><g
71
+ id="g28"
72
+ transform="translate(137.8633,43.0234)"><path
73
+ d="m 0,0 c 0,-16.712 -13.548,-30.262 -30.263,-30.262 -16.715,0 -30.263,13.55 -30.263,30.262 0,16.714 13.548,30.264 30.263,30.264 C -13.548,30.264 0,16.714 0,0"
74
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
75
+ id="path30"
76
+ inkscape:connector-curvature="0" /></g><g
77
+ id="g32"
78
+ transform="translate(137.8633,43.0234)"><path
79
+ d="m 0,0 c 0,-16.712 -13.548,-30.262 -30.263,-30.262 -16.715,0 -30.263,13.55 -30.263,30.262 0,16.714 13.548,30.264 30.263,30.264 C -13.548,30.264 0,16.714 0,0 Z"
80
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
81
+ id="path34"
82
+ inkscape:connector-curvature="0" /></g><g
83
+ id="g36"
84
+ transform="translate(126.1572,10.4326)"><path
85
+ d="M 0,0 13.452,63.586 H 24.458 L 22.012,-1.222 Z"
86
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
87
+ id="path38"
88
+ inkscape:connector-curvature="0" /></g><g
89
+ id="g40"
90
+ transform="translate(140,73.6753)"><path
91
+ d="M 0,0 -13.086,-61.553"
92
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
93
+ id="path42"
94
+ inkscape:connector-curvature="0" /></g><g
95
+ id="g44"
96
+ transform="translate(208.7871,43.0234)"><path
97
+ d="m 0,0 c 0,-16.712 -13.548,-30.262 -30.265,-30.262 -16.71,0 -30.26,13.55 -30.26,30.262 0,16.714 13.55,30.264 30.26,30.264 C -13.548,30.264 0,16.714 0,0 Z"
98
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
99
+ id="path46"
100
+ inkscape:connector-curvature="0" /></g><g
101
+ id="g48"
102
+ transform="translate(150.6152,64.2373)"><path
103
+ d="m 0,0 8.558,-7.339 39.132,2.447 11.006,3.669 4.89,-31.793 -23.232,-24.458 H 14.673 l -23.848,25.679 z"
104
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
105
+ id="path50"
106
+ inkscape:connector-curvature="0" /></g><g
107
+ id="g52"
108
+ transform="translate(157.1191,73.6753)"><path
109
+ d="M 0,0 -13.083,-61.553"
110
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
111
+ id="path54"
112
+ inkscape:connector-curvature="0" /></g><g
113
+ id="g56"
114
+ transform="translate(302.4053,112.8701)"><path
115
+ d="M 0,0 -21.413,-100.748"
116
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
117
+ id="path58"
118
+ inkscape:connector-curvature="0" /></g><g
119
+ id="g60"
120
+ transform="translate(321.9688,112.8701)"><path
121
+ d="M 0,0 -21.411,-100.748"
122
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
123
+ id="path62"
124
+ inkscape:connector-curvature="0" /></g><g
125
+ id="g64"
126
+ transform="translate(386.0977,43.0234)"><path
127
+ d="m 0,0 c 0,-16.712 -13.548,-30.262 -30.262,-30.262 -16.717,0 -30.264,13.55 -30.264,30.262 0,16.714 13.547,30.264 30.264,30.264 C -13.548,30.264 0,16.714 0,0 Z"
128
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
129
+ id="path66"
130
+ inkscape:connector-curvature="0" /></g><g
131
+ id="g68"
132
+ transform="translate(373.2832,68.3525)"><path
133
+ d="M 0,0 -36.029,-49.586"
134
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
135
+ id="path70"
136
+ inkscape:connector-curvature="0" /></g><g
137
+ id="g72"
138
+ transform="translate(272.374,43.0234)"><path
139
+ d="m 0,0 c 0,-16.712 -13.549,-30.262 -30.263,-30.262 -16.713,0 -30.261,13.55 -30.261,30.262 0,16.714 13.548,30.264 30.261,30.264 C -13.549,30.264 0,16.714 0,0 Z"
140
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
141
+ id="path74"
142
+ inkscape:connector-curvature="0" /></g><g
143
+ id="g76"
144
+ transform="translate(259.5596,68.3525)"><path
145
+ d="M 0,0 -36.026,-49.586"
146
+ style="fill:none;stroke:#aa118e;stroke-width:3.80500007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
147
+ id="path78"
148
+ inkscape:connector-curvature="0" /></g><g
149
+ id="g80"
150
+ transform="translate(274.7334,17.7705)"><path
151
+ d="m 0,0 -18.342,6.114 1.836,38.721 4.89,7.542 14.062,-12.024 z"
152
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
153
+ id="path82"
154
+ inkscape:connector-curvature="0" /></g><g
155
+ id="g84"
156
+ transform="translate(388.2529,17.5659)"><path
157
+ d="m 0,0 -18.343,6.114 1.837,38.721 4.889,7.543 14.063,-12.024 z"
158
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
159
+ id="path86"
160
+ inkscape:connector-curvature="0" /></g><g
161
+ id="g88"
162
+ transform="translate(97.2607,72.8652)"><path
163
+ d="m 0,0 c -2.121,2.782 -8.539,5.239 -11.39,15.521 -1.514,5.458 -0.348,9.048 0.697,13.92 1.117,5.205 -2.088,8.004 -6.961,7.656 -9.744,-0.696 -35.559,-6.418 -66.122,5.569 -11.956,4.688 -10.765,4.068 -7.63,-3.755 4.984,-12.439 26.507,-21.789 45.152,-22.777 -10.106,0.909 -22.14,3.129 -25.502,4.001 -13.5,3.5 7,-13.5 34.502,-14.251 -7.484,0.237 -19.598,1.486 -22.5,2.25 -19,5 4,-11.999 32.25,-13.502 4.436,-0.236 15.731,-6.892 21.869,-3.295 3.834,2.246 1.379,0.801 3.834,2.246 C 3.888,-3.068 0,0 0,0"
164
+ style="fill:#77d1c8;fill-opacity:1;fill-rule:nonzero;stroke:none"
165
+ id="path90"
166
+ inkscape:connector-curvature="0" /></g><g
167
+ id="g92"
168
+ transform="translate(97.2607,72.8652)"><path
169
+ d="m 0,0 c -2.121,2.782 -8.539,5.239 -11.39,15.521 -1.514,5.458 -0.348,9.048 0.697,13.92 1.117,5.205 -2.088,8.004 -6.961,7.656 -9.744,-0.696 -35.559,-6.418 -66.122,5.569 -11.956,4.688 -10.765,4.068 -7.63,-3.755 4.984,-12.439 26.507,-21.789 45.152,-22.777 -10.106,0.909 -22.14,3.129 -25.502,4.001 -13.5,3.5 7,-13.5 34.502,-14.251 -7.484,0.237 -19.598,1.486 -22.5,2.25 -19,5 4,-11.999 32.25,-13.502 4.436,-0.236 15.731,-6.892 21.869,-3.295 3.834,2.246 1.379,0.801 3.834,2.246 C 3.888,-3.068 0,0 0,0 Z"
170
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
171
+ id="path94"
172
+ inkscape:connector-curvature="0" /></g></g></g><text
173
+ transform="matrix(1,0,0,-1,389.499,62.9961)"
174
+ style="font-variant:normal;font-weight:normal;font-stretch:normal;font-size:18px;font-family:'Trebuchet MS';-inkscape-font-specification:TrebuchetMS;writing-mode:lr-tb;fill:#aa118e;fill-opacity:1;fill-rule:nonzero;stroke:none"
175
+ id="text98"><tspan
176
+ x="0"
177
+ y="0"
178
+ id="tspan96">®</tspan></text>
179
+ </g></svg>
@@ -0,0 +1,59 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 134.9 30" style="enable-background:new 0 0 134.9 30;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#bcbcbc;}
7
+ .st1{fill:#66CC00;}
8
+ </style>
9
+ <g>
10
+ <path class="st0" d="M16.3,21.6h-2.4v-13h2.4V21.6z"/>
11
+ <path class="st0" d="M21.3,13.5c0.2-0.2,0.4-0.4,0.6-0.5c0.2-0.2,0.4-0.3,0.7-0.4c0.2-0.1,0.5-0.2,0.7-0.3c0.3-0.1,0.6-0.1,0.9-0.1
12
+ c0.5,0,1,0.1,1.3,0.3s0.7,0.4,1,0.7s0.5,0.7,0.6,1.1c0.1,0.4,0.2,0.9,0.2,1.4v5.9h-2.2v-5.9c0-0.6-0.1-1-0.4-1.3S24,14,23.5,14
13
+ c-0.4,0-0.7,0.1-1.1,0.3c-0.3,0.2-0.7,0.4-1,0.7v6.7h-2.2v-9.2h1.4c0.3,0,0.5,0.1,0.6,0.4L21.3,13.5z"/>
14
+ <path class="st0" d="M32.1,8.2v13.4h-2.2V8.2H32.1z"/>
15
+ <path class="st0" d="M37.3,9.7c0,0.2,0,0.4-0.1,0.5s-0.2,0.3-0.3,0.4s-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.3c0.2,0.5,0.3,1.1,0.3,1.8
53
+ c0,0.3,0,0.6-0.1,0.7c-0.1,0.1-0.2,0.2-0.4,0.2H109.1z M113.4,15.9c0-0.3,0-0.6-0.1-0.8c-0.1-0.3-0.2-0.5-0.4-0.7
54
+ c-0.2-0.2-0.4-0.3-0.6-0.5c-0.2-0.1-0.5-0.2-0.9-0.2c-0.6,0-1.1,0.2-1.5,0.5c-0.4,0.4-0.6,0.9-0.7,1.6H113.4z"/>
55
+ <path class="st0" d="M119.6,14c0.3-0.6,0.6-1,1-1.3c0.4-0.3,0.9-0.5,1.4-0.5c0.4,0,0.8,0.1,1,0.3l-0.1,1.7c0,0.1-0.1,0.2-0.1,0.2
56
+ c-0.1,0-0.1,0.1-0.2,0.1c-0.1,0-0.2,0-0.4,0c-0.2,0-0.3,0-0.5,0c-0.2,0-0.5,0-0.7,0.1s-0.4,0.2-0.5,0.3c-0.2,0.1-0.3,0.3-0.4,0.5
57
+ c-0.1,0.2-0.2,0.4-0.3,0.7v5.7h-2.2v-9.2h1.3c0.2,0,0.4,0,0.5,0.1c0.1,0.1,0.2,0.2,0.2,0.4L119.6,14z"/>
58
+ </g>
59
+ </svg>
@@ -15,7 +15,8 @@ export class Accordian {
15
15
  addCard(title, body, selected, data) {
16
16
  const a = this;
17
17
  const card = $('<div class="card"></div>')
18
- .append($('<div class="title"></div>')
18
+ .append($('<button class="title"></button>')
19
+ .attr("aria-label", "Expand section")
19
20
  .append(title)
20
21
  .on("click", function () {
21
22
  var thisCard = $(this).closest(".card");
@@ -25,6 +25,13 @@ export class Aspect {
25
25
  return aspectLabelMap[this._aspect] ?? this._report.getLabel(this._aspect);
26
26
  }
27
27
 
28
+ labelOrNameAndLang() {
29
+ if (this._aspect in aspectLabelMap) {
30
+ return {label: aspectLabelMap};
31
+ }
32
+ return this._report.getLabelOrNameAndLang(this._aspect);
33
+ }
34
+
28
35
  value() {
29
36
  return this._value;
30
37
  }
@@ -43,27 +50,31 @@ export class Aspect {
43
50
  }
44
51
 
45
52
  valueLabel(rolePrefix) {
53
+ return this.valueLabelAndLang(rolePrefix).label;
54
+ }
55
+
56
+ valueLabelAndLang(rolePrefix) {
46
57
  if (this._aspect === 'c') {
47
- return this._report.getLabel(this._value, rolePrefix) || this._value;
58
+ return this._report.getLabelOrNameAndLang(this._value, rolePrefix);
48
59
  }
49
60
  if (this.isTaxonomyDefined()) {
50
61
  if (this._report.getConcept(this._aspect).isTypedDimension()) {
51
- return this._value === null ? "nil" : this._value;
62
+ return {label: (this._value === null ? "nil" : this._value)};
52
63
  }
53
- return this._report.getLabel(this._value, rolePrefix) || this._value;
64
+ return this._report.getLabelOrNameAndLang(this._value, rolePrefix);
54
65
  }
55
66
  else if (this._aspect === 'u') {
56
- return this._report.reportSet.getUnit(this._value).label();
67
+ return {label: this._report.reportSet.getUnit(this._value).label()};
57
68
  }
58
69
  else if (this._aspect === 'p') {
59
70
  const p = new Period(this._value);
60
- return p.toString();
71
+ return {label: p.toString()};
61
72
  }
62
73
  else if (this._aspect === 'e') {
63
- return Identifiers.readableName(this._report.qname(this._value));
74
+ return {label: Identifiers.readableName(this._report.qname(this._value))};
64
75
  }
65
76
  else {
66
- return this._value;
77
+ return {label: this._value};
67
78
  }
68
79
  }
69
80
  }
@@ -0,0 +1,14 @@
1
+ // See COPYRIGHT.md for copyright information
2
+
3
+ import i18next from 'i18next';
4
+ import { NAMESPACE_XBRLI } from "./util.js";
5
+
6
+ export class Balance {
7
+ constructor(balance) {
8
+ this.balance = balance;
9
+ }
10
+
11
+ label() {
12
+ return i18next.t(`balanceTypes:${this.balance}`, {defaultValue: this.balance});
13
+ }
14
+ }
@@ -5,10 +5,17 @@ import { BarController, BarElement, CategoryScale, Chart, LinearScale } from 'ch
5
5
  import { AspectSet } from './aspect.js';
6
6
  import { wrapLabel } from "./util.js";
7
7
  import { Dialog } from './dialog.js';
8
+ import { getVariable } from './theme.js';
9
+
8
10
 
9
11
  export class IXBRLChart extends Dialog {
10
12
  constructor() {
11
13
  super(".dialog.chart");
14
+ this.dataSetColours = [
15
+ getVariable('--colour-primary'),
16
+ getVariable('--colour-secondary'),
17
+ getVariable('--colour-warning'),
18
+ ]
12
19
  }
13
20
 
14
21
  _multiplierDescription(m) {
@@ -32,11 +39,7 @@ export class IXBRLChart extends Dialog {
32
39
  }
33
40
 
34
41
  dataSetColour(i) {
35
- return [
36
- '#66cc00',
37
- '#0094ff',
38
- '#fbad17'
39
- ][i];
42
+ return this.dataSetColours[i];
40
43
  }
41
44
 
42
45
  addAspect(a) {
@@ -139,7 +142,7 @@ export class IXBRLChart extends Dialog {
139
142
  for (const av of fact.aspects()) {
140
143
  /* Don't show concept in list of additional aspects */
141
144
  if (av.name() != 'c') {
142
- const a = $("<div>")
145
+ const a = $("<button>")
143
146
  .addClass("other-aspect")
144
147
  .appendTo($(".other-aspects",c));
145
148
  if (dims.includes(av.name())) {
@@ -204,6 +207,7 @@ export class IXBRLChart extends Dialog {
204
207
  this.setChartSize();
205
208
  chart.resize();
206
209
  });
210
+ $(".other-aspect", c).get(0)?.focus();
207
211
  }
208
212
 
209
213
  setChartSize() {
@@ -1,5 +1,8 @@
1
1
  // See COPYRIGHT.md for copyright information
2
2
 
3
+ import { DataType } from "./datatype.js";
4
+ import { Balance } from "./balance.js";
5
+
3
6
  export class Concept {
4
7
  constructor(report, name) {
5
8
  this._c = report.concepts()[name] || {};
@@ -22,6 +25,18 @@ export class Concept {
22
25
  }
23
26
  }
24
27
 
28
+ labels() {
29
+ if (!this._c.labels) {
30
+ return {};
31
+ }
32
+ const lang = this.report.reportSet.viewerOptions.language;
33
+ return Object.fromEntries(
34
+ Object.entries(this._c.labels)
35
+ .map(([role, labels]) => [role, labels[lang]])
36
+ .filter(([role, label]) => label !== undefined)
37
+ )
38
+ }
39
+
25
40
  references() {
26
41
  if (!this._c.r) {
27
42
  return [];
@@ -60,6 +75,18 @@ export class Concept {
60
75
  }
61
76
 
62
77
  typedDomainElement() {
63
- return this._c.td
78
+ return this._c.td;
79
+ }
80
+
81
+ dataType() {
82
+ if (this._c.dt !== undefined) {
83
+ return new DataType(this.report, this._c.dt);
84
+ }
85
+ }
86
+
87
+ balance() {
88
+ if (this._c.b !== undefined) {
89
+ return new Balance(this._c.b);
90
+ }
64
91
  }
65
92
  }