@nocobase/plugin-charts 0.9.2-alpha.2 → 0.9.2-alpha.4

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.
@@ -14,9 +14,9 @@ export interface ChartBlockEngineMetaData {
14
14
  chart: IChartConfig;
15
15
  }
16
16
  export declare const useGetDataSet: (chartQueryId: number) => {
17
- loading: boolean;
17
+ loading: any;
18
18
  dataSet: any;
19
- error: Error;
19
+ error: any;
20
20
  };
21
21
  declare const ChartBlockEngine: {
22
22
  ({ chartBlockEngineMetaData }: {
@@ -84,7 +84,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
84
84
  const jsonConfigDesc = (title, link) => {
85
85
  return _react2().default.createElement("span", null, (0, _locale.lang)('Json config references: '), _react2().default.createElement("a", {
86
86
  href: link,
87
- target: "_blank"
87
+ target: "_blank",
88
+ rel: "noreferrer"
88
89
  }, (0, _locale.lang)(title)));
89
90
  };
90
91
  exports.jsonConfigDesc = jsonConfigDesc;
@@ -121,7 +121,7 @@ const ChartBlockInitializer = props => {
121
121
  value: field.name
122
122
  };
123
123
  });
124
- let values = yield (0, _antd().FormDialog)({
124
+ const values = yield (0, _antd().FormDialog)({
125
125
  okText: compile('{{t("Submit")}}'),
126
126
  title: (0, _locale.lang)('Create chart block'),
127
127
  width: 1200,
@@ -28,7 +28,7 @@ const defaultFieldNames = {
28
28
  exports.defaultFieldNames = defaultFieldNames;
29
29
  const getCurrentOptions = (values, dataSource, fieldNames) => {
30
30
  function flatData(data) {
31
- let newArr = [];
31
+ const newArr = [];
32
32
  for (let i = 0; i < data.length; i++) {
33
33
  const children = data[i][fieldNames.options];
34
34
  if (Array.isArray(children)) {
@@ -42,7 +42,7 @@ const getCurrentOptions = (values, dataSource, fieldNames) => {
42
42
  values = (0, _lodash().castArray)(values).filter(item => item != null).map(val => typeof val === 'object' ? val[fieldNames.value] : val);
43
43
  const findOptions = options => {
44
44
  if (!options) return [];
45
- let current = [];
45
+ const current = [];
46
46
  var _iterator = _createForOfIteratorHelper(values),
47
47
  _step;
48
48
  try {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-charts",
3
- "version": "0.9.2-alpha.2",
3
+ "version": "0.9.2-alpha.4",
4
4
  "main": "lib/server/index.js",
5
5
  "devDependencies": {
6
- "@nocobase/client": "0.9.2-alpha.2",
7
- "@nocobase/server": "0.9.2-alpha.2",
8
- "@nocobase/test": "0.9.2-alpha.2"
6
+ "@nocobase/client": "0.9.2-alpha.4",
7
+ "@nocobase/server": "0.9.2-alpha.4",
8
+ "@nocobase/test": "0.9.2-alpha.4"
9
9
  },
10
10
  "dependencies": {
11
11
  "json5": "^2.2.3"
12
12
  },
13
- "gitHead": "1a0de6908b2b1854bdf434fcafa8909cb65bb8a3"
13
+ "gitHead": "96cb023f353a4fb099dea074c575be65ebab813f"
14
14
  }
@@ -27,7 +27,7 @@ export const jsonConfigDesc = (title: string, link: string) => {
27
27
  return (
28
28
  <span>
29
29
  {lang('Json config references: ')}
30
- <a href={link} target="_blank">
30
+ <a href={link} target="_blank" rel="noreferrer">
31
31
  {lang(title)}
32
32
  </a>
33
33
  </span>
@@ -66,7 +66,7 @@ export const ChartBlockInitializer = (props) => {
66
66
  value: field.name,
67
67
  };
68
68
  });
69
- let values = await FormDialog(
69
+ const values = await FormDialog(
70
70
  {
71
71
  okText: compile('{{t("Submit")}}'),
72
72
  title: lang('Create chart block'),
@@ -7,17 +7,17 @@ export default {
7
7
  Title: 'Titulo',
8
8
  Enable: 'Ativo',
9
9
  'SAML manager': 'Gerenciador SAML',
10
- 'SAML Providers': 'Provedores SAML',
11
- 'Redirect url': 'URL de redirecionamento',
12
- 'SP entity id': 'ID de entidade do provedor de serviço (SP)',
13
- 'Add provider': 'Adicionar',
14
- 'Edit provider': 'Editar',
15
- 'Client id': 'ID do cliente',
16
- 'Entity id or issuer': 'ID de entidade ou emissor',
17
- 'Login Url': 'URL de login',
18
- 'Public cert': 'Certificado público',
19
- 'Delete provider': 'Excluir',
20
- 'Are you sure you want to delete it?': 'Tem certeza de que deseja excluí-lo?',
21
- 'Sign in button name, which will be displayed on the sign in page':
22
- 'Nome do botão de login, que será exibido na página de login',
10
+ 'SAML Providers': 'Provedores SAML',
11
+ 'Redirect url': 'URL de redirecionamento',
12
+ 'SP entity id': 'ID de entidade do provedor de serviço (SP)',
13
+ 'Add provider': 'Adicionar',
14
+ 'Edit provider': 'Editar',
15
+ 'Client id': 'ID do cliente',
16
+ 'Entity id or issuer': 'ID de entidade ou emissor',
17
+ 'Login Url': 'URL de login',
18
+ 'Public cert': 'Certificado público',
19
+ 'Delete provider': 'Excluir',
20
+ 'Are you sure you want to delete it?': 'Tem certeza de que deseja excluí-lo?',
21
+ 'Sign in button name, which will be displayed on the sign in page':
22
+ 'Nome do botão de login, que será exibido na página de login',
23
23
  };
@@ -9,7 +9,7 @@ export const defaultFieldNames = {
9
9
 
10
10
  export const getCurrentOptions = (values, dataSource, fieldNames) => {
11
11
  function flatData(data) {
12
- let newArr = [];
12
+ const newArr = [];
13
13
  for (let i = 0; i < data.length; i++) {
14
14
  const children = data[i][fieldNames.options];
15
15
  if (Array.isArray(children)) {
@@ -25,7 +25,7 @@ export const getCurrentOptions = (values, dataSource, fieldNames) => {
25
25
  .map((val) => (typeof val === 'object' ? val[fieldNames.value] : val));
26
26
  const findOptions = (options: any[]) => {
27
27
  if (!options) return [];
28
- let current = [];
28
+ const current = [];
29
29
  for (const value of values) {
30
30
  const option = options.find((v) => v[fieldNames.value] === value) || { value: value, label: value };
31
31
  current.push(option);
@@ -5,7 +5,7 @@ import {
5
5
  useRecord,
6
6
  useRequest,
7
7
  useResourceActionContext,
8
- useResourceContext
8
+ useResourceContext,
9
9
  } from '@nocobase/client';
10
10
  import { useChartQueryMetadataContext } from '../../ChartQueryMetadataProvider';
11
11