ixbrl-viewer 1.4.21__py3-none-any.whl → 1.4.50__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 (114) hide show
  1. iXBRLViewerPlugin/__init__.py +77 -49
  2. iXBRLViewerPlugin/_version.py +2 -2
  3. iXBRLViewerPlugin/constants.py +86 -1
  4. iXBRLViewerPlugin/featureConfig.py +4 -1
  5. iXBRLViewerPlugin/iXBRLViewer.py +210 -137
  6. iXBRLViewerPlugin/plugin.py +7 -0
  7. iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js +1 -1
  8. iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js.LICENSE.txt +9 -2
  9. iXBRLViewerPlugin/viewer/i18next-parser.config.js +1 -1
  10. iXBRLViewerPlugin/viewer/src/data/utr.json +1 -0
  11. iXBRLViewerPlugin/viewer/src/html/fact-details.html +69 -38
  12. iXBRLViewerPlugin/viewer/src/html/footer-logo.html +4 -0
  13. iXBRLViewerPlugin/viewer/src/html/footnote-details.html +1 -1
  14. iXBRLViewerPlugin/viewer/src/html/inspector.html +324 -211
  15. iXBRLViewerPlugin/viewer/src/i18n/cy/balancetypes.json +1 -0
  16. iXBRLViewerPlugin/viewer/src/i18n/cy/currencies.json +13 -0
  17. iXBRLViewerPlugin/viewer/src/i18n/cy/datatypes.json +9 -0
  18. iXBRLViewerPlugin/viewer/src/i18n/cy/labelroles.json +24 -0
  19. iXBRLViewerPlugin/viewer/src/i18n/cy/referenceparts.json +10 -0
  20. iXBRLViewerPlugin/viewer/src/i18n/cy/scale.json +16 -0
  21. iXBRLViewerPlugin/viewer/src/i18n/cy/tooltips.json +17 -0
  22. iXBRLViewerPlugin/viewer/src/i18n/cy/translation.json +179 -0
  23. iXBRLViewerPlugin/viewer/src/i18n/en/balancetypes.json +4 -0
  24. iXBRLViewerPlugin/viewer/src/i18n/en/datatypes.json +10 -0
  25. iXBRLViewerPlugin/viewer/src/i18n/en/labelroles.json +4 -0
  26. iXBRLViewerPlugin/viewer/src/i18n/en/scale.json +16 -0
  27. iXBRLViewerPlugin/viewer/src/i18n/en/tooltips.json +17 -0
  28. iXBRLViewerPlugin/viewer/src/i18n/en/translation.json +56 -24
  29. iXBRLViewerPlugin/viewer/src/i18n/es/balancetypes.json +4 -0
  30. iXBRLViewerPlugin/viewer/src/i18n/es/datatypes.json +10 -0
  31. iXBRLViewerPlugin/viewer/src/i18n/es/labelroles.json +24 -0
  32. iXBRLViewerPlugin/viewer/src/i18n/es/scale.json +16 -0
  33. iXBRLViewerPlugin/viewer/src/i18n/es/tooltips.json +17 -0
  34. iXBRLViewerPlugin/viewer/src/i18n/es/translation.json +70 -37
  35. iXBRLViewerPlugin/viewer/src/icons/dark-mode.svg +4 -0
  36. iXBRLViewerPlugin/viewer/src/img/arelle-dark.svg +179 -0
  37. iXBRLViewerPlugin/viewer/src/img/inline-viewer-dark.svg +59 -0
  38. iXBRLViewerPlugin/viewer/src/js/accordian.js +3 -2
  39. iXBRLViewerPlugin/viewer/src/js/aspect.js +18 -10
  40. iXBRLViewerPlugin/viewer/src/js/aspect.test.js +2 -2
  41. iXBRLViewerPlugin/viewer/src/js/balance.js +14 -0
  42. iXBRLViewerPlugin/viewer/src/js/calculation.js +45 -34
  43. iXBRLViewerPlugin/viewer/src/js/calculationInspector.js +4 -7
  44. iXBRLViewerPlugin/viewer/src/js/chart.js +23 -21
  45. iXBRLViewerPlugin/viewer/src/js/concept.js +30 -3
  46. iXBRLViewerPlugin/viewer/src/js/concept.test.js +23 -2
  47. iXBRLViewerPlugin/viewer/src/js/datatype.js +20 -0
  48. iXBRLViewerPlugin/viewer/src/js/datatype.test.js +62 -0
  49. iXBRLViewerPlugin/viewer/src/js/dialog.js +6 -4
  50. iXBRLViewerPlugin/viewer/src/js/fact.js +40 -7
  51. iXBRLViewerPlugin/viewer/src/js/fact.test.js +3 -0
  52. iXBRLViewerPlugin/viewer/src/js/index.js +11 -3
  53. iXBRLViewerPlugin/viewer/src/js/inspector.js +560 -160
  54. iXBRLViewerPlugin/viewer/src/js/inspector.test.js +1 -2
  55. iXBRLViewerPlugin/viewer/src/js/ixbrlviewer.js +129 -31
  56. iXBRLViewerPlugin/viewer/src/js/ixbrlviewer.test.js +133 -20
  57. iXBRLViewerPlugin/viewer/src/js/ixnode.js +1 -1
  58. iXBRLViewerPlugin/viewer/src/js/menu.js +25 -7
  59. iXBRLViewerPlugin/viewer/src/js/number-matcher.js +2 -2
  60. iXBRLViewerPlugin/viewer/src/js/outline.js +2 -4
  61. iXBRLViewerPlugin/viewer/src/js/period.js +0 -1
  62. iXBRLViewerPlugin/viewer/src/js/report.js +68 -13
  63. iXBRLViewerPlugin/viewer/src/js/report.test.js +77 -6
  64. iXBRLViewerPlugin/viewer/src/js/reportset.js +33 -3
  65. iXBRLViewerPlugin/viewer/src/js/reportset.test.js +32 -6
  66. iXBRLViewerPlugin/viewer/src/js/search.js +61 -35
  67. iXBRLViewerPlugin/viewer/src/js/search.test.js +8 -5
  68. iXBRLViewerPlugin/viewer/src/js/summary.js +28 -2
  69. iXBRLViewerPlugin/viewer/src/js/summary.test.js +52 -14
  70. iXBRLViewerPlugin/viewer/src/js/tableExport.js +3 -3
  71. iXBRLViewerPlugin/viewer/src/js/taxonomynamer.js +34 -0
  72. iXBRLViewerPlugin/viewer/src/js/taxonomynamer.test.js +32 -0
  73. iXBRLViewerPlugin/viewer/src/js/theme.js +49 -0
  74. iXBRLViewerPlugin/viewer/src/js/unit.js +73 -2
  75. iXBRLViewerPlugin/viewer/src/js/unit.test.js +14 -3
  76. iXBRLViewerPlugin/viewer/src/js/util.js +21 -18
  77. iXBRLViewerPlugin/viewer/src/js/util.test.js +1 -0
  78. iXBRLViewerPlugin/viewer/src/js/utr.js +27 -0
  79. iXBRLViewerPlugin/viewer/src/js/viewer.js +40 -29
  80. iXBRLViewerPlugin/viewer/src/js/viewerOptions.js +0 -2
  81. iXBRLViewerPlugin/viewer/src/less/accordian.less +8 -4
  82. iXBRLViewerPlugin/viewer/src/less/block-list.less +12 -6
  83. iXBRLViewerPlugin/viewer/src/less/calculation-inspector.less +2 -2
  84. iXBRLViewerPlugin/viewer/src/less/chart.less +8 -5
  85. iXBRLViewerPlugin/viewer/src/less/colours-dark-mode.less +40 -0
  86. iXBRLViewerPlugin/viewer/src/less/colours.less +28 -21
  87. iXBRLViewerPlugin/viewer/src/less/common.less +1 -1
  88. iXBRLViewerPlugin/viewer/src/less/components.less +3 -3
  89. iXBRLViewerPlugin/viewer/src/less/core.less +2 -0
  90. iXBRLViewerPlugin/viewer/src/less/dialog.less +13 -10
  91. iXBRLViewerPlugin/viewer/src/less/form-controls.less +33 -11
  92. iXBRLViewerPlugin/viewer/src/less/inspector.less +556 -300
  93. iXBRLViewerPlugin/viewer/src/less/loader.less +2 -2
  94. iXBRLViewerPlugin/viewer/src/less/menu.less +33 -15
  95. iXBRLViewerPlugin/viewer/src/less/summary.less +16 -6
  96. iXBRLViewerPlugin/viewer/src/less/tabs.less +5 -5
  97. iXBRLViewerPlugin/viewer/src/less/text-mixins.less +2 -1
  98. iXBRLViewerPlugin/viewer/src/less/validation-report.less +1 -1
  99. iXBRLViewerPlugin/viewer/src/less/viewer.less +30 -18
  100. iXBRLViewerPlugin/viewer/webpack.common.js +19 -9
  101. {ixbrl_viewer-1.4.21.dist-info → ixbrl_viewer-1.4.50.dist-info}/METADATA +41 -14
  102. ixbrl_viewer-1.4.50.dist-info/RECORD +197 -0
  103. {ixbrl_viewer-1.4.21.dist-info → ixbrl_viewer-1.4.50.dist-info}/WHEEL +1 -1
  104. tests/puppeteer/framework/page_objects/doc_frame.js +3 -3
  105. tests/puppeteer/framework/page_objects/fact_details_panel.js +29 -1
  106. tests/puppeteer/puppeteer_test_run_via_intellij.jpg +0 -0
  107. tests/puppeteer/tests/fact_properties.test.js +10 -4
  108. tests/unit_tests/iXBRLViewerPlugin/test_iXBRLViewer.py +117 -51
  109. iXBRLViewerPlugin/viewer/src/js/interact.min.js +0 -6
  110. ixbrl_viewer-1.4.21.dist-info/RECORD +0 -166
  111. {ixbrl_viewer-1.4.21.dist-info → ixbrl_viewer-1.4.50.dist-info}/LICENSE +0 -0
  112. {ixbrl_viewer-1.4.21.dist-info → ixbrl_viewer-1.4.50.dist-info}/NOTICE +0 -0
  113. {ixbrl_viewer-1.4.21.dist-info → ixbrl_viewer-1.4.50.dist-info}/entry_points.txt +0 -0
  114. {ixbrl_viewer-1.4.21.dist-info → ixbrl_viewer-1.4.50.dist-info}/top_level.txt +0 -0
@@ -3,13 +3,17 @@
3
3
  "calculated-total": "",
4
4
  "concept": "",
5
5
  "consistent-duplicate-facts-present": "",
6
+ "does-not-bind": "",
6
7
  "inconsistent-duplicate-facts-present": "",
7
8
  "maximum": "",
8
- "mininum": "",
9
+ "minimum": "",
9
10
  "reported-total": "",
10
11
  "reported-value": "",
11
12
  "useCalculations11": ""
12
13
  },
14
+ "chart": {
15
+ "comparisonChart": ""
16
+ },
13
17
  "common": {
14
18
  "accuracyInfinite": "Precisió infinita",
15
19
  "none": "Ninguno",
@@ -17,16 +21,22 @@
17
21
  "unscaled": "Sin escala",
18
22
  "unspecified": "Sin especificar"
19
23
  },
24
+ "dialog": {
25
+ "close": ""
26
+ },
20
27
  "factDetails": {
21
28
  "accuracy": "Precisión",
29
+ "balance": "",
22
30
  "calculationIsConsistent": "",
23
31
  "calculationIsInconsistent": "",
24
32
  "calculationUnchecked": "",
33
+ "calculationUncheckedIncorrectVersion": "",
25
34
  "change": "Cambio",
26
35
  "changeFromIn": "Anteriormente {{from}} en ",
27
36
  "changePercentageDecrease": "{{decrease}}% menos que en ",
28
37
  "changePercentageIncrease": "{{increase}}% más que en ",
29
38
  "concept": "Concepto",
39
+ "datatype": "",
30
40
  "date": "Fecha",
31
41
  "dimensions": "Dimensiones",
32
42
  "duplicatesCount": "{{current}} de {{total}}",
@@ -50,97 +60,120 @@
50
60
  "concealedFact": "",
51
61
  "conceptType": "Tipo de concepto",
52
62
  "contributor": "",
53
- "documentOutline": "",
54
- "documentSummary": "",
63
+ "datatypes": "Tipos de datos",
64
+ "dimensions": "Tipo de dimensión",
65
+ "documentOutline": "Esquema del documento",
66
+ "documentSummary": "Resumen del documento",
67
+ "explicitDimension": "",
55
68
  "fact-groups": "",
56
69
  "factProperties": "Propiedades del hecho",
57
70
  "factSearch": "Búsqueda de hechos",
58
71
  "factValue": "",
59
- "filter": "Filtro",
60
72
  "footnoteProperties": "Propiedades de la nota al pie de página",
61
73
  "footnotes": "Notas al pie de página",
74
+ "hidden": "Oculto",
62
75
  "hiddenFact": "Hecho oculto",
63
- "hiddenFacts": "Hechos ocultos",
64
76
  "highlight": "Destacar",
65
77
  "initializing": "",
78
+ "ixbrlInspector": "",
79
+ "labels": "",
66
80
  "loadingViewer": "Preparando el visor iXBRL",
67
- "matchingFacts": "",
68
- "namespaces": "",
81
+ "mandatoryFacts": "Sólo hechos obligatorios",
82
+ "namespaces": "Espacios de nombres",
69
83
  "narrowerAnchor": "Anclaje angosto",
70
- "negative": "",
84
+ "negative": "Negativo",
71
85
  "nextTag": "",
72
86
  "noFactSelected": "Ningún hecho seleccionado",
73
87
  "numericOption": "Numérico",
74
88
  "outlineUnavailable": "",
75
89
  "period": "Periodo",
76
- "positive": "",
90
+ "positive": "Positivo",
77
91
  "previousTag": "",
78
92
  "printDocument": "",
79
93
  "references": "Referencias",
80
94
  "reset": "Limpiar",
81
95
  "scales": "Escalas",
96
+ "search": "Buscar",
97
+ "searchReport": "",
98
+ "searchResults": "",
82
99
  "searchTitle": "Búsqueda de hechos",
100
+ "settingsMenu": "",
101
+ "showAnalysisChart": "",
83
102
  "showTextOnly": "",
84
103
  "summary": {
85
104
  "fact": {
86
- "header": "",
87
- "title": ""
105
+ "header": "Resumen de los hechos",
106
+ "hidden": "Hechos ocultos",
107
+ "mandatory": "Hechos obligatorios",
108
+ "total": "Hechos totales"
88
109
  },
89
110
  "file": {
90
111
  "calculations": "",
91
112
  "definitions": "",
92
- "header": "",
93
- "inline": "",
113
+ "header": "Resumen del archivo",
114
+ "inline": "Documentos en línea",
94
115
  "labels": "",
95
116
  "other": "",
96
117
  "presentation": "",
97
118
  "references": "",
98
119
  "schemas": ""
99
120
  },
121
+ "reportCreation": "",
100
122
  "tag": {
101
- "colDimensions": "",
102
- "colMembers": "",
103
- "colNamespace": "",
104
- "colPrimaryItems": "",
105
- "colTotal": "",
106
- "header": "",
107
- "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"
108
130
  }
109
131
  },
110
132
  "summation": "",
133
+ "targetDocument": "",
111
134
  "textOption": "Texto",
135
+ "typedDimensions": "",
112
136
  "units": "Unidads",
113
137
  "validationCode": "",
114
138
  "validationMessage": "",
115
139
  "validationResults": "",
116
140
  "validationSeverity": "",
117
- "visibleFacts": "Hechos visibles",
118
- "widerAnchor": "Anclaje amplio"
141
+ "visibility": "Visibilidad",
142
+ "visible": "Visible",
143
+ "widerAnchor": "Anclaje amplio",
144
+ "xbrlGlossaryOpensInNewTab": "Glosario XBRL (se abre en una pestaña nueva)"
119
145
  },
120
- "scale": {
121
- "-3": "mil\u00E9simos",
122
- "-2": "cent\u00E9simos",
123
- "-1": "d\u00E9cimas",
124
- "0": "unidades",
125
- "1": "d\u00E9cimos",
126
- "2": "cientos",
127
- "3": "miles",
128
- "4": "diez miles",
129
- "5": "cien miles",
130
- "6": "millones",
131
- "7": "diez millones",
132
- "8": "cien millones",
133
- "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
+ "contactUs": "Contacta con nosotros",
153
+ "survey": "Encuesta",
154
+ "userGuide": "Guía del Usuario"
134
155
  },
135
156
  "search": {
136
157
  "concealedFact": "",
158
+ "dataTypeConflictWarning": "",
159
+ "default": "",
160
+ "filter": "Filtro",
137
161
  "hiddenFact": "Hecho oculto",
162
+ "matchingFactsSummary": "",
138
163
  "noMatchFound": "No se encontró ninguna coincidencia",
164
+ "reset": "",
139
165
  "selected": "seleccionados",
140
166
  "showMoreResults": "Mostrar más resultados",
141
- "tryAgainDifferentKeywords": "Intente nuevamente con palabras clave diferentes"
167
+ "toggleFilterControls": "",
168
+ "tryAgainDifferentKeywords": "Intente nuevamente con palabras clave diferentes",
169
+ "viewFact": ""
142
170
  },
143
171
  "toolbar": {
172
+ "homePage": "Inicio",
173
+ "toggleDarkMode": "Alternar modo oscuro",
144
174
  "xbrlElements": "Elementos XBRL"
175
+ },
176
+ "viewer": {
177
+ "ixbrlDocumentView": ""
145
178
  }
146
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-0.3,0.2-0.5,0.3c-0.2,0.1-0.4,0.1-0.6,0.1
16
+ c-0.2,0-0.4,0-0.5-0.1c-0.2-0.1-0.3-0.2-0.4-0.3s-0.2-0.3-0.3-0.4c-0.1-0.2-0.1-0.3-0.1-0.5c0-0.2,0-0.4,0.1-0.6
17
+ c0.1-0.2,0.2-0.3,0.3-0.5s0.3-0.2,0.4-0.3s0.4-0.1,0.5-0.1c0.2,0,0.4,0,0.6,0.1c0.2,0.1,0.3,0.2,0.5,0.3s0.2,0.3,0.3,0.5
18
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-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,9 +15,10 @@ 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
- .click(function () {
21
+ .on("click", function () {
21
22
  var thisCard = $(this).closest(".card");
22
23
  if (thisCard.hasClass("active")) {
23
24
  if (!a.options.alwaysOpen) {
@@ -1,8 +1,5 @@
1
1
  // See COPYRIGHT.md for copyright information
2
2
 
3
- import $ from 'jquery';
4
- import i18next from 'i18next';
5
- import { QName } from './qname.js';
6
3
  import { Period } from './period.js';
7
4
  import { Identifiers } from './identifiers.js';
8
5
 
@@ -28,6 +25,13 @@ export class Aspect {
28
25
  return aspectLabelMap[this._aspect] ?? this._report.getLabel(this._aspect);
29
26
  }
30
27
 
28
+ labelOrNameAndLang() {
29
+ if (this._aspect in aspectLabelMap) {
30
+ return {label: aspectLabelMap};
31
+ }
32
+ return this._report.getLabelOrNameAndLang(this._aspect);
33
+ }
34
+
31
35
  value() {
32
36
  return this._value;
33
37
  }
@@ -46,27 +50,31 @@ export class Aspect {
46
50
  }
47
51
 
48
52
  valueLabel(rolePrefix) {
53
+ return this.valueLabelAndLang(rolePrefix).label;
54
+ }
55
+
56
+ valueLabelAndLang(rolePrefix) {
49
57
  if (this._aspect === 'c') {
50
- return this._report.getLabel(this._value, rolePrefix) || this._value;
58
+ return this._report.getLabelOrNameAndLang(this._value, rolePrefix);
51
59
  }
52
60
  if (this.isTaxonomyDefined()) {
53
61
  if (this._report.getConcept(this._aspect).isTypedDimension()) {
54
- return this._value === null ? "nil" : this._value;
62
+ return {label: (this._value === null ? "nil" : this._value)};
55
63
  }
56
- return this._report.getLabel(this._value, rolePrefix) || this._value;
64
+ return this._report.getLabelOrNameAndLang(this._value, rolePrefix);
57
65
  }
58
66
  else if (this._aspect === 'u') {
59
- return this._report.reportSet.getUnit(this._value).label();
67
+ return {label: this._report.reportSet.getUnit(this._value).label()};
60
68
  }
61
69
  else if (this._aspect === 'p') {
62
70
  const p = new Period(this._value);
63
- return p.toString();
71
+ return {label: p.toString()};
64
72
  }
65
73
  else if (this._aspect === 'e') {
66
- return Identifiers.readableName(this._report.qname(this._value));
74
+ return {label: Identifiers.readableName(this._report.qname(this._value))};
67
75
  }
68
76
  else {
69
- return this._value;
77
+ return {label: this._value};
70
78
  }
71
79
  }
72
80
  }
@@ -79,9 +79,9 @@ test("Unit aspects label - known currency (EUR)", () => {
79
79
  });
80
80
 
81
81
  test("Unit aspects label - unknown currency", () => {
82
- const unitAspect = new Aspect("u", "iso4217:ZAR", testReport);
82
+ const unitAspect = new Aspect("u", "iso4217:ZZZZ", testReport);
83
83
  expect(unitAspect.label()).toBe("Unit");
84
- expect(unitAspect.valueLabel()).toBe("ZAR");
84
+ expect(unitAspect.valueLabel()).toBe("ZZZZ");
85
85
  });
86
86
 
87
87
  test("Entity aspect labels - unknown scheme", () => {
@@ -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
+ }