@bexis2/bexis2-core-ui 0.4.63 → 0.4.64
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 +4 -0
- package/dist/components/page/Page.svelte +3 -2
- package/dist/components/page/breadcrumb/Breadcrumb.svelte +7 -6
- package/dist/components/page/breadcrumb/Breadcrumb.svelte.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/components/page/Page.svelte +4 -3
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +10 -7
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ import { getAntiForgeryToken } from "./PageCaller";
|
|
|
18
18
|
import { get } from "svelte/store";
|
|
19
19
|
import { getApplicationName } from "./breadcrumb/BreadcrumbDataCaller";
|
|
20
20
|
export let title = "";
|
|
21
|
+
let applicationName = "";
|
|
21
22
|
export let note = "";
|
|
22
23
|
export let links = [];
|
|
23
24
|
export let menu = true;
|
|
@@ -48,7 +49,7 @@ onMount(async () => {
|
|
|
48
49
|
const data = await getAntiForgeryToken();
|
|
49
50
|
csrfTokenStore.set(data.csrfToken);
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
+
applicationName = await getApplicationName();
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
csrfTokenStore.subscribe((value) => {
|
|
@@ -74,7 +75,7 @@ function scrollToTop() {
|
|
|
74
75
|
{/if}
|
|
75
76
|
|
|
76
77
|
<div class="grid grid-cols-2">
|
|
77
|
-
<Breadcrumb bind:title />
|
|
78
|
+
<Breadcrumb bind:title bind:applicationName />
|
|
78
79
|
<Docs {links} {note} />
|
|
79
80
|
</div>
|
|
80
81
|
</svelte:fragment>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>import { breadcrumbStore } from "../../../stores/pageStores";
|
|
2
2
|
import { browser } from "$app/environment";
|
|
3
|
-
import { onMount } from "svelte";
|
|
4
|
-
import { getApplicationName } from "./BreadcrumbDataCaller";
|
|
5
3
|
export let title;
|
|
6
4
|
$: update(title);
|
|
5
|
+
export let applicationName;
|
|
6
|
+
$: applicationName = "";
|
|
7
7
|
function update(t) {
|
|
8
8
|
if (browser) {
|
|
9
9
|
breadcrumbStore.updateItem({ label: t, link: window.location.pathname });
|
|
@@ -14,13 +14,11 @@ $: list;
|
|
|
14
14
|
$: breadcrumbStore.subscribe((value) => {
|
|
15
15
|
list = value?.items;
|
|
16
16
|
});
|
|
17
|
-
let applicationName = "BEXIS2";
|
|
18
|
-
onMount(async () => {
|
|
19
|
-
applicationName = title;
|
|
20
|
-
});
|
|
21
17
|
</script>
|
|
22
18
|
|
|
19
|
+
|
|
23
20
|
<div class="px-5 py-2">
|
|
21
|
+
|
|
24
22
|
<ol class="breadcrumb -p50">
|
|
25
23
|
<!--default home-->
|
|
26
24
|
<li class="crumb"><a class="anchor" href={'/'}>{applicationName}</a></li>
|
|
@@ -36,4 +34,7 @@ onMount(async () => {
|
|
|
36
34
|
{/if}
|
|
37
35
|
{/each}
|
|
38
36
|
</ol>
|
|
37
|
+
|
|
39
38
|
</div>
|
|
39
|
+
|
|
40
|
+
|
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@ import type { helpItemType, helpStoreType } from '$models/Models';
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
export let title = '';
|
|
37
|
+
let applicationName = '';
|
|
37
38
|
export let note = '';
|
|
38
39
|
export let links: linkType[] = [];
|
|
39
40
|
|
|
@@ -79,8 +80,8 @@ import type { helpItemType, helpStoreType } from '$models/Models';
|
|
|
79
80
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
applicationName = await getApplicationName();
|
|
84
|
+
//alert(title);
|
|
84
85
|
|
|
85
86
|
}
|
|
86
87
|
});
|
|
@@ -112,7 +113,7 @@ import type { helpItemType, helpStoreType } from '$models/Models';
|
|
|
112
113
|
{/if}
|
|
113
114
|
|
|
114
115
|
<div class="grid grid-cols-2">
|
|
115
|
-
<Breadcrumb bind:title />
|
|
116
|
+
<Breadcrumb bind:title bind:applicationName />
|
|
116
117
|
<Docs {links} {note} />
|
|
117
118
|
</div>
|
|
118
119
|
</svelte:fragment>
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
import { breadcrumbStore } from '$store/pageStores';
|
|
3
3
|
import type { breadcrumbItemType } from '$models/Page';
|
|
4
4
|
import { browser } from '$app/environment';
|
|
5
|
-
|
|
6
|
-
import {getApplicationName} from './BreadcrumbDataCaller';
|
|
5
|
+
|
|
7
6
|
|
|
8
7
|
export let title;
|
|
9
8
|
|
|
10
9
|
$: update(title);
|
|
11
10
|
|
|
11
|
+
export let applicationName: string;
|
|
12
|
+
$: applicationName = "";
|
|
13
|
+
|
|
14
|
+
|
|
12
15
|
function update(t) {
|
|
13
16
|
if (browser) {
|
|
14
17
|
breadcrumbStore.updateItem({ label: t, link: window.location.pathname });
|
|
@@ -22,15 +25,12 @@
|
|
|
22
25
|
list = value?.items;
|
|
23
26
|
});
|
|
24
27
|
|
|
25
|
-
let applicationName = "BEXIS2";
|
|
26
|
-
|
|
27
|
-
onMount(async () => {
|
|
28
|
-
applicationName = title;
|
|
29
|
-
});
|
|
30
28
|
|
|
31
29
|
</script>
|
|
32
30
|
|
|
31
|
+
|
|
33
32
|
<div class="px-5 py-2">
|
|
33
|
+
|
|
34
34
|
<ol class="breadcrumb -p50">
|
|
35
35
|
<!--default home-->
|
|
36
36
|
<li class="crumb"><a class="anchor" href={'/'}>{applicationName}</a></li>
|
|
@@ -46,4 +46,7 @@
|
|
|
46
46
|
{/if}
|
|
47
47
|
{/each}
|
|
48
48
|
</ol>
|
|
49
|
+
|
|
49
50
|
</div>
|
|
51
|
+
|
|
52
|
+
|