@duetds/components 8.6.0 → 8.6.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/hydrate/index.js +26 -160
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -6
- package/lib/cjs/duet-choice_2.cjs.entry.js +7 -0
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -34
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -37
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -37
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -37
- package/lib/cjs/duet.cjs.js +1 -1
- package/lib/cjs/loader.cjs.js +1 -1
- package/lib/collection/components/duet-action-button/duet-action-button.js +6 -8
- package/lib/collection/components/duet-choice-group/duet-choice-group.e2e.js +15 -0
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +31 -0
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +10 -0
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +1 -38
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +10 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +1 -41
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +10 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +1 -41
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +10 -0
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +2 -6
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +10 -0
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -41
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +9 -1
- package/lib/dist-custom-elements/duet-date-picker.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -35
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -38
- package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -39
- package/lib/dist-custom-elements/duet-pagination.js +1 -1
- package/lib/dist-custom-elements/duet-range-stepper.js +1 -1
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -6
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -39
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +2 -2
- package/lib/dist-custom-elements/{p-24693e9a.js → p-cb694530.js} +1 -1
- package/lib/dist-custom-elements/{p-03152b20.js → p-f4ac6968.js} +5 -6
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-25048bf8.system.entry.js +4 -0
- package/lib/duet/{p-aba91113.system.entry.js → p-27363096.system.entry.js} +1 -1
- package/lib/duet/{p-83238fe7.entry.js → p-436fcaf7.entry.js} +1 -1
- package/lib/duet/p-51e3af7b.system.entry.js +4 -0
- package/lib/duet/p-6151635f.system.js +1 -1
- package/lib/duet/p-70b705ad.entry.js +4 -0
- package/lib/duet/p-82d1fd63.system.entry.js +4 -0
- package/lib/duet/p-9065a864.entry.js +4 -0
- package/lib/duet/p-9ac25886.system.entry.js +4 -0
- package/lib/duet/{p-cd87960a.system.entry.js → p-a659cdb5.system.entry.js} +1 -1
- package/lib/duet/p-b02ca265.entry.js +4 -0
- package/lib/duet/p-c12d34fd.system.entry.js +4 -0
- package/lib/duet/p-c776e072.entry.js +4 -0
- package/lib/duet/p-d1d79e0c.entry.js +4 -0
- package/lib/duet/p-ffab115e.entry.js +4 -0
- package/lib/esm/duet-action-button.entry.js +5 -6
- package/lib/esm/duet-choice_2.entry.js +7 -0
- package/lib/esm/duet-menu-bar-button.entry.js +2 -34
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -37
- package/lib/esm/duet-menu-bar-link.entry.js +2 -37
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -37
- package/lib/esm/duet.js +1 -1
- package/lib/esm/loader.js +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +5 -0
- package/lib/types/components/duet-menu-bar-button/duet-menu-bar-button.d.ts +1 -7
- package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +1 -7
- package/lib/types/components/duet-menu-bar-link/duet-menu-bar-link.d.ts +1 -10
- package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +1 -2
- package/lib/types/components/duet-submenu-bar-link/duet-submenu-bar-link.d.ts +1 -10
- package/lib/types/components.d.ts +1 -0
- package/package.json +2 -2
- package/lib/duet/p-0de8d0c0.system.entry.js +0 -4
- package/lib/duet/p-3f2d14e3.system.entry.js +0 -4
- package/lib/duet/p-8cc30578.entry.js +0 -4
- package/lib/duet/p-9735b2f9.entry.js +0 -4
- package/lib/duet/p-9be9b4d2.entry.js +0 -4
- package/lib/duet/p-bece15cd.system.entry.js +0 -4
- package/lib/duet/p-cba00852.entry.js +0 -4
- package/lib/duet/p-cc949a27.entry.js +0 -4
- package/lib/duet/p-e614e39f.system.entry.js +0 -4
- package/lib/duet/p-e7fd0d14.entry.js +0 -4
- package/lib/duet/p-e86cafa6.system.entry.js +0 -4
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { media_query_large } from "@duetds/tokens/lib/tokens.json";
|
|
5
4
|
import { h, Host } from "@stencil/core";
|
|
6
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
6
|
export class DuetMenuBarLink {
|
|
8
7
|
constructor() {
|
|
9
|
-
/**
|
|
10
|
-
* Own Properties.
|
|
11
|
-
*/
|
|
12
|
-
this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
|
|
13
|
-
this.boundMqlFunctions = [];
|
|
14
|
-
this.changeIconSize = () => {
|
|
15
|
-
if (this.mql[0].matches) {
|
|
16
|
-
this.iconSize = "x-small";
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
this.iconSize = "small";
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
this.iconSize = "x-small";
|
|
23
8
|
this.theme = "";
|
|
24
9
|
this.active = false;
|
|
25
10
|
this.href = "#";
|
|
@@ -32,26 +17,6 @@ export class DuetMenuBarLink {
|
|
|
32
17
|
componentWillLoad() {
|
|
33
18
|
inheritGlobalTheme(this);
|
|
34
19
|
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
this.changeIconSize();
|
|
37
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
38
|
-
// addEventListener is not available in Stencil hydrate
|
|
39
|
-
if (this.mql[i].addEventListener) {
|
|
40
|
-
const bound = this.changeIconSize.bind(this);
|
|
41
|
-
this.mql[i].addEventListener("change", bound);
|
|
42
|
-
this.boundMqlFunctions[i] = bound;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
48
|
-
// removeEventListener is not available in Stencil hydrate
|
|
49
|
-
if (this.mql[i].removeEventListener) {
|
|
50
|
-
this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
this.boundMqlFunctions = [];
|
|
54
|
-
}
|
|
55
20
|
/**
|
|
56
21
|
* render() function
|
|
57
22
|
* Always the last one in the class.
|
|
@@ -61,7 +26,7 @@ export class DuetMenuBarLink {
|
|
|
61
26
|
"duet-menu-bar-link": true,
|
|
62
27
|
"duet-theme-turva": this.theme === "turva",
|
|
63
28
|
active: this.active,
|
|
64
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { theme: this.theme, size:
|
|
29
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", null))));
|
|
65
30
|
}
|
|
66
31
|
static get is() { return "duet-menu-bar-link"; }
|
|
67
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -174,10 +139,5 @@ export class DuetMenuBarLink {
|
|
|
174
139
|
}
|
|
175
140
|
};
|
|
176
141
|
}
|
|
177
|
-
static get states() {
|
|
178
|
-
return {
|
|
179
|
-
"iconSize": {}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
142
|
static get elementRef() { return "element"; }
|
|
183
143
|
}
|
|
@@ -139,6 +139,16 @@
|
|
|
139
139
|
background: rgb(198, 12, 48);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
+
.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon {
|
|
143
|
+
width: 20px;
|
|
144
|
+
height: 20px;
|
|
145
|
+
}
|
|
146
|
+
@media (min-width: 62em) {
|
|
147
|
+
.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon {
|
|
148
|
+
width: 16px;
|
|
149
|
+
height: 16px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
142
152
|
.duet-submenu-bar-dropdown .items {
|
|
143
153
|
display: flex;
|
|
144
154
|
flex-direction: column;
|
|
@@ -15,11 +15,9 @@ export class DuetSubmenuBarDropdown {
|
|
|
15
15
|
this.checkIsDesktop = () => {
|
|
16
16
|
if (this.mql[0].matches) {
|
|
17
17
|
this.isDesktop = true;
|
|
18
|
-
this.iconSize = "x-small";
|
|
19
18
|
}
|
|
20
19
|
else {
|
|
21
20
|
this.isDesktop = false;
|
|
22
|
-
this.iconSize = "small";
|
|
23
21
|
}
|
|
24
22
|
};
|
|
25
23
|
this.onClick = () => {
|
|
@@ -38,7 +36,6 @@ export class DuetSubmenuBarDropdown {
|
|
|
38
36
|
}
|
|
39
37
|
};
|
|
40
38
|
this.isDesktop = false;
|
|
41
|
-
this.iconSize = "small";
|
|
42
39
|
this.theme = "";
|
|
43
40
|
this.active = false;
|
|
44
41
|
this.open = false;
|
|
@@ -107,7 +104,7 @@ export class DuetSubmenuBarDropdown {
|
|
|
107
104
|
} }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
108
105
|
open: this.open,
|
|
109
106
|
active: this.active,
|
|
110
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size:
|
|
107
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("span", { class: "label-text" }, h("slot", { name: "label" })), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
111
108
|
items: true,
|
|
112
109
|
hidden: !this.open,
|
|
113
110
|
} }, h("slot", null)))));
|
|
@@ -208,8 +205,7 @@ export class DuetSubmenuBarDropdown {
|
|
|
208
205
|
}
|
|
209
206
|
static get states() {
|
|
210
207
|
return {
|
|
211
|
-
"isDesktop": {}
|
|
212
|
-
"iconSize": {}
|
|
208
|
+
"isDesktop": {}
|
|
213
209
|
};
|
|
214
210
|
}
|
|
215
211
|
static get methods() {
|
|
@@ -52,6 +52,16 @@
|
|
|
52
52
|
.duet-theme-turva .duet-submenu-bar-link:focus, .duet-submenu-bar-link:focus.duet-theme-turva {
|
|
53
53
|
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a;
|
|
54
54
|
}
|
|
55
|
+
.duet-submenu-bar-link .submenu-bar-link-icon {
|
|
56
|
+
width: 20px;
|
|
57
|
+
height: 20px;
|
|
58
|
+
}
|
|
59
|
+
@media (min-width: 62em) {
|
|
60
|
+
.duet-submenu-bar-link .submenu-bar-link-icon {
|
|
61
|
+
width: 16px;
|
|
62
|
+
height: 16px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
55
65
|
@media (min-width: 62em) {
|
|
56
66
|
.duet-submenu-bar-link {
|
|
57
67
|
flex-direction: column;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { media_query_large } from "@duetds/tokens/lib/tokens.json";
|
|
5
4
|
import { h, Host } from "@stencil/core";
|
|
6
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
6
|
import { isEscapeKey } from "../../utils/keyboard-utils";
|
|
8
7
|
export class DuetSubmenuBarLink {
|
|
9
8
|
constructor() {
|
|
10
|
-
/**
|
|
11
|
-
* Own Properties.
|
|
12
|
-
*/
|
|
13
|
-
this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
|
|
14
|
-
this.boundMqlFunctions = [];
|
|
15
|
-
this.changeIconSize = () => {
|
|
16
|
-
if (this.mql[0].matches) {
|
|
17
|
-
this.iconSize = "x-small";
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
this.iconSize = "small";
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
this.iconSize = "small";
|
|
24
9
|
this.theme = "";
|
|
25
10
|
this.active = false;
|
|
26
11
|
this.href = "#";
|
|
@@ -32,26 +17,6 @@ export class DuetSubmenuBarLink {
|
|
|
32
17
|
componentWillLoad() {
|
|
33
18
|
inheritGlobalTheme(this);
|
|
34
19
|
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
this.changeIconSize();
|
|
37
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
38
|
-
// addEventListener is not available in Stencil hydrate
|
|
39
|
-
if (this.mql[i].addEventListener) {
|
|
40
|
-
const bound = this.changeIconSize.bind(this);
|
|
41
|
-
this.mql[i].addEventListener("change", bound);
|
|
42
|
-
this.boundMqlFunctions[i] = bound;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
48
|
-
// removeEventListener is not available in Stencil hydrate
|
|
49
|
-
if (this.mql[i].removeEventListener) {
|
|
50
|
-
this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
this.boundMqlFunctions = [];
|
|
54
|
-
}
|
|
55
20
|
handleEscape(e) {
|
|
56
21
|
if (isEscapeKey(e)) {
|
|
57
22
|
const dropdown = this.element.closest("duet-submenu-bar");
|
|
@@ -64,7 +29,7 @@ export class DuetSubmenuBarLink {
|
|
|
64
29
|
* Always the last one in the class.
|
|
65
30
|
*/
|
|
66
31
|
render() {
|
|
67
|
-
return (h(Host, null, h("a", { class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false" }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size:
|
|
32
|
+
return (h(Host, null, h("a", { class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false" }, this.icon && (h("duet-icon", { class: "submenu-bar-link-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("span", { class: "label" }, h("slot", null)))));
|
|
68
33
|
}
|
|
69
34
|
static get is() { return "duet-submenu-bar-link"; }
|
|
70
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,10 +125,5 @@ export class DuetSubmenuBarLink {
|
|
|
160
125
|
}
|
|
161
126
|
};
|
|
162
127
|
}
|
|
163
|
-
static get states() {
|
|
164
|
-
return {
|
|
165
|
-
"iconSize": {}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
128
|
static get elementRef() { return "element"; }
|
|
169
129
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-f4ac6968.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -83,6 +83,13 @@ const DuetChoiceGroup$1 = /*@__PURE__*/ proxyCustomElement(class DuetChoiceGroup
|
|
|
83
83
|
this.initialValue = this.value;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* Get initial value
|
|
89
|
+
*/
|
|
90
|
+
async getInitialValue() {
|
|
91
|
+
return this.initialValue;
|
|
92
|
+
}
|
|
86
93
|
/**
|
|
87
94
|
* Local methods
|
|
88
95
|
*/
|
|
@@ -155,7 +162,8 @@ const DuetChoiceGroup$1 = /*@__PURE__*/ proxyCustomElement(class DuetChoiceGroup
|
|
|
155
162
|
"value": [1537],
|
|
156
163
|
"disabled": [4],
|
|
157
164
|
"required": [4],
|
|
158
|
-
"accessibleLiveError": [1, "accessible-live-error"]
|
|
165
|
+
"accessibleLiveError": [1, "accessible-live-error"],
|
|
166
|
+
"getInitialValue": [64]
|
|
159
167
|
}, undefined, {
|
|
160
168
|
"value": ["setInitialValue", "updateChoices"],
|
|
161
169
|
"disabled": ["updateChoices"],
|
|
@@ -8,7 +8,7 @@ import { F as FocusGuard } from './p-4bd749d9.js';
|
|
|
8
8
|
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-2e36d5bf.js';
|
|
9
9
|
import { c as checkNamedSlotElement } from './p-06e608ae.js';
|
|
10
10
|
import { h } from './p-33937fd7.js';
|
|
11
|
-
import { d as defineCustomElement$d } from './p-
|
|
11
|
+
import { d as defineCustomElement$d } from './p-f4ac6968.js';
|
|
12
12
|
import { d as defineCustomElement$c } from './p-83231ea8.js';
|
|
13
13
|
import { d as defineCustomElement$b } from './p-b6322d8d.js';
|
|
14
14
|
import { d as defineCustomElement$a } from './p-667579b0.js';
|
|
@@ -7,7 +7,7 @@ import { f as fieldSorter } from './p-9e371678.js';
|
|
|
7
7
|
import { i as isKeyboardClick } from './p-785686e3.js';
|
|
8
8
|
import { a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver, g as getLocaleString } from './p-2e36d5bf.js';
|
|
9
9
|
import { h } from './p-33937fd7.js';
|
|
10
|
-
import { d as defineCustomElement$7 } from './p-
|
|
10
|
+
import { d as defineCustomElement$7 } from './p-f4ac6968.js';
|
|
11
11
|
import { d as defineCustomElement$6 } from './p-83231ea8.js';
|
|
12
12
|
import { d as defineCustomElement$5 } from './p-667579b0.js';
|
|
13
13
|
import { d as defineCustomElement$4 } from './p-63954651.js';
|
|
@@ -2,28 +2,16 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { p as proxyCustomElement, H, h, d as Host } from './p-e98f9bb0.js';
|
|
5
|
-
import { a as media_query_large } from './p-f9a8d356.js';
|
|
6
5
|
import { i as inheritGlobalTheme } from './p-a58bd561.js';
|
|
7
6
|
import { d as defineCustomElement$2 } from './p-667579b0.js';
|
|
8
7
|
|
|
9
|
-
const duetMenuBarButtonCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:inherit;color:inherit;text-align:center;text-decoration:none;cursor:pointer}.duet-menu-bar-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-button:focus,.duet-menu-bar-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-button.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}@media (min-width: 62em){.duet-menu-bar-button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-button{padding:0 28px}}@media (min-width: 62em){.duet-menu-bar-button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-button:hover.duet-theme-turva{color:rgb(198, 12, 48)}}";
|
|
8
|
+
const duetMenuBarButtonCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:inherit;color:inherit;text-align:center;text-decoration:none;cursor:pointer}.duet-menu-bar-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-button:focus,.duet-menu-bar-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-button .menu-bar-button-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-button .menu-bar-button-icon{width:16px;height:16px}}.duet-menu-bar-button.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}@media (min-width: 62em){.duet-menu-bar-button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-button{padding:0 28px}}@media (min-width: 62em){.duet-menu-bar-button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-button:hover.duet-theme-turva{color:rgb(198, 12, 48)}}";
|
|
10
9
|
|
|
11
10
|
const DuetMenuBarButton$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarButton extends H {
|
|
12
11
|
constructor() {
|
|
13
12
|
super();
|
|
14
13
|
this.__registerHost();
|
|
15
14
|
this.__attachShadow();
|
|
16
|
-
this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
|
|
17
|
-
this.boundMqlFunctions = [];
|
|
18
|
-
this.changeIconSize = () => {
|
|
19
|
-
if (this.mql[0].matches) {
|
|
20
|
-
this.iconSize = "x-small";
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.iconSize = "small";
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
this.iconSize = "x-small";
|
|
27
15
|
this.accessibleLabel = undefined;
|
|
28
16
|
this.accessibleControls = undefined;
|
|
29
17
|
this.accessiblePopup = "false";
|
|
@@ -44,26 +32,6 @@ const DuetMenuBarButton$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarBu
|
|
|
44
32
|
componentWillLoad() {
|
|
45
33
|
inheritGlobalTheme(this);
|
|
46
34
|
}
|
|
47
|
-
connectedCallback() {
|
|
48
|
-
this.changeIconSize();
|
|
49
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
50
|
-
// addEventListener is not available in Stencil hydrate
|
|
51
|
-
if (this.mql[i].addEventListener) {
|
|
52
|
-
const bound = this.changeIconSize.bind(this);
|
|
53
|
-
this.mql[i].addEventListener("change", bound);
|
|
54
|
-
this.boundMqlFunctions[i] = bound;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
disconnectedCallback() {
|
|
59
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
60
|
-
// removeEventListener is not available in Stencil hydrate
|
|
61
|
-
if (this.mql[i].removeEventListener) {
|
|
62
|
-
this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
this.boundMqlFunctions = [];
|
|
66
|
-
}
|
|
67
35
|
/**
|
|
68
36
|
* Sets focus on underlying button element.
|
|
69
37
|
*/
|
|
@@ -80,7 +48,7 @@ const DuetMenuBarButton$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarBu
|
|
|
80
48
|
return (h(Host, { role: "listitem", onfocus: () => this.setFocus() }, h("button", { ref: button => (this.nativeButton = button), class: {
|
|
81
49
|
"duet-menu-bar-button": true,
|
|
82
50
|
"duet-theme-turva": this.theme === "turva",
|
|
83
|
-
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (h("duet-icon", { theme: this.theme, size:
|
|
51
|
+
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (h("duet-icon", { class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", null))));
|
|
84
52
|
}
|
|
85
53
|
get element() { return this; }
|
|
86
54
|
static get style() { return duetMenuBarButtonCss; }
|
|
@@ -98,7 +66,6 @@ const DuetMenuBarButton$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarBu
|
|
|
98
66
|
"accessiblePressed": [4, "accessible-pressed"],
|
|
99
67
|
"theme": [1025],
|
|
100
68
|
"icon": [1537],
|
|
101
|
-
"iconSize": [32],
|
|
102
69
|
"setFocus": [64]
|
|
103
70
|
}]);
|
|
104
71
|
function defineCustomElement$1() {
|
|
@@ -2,31 +2,17 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { p as proxyCustomElement, H, h, d as Host } from './p-e98f9bb0.js';
|
|
5
|
-
import { a as media_query_large } from './p-f9a8d356.js';
|
|
6
5
|
import { i as inheritGlobalTheme } from './p-a58bd561.js';
|
|
7
6
|
import { b as isEscapeKey } from './p-785686e3.js';
|
|
8
7
|
import { d as defineCustomElement$2 } from './p-667579b0.js';
|
|
9
8
|
|
|
10
|
-
const duetMenuBarDropdownCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}@media (min-width: 62em){:host(:last-child) .duet-menu-bar-dropdown button{padding:0 16px 0 16px}}@media (min-width: 76.25em){:host(:last-child) .duet-menu-bar-dropdown button{padding:0 16px 0 28px}}.duet-menu-bar-dropdown{position:relative;height:100%}.duet-menu-bar-dropdown button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-menu-bar-dropdown button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-dropdown button{padding:0 28px}}.duet-menu-bar-dropdown button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-menu-bar-dropdown button .label{display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-menu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-menu-bar-dropdown button.active .caret{transform:rotate(180deg)}.duet-theme-turva .duet-menu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown button.active::after{position:absolute;top:auto;bottom:2px;left:0;display:block;width:100%;height:2px;content:\"\";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}.duet-theme-turva .duet-menu-bar-dropdown button.active::after{background:rgb(198, 12, 48)}.duet-menu-bar-dropdown .items{position:absolute;top:70%;right:0%;left:auto;z-index:600;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:225px;padding:8px;color:rgb(0, 41, 77);background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15)}.duet-menu-bar-dropdown .items.hidden{display:none}.duet-menu-bar-dropdown.duet-theme-turva button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-menu-bar-dropdown.duet-theme-turva button:hover{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-dropdown.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}";
|
|
9
|
+
const duetMenuBarDropdownCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}@media (min-width: 62em){:host(:last-child) .duet-menu-bar-dropdown button{padding:0 16px 0 16px}}@media (min-width: 76.25em){:host(:last-child) .duet-menu-bar-dropdown button{padding:0 16px 0 28px}}.duet-menu-bar-dropdown{position:relative;height:100%}.duet-menu-bar-dropdown button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-menu-bar-dropdown button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-dropdown button{padding:0 28px}}.duet-menu-bar-dropdown button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-menu-bar-dropdown button .label{display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-menu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-menu-bar-dropdown button.active .caret{transform:rotate(180deg)}.duet-theme-turva .duet-menu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown button.active::after{position:absolute;top:auto;bottom:2px;left:0;display:block;width:100%;height:2px;content:\"\";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}.duet-theme-turva .duet-menu-bar-dropdown button.active::after{background:rgb(198, 12, 48)}.duet-menu-bar-dropdown .menu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-dropdown .menu-bar-dropdown-icon{width:16px;height:16px}}.duet-menu-bar-dropdown .items{position:absolute;top:70%;right:0%;left:auto;z-index:600;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:225px;padding:8px;color:rgb(0, 41, 77);background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15)}.duet-menu-bar-dropdown .items.hidden{display:none}.duet-menu-bar-dropdown.duet-theme-turva button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-menu-bar-dropdown.duet-theme-turva button:hover{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-dropdown.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}";
|
|
11
10
|
|
|
12
11
|
const DuetMenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarDropdown extends H {
|
|
13
12
|
constructor() {
|
|
14
13
|
super();
|
|
15
14
|
this.__registerHost();
|
|
16
15
|
this.__attachShadow();
|
|
17
|
-
/**
|
|
18
|
-
* Own Properties.
|
|
19
|
-
*/
|
|
20
|
-
this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
|
|
21
|
-
this.boundMqlFunctions = [];
|
|
22
|
-
this.changeIconSize = () => {
|
|
23
|
-
if (this.mql[0].matches) {
|
|
24
|
-
this.iconSize = "x-small";
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.iconSize = "small";
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
16
|
this.onClick = () => {
|
|
31
17
|
this.open = !this.open;
|
|
32
18
|
};
|
|
@@ -41,7 +27,6 @@ const DuetMenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBar
|
|
|
41
27
|
return "right";
|
|
42
28
|
}
|
|
43
29
|
};
|
|
44
|
-
this.iconSize = "x-small";
|
|
45
30
|
this.accessibleLabel = undefined;
|
|
46
31
|
this.theme = "";
|
|
47
32
|
this.open = false;
|
|
@@ -59,26 +44,6 @@ const DuetMenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBar
|
|
|
59
44
|
componentWillLoad() {
|
|
60
45
|
inheritGlobalTheme(this);
|
|
61
46
|
}
|
|
62
|
-
connectedCallback() {
|
|
63
|
-
this.changeIconSize();
|
|
64
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
65
|
-
// addEventListener is not available in Stencil hydrate
|
|
66
|
-
if (this.mql[i].addEventListener) {
|
|
67
|
-
const bound = this.changeIconSize.bind(this);
|
|
68
|
-
this.mql[i].addEventListener("change", bound);
|
|
69
|
-
this.boundMqlFunctions[i] = bound;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
disconnectedCallback() {
|
|
74
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
75
|
-
// removeEventListener is not available in Stencil hydrate
|
|
76
|
-
if (this.mql[i].removeEventListener) {
|
|
77
|
-
this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
this.boundMqlFunctions = [];
|
|
81
|
-
}
|
|
82
47
|
handleEscape(e) {
|
|
83
48
|
if (isEscapeKey(e)) {
|
|
84
49
|
this.open = false;
|
|
@@ -103,7 +68,7 @@ const DuetMenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBar
|
|
|
103
68
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
104
69
|
} }, h("button", { ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
105
70
|
active: this.open,
|
|
106
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size:
|
|
71
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
107
72
|
items: true,
|
|
108
73
|
hidden: !this.open,
|
|
109
74
|
} }, h("slot", null)))));
|
|
@@ -115,7 +80,6 @@ const DuetMenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBar
|
|
|
115
80
|
"theme": [1025],
|
|
116
81
|
"open": [1540],
|
|
117
82
|
"icon": [1537],
|
|
118
|
-
"iconSize": [32],
|
|
119
83
|
"setFocus": [64]
|
|
120
84
|
}, [[8, "click", "handleFocus"]]]);
|
|
121
85
|
function defineCustomElement$1() {
|
|
@@ -2,31 +2,16 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { p as proxyCustomElement, H, h, d as Host } from './p-e98f9bb0.js';
|
|
5
|
-
import { a as media_query_large } from './p-f9a8d356.js';
|
|
6
5
|
import { i as inheritGlobalTheme } from './p-a58bd561.js';
|
|
7
6
|
import { d as defineCustomElement$2 } from './p-667579b0.js';
|
|
8
7
|
|
|
9
|
-
const duetMenuBarLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:\"\";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}";
|
|
8
|
+
const duetMenuBarLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link .menu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-link .menu-bar-link-icon{width:16px;height:16px}}.duet-menu-bar-link.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:\"\";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}";
|
|
10
9
|
|
|
11
10
|
const DuetMenuBarLink$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarLink extends H {
|
|
12
11
|
constructor() {
|
|
13
12
|
super();
|
|
14
13
|
this.__registerHost();
|
|
15
14
|
this.__attachShadow();
|
|
16
|
-
/**
|
|
17
|
-
* Own Properties.
|
|
18
|
-
*/
|
|
19
|
-
this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
|
|
20
|
-
this.boundMqlFunctions = [];
|
|
21
|
-
this.changeIconSize = () => {
|
|
22
|
-
if (this.mql[0].matches) {
|
|
23
|
-
this.iconSize = "x-small";
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
this.iconSize = "small";
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
this.iconSize = "x-small";
|
|
30
15
|
this.theme = "";
|
|
31
16
|
this.active = false;
|
|
32
17
|
this.href = "#";
|
|
@@ -39,26 +24,6 @@ const DuetMenuBarLink$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarLink
|
|
|
39
24
|
componentWillLoad() {
|
|
40
25
|
inheritGlobalTheme(this);
|
|
41
26
|
}
|
|
42
|
-
connectedCallback() {
|
|
43
|
-
this.changeIconSize();
|
|
44
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
45
|
-
// addEventListener is not available in Stencil hydrate
|
|
46
|
-
if (this.mql[i].addEventListener) {
|
|
47
|
-
const bound = this.changeIconSize.bind(this);
|
|
48
|
-
this.mql[i].addEventListener("change", bound);
|
|
49
|
-
this.boundMqlFunctions[i] = bound;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
disconnectedCallback() {
|
|
54
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
55
|
-
// removeEventListener is not available in Stencil hydrate
|
|
56
|
-
if (this.mql[i].removeEventListener) {
|
|
57
|
-
this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
this.boundMqlFunctions = [];
|
|
61
|
-
}
|
|
62
27
|
/**
|
|
63
28
|
* render() function
|
|
64
29
|
* Always the last one in the class.
|
|
@@ -68,7 +33,7 @@ const DuetMenuBarLink$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarLink
|
|
|
68
33
|
"duet-menu-bar-link": true,
|
|
69
34
|
"duet-theme-turva": this.theme === "turva",
|
|
70
35
|
active: this.active,
|
|
71
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { theme: this.theme, size:
|
|
36
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", null))));
|
|
72
37
|
}
|
|
73
38
|
get element() { return this; }
|
|
74
39
|
static get style() { return duetMenuBarLinkCss; }
|
|
@@ -77,8 +42,7 @@ const DuetMenuBarLink$1 = /*@__PURE__*/ proxyCustomElement(class DuetMenuBarLink
|
|
|
77
42
|
"active": [1028],
|
|
78
43
|
"href": [1025],
|
|
79
44
|
"icon": [1537],
|
|
80
|
-
"accessibleLabel": [1, "accessible-label"]
|
|
81
|
-
"iconSize": [32]
|
|
45
|
+
"accessibleLabel": [1, "accessible-label"]
|
|
82
46
|
}]);
|
|
83
47
|
function defineCustomElement$1() {
|
|
84
48
|
if (typeof customElements === "undefined") {
|
|
@@ -9,7 +9,7 @@ import { l as isArrowKey, m as isNumber, j as isArrowLeftKey, f as isArrowUpKey,
|
|
|
9
9
|
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-2e36d5bf.js';
|
|
10
10
|
import { p as parsePossibleJSON } from './p-0e052642.js';
|
|
11
11
|
import { a as breakpointTokensUpTo, b as breakpointToToken } from './p-25c80cdb.js';
|
|
12
|
-
import { d as defineCustomElement$d } from './p-
|
|
12
|
+
import { d as defineCustomElement$d } from './p-f4ac6968.js';
|
|
13
13
|
import { d as defineCustomElement$c } from './p-971b25c0.js';
|
|
14
14
|
import { d as defineCustomElement$b } from './p-83231ea8.js';
|
|
15
15
|
import { d as defineCustomElement$a } from './p-b6322d8d.js';
|
|
@@ -6,7 +6,7 @@ import { i as inheritGlobalTheme } from './p-a58bd561.js';
|
|
|
6
6
|
import { c as createID } from './p-5e59e970.js';
|
|
7
7
|
import { j as isArrowLeftKey, f as isArrowUpKey, n as isMinusKey, l as isArrowKey, k as isArrowRightKey, g as isArrowDownKey, o as isPlusKey } from './p-785686e3.js';
|
|
8
8
|
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-2e36d5bf.js';
|
|
9
|
-
import { d as defineCustomElement$4 } from './p-
|
|
9
|
+
import { d as defineCustomElement$4 } from './p-f4ac6968.js';
|
|
10
10
|
import { d as defineCustomElement$3 } from './p-667579b0.js';
|
|
11
11
|
import { d as defineCustomElement$2 } from './p-d1815d2a.js';
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@ import { i as inheritGlobalTheme } from './p-a58bd561.js';
|
|
|
7
7
|
import { b as isEscapeKey } from './p-785686e3.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './p-667579b0.js';
|
|
9
9
|
|
|
10
|
-
const duetSubmenuBarDropdownCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 77, 128)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(230, 242, 248)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:\"\";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(0, 41, 77);background:rgb(230, 242, 248)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(0, 41, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:\"\";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(0, 41, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(228, 228, 230)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(148, 9, 37)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(148, 9, 37)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(228, 228, 230)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}";
|
|
10
|
+
const duetSubmenuBarDropdownCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 77, 128)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(230, 242, 248)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:\"\";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(0, 41, 77);background:rgb(230, 242, 248)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(0, 41, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:\"\";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(0, 41, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(228, 228, 230)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(148, 9, 37)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(148, 9, 37)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(228, 228, 230)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}";
|
|
11
11
|
|
|
12
12
|
const DuetSubmenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetSubmenuBarDropdown extends H {
|
|
13
13
|
constructor() {
|
|
@@ -22,11 +22,9 @@ const DuetSubmenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetSubm
|
|
|
22
22
|
this.checkIsDesktop = () => {
|
|
23
23
|
if (this.mql[0].matches) {
|
|
24
24
|
this.isDesktop = true;
|
|
25
|
-
this.iconSize = "x-small";
|
|
26
25
|
}
|
|
27
26
|
else {
|
|
28
27
|
this.isDesktop = false;
|
|
29
|
-
this.iconSize = "small";
|
|
30
28
|
}
|
|
31
29
|
};
|
|
32
30
|
this.onClick = () => {
|
|
@@ -45,7 +43,6 @@ const DuetSubmenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetSubm
|
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
this.isDesktop = false;
|
|
48
|
-
this.iconSize = "small";
|
|
49
46
|
this.theme = "";
|
|
50
47
|
this.active = false;
|
|
51
48
|
this.open = false;
|
|
@@ -114,7 +111,7 @@ const DuetSubmenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetSubm
|
|
|
114
111
|
} }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
115
112
|
open: this.open,
|
|
116
113
|
active: this.active,
|
|
117
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size:
|
|
114
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("span", { class: "label-text" }, h("slot", { name: "label" })), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
118
115
|
items: true,
|
|
119
116
|
hidden: !this.open,
|
|
120
117
|
} }, h("slot", null)))));
|
|
@@ -127,7 +124,6 @@ const DuetSubmenuBarDropdown$1 = /*@__PURE__*/ proxyCustomElement(class DuetSubm
|
|
|
127
124
|
"open": [1540],
|
|
128
125
|
"icon": [1537],
|
|
129
126
|
"isDesktop": [32],
|
|
130
|
-
"iconSize": [32],
|
|
131
127
|
"setFocus": [64]
|
|
132
128
|
}, [[8, "click", "handleFocus"]]]);
|
|
133
129
|
function defineCustomElement$1() {
|