Skip to content

Commit c5a7409

Browse files
committed
menu changes
1 parent bdb20b5 commit c5a7409

File tree

6 files changed

+37
-9
lines changed

6 files changed

+37
-9
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
# bexis-core-ui
2+
## 0.4.26
3+
- menu
4+
- change submenu buttons to a link and add link menuitems to support right click menu
5+
6+
## 0.4.25
7+
- menu
8+
- add internal & target to menuItemType to support handle menuEntries open in same or other window
9+
10+
## 0.4.24
11+
- Table
12+
- Adds option for enabling/disabling show/hide column menu in table.
13+
- Adds option to show number of items displayed instead of number of pages.
14+
- Fixes an issue where "0" values return empty string.
15+
16+
- Facets
17+
- Fixes an issue with truncation of text in Facet headers and options.
18+
19+
## 0.4.23
20+
- Table
21+
- fix resizing issues after page size or page index changes
22+
- Add Select All and Deselect All in columns menu
23+
- Convert JSON to CSV and export as CSV
24+
- Export as JSON to fix special characters and encoding issues
25+
226
## 0.4.22
327
- Facets
428
- Replace column class function with more efficient solution

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bexis2/bexis2-core-ui",
3-
"version": "0.4.22",
3+
"version": "0.4.26",
44
"private": false,
55
"scripts": {
66
"dev": "vite dev",

src/lib/components/page/menu/MenuItem.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626

2727
{#if menubarItem.Items.length < 1}
2828
<div class="p-2">
29-
<button class="grid" use:popup={popupCombobox} on:click={() => goTo(menubarItem.Url)}>
30-
<span class="capitalize whitespace-nowrap">{comboboxValue ?? menubarItem.Title}</span>
29+
30+
<button class="grid" use:popup={popupCombobox} >
31+
<a class="grid" href={menubarItem.Url} target="{menubarItem.Target}">
32+
<span class="capitalize whitespace-nowrap">{comboboxValue ?? menubarItem.Title}</span>
33+
</a>
3134
</button>
3235
</div>
3336
{:else}

src/lib/components/page/menu/MenuSublist.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { ListBox, ListBoxItem } from '@skeletonlabs/skeleton';
2+
import { ListBox, ListBoxItem, TreeViewItem } from '@skeletonlabs/skeleton';
33
import type { menuItemType } from '../../../models/Page';
44
import { goTo } from '../../../services/BaseCaller';
55
@@ -31,7 +31,7 @@
3131
return;
3232
}
3333
else{
34-
goTo(item.Url)
34+
goTo(item.Url, item.Internal, item.Target);
3535
}
3636
}
3737
@@ -76,9 +76,9 @@
7676
bind:group={item.Title}
7777
name="medium"
7878
value={item.Title}
79-
on:click={() => clickFn(item)}
79+
8080
>
81-
{item.Title}
81+
<a href={item.Url} target="{item.Target}">{item.Title}</a>
8282
</ListBoxItem>
8383

8484
{/each}

src/lib/models/Page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface menuItemType {
2929
Url: string;
3030
Target: string;
3131
Module: string;
32+
Internal: boolean;
3233
Items: menuItemType[];
3334
}
3435

src/lib/services/BaseCaller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import { host } from '$store/apiStores';
44

55
// go to a internal action
6-
export const goTo = async (url, intern = true) => {
6+
export const goTo = async (url, intern = true, target="_self") => {
77
if (intern == true) {
88
// go to inside bexis2
99
if (window != null && host != null && url != null) {
10-
window.open(host + url, '_self')?.focus();
10+
window.open(host + url, target)?.focus();
1111
}
1212
} // go to a external page
1313
else {

0 commit comments

Comments
 (0)