ixbrl-viewer 1.4.14__py3-none-any.whl → 1.4.15__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.
- iXBRLViewerPlugin/__init__.py +2 -1
- iXBRLViewerPlugin/_version.py +2 -2
- iXBRLViewerPlugin/iXBRLViewer.py +9 -5
- iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js +1 -1
- iXBRLViewerPlugin/viewer/src/html/inspector.html +27 -0
- iXBRLViewerPlugin/viewer/src/i18n/en/translation.json +18 -1
- iXBRLViewerPlugin/viewer/src/i18n/es/translation.json +18 -1
- iXBRLViewerPlugin/viewer/src/icons/calculator.svg +13 -0
- iXBRLViewerPlugin/viewer/src/icons/circle-cross.svg +11 -0
- iXBRLViewerPlugin/viewer/src/icons/circle-tick.svg +11 -0
- iXBRLViewerPlugin/viewer/src/icons/dimension.svg +1 -5
- iXBRLViewerPlugin/viewer/src/icons/member.svg +2 -5
- iXBRLViewerPlugin/viewer/src/icons/multi-tag.svg +10 -0
- iXBRLViewerPlugin/viewer/src/js/accordian.js +2 -2
- iXBRLViewerPlugin/viewer/src/js/calculation.js +202 -0
- iXBRLViewerPlugin/viewer/src/js/calculation.test.js +306 -0
- iXBRLViewerPlugin/viewer/src/js/calculationInspector.js +190 -0
- iXBRLViewerPlugin/viewer/src/js/concept.js +7 -1
- iXBRLViewerPlugin/viewer/src/js/fact.js +59 -5
- iXBRLViewerPlugin/viewer/src/js/factset.js +54 -5
- iXBRLViewerPlugin/viewer/src/js/factset.test.js +71 -5
- iXBRLViewerPlugin/viewer/src/js/inspector.js +85 -30
- iXBRLViewerPlugin/viewer/src/js/interval.js +70 -0
- iXBRLViewerPlugin/viewer/src/js/interval.test.js +153 -0
- iXBRLViewerPlugin/viewer/src/js/test-utils.js +19 -0
- iXBRLViewerPlugin/viewer/src/less/accordian.less +2 -2
- iXBRLViewerPlugin/viewer/src/less/calculation-inspector.less +83 -0
- iXBRLViewerPlugin/viewer/src/less/colours.less +2 -0
- iXBRLViewerPlugin/viewer/src/less/dialog.less +8 -4
- iXBRLViewerPlugin/viewer/src/less/inspector.less +67 -23
- iXBRLViewerPlugin/viewer/src/less/validation-report.less +1 -2
- iXBRLViewerPlugin/viewer/src/less/viewer.less +1 -1
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/METADATA +2 -2
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/RECORD +39 -30
- iXBRLViewerPlugin/viewer/src/js/calculations.js +0 -111
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/LICENSE +0 -0
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/NOTICE +0 -0
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/WHEEL +0 -0
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/entry_points.txt +0 -0
- {ixbrl_viewer-1.4.14.dist-info → ixbrl_viewer-1.4.15.dist-info}/top_level.txt +0 -0
iXBRLViewerPlugin/__init__.py
CHANGED
|
@@ -102,6 +102,7 @@ def generateViewer(
|
|
|
102
102
|
zipViewerOutput: bool = False,
|
|
103
103
|
features: list[str] | None = None,
|
|
104
104
|
packageDownloadURL: str | None = None,
|
|
105
|
+
copyScript = True
|
|
105
106
|
) -> None:
|
|
106
107
|
"""
|
|
107
108
|
Generate and save a viewer at the given destination (file, directory, or in-memory file) with the given viewer URL.
|
|
@@ -137,7 +138,7 @@ def generateViewer(
|
|
|
137
138
|
else:
|
|
138
139
|
viewerAbsolutePath = getAbsoluteViewerPath(saveViewerDest, viewerURL)
|
|
139
140
|
|
|
140
|
-
if os.path.isfile(viewerAbsolutePath):
|
|
141
|
+
if copyScript and os.path.isfile(viewerAbsolutePath):
|
|
141
142
|
# The script was found on the local file system and will be copied into the
|
|
142
143
|
# destination directory, so the local path (just the basename) of viewerURL should
|
|
143
144
|
# be passed to the script tag
|
iXBRLViewerPlugin/_version.py
CHANGED
iXBRLViewerPlugin/iXBRLViewer.py
CHANGED
|
@@ -265,11 +265,15 @@ class IXBRLViewerBuilder:
|
|
|
265
265
|
factData["v"] = None
|
|
266
266
|
elif f.concept is not None and f.concept.isEnumeration:
|
|
267
267
|
qnEnums = f.xValue
|
|
268
|
-
if
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
268
|
+
if qnEnums is None:
|
|
269
|
+
factData["v"] = f.value
|
|
270
|
+
factData["err"] = 'INVALID_IX_VALUE'
|
|
271
|
+
else:
|
|
272
|
+
if not isinstance(qnEnums, list):
|
|
273
|
+
qnEnums = (qnEnums,)
|
|
274
|
+
factData["v"] = " ".join(self.nsmap.qname(qn) for qn in qnEnums)
|
|
275
|
+
for qn in qnEnums:
|
|
276
|
+
self.addConcept(report, report.qnameConcepts.get(qn))
|
|
273
277
|
else:
|
|
274
278
|
factData["v"] = f.value
|
|
275
279
|
if f.value == INVALIDixVALUE:
|