@umbraco-ui/uui-tabs 1.17.3 → 1.18.0

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.
Files changed (2) hide show
  1. package/lib/index.js +12 -3
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -196,13 +196,13 @@ __decorateClass$1([
196
196
  property({ type: Boolean, reflect: true })
197
197
  ], UUITabElement.prototype, "disabled", 2);
198
198
  __decorateClass$1([
199
- property({ type: String })
199
+ property({ type: String, reflect: true })
200
200
  ], UUITabElement.prototype, "href", 2);
201
201
  __decorateClass$1([
202
- property({ type: String })
202
+ property({ type: String, reflect: true })
203
203
  ], UUITabElement.prototype, "target", 2);
204
204
  __decorateClass$1([
205
- property({ type: String })
205
+ property({ type: String, reflect: true })
206
206
  ], UUITabElement.prototype, "rel", 2);
207
207
  __decorateClass$1([
208
208
  property({ type: String, reflect: true })
@@ -246,6 +246,15 @@ let UUITabGroupElement = class extends LitElement {
246
246
  __privateAdd(this, _breakPointCalculationInProgress, false);
247
247
  __privateAdd(this, _onTabClicked, (e) => {
248
248
  const selectedElement = e.currentTarget;
249
+ if (selectedElement.classList.contains("hidden-tab") && __privateMethod(this, _UUITabGroupElement_instances, isElementTabLike_fn).call(this, selectedElement)) {
250
+ const original = __privateGet(this, _hiddenTabElementsMap).get(selectedElement);
251
+ if (original) {
252
+ original.click();
253
+ this._moreButtonElement.classList.add("active-inside");
254
+ this._popoverContainerElement.hidePopover();
255
+ }
256
+ return;
257
+ }
249
258
  if (__privateMethod(this, _UUITabGroupElement_instances, isElementTabLike_fn).call(this, selectedElement)) {
250
259
  selectedElement.active = true;
251
260
  const linkedElement = __privateGet(this, _hiddenTabElementsMap).get(selectedElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-tabs",
3
- "version": "1.17.3",
3
+ "version": "1.18.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,10 +30,10 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.17.3",
34
- "@umbraco-ui/uui-button": "1.17.3",
35
- "@umbraco-ui/uui-popover-container": "1.17.3",
36
- "@umbraco-ui/uui-symbol-more": "1.17.3"
33
+ "@umbraco-ui/uui-base": "1.18.0",
34
+ "@umbraco-ui/uui-button": "1.18.0",
35
+ "@umbraco-ui/uui-popover-container": "1.18.0",
36
+ "@umbraco-ui/uui-symbol-more": "1.18.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "homepage": "https://uui.umbraco.com/?path=/story/uui-tabs",
47
- "gitHead": "6ace9a5889a8e18bc47404563b70b4d8b263aac9"
47
+ "gitHead": "6f9449a9408e66f1adc1f7eafc655d1e32700a40"
48
48
  }