@sis-cc/dotstatsuite-components 9.3.5 → 12.0.0
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.
- package/lib/index.js +8 -3
- package/lib/rules/src/table/factories/getCells.js +22 -4
- package/lib/rules/src/table/factories/getLayoutWithFlags.js +32 -5
- package/lib/rules/src/table/factories/getTableData.js +9 -2
- package/lib/rules/src/table/preparators/prepareData.js +37 -2
- package/lib/rules/src/v8-transformer.js +5 -9
- package/lib/rules2/src/constants.js +7 -0
- package/lib/rules2/src/getAdvAttrSeriesAtCoordinates.js +39 -0
- package/lib/rules2/src/getAdvancedAttributes.js +126 -0
- package/lib/rules2/src/getMetadataCoordinates.js +38 -0
- package/lib/rules2/src/getMetadataStructureFromData.js +23 -0
- package/lib/rules2/src/getSidebarData.js +76 -0
- package/lib/rules2/src/hasCellMetadata.js +19 -0
- package/lib/rules2/src/hasLayoutEntryMetadata.js +18 -0
- package/lib/rules2/src/index.js +47 -0
- package/lib/rules2/src/parseMetadataSeries.js +83 -0
- package/lib/rules2/src/refineMetadataCoordinates.js +34 -0
- package/lib/rules2/src/sdmx3.0DataFormatPatch.js +20 -0
- package/lib/viewer/src/chart.js +48 -41
- package/lib/viewer/src/index.js +76 -56
- package/package.json +9 -10
- package/src/index.js +2 -0
- package/src/rules/src/table/factories/getCells.js +13 -4
- package/src/rules/src/table/factories/getLayoutWithFlags.js +36 -10
- package/src/rules/src/table/factories/getTableData.js +12 -3
- package/src/rules/src/table/preparators/prepareData.js +45 -4
- package/src/rules/src/v8-transformer.js +3 -8
- package/src/rules2/src/constants.js +2 -0
- package/src/rules2/src/getAdvAttrSeriesAtCoordinates.js +29 -0
- package/src/rules2/src/getAdvancedAttributes.js +113 -0
- package/src/rules2/src/getMetadataCoordinates.js +37 -0
- package/src/rules2/src/getMetadataStructureFromData.js +17 -0
- package/src/rules2/src/getSidebarData.js +73 -0
- package/src/rules2/src/hasCellMetadata.js +11 -0
- package/src/rules2/src/hasLayoutEntryMetadata.js +9 -0
- package/src/rules2/src/index.js +8 -0
- package/src/rules2/src/parseMetadataSeries.js +80 -0
- package/src/rules2/src/refineMetadataCoordinates.js +27 -0
- package/src/rules2/src/sdmx3.0DataFormatPatch.js +9 -0
- package/src/viewer/src/chart.js +15 -14
- package/src/viewer/src/index.js +35 -26
- package/test/advanced-attributes-parsing-perf.test.js +16 -0
- package/test/getCells.test.js +7 -5
- package/test/getDataflowAdvancedAttributes.test.js +32 -0
- package/test/getLayoutDataWithFlags.test.js +22 -12
- package/test/getMetadataCoordinates.test.js +0 -0
- package/test/getSeriesAdvancedAttributes.test.js +30 -0
- package/test/getSidebarData.test.js +116 -0
- package/test/getSubtitleFlags.test.js +1 -1
- package/test/getTableData.test.js +2 -1
- package/test/metadata-parsing-perf.test.js +487 -0
- package/test/mocks/OECD_SNA_TABLE1_1.0_-_AUS_V_metadata.json +152 -0
- package/test/mocks/large_metadata_series.json +701 -0
- package/test/mocks/observations-advanced-attributes.json +55382 -0
- package/test/parseMetadataSeries.test.js +55 -0
- package/test/prepareData.test.js +2 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"schema": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/data-message/tools/schemas/1.0/sdmx-json-data-schema.json",
|
|
4
|
+
"id": "IREF000345",
|
|
5
|
+
"prepared": "2021-11-29T18:05:55Z",
|
|
6
|
+
"test": true,
|
|
7
|
+
"contentLanguages": ["en"],
|
|
8
|
+
"sender": {
|
|
9
|
+
"id": "Reset_-_DotStat_v8",
|
|
10
|
+
"name": "unknown",
|
|
11
|
+
"names": {"en": "unknown"}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"data": {
|
|
15
|
+
"dataSets": [{
|
|
16
|
+
"structure": 0,
|
|
17
|
+
"action": "Information",
|
|
18
|
+
"annotations": [
|
|
19
|
+
0,
|
|
20
|
+
1
|
|
21
|
+
],
|
|
22
|
+
"dimensionGroupAttributes": {
|
|
23
|
+
"0:::": [null,null,null,0,0],
|
|
24
|
+
"0::0:": [0,0,0]
|
|
25
|
+
}
|
|
26
|
+
}],
|
|
27
|
+
"structures": [{
|
|
28
|
+
"links": [
|
|
29
|
+
{
|
|
30
|
+
"href": "http://ws-root/v2/dataflow/OECD/SNA_TABLE1/1.0",
|
|
31
|
+
"urn": "urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=OECD:SNA_TABLE1(1.0)",
|
|
32
|
+
"rel": "self"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"href": "http://ws-root/v2/datastructure/OECD/DSD_SNA_TABLE1/1.0",
|
|
36
|
+
"urn": "urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=OECD:DSD_SNA_TABLE1(1.0)",
|
|
37
|
+
"rel": "datastructure"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"name": "1. Gross domestic product (GDP)",
|
|
41
|
+
"names": {"en": "1. Gross domestic product (GDP)"},
|
|
42
|
+
"dimensions": {
|
|
43
|
+
"dataSet": [],
|
|
44
|
+
"series": [],
|
|
45
|
+
"observation": [
|
|
46
|
+
{
|
|
47
|
+
"id": "LOCATION",
|
|
48
|
+
"name": "Country",
|
|
49
|
+
"names": {"en": "Country"},
|
|
50
|
+
"keyPosition": 0,
|
|
51
|
+
"values": [{
|
|
52
|
+
"id": "AUS",
|
|
53
|
+
"order": 0,
|
|
54
|
+
"name": "Australia",
|
|
55
|
+
"names": {"en": "Australia"},
|
|
56
|
+
"annotations": [2]
|
|
57
|
+
}]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "TRANSACT",
|
|
61
|
+
"name": "Transaction",
|
|
62
|
+
"names": {"en": "Transaction"},
|
|
63
|
+
"keyPosition": 1
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "MEASURE",
|
|
67
|
+
"name": "Measure",
|
|
68
|
+
"names": {"en": "Measure"},
|
|
69
|
+
"keyPosition": 2,
|
|
70
|
+
"values": [{
|
|
71
|
+
"id": "V",
|
|
72
|
+
"order": 0,
|
|
73
|
+
"name": "Constant prices, national base year",
|
|
74
|
+
"names": {"en": "Constant prices, national base year"},
|
|
75
|
+
"annotations": [2]
|
|
76
|
+
}]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "TIME_PERIOD",
|
|
80
|
+
"name": "Year",
|
|
81
|
+
"names": {"en": "Year"},
|
|
82
|
+
"keyPosition": 3,
|
|
83
|
+
"roles": ["TIME_PERIOD"]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"attributes": {
|
|
88
|
+
"dataSet": [],
|
|
89
|
+
"dimensionGroup": [
|
|
90
|
+
{
|
|
91
|
+
"id": "UNIT_OF_MEASURE_USED",
|
|
92
|
+
"name": "Unit of measure used",
|
|
93
|
+
"names": {"en": "Unit of measure used"},
|
|
94
|
+
"values": [{"value": {
|
|
95
|
+
"en": "Australian Dollar",
|
|
96
|
+
"fr": "Dollar australien"
|
|
97
|
+
}}]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "POWER_CODE",
|
|
101
|
+
"name": "Power code",
|
|
102
|
+
"names": {"en": "Power code"},
|
|
103
|
+
"values": [{"value": 6}]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "POREFERENCE_PERIODWER_CODE",
|
|
107
|
+
"name": "Reference period",
|
|
108
|
+
"names": {"en": "Reference period"},
|
|
109
|
+
"values": [{"value": "2019"}]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "DIRECT_SOURCE",
|
|
113
|
+
"name": "Direct source",
|
|
114
|
+
"names": {"en": "Direct source"},
|
|
115
|
+
"values": [{"value": {
|
|
116
|
+
"en": "Reply to the National Accounts Questionnaire from the Australian Bureau of Statistics, Canberra. The official estimates are published in 'Australian system of national accounts', ABS, catalogue 5204.0.",
|
|
117
|
+
"fr": "Réponse au questionnaire des comptes nationaux du 'Australian Bureau of Statistics, Canberra'. Les données officielles sont publiées dans 'Australian system of national accounts', ABS, catalogue 5204.0."
|
|
118
|
+
}}]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "KEY_STATISTICAL_CONCEPT",
|
|
122
|
+
"name": "Key statistical concept",
|
|
123
|
+
"names": {"en": "Key statistical concept"},
|
|
124
|
+
"values": [{"value": {
|
|
125
|
+
"en": "As from December 2009, national accounts estimates are compiled according to the 2008 SNA ('System of National Accounts 2008', Commission of the European Communities-Eurostat, International Monetary Fund, Organisation for Economic Co-operation and Development, United Nations and World Bank, 2009).<br><br>Detailed information about the implementation of the 2008 SNA in Australian national accounts could be found in ABS website: <br><br><a href=\"http://www.abs.gov.au/ausstats/abs@.nsf/mf/5310.0.55.002\">ABS website</a><br><br>All the data refer to fiscal years beginning on the 1st July of the year indicated.<br><br>The financial intermediation services indirectly measured (FISIM) are allocated to industries and institutional sectors. <br><br>Original chain constant price estimates for main aggregates are referenced to fiscal year 2019-2020.",
|
|
126
|
+
"fr": "<br><br>Depuis décembre 2009, les estimations des comptes nationaux sont compilées selon le SCN 2008 ('Système de Comptabilité Nationale 2008', Commission des Communautés Européennes-Eurostat, Fonds Monétaire International, Organisation de Coopération et de Développement Economiques, Nations Unies et Banque mondiale, 2009).<br><br>Des informations détaillées sur la mise en place du SCN 2008 dans les comptes nationaux australiens sont disponibles sur le site internet d'ABS :<br><br><a href=\"http://www.abs.gov.au/ausstats/abs@.nsf/mf/5310.0.55.002\">ABS website</a><br><br>Toutes les données se réfèrent aux années fiscales commençant le 1er juillet de l'année indiquée.<br><br>Les services d'intermédiation financière indirectement mesurés (SIFIM) sont intégrés dans les branches d'activité et secteurs institutionnels. <br><br>Pour les principaux aggrégats, les estimations originales des prix constants en chaîne sont basées sur l'année fiscale de référence 2019-2020."
|
|
127
|
+
}}]
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"series": [],
|
|
131
|
+
"observation": []
|
|
132
|
+
},
|
|
133
|
+
"annotations": [
|
|
134
|
+
{
|
|
135
|
+
"type": "NonProductionDataflow",
|
|
136
|
+
"text": "true",
|
|
137
|
+
"texts": {"en": "true"}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"title": "urn:sdmx:org.sdmx.infomodel.metadatastructure.MetadataStructure=OECD:MSD_SNA_TABLE1(1.0)",
|
|
141
|
+
"type": "METADATA"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "ORDER",
|
|
145
|
+
"text": "1",
|
|
146
|
+
"texts": {"en": "1"}
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"dataSets": [0]
|
|
150
|
+
}]
|
|
151
|
+
}
|
|
152
|
+
}
|