@movvjs/svelte-schedule-view 0.2.6-beta-1 → 0.2.7-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.
|
@@ -34,10 +34,12 @@ onMount(() => {
|
|
|
34
34
|
animation: 200,
|
|
35
35
|
direction: "horizontal",
|
|
36
36
|
onUpdate({ newDraggableIndex, oldDraggableIndex }) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
withPreserveAndPreview(() => {
|
|
38
|
+
const updateWaypoints = cloneDeep($copiedBookingPlans.waypoints);
|
|
39
|
+
const [target] = updateWaypoints.splice(oldDraggableIndex, 1);
|
|
40
|
+
updateWaypoints.splice(newDraggableIndex, 0, target);
|
|
41
|
+
$copiedBooking.wayPoints = [...updateWaypoints, ...$copiedBookingServiceZone.waypoints];
|
|
42
|
+
});
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
}
|
package/.svelte-kit/ambient.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ 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;
|
|
85
86
|
export const npm_package_dependencies_svelte_i18n: string;
|
|
86
87
|
export const npm_package_dependencies_svelte_french_toast: string;
|
|
87
88
|
export const npm_config_engine_strict: string;
|
|
@@ -158,6 +159,7 @@ declare module '$env/static/private' {
|
|
|
158
159
|
export const npm_package_files_0: string;
|
|
159
160
|
export const npm_config_init_version: string;
|
|
160
161
|
export const npm_config_ignore_optional: string;
|
|
162
|
+
export const SECURITYSESSIONID: string;
|
|
161
163
|
export const npm_package_dependencies_svelte_portal: string;
|
|
162
164
|
export const npm_package_scripts_check: string;
|
|
163
165
|
export const COLORTERM: string;
|
|
@@ -251,6 +253,7 @@ declare module '$env/dynamic/private' {
|
|
|
251
253
|
npm_config_argv: string;
|
|
252
254
|
npm_package_devDependencies__types_qs: string;
|
|
253
255
|
_: string;
|
|
256
|
+
LaunchInstanceID: string;
|
|
254
257
|
npm_package_dependencies_svelte_i18n: string;
|
|
255
258
|
npm_package_dependencies_svelte_french_toast: string;
|
|
256
259
|
npm_config_engine_strict: string;
|
|
@@ -327,6 +330,7 @@ declare module '$env/dynamic/private' {
|
|
|
327
330
|
npm_package_files_0: string;
|
|
328
331
|
npm_config_init_version: string;
|
|
329
332
|
npm_config_ignore_optional: string;
|
|
333
|
+
SECURITYSESSIONID: string;
|
|
330
334
|
npm_package_dependencies_svelte_portal: string;
|
|
331
335
|
npm_package_scripts_check: string;
|
|
332
336
|
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: "akhry5"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
|
@@ -34,10 +34,12 @@ onMount(() => {
|
|
|
34
34
|
animation: 200,
|
|
35
35
|
direction: "horizontal",
|
|
36
36
|
onUpdate({ newDraggableIndex, oldDraggableIndex }) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
withPreserveAndPreview(() => {
|
|
38
|
+
const updateWaypoints = cloneDeep($copiedBookingPlans.waypoints);
|
|
39
|
+
const [target] = updateWaypoints.splice(oldDraggableIndex, 1);
|
|
40
|
+
updateWaypoints.splice(newDraggableIndex, 0, target);
|
|
41
|
+
$copiedBooking.wayPoints = [...updateWaypoints, ...$copiedBookingServiceZone.waypoints];
|
|
42
|
+
});
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
}
|
package/package.json
CHANGED
|
@@ -44,10 +44,12 @@
|
|
|
44
44
|
animation: 200,
|
|
45
45
|
direction: 'horizontal',
|
|
46
46
|
onUpdate({ newDraggableIndex, oldDraggableIndex }) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
withPreserveAndPreview(() => {
|
|
48
|
+
const updateWaypoints = cloneDeep($copiedBookingPlans.waypoints)
|
|
49
|
+
const [target] = updateWaypoints.splice(oldDraggableIndex, 1) // 빼서
|
|
50
|
+
updateWaypoints.splice(newDraggableIndex, 0, target) // 넣고
|
|
51
|
+
$copiedBooking.wayPoints = [...updateWaypoints, ...$copiedBookingServiceZone.waypoints]
|
|
52
|
+
})
|
|
51
53
|
}
|
|
52
54
|
})
|
|
53
55
|
}
|