@knime/kds-components 14.0.0 → 14.0.1

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.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 14.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b40fd5d: SLEEK-1068: KdsMenuContainer: change order of handler and close to enable the handler to gain focus.
8
+ - Updated dependencies
9
+ - @knime/kds-styles@14.0.1
10
+
3
11
  ## 14.0.0
4
12
 
5
13
  ### Major Changes
package/dist/index.css CHANGED
@@ -1570,7 +1570,7 @@ to {
1570
1570
  }
1571
1571
 
1572
1572
  .kds-menu-container {
1573
- &[data-v-ac2b5dd6] {
1573
+ &[data-v-c3b0b3f0] {
1574
1574
  display: flex;
1575
1575
  flex-direction: column;
1576
1576
  gap: var(--kds-spacing-container-0-10x);
@@ -1582,15 +1582,15 @@ to {
1582
1582
  border-radius: var(--kds-border-radius-container-0-50x);
1583
1583
  box-shadow: var(--kds-elevation-level-3);
1584
1584
  }
1585
- &.hide-focus-ring[data-v-ac2b5dd6]:focus-visible {
1585
+ &.hide-focus-ring[data-v-c3b0b3f0]:focus-visible {
1586
1586
  outline: none;
1587
1587
  }
1588
- &[data-v-ac2b5dd6]:focus-visible:not(.hide-focus-ring) {
1588
+ &[data-v-c3b0b3f0]:focus-visible:not(.hide-focus-ring) {
1589
1589
  outline: var(--kds-border-action-focused);
1590
1590
  outline-offset: var(--kds-spacing-offset-focus);
1591
1591
  }
1592
1592
  }
1593
- .submenu-popover[data-v-ac2b5dd6] {
1593
+ .submenu-popover[data-v-c3b0b3f0] {
1594
1594
  inset: anchor(top) auto auto anchor(right);
1595
1595
  padding: 0 var(--kds-spacing-container-0-25x);
1596
1596
  margin: 0;
package/dist/index.js CHANGED
@@ -12054,6 +12054,7 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
12054
12054
  const id = toUnprefixedId(item?.id);
12055
12055
  if (!id) return;
12056
12056
  const originalItem = props.items.find((i) => i.id === id);
12057
+ emit("itemClick", id);
12057
12058
  try {
12058
12059
  originalItem?.handler?.(originalItem, event);
12059
12060
  } catch (error) {
@@ -12062,7 +12063,6 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
12062
12063
  error
12063
12064
  });
12064
12065
  }
12065
- emit("itemClick", id);
12066
12066
  };
12067
12067
  const onKeyboardActivate = (item, event) => {
12068
12068
  const id = toUnprefixedId(item?.id);
@@ -12309,7 +12309,7 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
12309
12309
  }), 128))], 46, _hoisted_1$71);
12310
12310
  };
12311
12311
  }
12312
- }), [["__scopeId", "data-v-ac2b5dd6"]]);
12312
+ }), [["__scopeId", "data-v-c3b0b3f0"]]);
12313
12313
  //#endregion
12314
12314
  //#region src/components/buttons/KdsMenuButton/KdsMenuButton.vue
12315
12315
  var KdsMenuButton_default = /* @__PURE__ */ defineComponent({