@sierra-95/svelte-scaffold 1.0.39 → 1.0.40
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/Core/features/GlobalSearch/main.svelte +1 -1
- package/dist/Hooks/buildSearch.d.ts +1 -0
- package/dist/Modules/Editor/main.svelte +2 -1
- package/dist/Modules/Editor/main.svelte.d.ts +1 -0
- package/dist/Modules/Editor/styles/main.css +2 -3
- package/dist/Modules/Layout/Menu/menu.svelte +4 -3
- package/dist/Modules/Layout/Menu/menu.svelte.d.ts +2 -1
- package/package.json +1 -1
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<Backdrop bind:open>
|
|
105
105
|
<Wrapper minHeight="200px" maxHeight="500px">
|
|
106
106
|
<div class="flex gap-2">
|
|
107
|
-
<div
|
|
107
|
+
<div style="flex: 1;"><SearchBar bind:value={query} bind:inputEl width="100%"/></div>
|
|
108
108
|
<button class="searchbar-esc" onclick={toggle}>ESC</button>
|
|
109
109
|
</div>
|
|
110
110
|
{#if results.length > 0}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
export let content: any = {};
|
|
10
10
|
export let readOnly: boolean = false;
|
|
11
|
+
export let boxShadow: boolean = true;
|
|
11
12
|
|
|
12
13
|
let editor: Editor;
|
|
13
14
|
let element: HTMLElement;
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
});
|
|
34
35
|
</script>
|
|
35
36
|
|
|
36
|
-
<main id="editor">
|
|
37
|
+
<main id="editor" style="box-shadow: {boxShadow ? 'var(--box-shadow)' : 'none'};">
|
|
37
38
|
{#if editor && !readOnly}
|
|
38
39
|
<Controls {editor} />
|
|
39
40
|
{/if}
|
|
@@ -15,6 +15,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
15
15
|
declare const Main: $$__sveltets_2_IsomorphicComponent<{
|
|
16
16
|
content?: any;
|
|
17
17
|
readOnly?: boolean;
|
|
18
|
+
boxShadow?: boolean;
|
|
18
19
|
}, {
|
|
19
20
|
[evt: string]: CustomEvent<any>;
|
|
20
21
|
}, {}, {}, string>;
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
import { page } from '$app/state';
|
|
5
5
|
import { afterNavigate, beforeNavigate } from '$app/navigation';
|
|
6
6
|
import { isLoading, validateLayoutMenuSections } from '../../../index.js';
|
|
7
|
+
import type {Section} from '../../../index.js';
|
|
7
8
|
|
|
8
9
|
export let toggleMenu: () => void;
|
|
9
10
|
export let closeMobileMenu: () => void;
|
|
10
11
|
export let isMenuOpen: boolean;
|
|
11
|
-
export let sections:
|
|
12
|
+
export let sections: Section[];
|
|
12
13
|
|
|
13
14
|
function isParentActive(item: any, pathname: string) {
|
|
14
15
|
if (item.path === '/') {
|
|
@@ -74,11 +75,11 @@
|
|
|
74
75
|
</div>
|
|
75
76
|
{/if}
|
|
76
77
|
|
|
77
|
-
{#each section.items as item}
|
|
78
|
+
{#each section.items.filter(item => !item.hidden) as item}
|
|
78
79
|
<a title={item.label}
|
|
79
80
|
href={item.children ? 'javascript:void(0)' : item.path}
|
|
80
81
|
on:click={() => {
|
|
81
|
-
if (item.children) {
|
|
82
|
+
if (item.children && item.id) {
|
|
82
83
|
toggleSubsection(item.id);
|
|
83
84
|
}else{
|
|
84
85
|
closeMobileMenu();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import './menu.css';
|
|
2
|
+
import type { Section } from '../../../index.js';
|
|
2
3
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
4
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
5
|
$$bindings?: Bindings;
|
|
@@ -16,7 +17,7 @@ declare const Menu: $$__sveltets_2_IsomorphicComponent<{
|
|
|
16
17
|
toggleMenu: () => void;
|
|
17
18
|
closeMobileMenu: () => void;
|
|
18
19
|
isMenuOpen: boolean;
|
|
19
|
-
sections:
|
|
20
|
+
sections: Section[];
|
|
20
21
|
}, {
|
|
21
22
|
[evt: string]: CustomEvent<any>;
|
|
22
23
|
}, {}, {}, string>;
|