@devgateway/dvz-wp-commons 1.2.0 → 1.3.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/build/APIConfig.cjs +479 -0
- package/build/APIConfig.d.ts +12 -0
- package/build/APIConfig.js +367 -283
- package/build/APIutils.cjs +54 -0
- package/build/APIutils.js +7 -1
- package/build/Blocks.cjs +672 -0
- package/build/Blocks.d.ts +14 -1
- package/build/Blocks.js +523 -330
- package/build/CSVSourceConfig.cjs +99 -0
- package/build/CSVSourceConfig.js +63 -46
- package/build/ChartColors.cjs +593 -0
- package/build/ChartColors.d.ts +0 -1
- package/build/ChartColors.js +430 -366
- package/build/ChartLegends.cjs +157 -0
- package/build/ChartLegends.d.ts +0 -1
- package/build/ChartLegends.js +173 -54
- package/build/ChartMeasures.cjs +192 -0
- package/build/ChartMeasures.d.ts +0 -1
- package/build/ChartMeasures.js +197 -109
- package/build/Constants.cjs +21 -0
- package/build/Constants.js +3 -1
- package/build/DataFilters.cjs +176 -0
- package/build/DataFilters.js +100 -89
- package/build/Format.cjs +1038 -0
- package/build/Format.js +428 -378
- package/build/MapCSVSourceConfig.cjs +36 -0
- package/build/MapCSVSourceConfig.js +19 -8
- package/build/Measures.cjs +196 -0
- package/build/Measures.js +204 -108
- package/build/MobileConfigUtils.cjs +92 -0
- package/build/MobileConfigUtils.js +19 -8
- package/build/Tooltip.cjs +63 -0
- package/build/Tooltip.d.ts +1 -3
- package/build/Tooltip.js +27 -51
- package/build/Util.cjs +29 -0
- package/build/Util.js +7 -7
- package/build/hooks/index.cjs +1 -0
- package/build/hooks/index.js +0 -3
- package/build/icons/Chart.cjs +49 -0
- package/build/icons/Chart.d.ts +1 -2
- package/build/icons/Chart.js +10 -11
- package/build/icons/Generic.cjs +24 -0
- package/build/icons/Generic.d.ts +1 -2
- package/build/icons/Generic.js +25 -4
- package/build/icons/index.cjs +19 -0
- package/build/icons/index.js +2 -2
- package/build/index.cjs +225 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +47 -16
- package/package.json +16 -7
- package/build/tsconfig.tsbuildinfo +0 -1
package/build/index.cjs
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "APIConfig", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _APIConfig.APIConfig;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "BLOCKS_CATEGORY", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Constants.BLOCKS_CATEGORY;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "BLOCKS_NS", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Constants.BLOCKS_NS;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "BlockEditWithAPIMetadata", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _Blocks.BlockEditWithAPIMetadata;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "BlockEditWithFilters", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _Blocks.BlockEditWithFilters;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "CSVConfig", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _CSVSourceConfig.CSVConfig;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "CSVSourceConfig", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _CSVSourceConfig.CSVConfig;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "ChartColors", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _ChartColors.ChartColors;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ChartIcon", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _index.ChartIcon;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ChartLegends", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _ChartLegends.ChartLegends;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ChartMeasures", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _ChartMeasures.ChartMeasures;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "ComponentWithSettings", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _Blocks.ComponentWithSettings;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "DEFAULT_FORMAT_SETTINGS", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _Constants.DEFAULT_FORMAT_SETTINGS;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "DataFilters", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _DataFilters.DataFilters;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "Format", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _Format.Format;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "GenericIcon", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _index.GenericIcon;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "MapCSVSourceConfig", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _MapCSVSourceConfig.MapCSVSourceConfig;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "Measures", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _Measures.Measures;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "SizeConfig", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _Blocks.SizeConfig;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _Tooltip.Tooltip;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "categorical", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _ChartColors.categorical;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "diverging", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _ChartColors.diverging;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "extractAxisValues", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _MobileConfigUtils.extractAxisValues;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "getSelectedItemsForApp", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _MobileConfigUtils.getSelectedItemsForApp;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "getSelectedLabelsForApp", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _MobileConfigUtils.getSelectedLabelsForApp;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "getStoredOrSetItem", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _MobileConfigUtils.getStoredOrSetItem;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "getTranslatedOptions", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _APIutils.getTranslatedOptions;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "getTranslation", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _APIutils.getTranslation;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "isSupersetAPI", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return _APIutils.isSupersetAPI;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "panelFocus", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return _Util.panelFocus;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "sequential", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _ChartColors.sequential;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "togglePanel", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _Util.togglePanel;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "transformDataToAppObject", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _MobileConfigUtils.transformDataToAppObject;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "updateMeasureLabels", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _MobileConfigUtils.updateMeasureLabels;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
var _APIConfig = require("./APIConfig.cjs");
|
|
211
|
+
var _APIutils = require("./APIutils.cjs");
|
|
212
|
+
var _Blocks = require("./Blocks.cjs");
|
|
213
|
+
var _ChartColors = require("./ChartColors.cjs");
|
|
214
|
+
var _Constants = require("./Constants.cjs");
|
|
215
|
+
var _CSVSourceConfig = require("./CSVSourceConfig.cjs");
|
|
216
|
+
var _DataFilters = require("./DataFilters.cjs");
|
|
217
|
+
var _Format = require("./Format.cjs");
|
|
218
|
+
var _MapCSVSourceConfig = require("./MapCSVSourceConfig.cjs");
|
|
219
|
+
var _Measures = require("./Measures.cjs");
|
|
220
|
+
var _MobileConfigUtils = require("./MobileConfigUtils.cjs");
|
|
221
|
+
var _Tooltip = require("./Tooltip.cjs");
|
|
222
|
+
var _Util = require("./Util.cjs");
|
|
223
|
+
var _ChartLegends = require("./ChartLegends.cjs");
|
|
224
|
+
var _ChartMeasures = require("./ChartMeasures.cjs");
|
|
225
|
+
var _index = require("./icons/index.cjs");
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { APIConfig } from "./APIConfig";
|
|
2
|
-
export { CSVConfig } from "./CSVSourceConfig";
|
|
3
2
|
export { DataFilters } from "./DataFilters";
|
|
4
3
|
export { Format } from "./Format";
|
|
5
4
|
export { MapCSVSourceConfig } from "./MapCSVSourceConfig";
|
|
@@ -11,6 +10,7 @@ export { getTranslatedOptions, getTranslation, isSupersetAPI } from "./APIutils"
|
|
|
11
10
|
export { BlockEditWithAPIMetadata, BlockEditWithFilters, ComponentWithSettings, SizeConfig } from "./Blocks";
|
|
12
11
|
export { categorical, sequential, diverging, ChartColors } from "./ChartColors";
|
|
13
12
|
export { DEFAULT_FORMAT_SETTINGS, BLOCKS_CATEGORY, BLOCKS_NS } from "./Constants";
|
|
13
|
+
export { CSVConfig, CSVConfig as CSVSourceConfig } from "./CSVSourceConfig";
|
|
14
14
|
export { extractAxisValues, getSelectedLabelsForApp, transformDataToAppObject, updateMeasureLabels, getSelectedItemsForApp, getStoredOrSetItem } from "./MobileConfigUtils";
|
|
15
15
|
export { panelFocus, togglePanel } from "./Util";
|
|
16
16
|
export { GenericIcon, ChartIcon } from "./icons/index";
|
package/build/index.js
CHANGED
|
@@ -1,16 +1,47 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
1
|
+
export {
|
|
2
|
+
APIConfig
|
|
3
|
+
} from './APIConfig.js';
|
|
4
|
+
export {
|
|
5
|
+
getTranslatedOptions, getTranslation, isSupersetAPI
|
|
6
|
+
} from './APIutils.js';
|
|
7
|
+
export {
|
|
8
|
+
BlockEditWithAPIMetadata, BlockEditWithFilters, ComponentWithSettings, SizeConfig
|
|
9
|
+
} from './Blocks.js';
|
|
10
|
+
|
|
11
|
+
export {categorical, sequential, diverging, ChartColors} from './ChartColors.js';
|
|
12
|
+
|
|
13
|
+
export {DEFAULT_FORMAT_SETTINGS, BLOCKS_CATEGORY, BLOCKS_NS} from './Constants.js';
|
|
14
|
+
|
|
15
|
+
export {CSVConfig} from './CSVSourceConfig.js';
|
|
16
|
+
export {
|
|
17
|
+
DataFilters,
|
|
18
|
+
} from './DataFilters.js';
|
|
19
|
+
export {
|
|
20
|
+
Format,
|
|
21
|
+
} from './Format.js';
|
|
22
|
+
export {
|
|
23
|
+
MapCSVSourceConfig,
|
|
24
|
+
} from './MapCSVSourceConfig.js';
|
|
25
|
+
export {
|
|
26
|
+
Measures,
|
|
27
|
+
} from './Measures.js';
|
|
28
|
+
export {
|
|
29
|
+
extractAxisValues,
|
|
30
|
+
getSelectedLabelsForApp,
|
|
31
|
+
transformDataToAppObject,
|
|
32
|
+
updateMeasureLabels,
|
|
33
|
+
getSelectedItemsForApp,
|
|
34
|
+
getStoredOrSetItem
|
|
35
|
+
} from './MobileConfigUtils.js';
|
|
36
|
+
export {
|
|
37
|
+
Tooltip,
|
|
38
|
+
} from './Tooltip.js';
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
panelFocus, togglePanel
|
|
42
|
+
} from './Util.js';
|
|
43
|
+
|
|
44
|
+
export {ChartLegends} from './ChartLegends.js';
|
|
45
|
+
export {ChartMeasures} from './ChartMeasures.js';
|
|
46
|
+
export {GenericIcon, ChartIcon} from './icons/index.js';
|
|
47
|
+
export {CSVConfig as CSVSourceConfig} from './CSVSourceConfig.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devgateway/dvz-wp-commons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
|
+
"type": "module",
|
|
5
6
|
"description": "Common Utilities for Data Viz Wordpress that can be also used in other projects",
|
|
6
7
|
"author": "Sebastian Dimunzio",
|
|
7
8
|
"license": "GPL-2.0-or-later",
|
|
9
|
+
"main": "build/index.js",
|
|
10
|
+
"types": "build/index.d.ts",
|
|
11
|
+
"module": "build/index.js",
|
|
8
12
|
"maintainers": [
|
|
9
13
|
"Sebastian Dimunzio",
|
|
10
14
|
"Timothy Mugo"
|
|
@@ -21,9 +25,6 @@
|
|
|
21
25
|
"bugs": {
|
|
22
26
|
"url": "https://github.com/devgateway/data-viz-wordpress/issues"
|
|
23
27
|
},
|
|
24
|
-
"main": "build/index.js",
|
|
25
|
-
"types": "build/index.d.ts",
|
|
26
|
-
"module": "build/index.js",
|
|
27
28
|
"files": [
|
|
28
29
|
"build",
|
|
29
30
|
"LICENSE",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
],
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public",
|
|
34
|
-
"
|
|
35
|
+
"provenance": false
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@babel/runtime": "^7.28.4",
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
"semantic-release": "^24.2.9",
|
|
48
49
|
"semantic-release-monorepo": "^8.0.2",
|
|
49
50
|
"ts-loader": "^9.5.4",
|
|
50
|
-
"typescript": "^5.9.3"
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"unbuild": "3.6.1"
|
|
51
53
|
},
|
|
52
54
|
"dependencies": {
|
|
53
55
|
"@wordpress/api-fetch": "^7.32.0",
|
|
@@ -65,8 +67,15 @@
|
|
|
65
67
|
"peerDependencies": {
|
|
66
68
|
"react": "18.3.1"
|
|
67
69
|
},
|
|
70
|
+
"exports": {
|
|
71
|
+
".": {
|
|
72
|
+
"import": "./build/index.js",
|
|
73
|
+
"default": "./build/index.cjs",
|
|
74
|
+
"types": "./build/index.d.ts"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
68
77
|
"scripts": {
|
|
69
|
-
"build": "
|
|
78
|
+
"build": "unbuild",
|
|
70
79
|
"format:js": "wp-scripts format-js",
|
|
71
80
|
"lint:js": "wp-scripts lint-js",
|
|
72
81
|
"start": "tsc -w"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../src/APIConfig.js","../src/APIutils.js","../src/Blocks.js","../src/CSVSourceConfig.js","../src/ChartColors.jsx","../src/ChartLegends.jsx","../src/ChartMeasures.jsx","../src/Constants.js","../src/DataFilters.jsx","../src/Format.jsx","../src/MapCSVSourceConfig.js","../src/Measures.jsx","../src/MobileConfigUtils.js","../src/Tooltip.jsx","../src/Util.jsx","../src/index.js","../src/hooks/index.ts","../src/icons/Chart.js","../src/icons/Generic.js","../src/icons/index.js"],"version":"5.9.3"}
|