@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 CHANGED
@@ -1,4 +1,8 @@
1
1
  # bexis-core-ui
2
+ ## 0.4.64
3
+ - Page
4
+ - if application name position
5
+
2
6
  ## 0.4.63
3
7
  - Page
4
8
  - check if hidden field exist
@@ -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
- title = await getApplicationName();
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
+
@@ -2,6 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  title: any;
5
+ applicationName: string;
5
6
  };
6
7
  events: {
7
8
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.63",
3
+ "version": "0.4.64",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -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
- title = await getApplicationName();
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
- import { onMount } from 'svelte';
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
+