slint-ui 1.9.2-nightly.2025010920 → 1.9.2
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 +4 -4
- package/README.md +1 -1
- package/cover.md +3 -3
- package/dist/index.d.ts +1 -1
- package/package.json +7 -7
- package/typescript/index.ts +1 -1
package/Cargo.toml
CHANGED
|
@@ -41,10 +41,10 @@ accessibility = ["slint-interpreter/accessibility"]
|
|
|
41
41
|
[dependencies]
|
|
42
42
|
napi = { version = "2.14.0", default-features = false, features = ["napi8"] }
|
|
43
43
|
napi-derive = "2.14.0"
|
|
44
|
-
i-slint-compiler = { features = ["default"] ,
|
|
45
|
-
i-slint-core = { features = ["default", "gettext-rs"] ,
|
|
46
|
-
i-slint-backend-selector = {
|
|
47
|
-
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] ,
|
|
44
|
+
i-slint-compiler = { features = ["default"] , version = "=1.9.2", default-features = false }
|
|
45
|
+
i-slint-core = { features = ["default", "gettext-rs"] , version = "=1.9.2", default-features = false }
|
|
46
|
+
i-slint-backend-selector = { version = "=1.9.2", default-features = false }
|
|
47
|
+
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , version = "=1.9.2"}
|
|
48
48
|
spin_on = { version = "0.1" }
|
|
49
49
|
css-color-parser2 = { version = "1.0.1" }
|
|
50
50
|
itertools = { version = "0.13" }
|
package/README.md
CHANGED
|
@@ -312,7 +312,7 @@ component.person = new ui.Person({ name: "Tim", age: 30 });
|
|
|
312
312
|
|
|
313
313
|
### enums
|
|
314
314
|
|
|
315
|
-
A value of an exported enum can be set as string or by
|
|
315
|
+
A value of an exported enum can be set as string or by using the value from the exported enum.
|
|
316
316
|
|
|
317
317
|
**`my-component.slint`**
|
|
318
318
|
|
package/cover.md
CHANGED
|
@@ -170,7 +170,7 @@ export component Demo inherits Window {
|
|
|
170
170
|
|
|
171
171
|
This file declares the user interface.
|
|
172
172
|
|
|
173
|
-
4. Clear the
|
|
173
|
+
4. Clear the content of `index.ts` and add the following code:
|
|
174
174
|
|
|
175
175
|
```ts
|
|
176
176
|
import * as slint from "slint-ui";
|
|
@@ -182,7 +182,7 @@ await demo.run();
|
|
|
182
182
|
|
|
183
183
|
This is your main TypeScript entry point:
|
|
184
184
|
|
|
185
|
-
* Import the Slint API as an [ECMAScript module](https://nodejs.org/api/esm.html#modules-ecmascript-modules) module.
|
|
185
|
+
* Import the Slint API as an [ECMAScript module](https://nodejs.org/api/esm.html#modules-ecmascript-modules) module.
|
|
186
186
|
* Invoke `loadFile()` to compile and load the `.slint` file.
|
|
187
187
|
* Instantiate the `Demo` component declared in `main.slint`.
|
|
188
188
|
* Run it by showing it on the screen and reacting to user input.
|
|
@@ -357,7 +357,7 @@ component.person = new ui.Person({ name: "Tim", age: 30 });
|
|
|
357
357
|
|
|
358
358
|
### enums
|
|
359
359
|
|
|
360
|
-
A value of an exported enum can be set as string or by
|
|
360
|
+
A value of an exported enum can be set as string or by using the value from the exported enum.
|
|
361
361
|
|
|
362
362
|
**`my-component.slint`**
|
|
363
363
|
|
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface Window {
|
|
|
47
47
|
fullscreen: boolean;
|
|
48
48
|
/** Gets or sets the window's maximized state **/
|
|
49
49
|
maximized: boolean;
|
|
50
|
-
/** Gets or sets
|
|
50
|
+
/** Gets or sets the window's minimized state **/
|
|
51
51
|
minimized: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Returns the visibility state of the window. This function can return false even if you previously called show()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slint-ui",
|
|
3
|
-
"version": "1.9.2
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"homepage": "https://github.com/slint-ui/slint",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"@napi-rs/cli": "2.18.4"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.9.2
|
|
70
|
-
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.9.2
|
|
71
|
-
"@slint-ui/slint-ui-binary-darwin-x64": "1.9.2
|
|
72
|
-
"@slint-ui/slint-ui-binary-darwin-arm64": "1.9.2
|
|
73
|
-
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.9.2
|
|
74
|
-
"@slint-ui/slint-ui-binary-win32-ia32-msvc": "1.9.2
|
|
69
|
+
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.9.2",
|
|
70
|
+
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.9.2",
|
|
71
|
+
"@slint-ui/slint-ui-binary-darwin-x64": "1.9.2",
|
|
72
|
+
"@slint-ui/slint-ui-binary-darwin-arm64": "1.9.2",
|
|
73
|
+
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.9.2",
|
|
74
|
+
"@slint-ui/slint-ui-binary-win32-ia32-msvc": "1.9.2"
|
|
75
75
|
}
|
|
76
76
|
}
|
package/typescript/index.ts
CHANGED