@intechstudio/grid-uikit 1.20260916.1334 → 1.20260922.800
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/dist/IconButton.svelte +2 -1
- package/dist/context-target.js +7 -0
- package/package.json +1 -1
package/dist/IconButton.svelte
CHANGED
|
@@ -95,7 +95,8 @@
|
|
|
95
95
|
duration: tooltipDuration,
|
|
96
96
|
buttons: tooltipButtons,
|
|
97
97
|
triggerEvents:
|
|
98
|
-
tooltipTriggerEvents ??
|
|
98
|
+
tooltipTriggerEvents ??
|
|
99
|
+
(tooltipButtons ? ["show-buttons", "hover"] : undefined),
|
|
99
100
|
}
|
|
100
101
|
: undefined}
|
|
101
102
|
class="icon-button"
|
package/dist/context-target.js
CHANGED
|
@@ -37,6 +37,13 @@ export const contextTarget = (node, options) => {
|
|
|
37
37
|
};
|
|
38
38
|
node.addEventListener("contextmenu", (event) => handleContextMenu(event));
|
|
39
39
|
return {
|
|
40
|
+
update(newOptions) {
|
|
41
|
+
// Without this, `options` stays frozen at whatever it was when this
|
|
42
|
+
// node first mounted - an unkeyed #each reusing this element across
|
|
43
|
+
// data updates would keep opening a menu built from stale data (e.g.
|
|
44
|
+
// an item's name before a rename).
|
|
45
|
+
options = newOptions;
|
|
46
|
+
},
|
|
40
47
|
destroy() {
|
|
41
48
|
node.removeEventListener("contextmenu", handleContextMenu);
|
|
42
49
|
// Clean up the current context menu if the node is destroyed
|