@nocobase/plugin-charts 0.9.2-alpha.2 → 0.9.2-alpha.3
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/client/ChartBlockEngineDesigner.js +2 -1
- package/lib/client/ChartBlockInitializer.js +1 -1
- package/lib/client/select/shared.js +2 -2
- package/package.json +5 -5
- package/src/client/ChartBlockEngineDesigner.tsx +1 -1
- package/src/client/ChartBlockInitializer.tsx +1 -1
- package/src/client/locale/pt-BR.ts +13 -13
- package/src/client/select/shared.ts +2 -2
- package/src/client/settings/schemas/chartsQueries.ts +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.9.2-alpha.3",
|
|
4
4
|
"main": "lib/server/index.js",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@nocobase/client": "0.9.2-alpha.
|
|
7
|
-
"@nocobase/server": "0.9.2-alpha.
|
|
8
|
-
"@nocobase/test": "0.9.2-alpha.
|
|
6
|
+
"@nocobase/client": "0.9.2-alpha.3",
|
|
7
|
+
"@nocobase/server": "0.9.2-alpha.3",
|
|
8
|
+
"@nocobase/test": "0.9.2-alpha.3"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"json5": "^2.2.3"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "b6b5f9372202d942c97d2d90a4197e060db05124"
|
|
14
14
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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);
|