@humandialog/forms.svelte 0.4.2 → 0.4.5

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.
@@ -2,7 +2,7 @@ import Menu from './contextmenu.svelte';
2
2
  let menu_comopnent = null;
3
3
  export function show_menu(x, y, operations) {
4
4
  let menu_element = document.getElementById("__hd_svelte_contextmenu");
5
- if (!menu_element) {
5
+ if (!!!menu_element) {
6
6
  menu_comopnent = new Menu({
7
7
  target: document.body,
8
8
  props: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humandialog/forms.svelte",
3
- "version": "0.4.2",
3
+ "version": "0.4.5",
4
4
  "description": "Basic Svelte UI components for Object Reef applications",
5
5
  "devDependencies": {
6
6
  "@playwright/test": "^1.28.1",
@@ -6,7 +6,8 @@
6
6
  import GoPrimitiveDot from 'svelte-icons/go/GoPrimitiveDot.svelte'
7
7
  import FaSignInAlt from 'svelte-icons/fa/FaSignInAlt.svelte'
8
8
  import FaSignOutAlt from 'svelte-icons/fa/FaSignOutAlt.svelte'
9
- import Menu from './components/contextmenu.svelte'
9
+ import {show_menu} from './components/menu.js'
10
+ //import Menu from './components/contextmenu.svelte'
10
11
 
11
12
  import {dark_mode_store,
12
13
  toggle_sidebar,
@@ -73,7 +74,7 @@
73
74
  show_sidebar(key);
74
75
  }
75
76
 
76
- let menu;
77
+ //let menu;
77
78
  let options_owner;
78
79
 
79
80
  function show_options()
@@ -144,7 +145,7 @@
144
145
  });
145
146
  }
146
147
 
147
- menu.show(x, y, options);
148
+ show_menu(x, y, options);
148
149
  }
149
150
 
150
151
  </script>
@@ -179,4 +180,4 @@
179
180
  {/if} <!-- !mobile -->
180
181
 
181
182
 
182
- <Menu bind:this={menu}/>
183
+ <!--Menu bind:this={menu}/-->