slint-ui 1.7.0-nightly.2024062718 → 1.7.0-nightly.2024070208

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 = "a4cd0d81139fb7be4f5dcfaeb57db76eb7d0cb80", version = "=1.7.0", default-features = false }
44
- i-slint-core = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "a4cd0d81139fb7be4f5dcfaeb57db76eb7d0cb80", version = "=1.7.0", default-features = false }
45
- i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "a4cd0d81139fb7be4f5dcfaeb57db76eb7d0cb80", 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 = "a4cd0d81139fb7be4f5dcfaeb57db76eb7d0cb80", version = "=1.7.0"}
43
+ i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "a24c04fd84d53879d5cc389c78af8d4d334e6a6a", version = "=1.7.0", default-features = false }
44
+ i-slint-core = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "a24c04fd84d53879d5cc389c78af8d4d334e6a6a", version = "=1.7.0", default-features = false }
45
+ i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "a24c04fd84d53879d5cc389c78af8d4d334e6a6a", 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 = "a24c04fd84d53879d5cc389c78af8d4d334e6a6a", 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.13" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slint-ui",
3
- "version": "1.7.0-nightly.2024062718",
3
+ "version": "1.7.0-nightly.2024070208",
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.2024062718",
63
- "@slint-ui/slint-ui-binary-darwin-x64": "1.7.0-nightly.2024062718",
64
- "@slint-ui/slint-ui-binary-darwin-arm64": "1.7.0-nightly.2024062718",
65
- "@slint-ui/slint-ui-binary-win32-x64-msvc": "1.7.0-nightly.2024062718",
66
- "@slint-ui/slint-ui-binary-win32-ia32-msvc": "1.7.0-nightly.2024062718"
62
+ "@slint-ui/slint-ui-binary-linux-x64-gnu": "1.7.0-nightly.2024070208",
63
+ "@slint-ui/slint-ui-binary-darwin-x64": "1.7.0-nightly.2024070208",
64
+ "@slint-ui/slint-ui-binary-darwin-arm64": "1.7.0-nightly.2024070208",
65
+ "@slint-ui/slint-ui-binary-win32-x64-msvc": "1.7.0-nightly.2024070208",
66
+ "@slint-ui/slint-ui-binary-win32-ia32-msvc": "1.7.0-nightly.2024070208"
67
67
  }
68
68
  }
package/rust-module.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
- export class ExternalObject<T> {
6
+ export declare class ExternalObject<T> {
7
7
  readonly '': {
8
8
  readonly '': unique symbol
9
9
  [K: symbol]: T
@@ -68,27 +68,27 @@ export interface Brush {
68
68
  */
69
69
  color?: RgbaColor
70
70
  }
71
- export function jsModelNotifyNew(): ExternalObject<SharedModelNotify>
72
- export function jsModelNotifyRowDataChanged(notify: ExternalObject<SharedModelNotify>, row: number): void
73
- export function jsModelNotifyRowAdded(notify: ExternalObject<SharedModelNotify>, row: number, count: number): void
74
- export function jsModelNotifyRowRemoved(notify: ExternalObject<SharedModelNotify>, row: number, count: number): void
75
- export function jsModelNotifyReset(notify: ExternalObject<SharedModelNotify>): void
76
- export function mockElapsedTime(ms: number): void
77
- export function getMockedTime(): number
71
+ export declare function jsModelNotifyNew(): ExternalObject<SharedModelNotify>
72
+ export declare function jsModelNotifyRowDataChanged(notify: ExternalObject<SharedModelNotify>, row: number): void
73
+ export declare function jsModelNotifyRowAdded(notify: ExternalObject<SharedModelNotify>, row: number, count: number): void
74
+ export declare function jsModelNotifyRowRemoved(notify: ExternalObject<SharedModelNotify>, row: number, count: number): void
75
+ export declare function jsModelNotifyReset(notify: ExternalObject<SharedModelNotify>): void
76
+ export declare function mockElapsedTime(ms: number): void
77
+ export declare function getMockedTime(): number
78
78
  export const enum ProcessEventsResult {
79
79
  Continue = 0,
80
80
  Exited = 1
81
81
  }
82
- export function processEvents(): ProcessEventsResult
83
- export function invokeFromEventLoop(callback: (...args: any[]) => any): void
84
- export function setQuitOnLastWindowClosed(quitOnLastWindowClosed: boolean): void
85
- export function initTesting(): void
82
+ export declare function processEvents(): ProcessEventsResult
83
+ export declare function invokeFromEventLoop(callback: (...args: any[]) => any): void
84
+ export declare function setQuitOnLastWindowClosed(quitOnLastWindowClosed: boolean): void
85
+ export declare function initTesting(): void
86
86
  export type JsComponentCompiler = ComponentCompiler
87
87
  /**
88
88
  * ComponentCompiler is the entry point to the Slint interpreter that can be used
89
89
  * to load .slint files or compile them on-the-fly from a string.
90
90
  */
91
- export class ComponentCompiler {
91
+ export declare class ComponentCompiler {
92
92
  /** Returns a new ComponentCompiler. */
93
93
  constructor()
94
94
  set includePaths(includePaths: Array<string>)
@@ -108,7 +108,7 @@ export class ComponentCompiler {
108
108
  buildFromSource(sourceCode: string, path: string): JsComponentDefinition | null
109
109
  }
110
110
  export type JsComponentDefinition = ComponentDefinition
111
- export class ComponentDefinition {
111
+ export declare class ComponentDefinition {
112
112
  constructor()
113
113
  get properties(): Array<JsProperty>
114
114
  get callbacks(): Array<string>
@@ -121,7 +121,7 @@ export class ComponentDefinition {
121
121
  get name(): string
122
122
  }
123
123
  export type JsComponentInstance = ComponentInstance
124
- export class ComponentInstance {
124
+ export declare class ComponentInstance {
125
125
  constructor()
126
126
  definition(): ComponentDefinition
127
127
  getProperty(name: string): unknown
@@ -137,7 +137,7 @@ export class ComponentInstance {
137
137
  window(): JsWindow
138
138
  }
139
139
  export type JsProperty = Property
140
- export class Property {
140
+ export declare class Property {
141
141
  name: string
142
142
  valueType: ValueType
143
143
  }
@@ -147,7 +147,7 @@ export type JsWindow = Window
147
147
  * scene of a component. It provides API to control windowing system specific aspects such
148
148
  * as the position on the screen.
149
149
  */
150
- export class Window {
150
+ export declare class Window {
151
151
  /** @hidden */
152
152
  constructor()
153
153
  /**
@@ -194,7 +194,7 @@ export class Window {
194
194
  set minimized(minimized: boolean)
195
195
  }
196
196
  /** SlintRgbaColor implements {@link RgbaColor}. */
197
- export class SlintRgbaColor {
197
+ export declare class SlintRgbaColor {
198
198
  /** Creates a new transparent color. */
199
199
  constructor()
200
200
  /**
@@ -246,7 +246,7 @@ export class SlintRgbaColor {
246
246
  toString(): string
247
247
  }
248
248
  /** SlintBrush implements {@link Brush}. */
249
- export class SlintBrush {
249
+ export declare class SlintBrush {
250
250
  constructor(color: RgbaColor)
251
251
  static fromBrush(brush: Brush): SlintBrush
252
252
  get color(): RgbaColor
@@ -288,7 +288,7 @@ export class SlintBrush {
288
288
  toString(): string
289
289
  }
290
290
  /** SlintPoint implements {@link ImageData}. */
291
- export class SlintImageData {
291
+ export declare class SlintImageData {
292
292
  /**
293
293
  * Constructs a new image with the given width and height.
294
294
  * Each pixel will set to red = 0, green = 0, blue = 0 and alpha = 0.
@@ -307,24 +307,24 @@ export class SlintImageData {
307
307
  /** @hidden */
308
308
  get image(): ExternalObject<ImageData>
309
309
  }
310
- export class SharedModelNotify { }
311
- export class ReadOnlyRustModel {
310
+ export declare class SharedModelNotify { }
311
+ export declare class ReadOnlyRustModel {
312
312
  rowCount(): number
313
313
  rowData(row: number): unknown
314
314
  setRowData(row: number, data: unknown): void
315
315
  }
316
- export class ModelIterator {
316
+ export declare class ModelIterator {
317
317
  next(): unknown
318
318
  }
319
319
  /** SlintPoint implements {@link Point}. */
320
- export class SlintPoint {
320
+ export declare class SlintPoint {
321
321
  x: number
322
322
  y: number
323
323
  /** Constructs new point from x and y. */
324
324
  constructor(x: number, y: number)
325
325
  }
326
326
  /** SlintPoint implements {@link Size}. */
327
- export class SlintSize {
327
+ export declare class SlintSize {
328
328
  width: number
329
329
  height: number
330
330
  /** Constructs a size from the given width and height. */