@nocobase/plugin-data-visualization 1.6.0-beta.8 → 1.7.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.6.0-beta.8",
11
+ "@nocobase/client": "1.7.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.6.0-beta.8",
18
- "@nocobase/server": "1.6.0-beta.8",
19
- "@nocobase/test": "1.6.0-beta.8",
17
+ "@nocobase/cache": "1.7.0-alpha.1",
18
+ "@nocobase/server": "1.7.0-alpha.1",
19
+ "@nocobase/test": "1.7.0-alpha.1",
20
20
  "@emotion/css": "11.13.0",
21
- "@ant-design/icons": "5.2.6",
21
+ "@ant-design/icons": "5.6.1",
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.6.0-beta.8",
26
+ "@nocobase/utils": "1.7.0-alpha.1",
27
27
  "react-i18next": "11.18.6",
28
- "@nocobase/actions": "1.6.0-beta.8",
29
- "@nocobase/database": "1.6.0-beta.8",
28
+ "@nocobase/actions": "1.7.0-alpha.1",
29
+ "@nocobase/database": "1.7.0-alpha.1",
30
30
  "sequelize": "6.35.2"
31
31
  };
@@ -0,0 +1,101 @@
1
+ {
2
+ "Edit": "Modifica",
3
+ "Delete": "Elimina",
4
+ "Cancel": "Annulla",
5
+ "Submit": "Invia",
6
+ "Actions": "Operazioni",
7
+ "Title": "Titolo",
8
+ "Enable": "Abilita",
9
+ "Chart": "Grafico",
10
+ "ChartV2": "GraficoV2",
11
+ "Charts": "Grafici",
12
+ "Configure": "Configura",
13
+ "Duplicate": "Duplica",
14
+ "Configure chart": "Configura grafico",
15
+ "Transform": "Trasforma",
16
+ "Chart type": "Tipo di grafico",
17
+ "JSON config": "Configurazione JSON",
18
+ "Query": "Query",
19
+ "Data": "Dati",
20
+ "Run query": "Esegui query",
21
+ "Measures": "Misure",
22
+ "Dimensions": "Dimensioni",
23
+ "Filter": "Filtro",
24
+ "Sort": "Ordina",
25
+ "Limit": "Limite",
26
+ "Offset": "Offset",
27
+ "Enable cache": "Abilita cache",
28
+ "TTL (second)": "TTL (secondi)",
29
+ "Field": "Campo",
30
+ "Aggregation": "Aggregazione",
31
+ "Alias": "Alias",
32
+ "Format": "Formato",
33
+ "The first 10 records of the query result:": "I primi 10 record del risultato della query:",
34
+ "Please run query to retrive data.": "Esegui la query per recuperare i dati.",
35
+ "Type": "Tipo",
36
+ "Add field": "Aggiungi campo",
37
+ "Add chart": "Aggiungi grafico",
38
+ "xField": "Campo X",
39
+ "yField": "Campo Y",
40
+ "seriesField": "Campo serie",
41
+ "angleField": "Campo angolo",
42
+ "colorField": "Campo colore",
43
+ "Line": "Linee",
44
+ "Area": "Area",
45
+ "Column": "Colonne",
46
+ "Bar": "Barra",
47
+ "Pie": "Torta",
48
+ "Dual axes": "Doppi assi",
49
+ "Scatter": "Dispersione",
50
+ "Gauge": "Indicatore",
51
+ "Statistic": "Statistica",
52
+ "Currency": "Valuta",
53
+ "Percent": "Percentuale",
54
+ "Exponential": "Esponenziale",
55
+ "Abbreviation": "Abbreviazione",
56
+ "Please configure and run query": "Configura ed esegui la query",
57
+ "Please configure chart": "Configura il grafico",
58
+ "Are you sure to cancel?": "Sei sicuro di voler annullare?",
59
+ "You changes are not saved. If you click OK, your changes will be lost.": "Le modifiche non sono state salvate. Se fai clic su OK, le modifiche andranno perse.",
60
+ "Same properties set in the form above will be overwritten by this JSON config.": "Le stesse proprietà impostate nel modulo sopra verranno sovrascritte da questa configurazione JSON.",
61
+ "Built-in": "Integrato",
62
+ "Config reference: ": "Riferimento configurazione: ",
63
+ "Table": "Tabella",
64
+ "Sum": "Somma",
65
+ "Avg": "Media",
66
+ "Count": "Conteggio",
67
+ "Min": "Minimo",
68
+ "Max": "Massimo",
69
+ "Please select a chart type.": "Seleziona un tipo di grafico.",
70
+ "Collection": "Raccolta",
71
+ "isStack": "èSovrapposto",
72
+ "isPercent": "èPercentuale",
73
+ "isGroup": "èGruppo",
74
+ "smooth": "smussato",
75
+ "Expand": "Espandi",
76
+ "Current filter": "Filtro corrente",
77
+ "Add custom field": "Aggiungi campo personalizzato",
78
+ "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.",
79
+ "Input": "Input",
80
+ "Date range": "Intervallo date",
81
+ "Time range": "Intervallo tempo",
82
+ "Edit field properties": "Modifica proprietà del campo",
83
+ "Select a source field to use metadata of the field": "Seleziona un campo origine per utilizzare i metadati del campo",
84
+ "Original field": "Campo originale",
85
+ "Transformation": "Trasformazione",
86
+ "Add transformation": "Aggiungi trasformazione",
87
+ "Container": "Contenitore",
88
+ "Show border": "Mostra bordo",
89
+ "Transformation tip": "I campi consentono trasformazioni multiple, applicate in sequenza. Presta attenzione alle modifiche del tipo di dati dopo ogni trasformazione. La funzionalità di trascinamento consente di regolare l'ordine delle trasformazioni.",
90
+ "Type conversion": "Conversione tipo",
91
+ "Transformer": "Trasformatore",
92
+ "Size": "Dimensione",
93
+ "Width": "Larghezza",
94
+ "Height": "Altezza",
95
+ "Aspect ratio": "Proporzioni",
96
+ "Fixed height": "Altezza fissa",
97
+ "Show background": "Mostra sfondo",
98
+ "Show padding": "Mostra spaziatura interna",
99
+ "Distinct": "Rimuovi duplicati",
100
+ "Auto refresh": "Aggiornamento automatico"
101
+ }
@@ -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-02-14T16:49:31.732Z"}
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-11T04:44:22.132Z"}
@@ -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-02-14T16:49:32.464Z"}
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-11T04:44:22.842Z"}
@@ -96,7 +96,14 @@ class QueryParser {
96
96
  orders.forEach((item) => {
97
97
  const alias = sequelize.getQueryInterface().quoteIdentifier(item.alias);
98
98
  const name = hasAgg ? sequelize.literal(alias) : sequelize.col(item.field);
99
- order.push([name, item.order || "ASC"]);
99
+ let sort = item.order || "ASC";
100
+ if (item.nulls === "first") {
101
+ sort += " NULLS FIRST";
102
+ }
103
+ if (item.nulls === "last") {
104
+ sort += " NULLS LAST";
105
+ }
106
+ order.push([name, sort]);
100
107
  });
101
108
  return order;
102
109
  }
@@ -24,6 +24,7 @@ export type OrderProps = {
24
24
  field: string | string[];
25
25
  alias?: string;
26
26
  order?: 'asc' | 'desc';
27
+ nulls?: 'default' | 'first' | 'last';
27
28
  };
28
29
  export type QueryParams = Partial<{
29
30
  uid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.6.0-beta.8",
3
+ "version": "1.7.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": "2257b50e1cf0b2a2873673a630e5ecc80ec2e01a",
37
+ "gitHead": "e411c9728b4d1f16b0beac16e40dd3499352b052",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]