@bexis2/bexis2-core-ui 0.4.25 → 0.4.26

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.26
3
+ - menu
4
+ - change submenu buttons to a link and add link menuitems to support right click menu
5
+
2
6
  ## 0.4.25
3
7
  - menu
4
8
  - add internal & target to menuItemType to support handle menuEntries open in same or other window
@@ -15,8 +15,11 @@ let popupCombobox = {
15
15
 
16
16
  {#if menubarItem.Items.length < 1}
17
17
  <div class="p-2">
18
- <button class="grid" use:popup={popupCombobox} on:click={() => goTo(menubarItem.Url)}>
19
- <span class="capitalize whitespace-nowrap">{comboboxValue ?? menubarItem.Title}</span>
18
+
19
+ <button class="grid" use:popup={popupCombobox} >
20
+ <a class="grid" href={menubarItem.Url} target="{menubarItem.Target}">
21
+ <span class="capitalize whitespace-nowrap">{comboboxValue ?? menubarItem.Title}</span>
22
+ </a>
20
23
  </button>
21
24
  </div>
22
25
  {:else}
@@ -56,9 +56,9 @@ async function logOffFn() {
56
56
  bind:group={item.Title}
57
57
  name="medium"
58
58
  value={item.Title}
59
- on:click={() => clickFn(item)}
59
+
60
60
  >
61
- {item.Title}
61
+ <a href={item.Url} target="{item.Target}">{item.Title}</a>
62
62
  </ListBoxItem>
63
63
 
64
64
  {/each}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.25",
3
+ "version": "0.4.26",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -26,8 +26,11 @@
26
26
 
27
27
  {#if menubarItem.Items.length < 1}
28
28
  <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>
31
34
  </button>
32
35
  </div>
33
36
  {:else}
@@ -76,9 +76,9 @@
76
76
  bind:group={item.Title}
77
77
  name="medium"
78
78
  value={item.Title}
79
- on:click={() => clickFn(item)}
79
+
80
80
  >
81
- {item.Title}
81
+ <a href={item.Url} target="{item.Target}">{item.Title}</a>
82
82
  </ListBoxItem>
83
83
 
84
84
  {/each}