@nocobase/plugin-data-visualization 1.5.0-alpha.5 → 1.6.0-alpha.1

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.
@@ -8,24 +8,24 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.5.0-alpha.5",
11
+ "@nocobase/client": "1.6.0-alpha.1",
12
12
  "dayjs": "1.11.10",
13
13
  "@formily/react": "2.3.0",
14
14
  "@formily/shared": "2.3.2",
15
15
  "lodash": "4.17.21",
16
16
  "react": "18.2.0",
17
- "@nocobase/cache": "1.5.0-alpha.5",
18
- "@nocobase/server": "1.5.0-alpha.5",
19
- "@nocobase/test": "1.5.0-alpha.5",
17
+ "@nocobase/cache": "1.6.0-alpha.1",
18
+ "@nocobase/server": "1.6.0-alpha.1",
19
+ "@nocobase/test": "1.6.0-alpha.1",
20
20
  "@emotion/css": "11.13.0",
21
21
  "@ant-design/icons": "5.2.6",
22
22
  "ahooks": "3.7.8",
23
23
  "antd": "5.12.8",
24
24
  "@formily/antd-v5": "1.1.9",
25
25
  "@formily/core": "2.3.0",
26
- "@nocobase/utils": "1.5.0-alpha.5",
26
+ "@nocobase/utils": "1.6.0-alpha.1",
27
27
  "react-i18next": "11.18.6",
28
- "@nocobase/actions": "1.5.0-alpha.5",
29
- "@nocobase/database": "1.5.0-alpha.5",
28
+ "@nocobase/actions": "1.6.0-alpha.1",
29
+ "@nocobase/database": "1.6.0-alpha.1",
30
30
  "sequelize": "6.35.2"
31
31
  };
@@ -1 +1 @@
1
- {"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-11-23T15:54:42.781Z"}
1
+ {"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-12-03T15:33:33.443Z"}
@@ -1 +1 @@
1
- {"name":"moment-timezone","version":"0.5.43","description":"Parse and display moments in any timezone.","homepage":"http://momentjs.com/timezone/","author":"Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","keywords":["moment","date","time","timezone","olson","iana","zone","tz"],"main":"./index.js","typings":"./index.d.ts","engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment-timezone.git"},"bugs":{"url":"https://github.com/moment/moment-timezone/issues"},"license":"MIT","dependencies":{"moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-clean":"^2.0.1","grunt-contrib-jshint":"^3.2.0","grunt-contrib-nodeunit":"^4.0.0","grunt-contrib-uglify":"^5.2.2","grunt-exec":"^3.0.0","typescript":"^3.5.1"},"jspm":{"main":"builds/moment-timezone-with-data","shim":{"moment-timezone":{"deps":["moment"]}}},"scripts":{"test":"grunt"},"_lastModified":"2024-11-23T15:54:43.499Z"}
1
+ {"name":"moment-timezone","version":"0.5.43","description":"Parse and display moments in any timezone.","homepage":"http://momentjs.com/timezone/","author":"Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","keywords":["moment","date","time","timezone","olson","iana","zone","tz"],"main":"./index.js","typings":"./index.d.ts","engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment-timezone.git"},"bugs":{"url":"https://github.com/moment/moment-timezone/issues"},"license":"MIT","dependencies":{"moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-clean":"^2.0.1","grunt-contrib-jshint":"^3.2.0","grunt-contrib-nodeunit":"^4.0.0","grunt-contrib-uglify":"^5.2.2","grunt-exec":"^3.0.0","typescript":"^3.5.1"},"jspm":{"main":"builds/moment-timezone-with-data","shim":{"moment-timezone":{"deps":["moment"]}}},"scripts":{"test":"grunt"},"_lastModified":"2024-12-03T15:33:34.131Z"}
@@ -102,13 +102,14 @@ class QueryParser {
102
102
  }
103
103
  parse() {
104
104
  return async (ctx, next) => {
105
+ var _a;
105
106
  const { measures, dimensions, orders, include, where, limit } = ctx.action.params.values;
106
107
  const { attributes: measureAttributes, fieldMap: measureFieldMap, hasAgg } = this.parseMeasures(ctx, measures);
107
108
  const {
108
109
  attributes: dimensionAttributes,
109
110
  group,
110
111
  fieldMap: dimensionFieldMap
111
- } = this.parseDimensions(ctx, dimensions, hasAgg, ctx.timezone);
112
+ } = this.parseDimensions(ctx, dimensions, hasAgg, (_a = ctx.get) == null ? void 0 : _a.call(ctx, "x-timezone"));
112
113
  const order = this.parseOrders(ctx, orders, hasAgg);
113
114
  ctx.action.params.values = {
114
115
  ...ctx.action.params.values,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.5.0-alpha.5",
3
+ "version": "1.6.0-alpha.1",
4
4
  "displayName": "Data visualization",
5
5
  "displayName.zh-CN": "数据可视化",
6
6
  "description": "Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.",
@@ -34,7 +34,7 @@
34
34
  "@nocobase/test": "1.x",
35
35
  "@nocobase/utils": "1.x"
36
36
  },
37
- "gitHead": "8d24e8d2c0f3f57ceaa271438fd93db2b4150011",
37
+ "gitHead": "a4c91015e34ec0c9a427451b5fbdfb5fedc4f3d7",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]