@intechstudio/grid-uikit 1.20241125.1357 → 1.20241126.1622

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.
@@ -38,7 +38,7 @@ $:
38
38
  $:
39
39
  handleSelectionChange($selected?.value);
40
40
  $:
41
- handleInputChange($inputValue);
41
+ handleInputChange($inputValue.value);
42
42
  function handleValueChange(value2) {
43
43
  if ($inputValue === value2 || !value2) {
44
44
  return;
@@ -54,7 +54,7 @@ function handleSelectionChange(option2) {
54
54
  }
55
55
  function handleInputChange(input2) {
56
56
  infoValue = suggestions.find((s) => String(s.value).trim() == String(input2).trim())?.info || "";
57
- isError = !validator($inputValue);
57
+ isError = !validator($inputValue.value);
58
58
  if (oldValue === void 0) {
59
59
  oldValue = value;
60
60
  }
@@ -69,7 +69,7 @@ function handleInputChange(input2) {
69
69
  function handleChange() {
70
70
  if (oldValue !== void 0 && oldValue !== value) {
71
71
  oldValue = void 0;
72
- dispatch("change", postProcessor($inputValue));
72
+ dispatch("change", postProcessor($inputValue.value));
73
73
  }
74
74
  }
75
75
  </script>
@@ -102,7 +102,7 @@ function handleChange() {
102
102
  {...$option(toOption(suggestion))}
103
103
  use:option
104
104
  class="cursor-pointer truncate hover:bg-white/40 p-2 hover:text-white {$isSelected(
105
- suggestion.value,
105
+ suggestion,
106
106
  )
107
107
  ? 'bg-white/10'
108
108
  : ' '}"
@@ -1,11 +1,11 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- value: any;
4
+ value: string;
5
5
  size?: "auto" | "full";
6
6
  suggestions?: Array<{
7
7
  info: string;
8
- value: any;
8
+ value: string;
9
9
  }>;
10
10
  placeholder?: string;
11
11
  validator?: (value: string) => boolean;
@@ -26,7 +26,7 @@ export const contextTarget = (node, options) => {
26
26
  // If a context menu is already open, destroy it
27
27
  contextMenu.close();
28
28
  contextMenu.set(new ContextMenu({
29
- target: node,
29
+ target: document.body,
30
30
  props: {
31
31
  target: node,
32
32
  items: options.items,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intechstudio/grid-uikit",
3
- "version": "1.20241125.1357",
3
+ "version": "1.20241126.1622",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",