@refinitiv-ui/elements 6.7.1 → 6.7.2

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
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.7.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.7.1...@refinitiv-ui/elements@6.7.2) (2023-03-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **card:** Card can not expand nested overlay-menu in touch devices ([#623](https://github.com/Refinitiv/refinitiv-ui/issues/623)) ([09a95c6](https://github.com/Refinitiv/refinitiv-ui/commit/09a95c665b1622b7112da12cf8fb138d0738a5b5))
12
+ * **tooltip:** fix missing tooltip in consecutive buttons ([#601](https://github.com/Refinitiv/refinitiv-ui/issues/601)) ([be77306](https://github.com/Refinitiv/refinitiv-ui/commit/be773067b542cafdcdbec92ba660d8464cc7f422))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [6.7.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.7.0...@refinitiv-ui/elements@6.7.1) (2023-03-14)
7
19
 
8
20
 
@@ -79,6 +79,7 @@ export declare class Card extends BasicElement {
79
79
  private openMenu;
80
80
  /**
81
81
  * Close menu
82
+ * @param event ItemTriggerEvent
82
83
  * @returns {void}
83
84
  */
84
85
  private closeMenu;
package/lib/card/index.js CHANGED
@@ -102,10 +102,11 @@ let Card = class Card extends BasicElement {
102
102
  }
103
103
  /**
104
104
  * Close menu
105
+ * @param event ItemTriggerEvent
105
106
  * @returns {void}
106
107
  */
107
- closeMenu() {
108
- if (this.menuElement?.opened) {
108
+ closeMenu(event) {
109
+ if (this.menuElement?.opened && event.detail.value) {
109
110
  this.menuElement.opened = false;
110
111
  this.menuOpened = false;
111
112
  }
@@ -164,7 +165,7 @@ let Card = class Card extends BasicElement {
164
165
  */
165
166
  firstUpdated(changedProperties) {
166
167
  super.firstUpdated(changedProperties);
167
- this.addEventListener('item-trigger', this.closeMenu); // Here to cover nested menus
168
+ this.addEventListener('item-trigger', (event) => this.closeMenu(event)); // Here to cover nested menus
168
169
  }
169
170
  /**
170
171
  * Template of menu
@@ -896,7 +896,7 @@ let OverlayMenu = OverlayMenu_1 = class OverlayMenu extends Overlay {
896
896
  .label=${label}
897
897
  .subLabel=${subLabel}
898
898
  .icon=${icon}
899
- .value=${value}
899
+ .value=${ifDefined(value || undefined)}
900
900
  .for=${ifDefined(forMenu || undefined)}>
901
901
  </ef-item>`;
902
902
  }
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.7.1';
1
+ export const VERSION = '6.7.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/elements",
3
- "version": "6.7.1",
3
+ "version": "6.7.2",
4
4
  "description": "Element Framework Elements",
5
5
  "author": "LSEG",
6
6
  "license": "Apache-2.0",
@@ -347,24 +347,24 @@
347
347
  "tslib": "^2.3.1"
348
348
  },
349
349
  "devDependencies": {
350
- "@refinitiv-ui/core": "^6.3.1",
351
- "@refinitiv-ui/demo-block": "^6.0.16",
352
- "@refinitiv-ui/i18n": "^6.0.10",
350
+ "@refinitiv-ui/core": "^6.3.2",
351
+ "@refinitiv-ui/demo-block": "^6.0.17",
352
+ "@refinitiv-ui/i18n": "^6.0.11",
353
353
  "@refinitiv-ui/phrasebook": "^6.3.1",
354
- "@refinitiv-ui/test-helpers": "^6.0.7",
355
- "@refinitiv-ui/translate": "^6.0.16",
354
+ "@refinitiv-ui/test-helpers": "^6.0.8",
355
+ "@refinitiv-ui/translate": "^6.0.17",
356
356
  "@refinitiv-ui/utils": "^6.2.3",
357
357
  "@types/d3-interpolate": "^3.0.1"
358
358
  },
359
359
  "peerDependencies": {
360
- "@refinitiv-ui/core": "^6.3.1",
361
- "@refinitiv-ui/i18n": "^6.0.10",
360
+ "@refinitiv-ui/core": "^6.3.2",
361
+ "@refinitiv-ui/i18n": "^6.0.11",
362
362
  "@refinitiv-ui/phrasebook": "^6.3.1",
363
- "@refinitiv-ui/translate": "^6.0.16",
363
+ "@refinitiv-ui/translate": "^6.0.17",
364
364
  "@refinitiv-ui/utils": "^6.2.3"
365
365
  },
366
366
  "publishConfig": {
367
367
  "access": "public"
368
368
  },
369
- "gitHead": "e62cfbe61a6a47631050582aceb07a8f492e0914"
369
+ "gitHead": "ba91d5016c61a0a656ac42f60cf722ed1272fe9e"
370
370
  }