浏览代码

chart: do not show warning on no data bound when figure is declared (#1144)

* chart: do not show warning on no data bound when figure is declared (#1107)

* do not show warning on no data bound when figure is declared
resolves #1106

* check data for non chart control

---------

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
(cherry picked from commit 09ace5221aae5e23cc90f182891a204bca23b8d3)

* version 3.1.2

* Long's request

---------

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Fred Lefévère-Laoide 1 年之前
父节点
当前提交
b118b5c6a8

+ 1 - 1
frontend/taipy-gui/dom/package.json

@@ -1,6 +1,6 @@
 {
   "name": "taipy-gui-dom",
-  "version": "3.1.0",
+  "version": "3.1.2",
   "private": true,
   "dependencies": {
     "react": "^18.2.0",

文件差异内容过多而无法显示
+ 266 - 300
frontend/taipy-gui/package-lock.json


+ 1 - 1
frontend/taipy-gui/package.json

@@ -1,6 +1,6 @@
 {
   "name": "taipy-gui",
-  "version": "3.1.0",
+  "version": "3.1.2",
   "private": true,
   "dependencies": {
     "@emotion/react": "^11.10.0",

+ 1 - 1
frontend/taipy-gui/packaging/package.json

@@ -1,6 +1,6 @@
 {
   "name": "taipy-gui",
-  "version": "3.1.0",
+  "version": "3.1.2",
   "private": true,
   "main": "./taipy-gui.js",
   "types": "./taipy-gui.d.ts"

+ 1 - 1
frontend/taipy/package.json

@@ -1,6 +1,6 @@
 {
   "name": "taipy-gui-core",
-  "version": "3.1.0",
+  "version": "3.1.2",
   "private": true,
   "devDependencies": {
     "@types/react": "^18.0.15",

+ 2 - 2
taipy/gui/_renderers/builder.py

@@ -775,8 +775,8 @@ class _Builder:
                 else:
                     self.__set_default_value(var_name, var_type=var_type)
         else:
-            if var_type == PropertyType.data:
-                _warn(f"{self.__control_type}.data property should be bound.")
+            if var_type == PropertyType.data and (self.__control_type != "chart" or "figure" not in self.__attributes):
+                _warn(f"{self.__control_type}.{var_name} property should be bound.")
             value = self.__attributes.get(var_name)
             if value is not None:
                 if native_type:

+ 1 - 1
taipy/gui/version.json

@@ -1 +1 @@
-{"major": 3, "minor": 1, "patch": 1}
+{"major": 3, "minor": 1, "patch": 2}

部分文件因为文件数量过多而无法显示