wj-elements 0.1.36 → 0.1.37

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.
@@ -136,7 +136,7 @@ class j extends k {
136
136
  if (this.collapse || this.variant === "CONTEXT" && this.hasSubmenu) {
137
137
  if (this.hasAttribute("manual") || this.variant === "NAV" && this.collapse)
138
138
  return;
139
- this.submenuActivated(e), e.stopPropagation(), this.showSubmenu(), this.focus();
139
+ this.submenuActivated(e), e.stopPropagation(), this.showSubmenu();
140
140
  }
141
141
  }), l.addListener(this, "mouseleave", null, (e) => {
142
142
  if (this.collapse || this.variant === "CONTEXT" && this.hasSubmenu) {
package/dist/wje-menu.js CHANGED
@@ -2,7 +2,7 @@ var d = Object.defineProperty;
2
2
  var m = (n, t, e) => t in n ? d(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var o = (n, t, e) => (m(n, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import l from "./wje-element.js";
5
- const u = ":host{display:none;background:var(--wje-menu-background);position:relative;border-width:var(--wje-menu-border-width);border-style:var(--wje-menu-border-style);border-color:var(--wje-menu-border-color);z-index:var(--wje-menu-z-index, 8);box-shadow:var(--wje-menu-shadow);border-radius:var(--wje-menu-border-radius);padding-top:var(--wje-menu-padding-top);padding-bottom:var(--wje-menu-padding-bottom);padding-inline:var(--wje-menu-padding-inline);margin-top:var(--wje-menu-margin-top);margin-bottom:var(--wje-menu-margin-bottom);margin-inline:var(--wje-menu-margin-inline);overflow:auto;overscroll-behavior:none}:host .native-menu{display:flex;flex-direction:column;width:100%}:host .native-menu ::slotted(wje-button){margin:0}:host(.wje-menu-collapse){width:var(--wje-menu-collapse-width)}:host([variant=context]){display:block!important;margin-left:var(--wje-menu-submenu-offset)}:host([variant=megamenu]) .native-menu{flex-direction:row;align-items:end;flex-wrap:nowrap}:host([variant=megamenu]) .native-menu .check-icon{display:none}:host([active]){display:flex!important}";
5
+ const u = ":host{display:none;background:var(--wje-menu-background);position:relative;border-width:var(--wje-menu-border-width);border-style:var(--wje-menu-border-style);border-color:var(--wje-menu-border-color);z-index:var(--wje-menu-z-index, 8);box-shadow:var(--wje-menu-shadow);border-radius:var(--wje-menu-border-radius);padding-top:var(--wje-menu-padding-top);padding-bottom:var(--wje-menu-padding-bottom);padding-inline:var(--wje-menu-padding-inline);margin-top:var(--wje-menu-margin-top);margin-bottom:var(--wje-menu-margin-bottom);margin-inline:var(--wje-menu-margin-inline);overflow:auto;overscroll-behavior:none}:host .native-menu{display:flex;flex-direction:column;width:100%}:host .native-menu ::slotted(wje-button){margin:0}:host(.wje-menu-collapse){width:var(--wje-menu-collapse-width)}:host([collapse]){box-shadow:none}:host([variant=context]){display:block!important;margin-left:var(--wje-menu-submenu-offset)}:host([variant=megamenu]) .native-menu{flex-direction:row;align-items:end;flex-wrap:nowrap}:host([variant=megamenu]) .native-menu .check-icon{display:none}:host([active]){display:flex!important}";
6
6
  class i extends l {
7
7
  /**
8
8
  * Creates an instance of Menu.
package/dist/wje-route.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var u = Object.defineProperty;
2
- var a = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var s = (t, e, r) => (a(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import c from "./wje-element.js";
5
- class o extends c {
2
+ var c = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var s = (t, e, r) => (c(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import m from "./wje-element.js";
5
+ class a extends m {
6
6
  /**
7
7
  * Creates an instance of Route.
8
8
  *
@@ -21,8 +21,26 @@ class o extends c {
21
21
  static get observedAttributes() {
22
22
  return [];
23
23
  }
24
+ /**
25
+ * Sets up the attributes for the component.
26
+ */
27
+ setupAttributes() {
28
+ this.isShadowRoot = "open";
29
+ }
30
+ /**
31
+ * Draws the component.
32
+ *
33
+ * @param {Object} context - The context for drawing.
34
+ * @param {Object} store - The store for drawing.
35
+ * @param {Object} params - The parameters for drawing.
36
+ * @returns {DocumentFragment}
37
+ */
38
+ draw(r, d, l) {
39
+ let o = document.createDocumentFragment(), n = document.createElement("slot");
40
+ return o.appendChild(n), o;
41
+ }
24
42
  }
25
- o.define("wje-route", o);
43
+ a.define("wje-route", a);
26
44
  export {
27
- o as default
45
+ a as default
28
46
  };
@@ -1073,7 +1073,7 @@ class z extends ct {
1073
1073
  const s = [];
1074
1074
  return Array.from(e.children).forEach((o) => {
1075
1075
  s.push(this.parseElement(o));
1076
- }), s.length > 0 && e.tagName === "WJ-ROUTE" ? n.children = s : n.root = s, n;
1076
+ }), s.length > 0 && e.tagName === "WJE-ROUTE" ? n.children = s : n.root = s, n;
1077
1077
  }
1078
1078
  /**
1079
1079
  * Cleans up before the component is disconnected.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wj-elements",
3
3
  "description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
4
- "version": "0.1.36",
4
+ "version": "0.1.37",
5
5
  "homepage": "https://github.com/lencys/wj-elements",
6
6
  "author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
7
7
  "license": "MIT",