@turnipxenon/pineapple 3.0.0-alpha.17 → 3.0.0-alpha.19
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/dist/ui/elements/pinya-combobox/PinyaComboboxProps.d.ts +1 -0
- package/dist/ui/modules/modals/general-settings/LanguagePicker.svelte +7 -2
- package/dist/ui/templates/PinyaPageLayout/PinyaPageLayout.svelte.d.ts +9 -0
- package/dist/ui/templates/PinyaPageLayout/index.d.ts +2 -0
- package/dist/ui/templates/PinyaPageLayout/index.js +2 -0
- package/dist/ui/templates/{pinya-page-layout → PinyaPageLayout}/runes.svelte.d.ts +1 -0
- package/dist/ui/templates/PinyaPageLayout/runes.svelte.js +4 -0
- package/dist/ui/templates/index.d.ts +1 -1
- package/dist/ui/templates/index.js +1 -1
- package/dist/ui/templates/seaweed-layout/SeaweedLayout.svelte +2 -2
- package/package.json +1 -1
- package/dist/ui/templates/pinya-page-layout/component.svelte.d.ts +0 -9
- package/dist/ui/templates/pinya-page-layout/index.d.ts +0 -2
- package/dist/ui/templates/pinya-page-layout/index.js +0 -2
- package/dist/ui/templates/pinya-page-layout/runes.svelte.js +0 -3
- /package/dist/ui/templates/{pinya-page-layout/component.svelte → PinyaPageLayout/PinyaPageLayout.svelte} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getLocale, localizeHref } from "../../../../paraglide/runtime";
|
|
2
|
+
import { deLocalizeHref, getLocale, localizeHref } from "../../../../paraglide/runtime";
|
|
3
3
|
import PinyaCombobox from "../../../elements/pinya-combobox/PinyaCombobox.svelte";
|
|
4
|
+
import { appState } from "../../../templates/index";
|
|
4
5
|
|
|
5
6
|
interface ComboxData {
|
|
6
7
|
label: string;
|
|
@@ -23,9 +24,12 @@
|
|
|
23
24
|
const data = comboboxData.find((d) => d.value === e.value[0]);
|
|
24
25
|
if (data) {
|
|
25
26
|
selectedCountry = [data.value];
|
|
26
|
-
|
|
27
|
+
const pathname = deLocalizeHref(location.href);
|
|
28
|
+
location.href = localizeHref(pathname, { locale: data.value });
|
|
27
29
|
}
|
|
28
30
|
};
|
|
31
|
+
|
|
32
|
+
let disabled = $derived(!appState.isLanguagePickerAvailable);
|
|
29
33
|
</script>
|
|
30
34
|
|
|
31
35
|
<PinyaCombobox
|
|
@@ -35,4 +39,5 @@
|
|
|
35
39
|
label="Select Language"
|
|
36
40
|
placeholder="Select Language"
|
|
37
41
|
{onValueChange}
|
|
42
|
+
{disabled}
|
|
38
43
|
/>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
children: Snippet;
|
|
4
|
+
appBarLead?: Snippet;
|
|
5
|
+
footer?: Snippet;
|
|
6
|
+
};
|
|
7
|
+
declare const PinyaPageLayout: import("svelte").Component<$$ComponentProps, {}, "appBarLead">;
|
|
8
|
+
type PinyaPageLayout = ReturnType<typeof PinyaPageLayout>;
|
|
9
|
+
export default PinyaPageLayout;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { fly } from "svelte/transition";
|
|
3
3
|
import type { ProjectGroup, SeaweedLayoutProps } from "./props";
|
|
4
4
|
import ChumBucket from "../../modules/seaweed/ChumBucket.svelte";
|
|
5
|
-
import { PinyaPageLayout } from "../
|
|
6
|
-
import { SocialSection } from "../../components/
|
|
5
|
+
import { default as PinyaPageLayout } from "../PinyaPageLayout/PinyaPageLayout.svelte";
|
|
6
|
+
import { default as SocialSection } from "../../components/SocialSection.svelte";
|
|
7
7
|
import EntryGroup from "./EntryGroup.svelte";
|
|
8
8
|
import PineappleSwitch from "../../elements/PineappleSwitch.svelte";
|
|
9
9
|
import { CodeBlock, TextChip } from "../../elements/index";
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
type $$ComponentProps = {
|
|
3
|
-
children: Snippet;
|
|
4
|
-
appBarLead?: Snippet;
|
|
5
|
-
footer?: Snippet;
|
|
6
|
-
};
|
|
7
|
-
declare const Component: import("svelte").Component<$$ComponentProps, {}, "appBarLead">;
|
|
8
|
-
type Component = ReturnType<typeof Component>;
|
|
9
|
-
export default Component;
|
|
File without changes
|