@nocobase/plugin-data-visualization 1.7.0-beta.7 → 1.7.0-beta.9

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.7.0-beta.7",
12
- "dayjs": "1.11.10",
11
+ "@nocobase/client": "1.7.0-beta.9",
12
+ "dayjs": "1.11.13",
13
13
  "@formily/react": "2.3.0",
14
14
  "@formily/shared": "2.3.2",
15
15
  "lodash": "4.17.21",
16
- "@nocobase/cache": "1.7.0-beta.7",
17
- "@nocobase/server": "1.7.0-beta.7",
18
- "@nocobase/test": "1.7.0-beta.7",
16
+ "@nocobase/cache": "1.7.0-beta.9",
17
+ "@nocobase/server": "1.7.0-beta.9",
18
+ "@nocobase/test": "1.7.0-beta.9",
19
+ "@nocobase/utils": "1.7.0-beta.9",
19
20
  "react": "18.2.0",
20
21
  "@emotion/css": "11.13.0",
21
22
  "@ant-design/icons": "5.6.1",
22
23
  "ahooks": "3.7.8",
23
- "antd": "5.12.8",
24
- "@formily/antd-v5": "1.1.9",
24
+ "antd": "5.24.2",
25
+ "@formily/antd-v5": "1.2.3",
25
26
  "@formily/core": "2.3.0",
26
- "@nocobase/utils": "1.7.0-beta.7",
27
27
  "react-i18next": "11.18.6",
28
- "@nocobase/actions": "1.7.0-beta.7",
29
- "@nocobase/database": "1.7.0-beta.7",
28
+ "@nocobase/actions": "1.7.0-beta.9",
29
+ "@nocobase/database": "1.7.0-beta.9",
30
30
  "sequelize": "6.35.2"
31
31
  };
@@ -3,7 +3,7 @@
3
3
  "Delete": "Elimina",
4
4
  "Cancel": "Annulla",
5
5
  "Submit": "Invia",
6
- "Actions": "Operazioni",
6
+ "Actions": "Azioni",
7
7
  "Title": "Titolo",
8
8
  "Enable": "Abilita",
9
9
  "Chart": "Grafico",
@@ -76,7 +76,7 @@
76
76
  "Expand": "Espandi",
77
77
  "Current filter": "Filtro corrente",
78
78
  "Add custom field": "Aggiungi campo personalizzato",
79
- "To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "Per filtrare con campi personalizzati, utilizza le variabili \"Current filter\" nella configurazione del grafico.",
79
+ "To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "Per filtrare con campi personalizzati, utilizza le variabili \"Filtro corrente\" nella configurazione del grafico.",
80
80
  "Input": "Input",
81
81
  "Date range": "Intervallo date",
82
82
  "Time range": "Intervallo tempo",
@@ -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":"2025-03-19T10:54:34.963Z"}
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":"2025-03-25T05:44:17.717Z"}
@@ -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":"2025-03-19T10:54:35.605Z"}
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":"2025-03-25T05:44:18.336Z"}
@@ -215,10 +215,10 @@ const cacheMiddleware = async (ctx, next) => {
215
215
  const checkPermission = (ctx, next) => {
216
216
  var _a;
217
217
  const { collection, dataSource } = ctx.action.params.values;
218
- const roleName = ctx.state.currentRole || "anonymous";
218
+ const roleNames = ctx.state.currentRoles || ["anonymous"];
219
219
  const acl = ((_a = ctx.app.dataSourceManager.get(dataSource)) == null ? void 0 : _a.acl) || ctx.app.acl;
220
- const can = acl.can({ role: roleName, resource: collection, action: "list" });
221
- if (!can && roleName !== "root") {
220
+ const can = acl.can({ roles: roleNames, resource: collection, action: "list" });
221
+ if (!can && !roleNames.includes("root")) {
222
222
  ctx.throw(403, "No permissions");
223
223
  }
224
224
  return next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.7.0-beta.7",
3
+ "version": "1.7.0-beta.9",
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": "cd4ee4a58c0dc80418a71b3bba3b56552b85526f",
37
+ "gitHead": "7013a5080f3695d7750ab21005c90d2172c16480",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]