aleman 1.16.2 → 1.16.3

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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2025.09.26, v1.16.3
2
+
3
+ fix:
4
+ - b1b6854 aleman: menu: item-click: run listener (coderaiser/cloudcmd#446)
5
+
1
6
  2025.09.25, v1.16.2
2
7
 
3
8
  fix:
@@ -10,7 +10,10 @@ export const createItemClick = (name) => ({
10
10
  filter,
11
11
  });
12
12
 
13
- const filter = ({event, options}) => {
13
+ const filter = ({event, state, options}) => {
14
+ if (state.command !== 'show')
15
+ return;
16
+
14
17
  const {
15
18
  getMenuPath = _getMenuPath,
16
19
  menu,
@@ -13,6 +13,7 @@ export function listener({count, state, options}) {
13
13
  } = state;
14
14
 
15
15
  const menuCount = Object.keys(menu).length;
16
+
16
17
  const submenuCount = Object.keys(getSubmenu({
17
18
  index,
18
19
  options,
@@ -1,8 +1,8 @@
1
1
  <ul data-name="menu" class="menu menu-hidden">
2
2
  <li data-name="menu-item" data-menu-index="0" className="menu-item" data-menu-path="hello">
3
- <label data-menu-path="">hello</label>
3
+ <label data-menu-path="hello">hello</label>
4
4
  </li>
5
5
  <li data-name="menu-item" data-menu-index="1" className="menu-item" data-menu-path="world">
6
- <label data-menu-path="">world</label>
6
+ <label data-menu-path="world">world</label>
7
7
  </li>
8
8
  </ul>;
@@ -1,8 +1,8 @@
1
1
  <ul data-name="menu" class="menu menu-hidden">
2
2
  <li data-name="menu-item" data-menu-index="0" className="menu-item icon icon-hello" data-menu-path="hello">
3
- <label data-menu-path="">hello</label>
3
+ <label data-menu-path="hello">hello</label>
4
4
  </li>
5
5
  <li data-name="menu-item" data-menu-index="1" className="menu-item icon icon-world" data-menu-path="world">
6
- <label data-menu-path="">world</label>
6
+ <label data-menu-path="world">world</label>
7
7
  </li>
8
8
  </ul>;
@@ -1,9 +1,9 @@
1
1
  <ul data-name="menu" class="menu menu-hidden">
2
2
  <li data-name="menu-item" data-menu-index="0" className="menu-item icon icon-hello menu-submenu" data-menu-path="hello">
3
- <label data-menu-path="">hello</label>
3
+ <label data-menu-path="hello">hello</label>
4
4
  <ul data-name="menu" className="menu menu-hidden">
5
5
  <li data-name="menu-item" data-menu-index="0" className="menu-item icon icon-world" data-menu-path="hello.world">
6
- <label data-menu-path="">world</label>
6
+ <label data-menu-path="hello.world">world</label>
7
7
  </li>
8
8
  </ul></li>
9
9
  </ul>;
@@ -49,7 +49,8 @@ export const fix = ({path, menu, icon, name = ''}) => {
49
49
 
50
50
  setDataMenuIndex(i++, menuItem);
51
51
  setDataMenuPath(key, name, menuItem);
52
- // setDataMenuPath(key, name, menuItem.children[3]);
52
+
53
+ setDataMenuPath(key, name, menuItem.children[1]);
53
54
  children.push(INDENT, menuItem);
54
55
 
55
56
  if (isObject(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.16.2",
3
+ "version": "1.16.3",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",