slint-ui 1.7.0-nightly.2024060413 → 1.7.0-nightly.2024060603
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/Cargo.toml
CHANGED
|
@@ -40,10 +40,10 @@ accessibility = ["slint-interpreter/accessibility"]
|
|
|
40
40
|
[dependencies]
|
|
41
41
|
napi = { version = "2.14.0", default-features = false, features = ["napi8"] }
|
|
42
42
|
napi-derive = "2.14.0"
|
|
43
|
-
i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
44
|
-
i-slint-core = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
45
|
-
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "
|
|
46
|
-
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
43
|
+
i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "cad11c821fc36b4d767b53219fff8fb5c219975b", version = "=1.7.0", default-features = false }
|
|
44
|
+
i-slint-core = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "cad11c821fc36b4d767b53219fff8fb5c219975b", version = "=1.7.0", default-features = false }
|
|
45
|
+
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "cad11c821fc36b4d767b53219fff8fb5c219975b", version = "=1.7.0", default-features = false }
|
|
46
|
+
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "cad11c821fc36b4d767b53219fff8fb5c219975b", version = "=1.7.0"}
|
|
47
47
|
spin_on = { version = "0.1" }
|
|
48
48
|
css-color-parser2 = { version = "1.0.1" }
|
|
49
49
|
itertools = { version = "0.12" }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slint-ui",
|
|
3
|
-
"version": "1.7.0-nightly.
|
|
3
|
+
"version": "1.7.0-nightly.2024060603",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"homepage": "https://github.com/slint-ui/slint",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"@napi-rs/cli": "^2.16.5"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.7.0-nightly.
|
|
63
|
-
"@slint-ui/slint-ui-binary-darwin-x64": "1.7.0-nightly.
|
|
64
|
-
"@slint-ui/slint-ui-binary-darwin-arm64": "1.7.0-nightly.
|
|
65
|
-
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.7.0-nightly.
|
|
66
|
-
"@slint-ui/slint-ui-binary-win32-ia32-msvc": "1.7.0-nightly.
|
|
62
|
+
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.7.0-nightly.2024060603",
|
|
63
|
+
"@slint-ui/slint-ui-binary-darwin-x64": "1.7.0-nightly.2024060603",
|
|
64
|
+
"@slint-ui/slint-ui-binary-darwin-arm64": "1.7.0-nightly.2024060603",
|
|
65
|
+
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.7.0-nightly.2024060603",
|
|
66
|
+
"@slint-ui/slint-ui-binary-win32-ia32-msvc": "1.7.0-nightly.2024060603"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
2
2
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
3
3
|
|
|
4
|
-
use i_slint_compiler::langtype::Type;
|
|
5
4
|
use napi::Result;
|
|
6
5
|
use slint_interpreter::ComponentDefinition;
|
|
7
6
|
|
|
@@ -42,11 +41,7 @@ impl JsComponentDefinition {
|
|
|
42
41
|
|
|
43
42
|
#[napi(getter)]
|
|
44
43
|
pub fn functions(&self) -> Vec<String> {
|
|
45
|
-
self.internal
|
|
46
|
-
.properties_and_callbacks()
|
|
47
|
-
.filter(|(_, ty)| matches!(ty, Type::Function { .. }))
|
|
48
|
-
.map(|(s, _)| s)
|
|
49
|
-
.collect()
|
|
44
|
+
self.internal.functions().collect()
|
|
50
45
|
}
|
|
51
46
|
|
|
52
47
|
#[napi(getter)]
|
|
@@ -69,9 +64,7 @@ impl JsComponentDefinition {
|
|
|
69
64
|
|
|
70
65
|
#[napi]
|
|
71
66
|
pub fn global_functions(&self, global_name: String) -> Option<Vec<String>> {
|
|
72
|
-
self.internal.
|
|
73
|
-
iter.filter(|(_, ty)| matches!(ty, Type::Function { .. })).map(|(s, _)| s).collect()
|
|
74
|
-
})
|
|
67
|
+
self.internal.global_functions(global_name.as_str()).map(|iter| iter.collect())
|
|
75
68
|
}
|
|
76
69
|
|
|
77
70
|
#[napi]
|