@tauri-controls-v2/svelte 0.4.3 → 0.4.4
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.
|
@@ -13,7 +13,7 @@ onMount(() => {
|
|
|
13
13
|
initializeAppWindow();
|
|
14
14
|
});
|
|
15
15
|
const customClass = cn(
|
|
16
|
-
"
|
|
16
|
+
"flex",
|
|
17
17
|
$$props.class,
|
|
18
18
|
hide && (hideMethod === "display" ? "hidden" : "invisible")
|
|
19
19
|
);
|
|
@@ -31,12 +31,14 @@ if (!platform) {
|
|
|
31
31
|
}
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
{
|
|
34
|
+
<div class="tauri-controls" style="display: contents">
|
|
35
|
+
{#if platform === "windows"}
|
|
36
|
+
<Windows {...$$props} class={cn(customClass, justify && "ml-auto")} />
|
|
37
|
+
{:else if platform === "macos"}
|
|
38
|
+
<MacOs {...$$props} class={cn(customClass, justify && "ml-0")} />
|
|
39
|
+
{:else if platform === "gnome"}
|
|
40
|
+
<Gnome {...$$props} class={cn(customClass, justify && "ml-auto")} />
|
|
41
|
+
{:else}
|
|
42
|
+
<Windows {...$$props} class={cn(customClass, justify && "ml-auto")} />
|
|
43
|
+
{/if}
|
|
44
|
+
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WindowControls.svelte.d.ts","sourceRoot":"","sources":["../src/lib/WindowControls.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WindowControls.svelte.d.ts","sourceRoot":"","sources":["../src/lib/WindowControls.svelte.ts"],"names":[],"mappings":"AAgEA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,cAAc;;;;;;;;kBAAsG,CAAC;AACzG,KAAK,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAe,cAAc,CAAC"}
|
|
@@ -19,19 +19,21 @@ const props = (ml) => {
|
|
|
19
19
|
};
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<div
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
<div class="tauri-controls" style="display: contents">
|
|
23
|
+
<div
|
|
24
|
+
{...$$props}
|
|
25
|
+
class={cn(
|
|
26
|
+
"bg-background flex select-none flex-row overflow-hidden",
|
|
27
|
+
$$props.class
|
|
28
|
+
)}
|
|
29
|
+
data-tauri-drag-region
|
|
30
|
+
>
|
|
31
|
+
{#if left}
|
|
32
|
+
<WindowControls {...props("ml-0")} />
|
|
33
|
+
<slot />
|
|
34
|
+
{:else}
|
|
35
|
+
<slot />
|
|
36
|
+
<WindowControls {...props("ml-auto")} />
|
|
37
|
+
{/if}
|
|
38
|
+
</div>
|
|
37
39
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WindowTitlebar.svelte.d.ts","sourceRoot":"","sources":["../src/lib/WindowTitlebar.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"WindowTitlebar.svelte.d.ts","sourceRoot":"","sources":["../src/lib/WindowTitlebar.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAmDlD,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QA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