@movvjs/svelte-schedule-view 0.4.0 → 0.4.1-beta-1
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/.svelte-kit/__package__/schedule-view/Layout.svelte +7 -4
- package/.svelte-kit/__package__/schedule-view/Layout.svelte.d.ts +3 -1
- package/.svelte-kit/__package__/schedule-view/Schedule.svelte +2 -1
- package/.svelte-kit/__package__/schedule-view/Schedule.svelte.d.ts +1 -0
- package/.svelte-kit/__package__/schedule-view/assets/scss/indie_booking.scss +5 -4
- package/.svelte-kit/ambient.d.ts +0 -4
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/schedule-view/Layout.svelte +7 -4
- package/dist/schedule-view/Layout.svelte.d.ts +3 -1
- package/dist/schedule-view/Schedule.svelte +2 -1
- package/dist/schedule-view/Schedule.svelte.d.ts +1 -0
- package/dist/schedule-view/assets/scss/indie_booking.scss +5 -4
- package/package.json +1 -1
- package/src/lib/schedule-view/Layout.svelte +8 -4
- package/src/lib/schedule-view/Schedule.svelte +2 -2
- package/src/lib/schedule-view/assets/scss/indie_booking.scss +5 -4
|
@@ -6,10 +6,13 @@ import { env } from "../store/env";
|
|
|
6
6
|
import { Alert, Confirm } from "./components/notifications";
|
|
7
7
|
import Loader from "./components/loader/Loader.svelte";
|
|
8
8
|
import { onMount } from "svelte";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export let initI18n;
|
|
10
|
+
if (initI18n) {
|
|
11
|
+
init({
|
|
12
|
+
fallbackLocale: "en",
|
|
13
|
+
initialLocale: "en"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
13
16
|
env.subscribe(($env) => {
|
|
14
17
|
locale.set($env.locale);
|
|
15
18
|
dayjs.locale($env.locale);
|
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
fullName,
|
|
31
31
|
selectedPrice
|
|
32
32
|
} = copiedBooking;
|
|
33
|
+
export let initI18n = true;
|
|
33
34
|
let on = false;
|
|
34
35
|
let resolver;
|
|
35
36
|
$:
|
|
@@ -160,7 +161,7 @@ async function save() {
|
|
|
160
161
|
</script>
|
|
161
162
|
|
|
162
163
|
<Toaster />
|
|
163
|
-
<Layout>
|
|
164
|
+
<Layout {initI18n}>
|
|
164
165
|
<section class="indie_pop_wrap scroll" class:on>
|
|
165
166
|
{#if on}
|
|
166
167
|
<div class="pop_base full_2 indie_passengers_info_pop">
|
|
@@ -4784,6 +4784,7 @@
|
|
|
4784
4784
|
flex-shrink: 0;
|
|
4785
4785
|
display: inline-block;
|
|
4786
4786
|
vertical-align: middle;
|
|
4787
|
+
position: inherit;
|
|
4787
4788
|
width: 20px;
|
|
4788
4789
|
height: 20px;
|
|
4789
4790
|
text-indent: -9999px;
|
|
@@ -4873,14 +4874,14 @@
|
|
|
4873
4874
|
border: none !important;
|
|
4874
4875
|
}
|
|
4875
4876
|
td{
|
|
4876
|
-
padding: 0;
|
|
4877
|
+
padding: 0 !important;
|
|
4877
4878
|
border-spacing: 5px;
|
|
4878
4879
|
a{
|
|
4879
4880
|
display: flex;
|
|
4880
4881
|
justify-content: center;
|
|
4881
4882
|
align-items: center;
|
|
4882
|
-
width:
|
|
4883
|
-
height:
|
|
4883
|
+
width: 28px;
|
|
4884
|
+
height: 28px;
|
|
4884
4885
|
padding: 5px;
|
|
4885
4886
|
border-radius: 50%;
|
|
4886
4887
|
font-size: 12px;
|
|
@@ -4907,7 +4908,7 @@
|
|
|
4907
4908
|
content: '';
|
|
4908
4909
|
position: absolute;
|
|
4909
4910
|
left: calc(50% - 3px);
|
|
4910
|
-
bottom:
|
|
4911
|
+
bottom: 0;
|
|
4911
4912
|
width: 6px;
|
|
4912
4913
|
height: 6px;
|
|
4913
4914
|
border-radius: 50%;
|
package/.svelte-kit/ambient.d.ts
CHANGED
|
@@ -82,7 +82,6 @@ declare module '$env/static/private' {
|
|
|
82
82
|
export const npm_config_argv: string;
|
|
83
83
|
export const npm_package_devDependencies__types_qs: string;
|
|
84
84
|
export const _: string;
|
|
85
|
-
export const LaunchInstanceID: string;
|
|
86
85
|
export const npm_package_dependencies_svelte_i18n: string;
|
|
87
86
|
export const npm_package_dependencies_svelte_french_toast: string;
|
|
88
87
|
export const npm_config_engine_strict: string;
|
|
@@ -159,7 +158,6 @@ declare module '$env/static/private' {
|
|
|
159
158
|
export const npm_package_files_0: string;
|
|
160
159
|
export const npm_config_init_version: string;
|
|
161
160
|
export const npm_config_ignore_optional: string;
|
|
162
|
-
export const SECURITYSESSIONID: string;
|
|
163
161
|
export const npm_package_dependencies_svelte_portal: string;
|
|
164
162
|
export const npm_package_scripts_check: string;
|
|
165
163
|
export const COLORTERM: string;
|
|
@@ -253,7 +251,6 @@ declare module '$env/dynamic/private' {
|
|
|
253
251
|
npm_config_argv: string;
|
|
254
252
|
npm_package_devDependencies__types_qs: string;
|
|
255
253
|
_: string;
|
|
256
|
-
LaunchInstanceID: string;
|
|
257
254
|
npm_package_dependencies_svelte_i18n: string;
|
|
258
255
|
npm_package_dependencies_svelte_french_toast: string;
|
|
259
256
|
npm_config_engine_strict: string;
|
|
@@ -330,7 +327,6 @@ declare module '$env/dynamic/private' {
|
|
|
330
327
|
npm_package_files_0: string;
|
|
331
328
|
npm_config_init_version: string;
|
|
332
329
|
npm_config_ignore_optional: string;
|
|
333
|
-
SECURITYSESSIONID: string;
|
|
334
330
|
npm_package_dependencies_svelte_portal: string;
|
|
335
331
|
npm_package_scripts_check: string;
|
|
336
332
|
COLORTERM: string;
|
|
@@ -21,7 +21,7 @@ export const options = {
|
|
|
21
21
|
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<meta name=\"referrer\" content=\"no-referrer\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div>" + body + "</div>\n\t</body>\n</html>\n",
|
|
22
22
|
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
23
23
|
},
|
|
24
|
-
version_hash: "
|
|
24
|
+
version_hash: "3ouolu"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
|
@@ -6,10 +6,13 @@ import { env } from "../store/env";
|
|
|
6
6
|
import { Alert, Confirm } from "./components/notifications";
|
|
7
7
|
import Loader from "./components/loader/Loader.svelte";
|
|
8
8
|
import { onMount } from "svelte";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export let initI18n;
|
|
10
|
+
if (initI18n) {
|
|
11
|
+
init({
|
|
12
|
+
fallbackLocale: "en",
|
|
13
|
+
initialLocale: "en"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
13
16
|
env.subscribe(($env) => {
|
|
14
17
|
locale.set($env.locale);
|
|
15
18
|
dayjs.locale($env.locale);
|
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
fullName,
|
|
31
31
|
selectedPrice
|
|
32
32
|
} = copiedBooking;
|
|
33
|
+
export let initI18n = true;
|
|
33
34
|
let on = false;
|
|
34
35
|
let resolver;
|
|
35
36
|
$:
|
|
@@ -160,7 +161,7 @@ async function save() {
|
|
|
160
161
|
</script>
|
|
161
162
|
|
|
162
163
|
<Toaster />
|
|
163
|
-
<Layout>
|
|
164
|
+
<Layout {initI18n}>
|
|
164
165
|
<section class="indie_pop_wrap scroll" class:on>
|
|
165
166
|
{#if on}
|
|
166
167
|
<div class="pop_base full_2 indie_passengers_info_pop">
|
|
@@ -4784,6 +4784,7 @@
|
|
|
4784
4784
|
flex-shrink: 0;
|
|
4785
4785
|
display: inline-block;
|
|
4786
4786
|
vertical-align: middle;
|
|
4787
|
+
position: inherit;
|
|
4787
4788
|
width: 20px;
|
|
4788
4789
|
height: 20px;
|
|
4789
4790
|
text-indent: -9999px;
|
|
@@ -4873,14 +4874,14 @@
|
|
|
4873
4874
|
border: none !important;
|
|
4874
4875
|
}
|
|
4875
4876
|
td{
|
|
4876
|
-
padding: 0;
|
|
4877
|
+
padding: 0 !important;
|
|
4877
4878
|
border-spacing: 5px;
|
|
4878
4879
|
a{
|
|
4879
4880
|
display: flex;
|
|
4880
4881
|
justify-content: center;
|
|
4881
4882
|
align-items: center;
|
|
4882
|
-
width:
|
|
4883
|
-
height:
|
|
4883
|
+
width: 28px;
|
|
4884
|
+
height: 28px;
|
|
4884
4885
|
padding: 5px;
|
|
4885
4886
|
border-radius: 50%;
|
|
4886
4887
|
font-size: 12px;
|
|
@@ -4907,7 +4908,7 @@
|
|
|
4907
4908
|
content: '';
|
|
4908
4909
|
position: absolute;
|
|
4909
4910
|
left: calc(50% - 3px);
|
|
4910
|
-
bottom:
|
|
4911
|
+
bottom: 0;
|
|
4911
4912
|
width: 6px;
|
|
4912
4913
|
height: 6px;
|
|
4913
4914
|
border-radius: 50%;
|
package/package.json
CHANGED
|
@@ -12,10 +12,14 @@
|
|
|
12
12
|
import Loader from './components/loader/Loader.svelte'
|
|
13
13
|
import { onMount } from 'svelte'
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
export let initI18n: boolean
|
|
16
|
+
|
|
17
|
+
if (initI18n) {
|
|
18
|
+
init({
|
|
19
|
+
fallbackLocale: 'en',
|
|
20
|
+
initialLocale: 'en'
|
|
21
|
+
})
|
|
22
|
+
}
|
|
19
23
|
|
|
20
24
|
env.subscribe($env => {
|
|
21
25
|
locale.set($env.locale)
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
fullName,
|
|
49
49
|
selectedPrice
|
|
50
50
|
} = copiedBooking
|
|
51
|
-
|
|
51
|
+
export let initI18n = true
|
|
52
52
|
let on = false
|
|
53
53
|
let resolver: (value: Awaited<ReturnType<typeof open>>) => void
|
|
54
54
|
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
</script>
|
|
215
215
|
|
|
216
216
|
<Toaster />
|
|
217
|
-
<Layout>
|
|
217
|
+
<Layout {initI18n}>
|
|
218
218
|
<section class="indie_pop_wrap scroll" class:on>
|
|
219
219
|
{#if on}
|
|
220
220
|
<div class="pop_base full_2 indie_passengers_info_pop">
|
|
@@ -4784,6 +4784,7 @@
|
|
|
4784
4784
|
flex-shrink: 0;
|
|
4785
4785
|
display: inline-block;
|
|
4786
4786
|
vertical-align: middle;
|
|
4787
|
+
position: inherit;
|
|
4787
4788
|
width: 20px;
|
|
4788
4789
|
height: 20px;
|
|
4789
4790
|
text-indent: -9999px;
|
|
@@ -4873,14 +4874,14 @@
|
|
|
4873
4874
|
border: none !important;
|
|
4874
4875
|
}
|
|
4875
4876
|
td{
|
|
4876
|
-
padding: 0;
|
|
4877
|
+
padding: 0 !important;
|
|
4877
4878
|
border-spacing: 5px;
|
|
4878
4879
|
a{
|
|
4879
4880
|
display: flex;
|
|
4880
4881
|
justify-content: center;
|
|
4881
4882
|
align-items: center;
|
|
4882
|
-
width:
|
|
4883
|
-
height:
|
|
4883
|
+
width: 28px;
|
|
4884
|
+
height: 28px;
|
|
4884
4885
|
padding: 5px;
|
|
4885
4886
|
border-radius: 50%;
|
|
4886
4887
|
font-size: 12px;
|
|
@@ -4907,7 +4908,7 @@
|
|
|
4907
4908
|
content: '';
|
|
4908
4909
|
position: absolute;
|
|
4909
4910
|
left: calc(50% - 3px);
|
|
4910
|
-
bottom:
|
|
4911
|
+
bottom: 0;
|
|
4911
4912
|
width: 6px;
|
|
4912
4913
|
height: 6px;
|
|
4913
4914
|
border-radius: 50%;
|