@oslokommune/punkt-vue2
Advanced tools
Comparing version 9.2.7 to 9.3.1
@@ -8,2 +8,20 @@ # Changelog | ||
## [9.3.1](https://github.com/oslokommune/punkt/compare/9.3.0...9.3.1) (2023-10-30) | ||
### ⚠ BREAKING CHANGES | ||
Ingen | ||
### Features | ||
Ingen | ||
### Bug Fixes | ||
* [1276](https://github.com/oslokommune/punkt/issues/1276) Sjekk om userMenu er null ved clickOutside (#1277). Co-authored-by: Peter Motzfeldt <peter.motzfeldt@origo.oslo.kommune.no> | ||
### Chores | ||
Ingen | ||
--- | ||
## [9.2.7](https://github.com/oslokommune/punkt/compare/9.2.6...9.2.7) (2023-10-18) | ||
@@ -10,0 +28,0 @@ |
@@ -10,3 +10,3 @@ import { n as o } from "./plugins-364dfcf9.js"; | ||
return { | ||
defaultSvgPath: "https://punkt-cdn.oslo.kommune.no/9.2/icons/", | ||
defaultSvgPath: "https://punkt-cdn.oslo.kommune.no/9.3/icons/", | ||
innerHtml: "" | ||
@@ -13,0 +13,0 @@ }; |
@@ -88,3 +88,4 @@ import { P as k } from "./Icon-3bd5196b.js"; | ||
clickOutside(n) { | ||
this.$refs.userMenu.contains(n.target) || (this.userMenuOpen = !1); | ||
var t; | ||
(t = this.$refs.userMenu) != null && t.contains(n.target) || (this.userMenuOpen = !1); | ||
}, | ||
@@ -120,3 +121,3 @@ onScroll() { | ||
"pkt-header--hidden": t.hidden | ||
}, attrs: { id: "pkt-header", "aria-label": "Topp" } }, [e("div", { staticClass: "pkt-header__logo" }, [typeof t.logoLink == "string" ? [e("a", { staticClass: "pkt-header__logo-link", attrs: { "aria-label": "Tilbake til forside", href: t.logoLink } }, [e("PktIcon", { staticClass: "pkt-header__logo-svg", attrs: { name: "oslologo", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/9.2/logos/" } })], 1)] : [e("button", { staticClass: "pkt-link-button pkt-link pkt-header__logo-link", attrs: { "aria-label": "Tilbake til forside" }, on: { click: t.logoLink } }, [e("PktIcon", { staticClass: "pkt-header__logo-svg", attrs: { name: "oslologo", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/9.2/logos/" } })], 1)], t.serviceName ? e("span", { staticClass: "pkt-header__logo-service" }, [t._v(t._s(t.serviceName))]) : t._e()], 2), e("nav", { staticClass: "pkt-header__actions" }, [e("ul", { staticClass: "pkt-header__actions-row" }, [t.showMenuButton ? e("li", [e("PktButton", { staticClass: "pkt-header__menu-btn", attrs: { skin: "secondary", variant: "icon-right", iconName: "menu" }, on: { onClick: function(s) { | ||
}, attrs: { id: "pkt-header", "aria-label": "Topp" } }, [e("div", { staticClass: "pkt-header__logo" }, [typeof t.logoLink == "string" ? [e("a", { staticClass: "pkt-header__logo-link", attrs: { "aria-label": "Tilbake til forside", href: t.logoLink } }, [e("PktIcon", { staticClass: "pkt-header__logo-svg", attrs: { name: "oslologo", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/9.3/logos/" } })], 1)] : [e("button", { staticClass: "pkt-link-button pkt-link pkt-header__logo-link", attrs: { "aria-label": "Tilbake til forside" }, on: { click: t.logoLink } }, [e("PktIcon", { staticClass: "pkt-header__logo-svg", attrs: { name: "oslologo", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/9.3/logos/" } })], 1)], t.serviceName ? e("span", { staticClass: "pkt-header__logo-service" }, [t._v(t._s(t.serviceName))]) : t._e()], 2), e("nav", { staticClass: "pkt-header__actions" }, [e("ul", { staticClass: "pkt-header__actions-row" }, [t.showMenuButton ? e("li", [e("PktButton", { staticClass: "pkt-header__menu-btn", attrs: { skin: "secondary", variant: "icon-right", iconName: "menu" }, on: { onClick: function(s) { | ||
return t.$emit("openMenu"); | ||
@@ -123,0 +124,0 @@ } } }, [t._v("Meny")])], 1) : t._e(), t.user || t.representing ? e("li", { ref: "userMenu", staticClass: "pkt-header--has-dropdown", class: { "pkt-header--open-dropdown": t.userMenuOpen } }, [e("button", { staticClass: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left", attrs: { type: "button", "aria-controls": "pktUserDropdown", "aria-expanded": t.userMenuOpen }, on: { click: t.openUserMenu } }, [e("PktIcon", { staticClass: "pkt-btn__icon", attrs: { name: "user" } }), (r = t.representing) != null && r.name || (o = t.user) != null && o.name ? e("span", { staticClass: "pkt-header__user-fullname pkt-btn__text" }, [t._v(t._s(((i = t.representing) == null ? void 0 : i.name) || ((l = t.user) == null ? void 0 : l.name)))]) : t._e(), (u = t.representing) != null && u.shortname || (c = t.user) != null && c.shortname ? e("span", { staticClass: "pkt-header__user-shortname pkt-btn__text" }, [t._v(t._s(((p = t.representing) == null ? void 0 : p.shortname) || ((_ = t.user) == null ? void 0 : _.shortname)))]) : t._e(), e("PktIcon", { staticClass: "pkt-btn--closed", attrs: { name: "chevron-thin-down" } }), e("PktIcon", { staticClass: "pkt-btn--open", attrs: { name: "chevron-thin-up" } })], 1), e("ul", { staticClass: "pkt-header__dropdown pkt-user-menu", attrs: { id: "pktUserDropdown" } }, [t.user ? e("li", [e("div", { staticClass: "pkt-user-menu__label" }, [t._v("Pålogget som")]), e("div", { staticClass: "pkt-user-menu__name" }, [t._v(t._s(t.user.name))]), t.user.lastLoggedIn ? e("div", { staticClass: "pkt-user-menu__last-logged-in" }, [t._v(" Sist pålogget: "), e("time", [t._v(t._s(t.lastLoggedIn))])]) : t._e()]) : t._e(), t.userMenu ? e("li", [e("ul", { staticClass: "pkt-list" }, t._l(t.userMenu, function(s, a) { |
{ | ||
"name": "@oslokommune/punkt-vue2", | ||
"version": "9.2.7", | ||
"version": "9.3.1", | ||
"description": "Vue2 komponentbibliotek til Punkt, et designsystem laget av Oslo Origo", | ||
@@ -68,3 +68,3 @@ "homepage": "https://punkt.oslo.kommune.no", | ||
"license": "MIT", | ||
"gitHead": "c0a405fcdf297ca2906dc5cfc4d2498b93709dd3" | ||
"gitHead": "ea388681dbc9f5140db234a49e17c62cebc0f11c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
193637
2012
32
35