@bexis2/bexis2-core-ui 0.2.11 → 0.2.13
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/README.md +273 -214
- package/dist/components/Table/Table.svelte +85 -85
- package/dist/components/Table/TableFilter.svelte +8 -8
- package/dist/components/Table/TablePagination.svelte +38 -38
- package/dist/components/file/FileUploader.svelte +34 -34
- package/dist/components/form/Checkbox.svelte.d.ts +1 -1
- package/dist/components/form/DropdownKvP.svelte +5 -11
- package/dist/components/form/InputContainer.svelte +20 -19
- package/dist/components/form/MultiSelect.svelte +163 -178
- package/dist/components/form/TextArea.svelte +13 -13
- package/dist/components/form/TextInput.svelte +0 -2
- package/dist/components/page/Alert.svelte +28 -30
- package/dist/components/page/BackToTop.svelte +30 -30
- package/dist/components/page/Docs.svelte +22 -19
- package/dist/components/page/Docs.svelte.d.ts +1 -1
- package/dist/components/page/ErrorMessage.svelte +8 -8
- package/dist/components/page/Footer.svelte +5 -5
- package/dist/components/page/Header.svelte +5 -4
- package/dist/components/page/HelpPopUp.svelte +31 -25
- package/dist/components/page/HelpPopUp.svelte.d.ts +5 -12
- package/dist/components/page/Page.svelte +57 -67
- package/dist/components/page/Page.svelte.d.ts +2 -2
- package/dist/components/page/PageCaller.js +19 -21
- package/dist/components/page/Spinner.svelte +9 -10
- package/dist/components/page/Spinner.svelte.d.ts +1 -1
- package/dist/components/page/breadcrumb/Breadcrumb.svelte +19 -23
- package/dist/components/page/menu/Menu.svelte +48 -22
- package/dist/components/page/menu/MenuBar.svelte +8 -14
- package/dist/components/page/menu/MenuBar.svelte.d.ts +1 -1
- package/dist/components/page/menu/MenuDataCaller.js +10 -11
- package/dist/components/page/menu/MenuItem.svelte +28 -15
- package/dist/components/page/menu/MenuItem.svelte.d.ts +2 -1
- package/dist/components/page/menu/MenuSublist.svelte +14 -16
- package/dist/components/page/menu/MenuSublist.svelte.d.ts +2 -3
- package/dist/components/page/menu/SettingsBar.svelte +22 -14
- package/dist/components/page/menu/SettingsBar.svelte.d.ts +2 -2
- package/dist/css/core.ui.postcss +10 -7
- package/dist/css/themes/theme-bexis2.css +12 -13
- package/dist/index.d.ts +3 -5
- package/dist/index.js +5 -5
- package/dist/models/Enums.d.ts +18 -0
- package/dist/models/Enums.js +22 -0
- package/dist/models/Models.d.ts +18 -0
- package/dist/models/Models.js +1 -2
- package/dist/models/Page.d.ts +31 -0
- package/dist/services/BaseCaller.js +16 -21
- package/dist/stores/pageStores.d.ts +4 -4
- package/dist/stores/pageStores.js +27 -27
- package/package.json +2 -2
- package/src/lib/components/Table/Table.svelte +246 -246
- package/src/lib/components/Table/TableFilter.svelte +8 -8
- package/src/lib/components/Table/TablePagination.svelte +61 -61
- package/src/lib/components/Table/filter.ts +141 -141
- package/src/lib/components/file/FileUploader.svelte +184 -184
- package/src/lib/components/form/Checkbox.svelte +1 -1
- package/src/lib/components/form/DateInput.svelte +0 -1
- package/src/lib/components/form/DropdownKvP.svelte +5 -11
- package/src/lib/components/form/InputContainer.svelte +36 -44
- package/src/lib/components/form/MultiSelect.svelte +163 -178
- package/src/lib/components/form/NumberInput.svelte +3 -5
- package/src/lib/components/form/TextArea.svelte +26 -27
- package/src/lib/components/form/TextInput.svelte +2 -5
- package/src/lib/components/page/Alert.svelte +41 -45
- package/src/lib/components/page/BackToTop.svelte +30 -30
- package/src/lib/components/page/Docs.svelte +46 -44
- package/src/lib/components/page/ErrorMessage.svelte +10 -12
- package/src/lib/components/page/Footer.svelte +18 -22
- package/src/lib/components/page/Header.svelte +18 -21
- package/src/lib/components/page/HelpPopUp.svelte +72 -66
- package/src/lib/components/page/Page.svelte +96 -109
- package/src/lib/components/page/PageCaller.js +19 -21
- package/src/lib/components/page/Spinner.svelte +13 -15
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +31 -43
- package/src/lib/components/page/menu/Menu.svelte +61 -43
- package/src/lib/components/page/menu/MenuBar.svelte +18 -29
- package/src/lib/components/page/menu/MenuDataCaller.js +10 -11
- package/src/lib/components/page/menu/MenuItem.svelte +45 -34
- package/src/lib/components/page/menu/MenuSublist.svelte +33 -41
- package/src/lib/components/page/menu/SettingsBar.svelte +39 -37
- package/src/lib/css/core.ui.postcss +10 -7
- package/src/lib/css/themes/theme-bexis2.css +12 -13
- package/src/lib/index.ts +78 -77
- package/src/lib/models/Enums.ts +32 -11
- package/src/lib/models/Models.ts +136 -113
- package/src/lib/models/Page.ts +40 -41
- package/src/lib/services/BaseCaller.js +16 -21
- package/src/lib/stores/apiStores.ts +31 -32
- package/src/lib/stores/pageStores.ts +121 -126
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
//popup
|
|
20
|
-
const noteSettings: PopupSettings = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<div class="text-right p-2">
|
|
28
|
-
{#if note}
|
|
29
|
-
<span class="chip variant-soft hover:variant-filled" use:popup={noteSettings}
|
|
30
|
-
|
|
31
|
-
</span>
|
|
32
|
-
|
|
33
|
-
<div
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
</
|
|
44
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Fa from 'svelte-fa/src/fa.svelte';
|
|
3
|
+
import { faQuestion } from '@fortawesome/free-solid-svg-icons';
|
|
4
|
+
import { goTo } from '$services/BaseCaller';
|
|
5
|
+
|
|
6
|
+
// links
|
|
7
|
+
import type { linkType } from '$lib/models/Models';
|
|
8
|
+
export let links: linkType[] = [];
|
|
9
|
+
|
|
10
|
+
// popup for note
|
|
11
|
+
import { popup } from '@skeletonlabs/skeleton';
|
|
12
|
+
import type { PopupSettings } from '@skeletonlabs/skeleton';
|
|
13
|
+
import { computePosition, autoUpdate, offset, shift, flip, arrow } from '@floating-ui/dom';
|
|
14
|
+
import { storePopup } from '@skeletonlabs/skeleton';
|
|
15
|
+
storePopup.set({ computePosition, autoUpdate, offset, shift, flip, arrow });
|
|
16
|
+
|
|
17
|
+
export let note: string;
|
|
18
|
+
|
|
19
|
+
//popup
|
|
20
|
+
const noteSettings: PopupSettings = {
|
|
21
|
+
event: 'click',
|
|
22
|
+
target: 'noteTarget',
|
|
23
|
+
placement: 'bottom'
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<div class="text-right p-2">
|
|
28
|
+
{#if note}
|
|
29
|
+
<span class="chip variant-soft hover:variant-filled" use:popup={noteSettings}>
|
|
30
|
+
<span><Fa icon={faQuestion} /></span>
|
|
31
|
+
</span>
|
|
32
|
+
|
|
33
|
+
<div
|
|
34
|
+
class="card p-4 variant-filled-primary w-60 z-50 text-left shadow-md"
|
|
35
|
+
data-popup="noteTarget"
|
|
36
|
+
>
|
|
37
|
+
{note}
|
|
38
|
+
</div>
|
|
39
|
+
{/if}
|
|
40
|
+
|
|
41
|
+
{#each links as link}
|
|
42
|
+
<span class="chip variant-soft hover:variant-filled" on:click={() => goTo(link.url, false)}>
|
|
43
|
+
<span>{link.label}</span>
|
|
44
|
+
</span>
|
|
45
|
+
{/each}
|
|
46
|
+
</div>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
export let error: Error;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class="card bg-error-300 border-solid border-2 border-error-500 shadow-md max-w-md">
|
|
6
|
+
<div class="p-5 space-y-4">
|
|
7
|
+
<h3 class="h3">{error.name}</h3>
|
|
8
|
+
<p>{error.message}</p>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{#if content!=undefined}
|
|
21
|
-
{@html content}
|
|
22
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
import { getFooter } from './PageCaller';
|
|
4
|
+
|
|
5
|
+
let content: string = '';
|
|
6
|
+
$: content;
|
|
7
|
+
|
|
8
|
+
onMount(async () => {
|
|
9
|
+
console.log('footer');
|
|
10
|
+
|
|
11
|
+
content = await getFooter();
|
|
12
|
+
console.log(content);
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
{#if content != undefined}
|
|
17
|
+
{@html content}
|
|
18
|
+
{/if}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{#if content!=undefined}
|
|
20
|
-
{@html content}
|
|
21
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
import { getHeader } from './PageCaller';
|
|
4
|
+
|
|
5
|
+
let content: string = '';
|
|
6
|
+
$: content;
|
|
7
|
+
|
|
8
|
+
onMount(async () => {
|
|
9
|
+
console.log('header');
|
|
10
|
+
|
|
11
|
+
content = await getHeader();
|
|
12
|
+
console.log(content);
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
{#if content != undefined}
|
|
17
|
+
{@html content}
|
|
18
|
+
{/if}
|
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
<script lang=ts>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
{#if active}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { helpStore } from '$store/pageStores';
|
|
3
|
+
import type { helpItemType, helpStoreType } from '$models/Models';
|
|
4
|
+
import Fa from 'svelte-fa/src/fa.svelte';
|
|
5
|
+
import { faQuestion } from '@fortawesome/free-solid-svg-icons';
|
|
6
|
+
|
|
7
|
+
//popup
|
|
8
|
+
import { popup } from '@skeletonlabs/skeleton';
|
|
9
|
+
import type { PopupSettings } from '@skeletonlabs/skeleton';
|
|
10
|
+
//import { computePosition, autoUpdate, offset, shift, flip, arrow } from '@floating-ui/dom';
|
|
11
|
+
//import { storePopup } from '@skeletonlabs/skeleton';
|
|
12
|
+
import delay from 'delay';
|
|
13
|
+
|
|
14
|
+
export let active: boolean = false;
|
|
15
|
+
|
|
16
|
+
let hs: helpStoreType;
|
|
17
|
+
$: helpStore.subscribe((value) => {
|
|
18
|
+
hs = value;
|
|
19
|
+
});
|
|
20
|
+
let helpItem: helpItemType = { id: undefined, name: '', description: '' };
|
|
21
|
+
$: helpItem =
|
|
22
|
+
active === true
|
|
23
|
+
? hs.itemId == ''
|
|
24
|
+
? { id: undefined, name: '', description: '' }
|
|
25
|
+
: hs.helpItems.find((h) => h.id === hs.itemId)!
|
|
26
|
+
: { id: undefined, name: '', description: '' };
|
|
27
|
+
|
|
28
|
+
const helpClick: PopupSettings = {
|
|
29
|
+
event: 'click',
|
|
30
|
+
target: 'helpTarget',
|
|
31
|
+
placement: 'top',
|
|
32
|
+
state: (s) => {
|
|
33
|
+
if (s != true) {
|
|
34
|
+
resetItemId();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
async function resetItemId() {
|
|
40
|
+
await delay(100);
|
|
41
|
+
helpStore.resetItemId();
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
{#if active}
|
|
46
|
+
<button
|
|
47
|
+
id="helpButton"
|
|
48
|
+
class="chip variant-filled-warning fixed bottom-5 right-10 shadow-md"
|
|
49
|
+
use:popup={helpClick}><Fa icon={faQuestion} /></button
|
|
50
|
+
>
|
|
51
|
+
|
|
52
|
+
<div
|
|
53
|
+
class="card bg-primary-300 border-solid border-2 border-primary-500 shadow-md"
|
|
54
|
+
data-popup="helpTarget"
|
|
55
|
+
>
|
|
56
|
+
{#if helpItem && helpItem.id}
|
|
57
|
+
<div class="p-5 w-96 space-y-4" id={'helpPopup.' + helpItem.id}>
|
|
58
|
+
<h3 class="h3">{helpItem.name}</h3>
|
|
59
|
+
<p>{@html helpItem.description}</p>
|
|
60
|
+
{#if helpItem.link}
|
|
61
|
+
<p><a class="anchor" href={helpItem.link}>... read more</a></p>
|
|
62
|
+
{/if}
|
|
63
|
+
</div>
|
|
64
|
+
{:else}
|
|
65
|
+
<div class="p-5 w-96 space-y-4" id="helpPopup">
|
|
66
|
+
<h3 class="h3">Help</h3>
|
|
67
|
+
<p>Hover over the Element, you like to know more about.</p>
|
|
68
|
+
</div>
|
|
69
|
+
{/if}
|
|
70
|
+
<div class="arrow variant-filled-primary" />
|
|
71
|
+
</div>
|
|
72
|
+
{/if}
|
|
@@ -1,109 +1,96 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{#if $$slots.right}
|
|
100
|
-
<div class=" p-5 flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
101
|
-
<slot name="right"/>
|
|
102
|
-
</div>
|
|
103
|
-
{/if}
|
|
104
|
-
|
|
105
|
-
</div>
|
|
106
|
-
|
|
107
|
-
<HelpPopUp active={help}/>
|
|
108
|
-
|
|
109
|
-
</AppShell>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
|
|
4
|
+
import type { linkType } from '$lib/models/Models';
|
|
5
|
+
import { pageContentLayoutType } from '$lib/models/Enums';
|
|
6
|
+
|
|
7
|
+
// ui components
|
|
8
|
+
import { AppShell, AppBar } from '@skeletonlabs/skeleton';
|
|
9
|
+
import Menu from './menu/Menu.svelte';
|
|
10
|
+
import Footer from './Footer.svelte';
|
|
11
|
+
import Header from './Header.svelte';
|
|
12
|
+
import HelpPopUp from './HelpPopUp.svelte';
|
|
13
|
+
import Breadcrumb from './breadcrumb/Breadcrumb.svelte';
|
|
14
|
+
|
|
15
|
+
//popup
|
|
16
|
+
import { computePosition, autoUpdate, offset, shift, flip, arrow } from '@floating-ui/dom';
|
|
17
|
+
import { storePopup } from '@skeletonlabs/skeleton';
|
|
18
|
+
import { breadcrumbStore } from '$store/pageStores';
|
|
19
|
+
|
|
20
|
+
storePopup.set({ computePosition, autoUpdate, offset, shift, flip, arrow });
|
|
21
|
+
|
|
22
|
+
// stores
|
|
23
|
+
import { helpStore } from '$store/pageStores';
|
|
24
|
+
import Docs from './Docs.svelte';
|
|
25
|
+
|
|
26
|
+
export let title = '';
|
|
27
|
+
export let note = '';
|
|
28
|
+
export let links: linkType[] = [];
|
|
29
|
+
|
|
30
|
+
// active or hide menu
|
|
31
|
+
export let menu: boolean = true;
|
|
32
|
+
export let footer: boolean = true;
|
|
33
|
+
export let help: boolean = false;
|
|
34
|
+
export let contentLayoutType: pageContentLayoutType = pageContentLayoutType.center;
|
|
35
|
+
|
|
36
|
+
onMount(async () => {
|
|
37
|
+
console.log('page');
|
|
38
|
+
breadcrumbStore.clean();
|
|
39
|
+
breadcrumbStore.addItem({ label: title, link: window.location.pathname });
|
|
40
|
+
});
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<AppShell>
|
|
44
|
+
<!--header-->
|
|
45
|
+
<svelte:fragment slot="header">
|
|
46
|
+
<AppBar padding="0" spacing="space-y-0" background="white">
|
|
47
|
+
<svelte:fragment slot="headline">
|
|
48
|
+
<Header />
|
|
49
|
+
{#if true}
|
|
50
|
+
<Menu />
|
|
51
|
+
{/if}
|
|
52
|
+
|
|
53
|
+
<div class="grid grid-cols-2">
|
|
54
|
+
<Breadcrumb {title} />
|
|
55
|
+
<Docs {links} {note} />
|
|
56
|
+
</div>
|
|
57
|
+
</svelte:fragment>
|
|
58
|
+
</AppBar>
|
|
59
|
+
</svelte:fragment>
|
|
60
|
+
|
|
61
|
+
<svelte:fragment slot="footer">
|
|
62
|
+
<Footer />
|
|
63
|
+
</svelte:fragment>
|
|
64
|
+
|
|
65
|
+
<slot name="description" />
|
|
66
|
+
|
|
67
|
+
<div class="flex flex-initial space-x-5">
|
|
68
|
+
{#if $$slots.left}
|
|
69
|
+
<div class="p-5 flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500">
|
|
70
|
+
<slot name="left" />
|
|
71
|
+
</div>
|
|
72
|
+
{/if}
|
|
73
|
+
|
|
74
|
+
{#if contentLayoutType === pageContentLayoutType.center}
|
|
75
|
+
<div class="flex justify-center w-screen">
|
|
76
|
+
<div class="max-w-7xl p-5 space-y-5 border-y border-solid border-surface-500">
|
|
77
|
+
<slot />
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
{/if}
|
|
81
|
+
|
|
82
|
+
{#if contentLayoutType === pageContentLayoutType.full}
|
|
83
|
+
<div class="p-5 space-y-5 border-y border-solid border-surface-500 w-screen">
|
|
84
|
+
<slot />
|
|
85
|
+
</div>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
{#if $$slots.right}
|
|
89
|
+
<div class=" p-5 flex-shrink-0 w-96 border-y border-solid border-surface-500">
|
|
90
|
+
<slot name="right" />
|
|
91
|
+
</div>
|
|
92
|
+
{/if}
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<HelpPopUp active={help} />
|
|
96
|
+
</AppShell>
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import {Api} from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
};
|
|
1
|
+
import { Api } from '$lib/services/Api';
|
|
2
|
+
|
|
3
|
+
export const getFooter = async () => {
|
|
4
|
+
try {
|
|
5
|
+
const response = await Api.get('/footer');
|
|
6
|
+
return response.data;
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.error(error);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const getHeader = async () => {
|
|
13
|
+
try {
|
|
14
|
+
const response = await Api.get('/header');
|
|
15
|
+
return response.data;
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error(error);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export let textCss = "text-surface-600"
|
|
5
|
-
export let label = "";
|
|
6
|
-
export let position:positionType = positionType.center;
|
|
2
|
+
import { positionType } from '$lib/models/Enums';
|
|
7
3
|
|
|
4
|
+
export let textCss = 'text-surface-600';
|
|
5
|
+
export let label = '';
|
|
6
|
+
export let position: positionType = positionType.center;
|
|
8
7
|
</script>
|
|
9
8
|
|
|
10
9
|
<div class="flex justify-{position} items-{position} h-full w-full gap-5 pt-2 {textCss}">
|
|
11
|
-
<div
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
<span
|
|
16
|
-
class="!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"
|
|
17
|
-
>Loading...</span
|
|
10
|
+
<div
|
|
11
|
+
class="inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"
|
|
12
|
+
role="status"
|
|
18
13
|
>
|
|
14
|
+
<span
|
|
15
|
+
class="!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"
|
|
16
|
+
>Loading...</span
|
|
17
|
+
>
|
|
18
|
+
</div>
|
|
19
|
+
<span>{label}</span>
|
|
19
20
|
</div>
|
|
20
|
-
<span>{label}</span>
|
|
21
|
-
</div>
|
|
22
|
-
|