@bexis2/bexis2-core-ui 0.4.30 → 0.4.32

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,12 @@
1
1
  # bexis-core-ui
2
+ ## 0.4.32
3
+ - Menu
4
+ - fix log off, add click event to link
5
+
6
+ ## 0.4.31
7
+ - Table
8
+ - Adds variants for pagination buttons
9
+
2
10
  ## 0.4.30
3
11
  - Table:
4
12
  - Fixes issue with rounded corners on pagination button under the table
@@ -56,9 +56,9 @@ $: $pageCount, $pageIndex, $pageSize, itemCount, indexInformation = getIndexInfo
56
56
  on:page={(page) => ($pageIndex = page.detail)}
57
57
  settings={paginationSettings}
58
58
  select="hidden"
59
- active="active"
60
- controlVariant=""
61
- buttonClasses="!rounded-none !px-3 !py-1.5 fill-current"
59
+ active="!variant-filled-secondary !text-on-secondary-token"
60
+ controlVariant="!text-on-primary-token"
61
+ buttonClasses="!rounded-none !px-3 !py-1.5 fill-current bg-primary-500 hover:!bg-primary-600 !text-on-primary-token disabled:grayscale disabled:!opacity-30"
62
62
  regionControl="btn-group"
63
63
  maxNumerals={1}
64
64
  showNumerals
@@ -17,6 +17,7 @@ function isNewModule(module) {
17
17
  }
18
18
  function clickFn(item) {
19
19
  if (item.Title == "Log Off") {
20
+ alert("log off");
20
21
  logOffFn();
21
22
  return;
22
23
  } else {
@@ -58,7 +59,7 @@ async function logOffFn() {
58
59
  value={item.Title}
59
60
 
60
61
  >
61
- <a href={item.Url} target="{item.Target}">{item.Title}</a>
62
+ <a href={item.Url} target="{item.Target}" on:click|preventDefault={()=>clickFn(item)}>{item.Title}</a>
62
63
  </ListBoxItem>
63
64
 
64
65
  {/each}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.30",
3
+ "version": "0.4.32",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -67,9 +67,9 @@
67
67
  on:page={(page) => ($pageIndex = page.detail)}
68
68
  settings={paginationSettings}
69
69
  select="hidden"
70
- active="active"
71
- controlVariant=""
72
- buttonClasses="!rounded-none !px-3 !py-1.5 fill-current"
70
+ active="!variant-filled-secondary !text-on-secondary-token"
71
+ controlVariant="!text-on-primary-token"
72
+ buttonClasses="!rounded-none !px-3 !py-1.5 fill-current bg-primary-500 hover:!bg-primary-600 !text-on-primary-token disabled:grayscale disabled:!opacity-30"
73
73
  regionControl="btn-group"
74
74
  maxNumerals={1}
75
75
  showNumerals
@@ -27,6 +27,7 @@
27
27
  {
28
28
  if(item.Title =="Log Off")
29
29
  {
30
+ alert("log off");
30
31
  logOffFn();
31
32
  return;
32
33
  }
@@ -78,7 +79,7 @@
78
79
  value={item.Title}
79
80
 
80
81
  >
81
- <a href={item.Url} target="{item.Target}">{item.Title}</a>
82
+ <a href={item.Url} target="{item.Target}" on:click|preventDefault={()=>clickFn(item)}>{item.Title}</a>
82
83
  </ListBoxItem>
83
84
 
84
85
  {/each}