@umbraco-ui/uui-menu-item 0.0.4 → 0.1.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.
- package/README.md +6 -14
- package/custom-elements.json +56 -5
- package/lib/index.d.ts +2 -1
- package/lib/index.js +103 -36
- package/lib/uui-menu-item.element.d.ts +29 -7
- package/package.json +8 -5
- package/dist/uui-menu-item.min.js +0 -30
- package/dist/uui-menu-item.min.js.map +0 -1
- package/lib/uui-menu-item.element.js +0 -243
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Umbraco style menu-item component.
|
|
6
6
|
|
|
7
|
+
### See it in action
|
|
8
|
+
|
|
9
|
+
Preview the component on [Storybook](https://uui.umbraco.com/?path=/story/uui-menu-item)
|
|
10
|
+
|
|
7
11
|
## Installation
|
|
8
12
|
|
|
9
13
|
### ES imports
|
|
@@ -15,25 +19,13 @@ npm i @umbraco-ui/uui-menu-item
|
|
|
15
19
|
Import the registration of `<uui-menu-item>` via:
|
|
16
20
|
|
|
17
21
|
```javascript
|
|
18
|
-
import '@umbraco-ui/uui-menu-item
|
|
22
|
+
import '@umbraco-ui/uui-menu-item';
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
When looking to leverage the `UUIMenuItemElement` base class as a type and/or for extension purposes, do so via:
|
|
22
26
|
|
|
23
27
|
```javascript
|
|
24
|
-
import { UUIMenuItemElement } from '@umbraco-ui/uui-menu-item
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### CDN
|
|
28
|
-
|
|
29
|
-
The component is available via CDN. This means it can be added to your application without the need of any bundler configuration. Here is how to use it with jsDelivr.
|
|
30
|
-
|
|
31
|
-
```html
|
|
32
|
-
<!-- Latest Version -->
|
|
33
|
-
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-menu-item@latest/dist/uui-menu-item.min.js"></script>
|
|
34
|
-
|
|
35
|
-
<!-- Specific version -->
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-menu-item@X.X.X/dist/uui-menu-item.min.js"></script>
|
|
28
|
+
import { UUIMenuItemElement } from '@umbraco-ui/uui-menu-item';
|
|
37
29
|
```
|
|
38
30
|
|
|
39
31
|
## Usage
|
package/custom-elements.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"attributes": [
|
|
8
8
|
{
|
|
9
9
|
"name": "disabled",
|
|
10
|
-
"description": "Disables the menu item, changes the looks of it and prevents
|
|
10
|
+
"description": "Disables the menu item, changes the looks of it and prevents it from emitting the click event",
|
|
11
11
|
"type": "boolean",
|
|
12
12
|
"default": "\"false\""
|
|
13
13
|
},
|
|
@@ -29,6 +29,23 @@
|
|
|
29
29
|
"type": "boolean",
|
|
30
30
|
"default": "\"false\""
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"name": "href",
|
|
34
|
+
"description": "Set an href, this will turns the label into a anchor tag.",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": "\"undefined\""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "target",
|
|
40
|
+
"description": "Set an anchor tag target, only used when using href.",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"default": "\"undefined\""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "select-only",
|
|
46
|
+
"description": "Enforce selection interaction and prevent all other interactions, set this when the UI is turned into Selection-Mode.",
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
32
49
|
{
|
|
33
50
|
"name": "selectable",
|
|
34
51
|
"description": "Enable the ability to select this element.",
|
|
@@ -42,12 +59,13 @@
|
|
|
42
59
|
},
|
|
43
60
|
{
|
|
44
61
|
"name": "active",
|
|
62
|
+
"description": "Set this boolean to true for then the related composition is sorted.",
|
|
45
63
|
"type": "boolean",
|
|
46
64
|
"default": "false"
|
|
47
65
|
},
|
|
48
66
|
{
|
|
49
67
|
"name": "label",
|
|
50
|
-
"description": "
|
|
68
|
+
"description": "Label to be used for aria-label and eventually as visual label",
|
|
51
69
|
"type": "string"
|
|
52
70
|
}
|
|
53
71
|
],
|
|
@@ -60,7 +78,7 @@
|
|
|
60
78
|
{
|
|
61
79
|
"name": "disabled",
|
|
62
80
|
"attribute": "disabled",
|
|
63
|
-
"description": "Disables the menu item, changes the looks of it and prevents
|
|
81
|
+
"description": "Disables the menu item, changes the looks of it and prevents it from emitting the click event",
|
|
64
82
|
"type": "boolean",
|
|
65
83
|
"default": "\"false\""
|
|
66
84
|
},
|
|
@@ -85,6 +103,26 @@
|
|
|
85
103
|
"type": "boolean",
|
|
86
104
|
"default": "\"false\""
|
|
87
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"name": "href",
|
|
108
|
+
"attribute": "href",
|
|
109
|
+
"description": "Set an href, this will turns the label into a anchor tag.",
|
|
110
|
+
"type": "string",
|
|
111
|
+
"default": "\"undefined\""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "target",
|
|
115
|
+
"attribute": "target",
|
|
116
|
+
"description": "Set an anchor tag target, only used when using href.",
|
|
117
|
+
"type": "string",
|
|
118
|
+
"default": "\"undefined\""
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "selectOnly",
|
|
122
|
+
"attribute": "select-only",
|
|
123
|
+
"description": "Enforce selection interaction and prevent all other interactions, set this when the UI is turned into Selection-Mode.",
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
88
126
|
{
|
|
89
127
|
"name": "selectable",
|
|
90
128
|
"attribute": "selectable",
|
|
@@ -101,13 +139,14 @@
|
|
|
101
139
|
{
|
|
102
140
|
"name": "active",
|
|
103
141
|
"attribute": "active",
|
|
142
|
+
"description": "Set this boolean to true for then the related composition is sorted.",
|
|
104
143
|
"type": "boolean",
|
|
105
144
|
"default": "false"
|
|
106
145
|
},
|
|
107
146
|
{
|
|
108
147
|
"name": "label",
|
|
109
148
|
"attribute": "label",
|
|
110
|
-
"description": "
|
|
149
|
+
"description": "Label to be used for aria-label and eventually as visual label",
|
|
111
150
|
"type": "string"
|
|
112
151
|
}
|
|
113
152
|
],
|
|
@@ -123,12 +162,20 @@
|
|
|
123
162
|
{
|
|
124
163
|
"name": "click-label",
|
|
125
164
|
"description": "fires when the label is clicked"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "selected",
|
|
168
|
+
"description": "fires when the media card is selected"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "unselected",
|
|
172
|
+
"description": "fires when the media card is unselected"
|
|
126
173
|
}
|
|
127
174
|
],
|
|
128
175
|
"slots": [
|
|
129
176
|
{
|
|
130
177
|
"name": "",
|
|
131
|
-
"description": "
|
|
178
|
+
"description": "nested menu items go here"
|
|
132
179
|
},
|
|
133
180
|
{
|
|
134
181
|
"name": "icon",
|
|
@@ -137,6 +184,10 @@
|
|
|
137
184
|
{
|
|
138
185
|
"name": "actions",
|
|
139
186
|
"description": "actions area"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "label",
|
|
190
|
+
"description": "area to place the label"
|
|
140
191
|
}
|
|
141
192
|
],
|
|
142
193
|
"cssProperties": [
|
package/lib/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './uui-menu-item.element';
|
|
2
|
+
export * from './UUIMenuItemEvent';
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { SelectOnlyMixin, SelectableMixin, ActiveMixin, LabelMixin } from '@umbraco-ui/uui-base/lib/mixins';
|
|
2
|
+
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
|
|
3
|
+
import { demandCustomElement } from '@umbraco-ui/uui-base/lib/utils';
|
|
1
4
|
import { LitElement, html, css } from 'lit';
|
|
2
5
|
import { property, state } from 'lit/decorators.js';
|
|
3
|
-
import {
|
|
6
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
7
|
import { UUIEvent } from '@umbraco-ui/uui-base/lib/events';
|
|
5
|
-
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
|
|
6
8
|
|
|
7
9
|
class UUIMenuItemEvent extends UUIEvent {
|
|
8
10
|
}
|
|
@@ -21,7 +23,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
21
23
|
__defProp(target, key, result);
|
|
22
24
|
return result;
|
|
23
25
|
};
|
|
24
|
-
|
|
26
|
+
let UUIMenuItemElement = class extends SelectOnlyMixin(SelectableMixin(ActiveMixin(LabelMixin("label", LitElement)))) {
|
|
25
27
|
constructor() {
|
|
26
28
|
super(...arguments);
|
|
27
29
|
this.disabled = false;
|
|
@@ -30,6 +32,16 @@ class UUIMenuItemElement extends SelectableMixin(ActiveMixin(LabelMixin("label",
|
|
|
30
32
|
this.loading = false;
|
|
31
33
|
this.iconSlotHasContent = false;
|
|
32
34
|
}
|
|
35
|
+
connectedCallback() {
|
|
36
|
+
super.connectedCallback();
|
|
37
|
+
if (!this.hasAttribute("role"))
|
|
38
|
+
this.setAttribute("role", "menu");
|
|
39
|
+
demandCustomElement(this, "uui-symbol-expand");
|
|
40
|
+
demandCustomElement(this, "uui-loader-bar");
|
|
41
|
+
}
|
|
42
|
+
iconSlotChanged(e) {
|
|
43
|
+
this.iconSlotHasContent = e.target.assignedNodes({ flatten: true }).length > 0;
|
|
44
|
+
}
|
|
33
45
|
onCaretClicked() {
|
|
34
46
|
this.showChildren = !this.showChildren;
|
|
35
47
|
const eventName = this.showChildren ? UUIMenuItemEvent.SHOW_CHILDREN : UUIMenuItemEvent.HIDE_CHILDREN;
|
|
@@ -40,8 +52,40 @@ class UUIMenuItemElement extends SelectableMixin(ActiveMixin(LabelMixin("label",
|
|
|
40
52
|
const event = new UUIMenuItemEvent(UUIMenuItemEvent.CLICK_LABEL);
|
|
41
53
|
this.dispatchEvent(event);
|
|
42
54
|
}
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
_renderLabelInside() {
|
|
56
|
+
return html` <slot
|
|
57
|
+
name="icon"
|
|
58
|
+
id="icon"
|
|
59
|
+
style=${this.iconSlotHasContent ? "" : "display: none;"}
|
|
60
|
+
@slotchange=${this.iconSlotChanged}></slot>
|
|
61
|
+
${this.renderLabel()}
|
|
62
|
+
<slot name="badge" id="badge"> </slot>`;
|
|
63
|
+
}
|
|
64
|
+
_renderLabelAsAnchor() {
|
|
65
|
+
if (this.disabled) {
|
|
66
|
+
return html` <span id="label-button">
|
|
67
|
+
${this._renderLabelInside()}
|
|
68
|
+
</span>`;
|
|
69
|
+
}
|
|
70
|
+
return html` <a
|
|
71
|
+
id="label-button"
|
|
72
|
+
href=${ifDefined(this.href)}
|
|
73
|
+
target=${ifDefined(this.target || void 0)}
|
|
74
|
+
rel=${ifDefined(this.target === "_blank" ? "noopener" : void 0)}
|
|
75
|
+
@click=${this.onLabelClicked}
|
|
76
|
+
?disabled=${this.disabled}
|
|
77
|
+
aria-label="${this.label}">
|
|
78
|
+
${this._renderLabelInside()}
|
|
79
|
+
</a>`;
|
|
80
|
+
}
|
|
81
|
+
_renderLabelAsButton() {
|
|
82
|
+
return html` <button
|
|
83
|
+
id="label-button"
|
|
84
|
+
@click=${this.onLabelClicked}
|
|
85
|
+
?disabled=${this.disabled}
|
|
86
|
+
aria-label="${this.label}">
|
|
87
|
+
${this._renderLabelInside()}
|
|
88
|
+
</button>`;
|
|
45
89
|
}
|
|
46
90
|
render() {
|
|
47
91
|
return html`
|
|
@@ -49,39 +93,28 @@ class UUIMenuItemElement extends SelectableMixin(ActiveMixin(LabelMixin("label",
|
|
|
49
93
|
${this.hasChildren ? html`<button id="caret-button" @click=${this.onCaretClicked}>
|
|
50
94
|
<uui-symbol-expand ?open=${this.showChildren}></uui-symbol-expand>
|
|
51
95
|
</button>` : ""}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
@click=${this.onLabelClicked}
|
|
55
|
-
?disabled=${this.disabled}
|
|
56
|
-
aria-label="${this.label}">
|
|
57
|
-
<slot
|
|
58
|
-
name="icon"
|
|
59
|
-
id="icon"
|
|
60
|
-
style=${this.iconSlotHasContent ? "" : "display: none;"}
|
|
61
|
-
@slotchange=${this.iconSlotChanged}></slot>
|
|
62
|
-
${this.renderLabel()}
|
|
63
|
-
</button>
|
|
96
|
+
${this.href ? this._renderLabelAsAnchor() : this._renderLabelAsButton()}
|
|
97
|
+
|
|
64
98
|
<div id="label-button-background"></div>
|
|
65
|
-
|
|
99
|
+
${this.selectOnly === false ? html`<slot id="actions-container" name="actions"></slot>` : ""}
|
|
66
100
|
${this.loading ? html`<uui-loader-bar id="loader"></uui-loader-bar>` : ""}
|
|
67
101
|
</div>
|
|
68
102
|
${this.showChildren ? html`<slot></slot>` : ""}
|
|
69
103
|
`;
|
|
70
104
|
}
|
|
71
|
-
}
|
|
105
|
+
};
|
|
72
106
|
UUIMenuItemElement.styles = [
|
|
73
107
|
css`
|
|
74
108
|
:host {
|
|
75
109
|
display: block;
|
|
76
|
-
background-color: var(--uui-interface-surface,#fefefe);
|
|
77
|
-
/** consider transparent. */
|
|
78
110
|
--uui-menu-item-child-indent: calc(var(--uui-menu-item-indent, 0) + 1);
|
|
111
|
+
|
|
112
|
+
user-select: none;
|
|
79
113
|
}
|
|
80
114
|
|
|
81
115
|
#menu-item {
|
|
82
116
|
position: relative;
|
|
83
|
-
|
|
84
|
-
align-items: stretch;
|
|
117
|
+
|
|
85
118
|
padding-left: calc(var(--uui-menu-item-indent, 0) * var(--uui-size-4,12px));
|
|
86
119
|
|
|
87
120
|
display: grid;
|
|
@@ -91,19 +124,20 @@ UUIMenuItemElement.styles = [
|
|
|
91
124
|
}
|
|
92
125
|
|
|
93
126
|
button {
|
|
94
|
-
display:
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
|
|
95
130
|
font-family: inherit;
|
|
131
|
+
font-size: inherit;
|
|
96
132
|
|
|
97
133
|
padding: 0;
|
|
98
134
|
text-align: left;
|
|
99
|
-
box-shadow: none;
|
|
100
135
|
border: none;
|
|
101
136
|
color: inherit;
|
|
102
137
|
background-color: transparent;
|
|
103
138
|
cursor: pointer;
|
|
104
|
-
z-index: 1;
|
|
105
|
-
/* padding: 0 var(--uui-size-base-unit) 0 var(--uui-size-base-unit); */
|
|
106
139
|
min-height: var(--uui-size-12,36px);
|
|
140
|
+
z-index: 1;
|
|
107
141
|
}
|
|
108
142
|
/* button:hover {
|
|
109
143
|
color: var(--uui-interface-contrast-hover);
|
|
@@ -114,8 +148,23 @@ UUIMenuItemElement.styles = [
|
|
|
114
148
|
grid-column-start: 2;
|
|
115
149
|
white-space: nowrap;
|
|
116
150
|
overflow: hidden;
|
|
151
|
+
|
|
152
|
+
display: inline-flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
text-decoration: none;
|
|
155
|
+
color: currentColor;
|
|
156
|
+
min-height: var(--uui-size-12,36px);
|
|
157
|
+
z-index: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
#label-button .label {
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
overflow: hidden;
|
|
117
163
|
text-overflow: ellipsis;
|
|
118
164
|
}
|
|
165
|
+
span#label-button {
|
|
166
|
+
pointer-events: none; /* avoid hovering state on this. */
|
|
167
|
+
}
|
|
119
168
|
|
|
120
169
|
#caret-button + #label-button {
|
|
121
170
|
padding-left: 0;
|
|
@@ -146,7 +195,9 @@ UUIMenuItemElement.styles = [
|
|
|
146
195
|
transition: opacity 120ms;
|
|
147
196
|
grid-column-start: 3;
|
|
148
197
|
}
|
|
149
|
-
#menu-item:hover #actions-container
|
|
198
|
+
:host(:not([disabled])) #menu-item:hover #actions-container,
|
|
199
|
+
:host(:not([disabled])) #menu-item:focus #actions-container,
|
|
200
|
+
:host(:not([disabled])) #menu-item:focus-within #actions-container {
|
|
150
201
|
opacity: 1;
|
|
151
202
|
}
|
|
152
203
|
|
|
@@ -157,13 +208,20 @@ UUIMenuItemElement.styles = [
|
|
|
157
208
|
}
|
|
158
209
|
|
|
159
210
|
#icon {
|
|
211
|
+
display: inline-flex;
|
|
160
212
|
font-size: 16px;
|
|
161
|
-
margin-bottom: var(--uui-size-1,3px);
|
|
162
213
|
margin-right: var(--uui-size-2,6px);
|
|
163
|
-
display: inline-block;
|
|
164
214
|
}
|
|
165
215
|
|
|
166
|
-
|
|
216
|
+
#badge {
|
|
217
|
+
font-size: 12px;
|
|
218
|
+
--uui-badge-position: relative;
|
|
219
|
+
--uui-badge-position: auto;
|
|
220
|
+
display: block;
|
|
221
|
+
margin-left: 6px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host([disabled]) {
|
|
167
225
|
color: var(--uui-interface-surface-contrast-disabled);
|
|
168
226
|
}
|
|
169
227
|
:host([disabled]) #label-button-background {
|
|
@@ -173,10 +231,10 @@ UUIMenuItemElement.styles = [
|
|
|
173
231
|
background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));
|
|
174
232
|
}
|
|
175
233
|
|
|
176
|
-
:host([active])
|
|
234
|
+
:host([active]) {
|
|
177
235
|
color: var(--uui-interface-active-contrast,#162335);
|
|
178
236
|
}
|
|
179
|
-
:host([active]) button:hover {
|
|
237
|
+
:host([active]) #label-button:hover {
|
|
180
238
|
color: var(--uui-interface-active-contrast-hover,#1b264f);
|
|
181
239
|
}
|
|
182
240
|
:host([active]) #label-button-background {
|
|
@@ -190,10 +248,10 @@ UUIMenuItemElement.styles = [
|
|
|
190
248
|
background-color: var(--uui-interface-active-disabled,rgb(219, 212, 212));
|
|
191
249
|
}
|
|
192
250
|
|
|
193
|
-
:host([selected])
|
|
251
|
+
:host([selected]) {
|
|
194
252
|
color: var(--uui-interface-select-contrast,#fefefe);
|
|
195
253
|
}
|
|
196
|
-
:host([selected]) button:hover {
|
|
254
|
+
:host([selected]) #label-button:hover {
|
|
197
255
|
color: var(--uui-interface-select-contrast-hover,#fefefe);
|
|
198
256
|
}
|
|
199
257
|
:host([selected]) #label-button-background {
|
|
@@ -237,8 +295,17 @@ __decorateClass([
|
|
|
237
295
|
__decorateClass([
|
|
238
296
|
property({ type: Boolean, attribute: "loading" })
|
|
239
297
|
], UUIMenuItemElement.prototype, "loading", 2);
|
|
298
|
+
__decorateClass([
|
|
299
|
+
property({ type: String })
|
|
300
|
+
], UUIMenuItemElement.prototype, "href", 2);
|
|
301
|
+
__decorateClass([
|
|
302
|
+
property({ type: String })
|
|
303
|
+
], UUIMenuItemElement.prototype, "target", 2);
|
|
240
304
|
__decorateClass([
|
|
241
305
|
state()
|
|
242
306
|
], UUIMenuItemElement.prototype, "iconSlotHasContent", 2);
|
|
307
|
+
UUIMenuItemElement = __decorateClass([
|
|
308
|
+
defineElement("uui-menu-item")
|
|
309
|
+
], UUIMenuItemElement);
|
|
243
310
|
|
|
244
|
-
|
|
311
|
+
export { UUIMenuItemElement, UUIMenuItemEvent };
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
declare const UUIMenuItemElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectableMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").ActiveMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").LabelMixinInterface) & typeof LitElement;
|
|
2
|
+
declare const UUIMenuItemElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectOnlyMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectableMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").ActiveMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").LabelMixinInterface) & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* @element uui-menu-item
|
|
5
5
|
* @cssprop --uui-menu-item-indent - set indentation of the menu items
|
|
6
|
-
* @property label - This functions both as the visible label as well as the aria label.
|
|
7
6
|
* @fires {UUIMenuItemEvent} show-children - fires when the expand icon is clicked to show nested menu items
|
|
8
7
|
* @fires {UUIMenuItemEvent} hide-children - fires when the expend icon is clicked to hide nested menu items
|
|
9
8
|
* @fires {UUIMenuItemEvent} click-label - fires when the label is clicked
|
|
10
|
-
* @slot
|
|
9
|
+
* @slot - nested menu items go here
|
|
11
10
|
* @slot icon - icon area
|
|
12
11
|
* @slot actions - actions area
|
|
13
|
-
*
|
|
12
|
+
* @slot label - area to place the label
|
|
14
13
|
*/
|
|
15
14
|
export declare class UUIMenuItemElement extends UUIMenuItemElement_base {
|
|
16
15
|
static styles: import("lit").CSSResult[];
|
|
17
16
|
/**
|
|
18
|
-
* Disables the menu item, changes the looks of it and prevents
|
|
17
|
+
* Disables the menu item, changes the looks of it and prevents it from emitting the click event
|
|
19
18
|
* @type {boolean}
|
|
20
19
|
* @attr
|
|
21
20
|
* @default false
|
|
@@ -42,10 +41,33 @@ export declare class UUIMenuItemElement extends UUIMenuItemElement_base {
|
|
|
42
41
|
* @default false
|
|
43
42
|
*/
|
|
44
43
|
loading: boolean;
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Set an href, this will turns the label into a anchor tag.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @attr
|
|
48
|
+
* @default undefined
|
|
49
|
+
*/
|
|
50
|
+
href?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Set an anchor tag target, only used when using href.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @attr
|
|
55
|
+
* @default undefined
|
|
56
|
+
*/
|
|
57
|
+
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
47
58
|
private iconSlotHasContent;
|
|
59
|
+
connectedCallback(): void;
|
|
48
60
|
private iconSlotChanged;
|
|
61
|
+
private onCaretClicked;
|
|
62
|
+
private onLabelClicked;
|
|
63
|
+
private _renderLabelInside;
|
|
64
|
+
private _renderLabelAsAnchor;
|
|
65
|
+
private _renderLabelAsButton;
|
|
49
66
|
render(): import("lit-html").TemplateResult<1>;
|
|
50
67
|
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'uui-menu-item': UUIMenuItemElement;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
51
73
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-menu-item",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -19,17 +19,20 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/umbraco/Umbraco.UI/issues"
|
|
21
21
|
},
|
|
22
|
-
"main": "./
|
|
22
|
+
"main": "./lib/index.js",
|
|
23
23
|
"module": "./lib/index.js",
|
|
24
|
+
"types": "./lib/index.d.ts",
|
|
25
|
+
"type": "module",
|
|
24
26
|
"customElements": "custom-elements.json",
|
|
25
27
|
"files": [
|
|
26
|
-
"dist",
|
|
27
28
|
"lib/**/*.d.ts",
|
|
28
29
|
"lib/**/*.js",
|
|
29
30
|
"custom-elements.json"
|
|
30
31
|
],
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@umbraco-ui/uui-base": "0.0
|
|
33
|
+
"@umbraco-ui/uui-base": "0.1.0",
|
|
34
|
+
"@umbraco-ui/uui-loader-bar": "0.1.0",
|
|
35
|
+
"@umbraco-ui/uui-symbol-expand": "0.1.0"
|
|
33
36
|
},
|
|
34
37
|
"scripts": {
|
|
35
38
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
@@ -40,5 +43,5 @@
|
|
|
40
43
|
"access": "public"
|
|
41
44
|
},
|
|
42
45
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-menu-item",
|
|
43
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "9ed7860ce865d310b85bd1718f37b59db873aefd"
|
|
44
47
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
(function(m){typeof define=="function"&&define.amd?define(m):m()})(function(){"use strict";/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const m=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I=Symbol(),J=new Map;class Z{constructor(e,t){if(this._$cssResult$=!0,t!==I)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=J.get(this.cssText);return m&&e===void 0&&(J.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const $e=n=>new Z(typeof n=="string"?n:n+"",I),_e=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((i,s,r)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[r+1],n[0]);return new Z(t,I)},ge=(n,e)=>{m?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)})},F=m?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return $e(t)})(n):n;/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var z;const G=window.trustedTypes,me=G?G.emptyScript:"",Q=window.reactiveElementPolyfillSupport,B={toAttribute(n,e){switch(e){case Boolean:n=n?me:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},X=(n,e)=>e!==n&&(e==e||n==n),j={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:X};class y extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;(t=this.l)!==null&&t!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const s=this._$Eh(i,t);s!==void 0&&(this._$Eu.set(s,i),e.push(s))}),e}static createProperty(e,t=j){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,i,t);s!==void 0&&Object.defineProperty(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(s){const r=this[e];this[t]=s,this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(F(s))}else e!==void 0&&t.push(F(e));return t}static _$Eh(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$Eg)!==null&&t!==void 0?t:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$Eg)===null||t===void 0||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return ge(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ES(e,t,i=j){var s,r;const o=this.constructor._$Eh(e,i);if(o!==void 0&&i.reflect===!0){const h=((r=(s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==null&&r!==void 0?r:B.toAttribute)(t,i.type);this._$Ei=e,h==null?this.removeAttribute(o):this.setAttribute(o,h),this._$Ei=null}}_$AK(e,t){var i,s,r;const o=this.constructor,h=o._$Eu.get(e);if(h!==void 0&&this._$Ei!==h){const l=o.getPropertyOptions(h),a=l.converter,p=(r=(s=(i=a)===null||i===void 0?void 0:i.fromAttribute)!==null&&s!==void 0?s:typeof a=="function"?a:null)!==null&&r!==void 0?r:B.fromAttribute;this._$Ei=h,this[h]=p(t,l.type),this._$Ei=null}}requestUpdate(e,t,i){let s=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||X)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Ei!==e&&(this._$E_===void 0&&(this._$E_=new Map),this._$E_.set(e,i))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((s,r)=>this[r]=s),this._$Et=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$Eg)===null||e===void 0||e.forEach(s=>{var r;return(r=s.hostUpdate)===null||r===void 0?void 0:r.call(s)}),this.update(i)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$Eg)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){this._$E_!==void 0&&(this._$E_.forEach((t,i)=>this._$ES(i,this[i],t)),this._$E_=void 0),this._$EU()}updated(e){}firstUpdated(e){}}y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},Q==null||Q({ReactiveElement:y}),((z=globalThis.reactiveElementVersions)!==null&&z!==void 0?z:globalThis.reactiveElementVersions=[]).push("1.2.0");/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2017 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var V;const A=globalThis.trustedTypes,Y=A?A.createPolicy("lit-html",{createHTML:n=>n}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,ee="?"+b,ye=`<${ee}>`,E=document,P=(n="")=>E.createComment(n),O=n=>n===null||typeof n!="object"&&typeof n!="function",te=Array.isArray,Ae=n=>{var e;return te(n)||typeof((e=n)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,se=/>/g,_=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,ne=/'/g,oe=/"/g,re=/^(?:script|style|textarea)$/i,Ee=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),w=Ee(1),S=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),le=new WeakMap,we=(n,e,t)=>{var i,s;const r=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=r._$litPart$;if(o===void 0){const h=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=o=new N(e.insertBefore(P(),h),h,void 0,t??{})}return o._$AI(n),o},C=E.createTreeWalker(E,129,null,!1),Se=(n,e)=>{const t=n.length-1,i=[];let s,r=e===2?"<svg>":"",o=U;for(let l=0;l<t;l++){const a=n[l];let p,c,d=-1,v=0;for(;v<a.length&&(o.lastIndex=v,c=o.exec(a),c!==null);)v=o.lastIndex,o===U?c[1]==="!--"?o=ie:c[1]!==void 0?o=se:c[2]!==void 0?(re.test(c[2])&&(s=RegExp("</"+c[2],"g")),o=_):c[3]!==void 0&&(o=_):o===_?c[0]===">"?(o=s??U,d=-1):c[1]===void 0?d=-2:(d=o.lastIndex-c[2].length,p=c[1],o=c[3]===void 0?_:c[3]==='"'?oe:ne):o===oe||o===ne?o=_:o===ie||o===se?o=U:(o=_,s=void 0);const D=o===_&&n[l+1].startsWith("/>")?" ":"";r+=o===U?a+ye:d>=0?(i.push(p),a.slice(0,d)+"$lit$"+a.slice(d)+b+D):a+b+(d===-2?(i.push(void 0),l):D)}const h=r+(n[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Y!==void 0?Y.createHTML(h):h,i]};class H{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let r=0,o=0;const h=e.length-1,l=this.parts,[a,p]=Se(e,t);if(this.el=H.createElement(a,i),C.currentNode=this.el.content,t===2){const c=this.el.content,d=c.firstChild;d.remove(),c.append(...d.childNodes)}for(;(s=C.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const d of s.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(b)){const v=p[o++];if(c.push(d),v!==void 0){const D=s.getAttribute(v.toLowerCase()+"$lit$").split(b),R=/([.?@])?(.*)/.exec(v);l.push({type:1,index:r,name:R[2],strings:D,ctor:R[1]==="."?xe:R[1]==="?"?Oe:R[1]==="@"?Ue:M})}else l.push({type:6,index:r})}for(const d of c)s.removeAttribute(d)}if(re.test(s.tagName)){const c=s.textContent.split(b),d=c.length-1;if(d>0){s.textContent=A?A.emptyScript:"";for(let v=0;v<d;v++)s.append(c[v],P()),C.nextNode(),l.push({type:2,index:++r});s.append(c[d],P())}}}else if(s.nodeType===8)if(s.data===ee)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(b,c+1))!==-1;)l.push({type:7,index:r}),c+=b.length-1}r++}}static createElement(e,t){const i=E.createElement("template");return i.innerHTML=e,i}}function x(n,e,t=n,i){var s,r,o,h;if(e===S)return e;let l=i!==void 0?(s=t._$Cl)===null||s===void 0?void 0:s[i]:t._$Cu;const a=O(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(n),l._$AT(n,t,i)),i!==void 0?((o=(h=t)._$Cl)!==null&&o!==void 0?o:h._$Cl=[])[i]=l:t._$Cu=l),l!==void 0&&(e=x(n,l._$AS(n,e.values),l,i)),e}class Ce{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:i},parts:s}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:E).importNode(i,!0);C.currentNode=r;let o=C.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let p;a.type===2?p=new N(o,o.nextSibling,this,e):a.type===1?p=new a.ctor(o,a.name,a.strings,this,e):a.type===6&&(p=new He(o,this,e)),this.v.push(p),a=s[++l]}h!==(a==null?void 0:a.index)&&(o=C.nextNode(),h++)}return r}m(e){let t=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class N{constructor(e,t,i,s){var r;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cg=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=x(this,e,t),O(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==S&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.S(e):Ae(e)?this.A(e):this.$(e)}M(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}S(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==u&&O(this._$AH)?this._$AA.nextSibling.data=e:this.S(E.createTextNode(e)),this._$AH=e}T(e){var t;const{values:i,_$litType$:s}=e,r=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=H.createElement(s.h,this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.m(i);else{const o=new Ce(r,this),h=o.p(this.options);o.m(i),this.S(h),this._$AH=o}}_$AC(e){let t=le.get(e.strings);return t===void 0&&le.set(e.strings,t=new H(e)),t}A(e){te(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const r of e)s===t.length?t.push(i=new N(this.M(P()),this.M(P()),this,this.options)):i=t[s],i._$AI(r),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cg=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class M{constructor(e,t,i,s,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,s){const r=this.strings;let o=!1;if(r===void 0)e=x(this,e,t,0),o=!O(e)||e!==this._$AH&&e!==S,o&&(this._$AH=e);else{const h=e;let l,a;for(e=r[0],l=0;l<r.length-1;l++)a=x(this,h[i+l],t,l),a===S&&(a=this._$AH[l]),o||(o=!O(a)||a!==this._$AH[l]),a===u?e=u:e!==u&&(e+=(a??"")+r[l+1]),this._$AH[l]=a}o&&!s&&this.k(e)}k(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class xe extends M{constructor(){super(...arguments),this.type=3}k(e){this.element[this.name]=e===u?void 0:e}}const Pe=A?A.emptyScript:"";class Oe extends M{constructor(){super(...arguments),this.type=4}k(e){e&&e!==u?this.element.setAttribute(this.name,Pe):this.element.removeAttribute(this.name)}}class Ue extends M{constructor(e,t,i,s,r){super(e,t,i,s,r),this.type=5}_$AI(e,t=this){var i;if((e=(i=x(this,e,t,0))!==null&&i!==void 0?i:u)===S)return;const s=this._$AH,r=e===u&&s!==u||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==u&&(s===u||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}}class He{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){x(this,e)}}const ae=window.litHtmlPolyfillSupport;ae==null||ae(H,N),((V=globalThis.litHtmlVersions)!==null&&V!==void 0?V:globalThis.litHtmlVersions=[]).push("2.1.1");/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright 2017 Google LLC
|
|
16
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/var K,W;class T extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=we(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!1)}render(){return S}}T.finalized=!0,T._$litElement$=!0,(K=globalThis.litElementHydrateSupport)===null||K===void 0||K.call(globalThis,{LitElement:T});const ce=globalThis.litElementPolyfillSupport;ce==null||ce({LitElement:T}),((W=globalThis.litElementVersions)!==null&&W!==void 0?W:globalThis.litElementVersions=[]).push("3.1.1");/**
|
|
18
|
-
* @license
|
|
19
|
-
* Copyright 2017 Google LLC
|
|
20
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const Ne=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}};function f(n){return(e,t)=>t!==void 0?((i,s,r)=>{s.constructor.createProperty(r,i)})(n,e,t):Ne(n,e)}/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/function he(n){return f({...n,state:!0})}/**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2021 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/var q;((q=window.HTMLSlotElement)===null||q===void 0?void 0:q.prototype.assignedElements)!=null;var Te=Object.defineProperty,de=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ue=(n,e,t)=>e in n?Te(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,pe=(n,e)=>{for(var t in e||(e={}))ke.call(e,t)&&ue(n,t,e[t]);if(de)for(var t of de(e))Le.call(e,t)&&ue(n,t,e[t]);return n};const Me={composed:!0};class ve extends Event{constructor(e,t={}){super(e,pe(pe({},Me),t));this.detail=t.detail||{}}}var De=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,Ie=(n,e,t,i)=>{for(var s=i>1?void 0:i?Re(e,t):e,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=(i?o(e,t,s):o(s))||s);return i&&s&&De(e,t,s),s};const ze=n=>{class e extends n{constructor(){super(...arguments);this.active=!1}}return Ie([f({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Be=Object.defineProperty,je=Object.getOwnPropertyDescriptor,fe=(n,e,t,i)=>{for(var s=i>1?void 0:i?je(e,t):e,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=(i?o(e,t,s):o(s))||s);return i&&s&&Be(e,t,s),s};const Ve=(n,e)=>{class t extends e{constructor(){super(...arguments);this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(s){this._labelSlotHasContent=s.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return w`${this._labelSlotHasContent===!1?w`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${n||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return fe([f({type:String})],t.prototype,"label",2),fe([he()],t.prototype,"_labelSlotHasContent",2),t};class k extends ve{}k.SELECTED="selected",k.UNSELECTED="unselected";var Ke=Object.defineProperty,We=Object.getOwnPropertyDescriptor,be=(n,e,t,i)=>{for(var s=i>1?void 0:i?We(e,t):e,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=(i?o(e,t,s):o(s))||s);return i&&s&&Ke(e,t,s),s};const qe=n=>{class e extends n{constructor(...i){super(...i);this._selectable=!1,this.selected=!1,this.addEventListener("click",this._toggleSelect),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(i){const s=this._selectable;this._selectable=i,this.setAttribute("tabindex",`${i?"0":"-1"}`),this.requestUpdate("selected",s)}handleSelectKeydown(i){i.key!==" "&&i.key!=="Enter"||(i.preventDefault(),this._toggleSelect())}_toggleSelect(){this.selectable!==!1&&(this.selected=!this.selected,this.dispatchEvent(new k(this.selected?k.SELECTED:k.UNSELECTED,this)))}}return be([f({type:Boolean,reflect:!0})],e.prototype,"selectable",1),be([f({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};class $ extends ve{}$.SHOW_CHILDREN="show-children",$.HIDE_CHILDREN="hide-children",$.CLICK_LABEL="click-label";var Je=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,L=(n,e,t,i)=>{for(var s=i>1?void 0:i?Ze(e,t):e,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=(i?o(e,t,s):o(s))||s);return i&&s&&Je(e,t,s),s};class g extends qe(ze(Ve("label",T))){constructor(){super(...arguments);this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1}onCaretClicked(){this.showChildren=!this.showChildren;const e=this.showChildren?$.SHOW_CHILDREN:$.HIDE_CHILDREN,t=new $(e);this.dispatchEvent(t)}onLabelClicked(){const e=new $($.CLICK_LABEL);this.dispatchEvent(e)}iconSlotChanged(e){this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}render(){return w`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?w`<button id="caret-button" @click="${this.onCaretClicked}"><uui-symbol-expand ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} <button id="label-button" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}"><slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this.iconSlotChanged}"></slot>${this.renderLabel()}</button><div id="label-button-background"></div><slot id="actions-container" name="actions"></slot>${this.loading?w`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?w`<slot></slot>`:""}`}}g.styles=[_e`:host{display:block;background-color:var(--uui-interface-surface,#fefefe);--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1)}#menu-item{position:relative;display:flex;align-items:stretch;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:var(--uui-size-8,24px) 1fr;grid-template-rows:1fr;white-space:nowrap}button{display:block;font-family:inherit;padding:0;text-align:left;box-shadow:none;border:none;color:inherit;background-color:transparent;cursor:pointer;z-index:1;min-height:var(--uui-size-12,36px)}#label-button{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#caret-button+#label-button{padding-left:0}#caret-button{width:100%;height:100%;display:flex;align-items:center;justify-content:center}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0}#caret-button:hover~#label-button-background,#label-button:hover+#label-button-background{background-color:var(--uui-interface-surface-hover,#fafafa)}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}#menu-item:hover #actions-container{opacity:1}#loader{position:absolute;width:100%;bottom:0}#icon{font-size:16px;margin-bottom:var(--uui-size-1,3px);margin-right:var(--uui-size-2,6px);display:inline-block}:host([disabled]) #label-button{color:var(--uui-interface-surface-contrast-disabled)}:host([disabled]) #label-button-background{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([active]) button{color:var(--uui-interface-active-contrast,#162335)}:host([active]) button:hover{color:var(--uui-interface-active-contrast-hover,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-interface-active,#f5c1bc)}:host([active]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-active-hover,#f5c1bc)}:host([active][disabled]) #label-button{color:var(--uui-interface-active-contrast-disabled,#363636);background-color:var(--uui-interface-active-disabled,#dbd4d4)}:host([selected]) button{color:var(--uui-interface-select-contrast,#fefefe)}:host([selected]) button:hover{color:var(--uui-interface-select-contrast-hover,#fefefe)}:host([selected]) #label-button-background{background-color:var(--uui-interface-select,#3544b1)}:host([selected]) #caret-button:hover~#label-button-background,:host([selected]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-select-hover,#4656c8)}:host([selected][disabled]) #label-button{color:var(--uui-interface-select-contrast-disabled,#e4e4e4);background-color:var(--uui-interface-select-disabled,#575757)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],L([f({type:Boolean,reflect:!0})],g.prototype,"disabled",2),L([f({type:Boolean,reflect:!0,attribute:"show-children"})],g.prototype,"showChildren",2),L([f({type:Boolean,attribute:"has-children"})],g.prototype,"hasChildren",2),L([f({type:Boolean,attribute:"loading"})],g.prototype,"loading",2),L([he()],g.prototype,"iconSlotHasContent",2),((n,e,t)=>{if(n.indexOf("-")>0===!1){console.error(`${n} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}customElements.get(n)?console.error(`${n} is already defined`):customElements.define(n,e,t)})("uui-menu-item",g)});
|
|
30
|
-
//# sourceMappingURL=uui-menu-item.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uui-menu-item.min.js","sources":["../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/lit-html/lit-html.js","../../../node_modules/lit/node_modules/lit-element/lit-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../../../node_modules/@lit/reactive-element/decorators/state.js","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.js","../../uui-base/lib/events/index.js","../../uui-base/lib/mixins/index.js","../lib/uui-menu-item.element.js","../../uui-base/lib/registration/index.js","../lib/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,e=Symbol(),n=new Map;class s{constructor(t,n){if(this._$cssResult$=!0,n!==e)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t}get styleSheet(){let e=n.get(this.cssText);return t&&void 0===e&&(n.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const o=t=>new s(\"string\"==typeof t?t:t+\"\",e),r=(t,...n)=>{const o=1===t.length?t[0]:n.reduce(((e,n,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(n)+t[s+1]),t[0]);return new s(o,e)},i=(e,n)=>{t?e.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((t=>{const n=document.createElement(\"style\"),s=window.litNonce;void 0!==s&&n.setAttribute(\"nonce\",s),n.textContent=t.cssText,e.appendChild(n)}))},S=t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const n of t.cssRules)e+=n.cssText;return o(e)})(t):t;export{s as CSSResult,i as adoptStyles,r as css,S as getCompatibleStyle,t as supportsAdoptingStyleSheets,o as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as i}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var s;const e=window.trustedTypes,r=e?e.emptyScript:\"\",h=window.reactiveElementPolyfillSupport,o={toAttribute(t,i){switch(i){case Boolean:t=t?r:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},n=(t,i)=>i!==t&&(i==i||t==t),l={attribute:!0,type:String,converter:o,reflect:!1,hasChanged:n};class a extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Eh(s,i);void 0!==e&&(this._$Eu.set(e,s),t.push(e))})),t}static createProperty(t,i=l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=\"symbol\"==typeof t?Symbol():\"__\"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l}static finalize(){if(this.hasOwnProperty(\"finalized\"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty(\"properties\")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(t(i))}else void 0!==i&&s.push(t(i));return s}static _$Eh(t,i){const s=i.attribute;return!1===s?void 0:\"string\"==typeof s?s:\"string\"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ES(t,i,s=l){var e,r;const h=this.constructor._$Eh(t,s);if(void 0!==h&&!0===s.reflect){const n=(null!==(r=null===(e=s.converter)||void 0===e?void 0:e.toAttribute)&&void 0!==r?r:o.toAttribute)(i,s.type);this._$Ei=t,null==n?this.removeAttribute(h):this.setAttribute(h,n),this._$Ei=null}}_$AK(t,i){var s,e,r;const h=this.constructor,n=h._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=h.getPropertyOptions(n),l=t.converter,a=null!==(r=null!==(e=null===(s=l)||void 0===s?void 0:s.fromAttribute)&&void 0!==e?e:\"function\"==typeof l?l:null)&&void 0!==r?r:o.fromAttribute;this._$Ei=n,this[n]=a(i,t.type),this._$Ei=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||n)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}a.finalized=!0,a.elementProperties=new Map,a.elementStyles=[],a.shadowRootOptions={mode:\"open\"},null==h||h({ReactiveElement:a}),(null!==(s=globalThis.reactiveElementVersions)&&void 0!==s?s:globalThis.reactiveElementVersions=[]).push(\"1.2.0\");export{a as ReactiveElement,o as defaultConverter,n as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar t;const i=globalThis.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=`lit$${(Math.random()+\"\").slice(9)}$`,o=\"?\"+e,n=`<${o}>`,l=document,h=(t=\"\")=>l.createComment(t),r=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,d=Array.isArray,u=t=>{var i;return d(t)||\"function\"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])},c=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ \t\\n\f\\r](?:([^\\s\"'>=/]+)([ \t\\n\f\\r]*=[ \t\\n\f\\r]*(?:[^ \t\\n\f\\r\"'`<>=]|(\"|')|))|$)/g,_=/'/g,m=/\"/g,g=/^(?:script|style|textarea)$/i,p=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),$=p(1),y=p(2),b=Symbol.for(\"lit-noChange\"),w=Symbol.for(\"lit-nothing\"),T=new WeakMap,x=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new N(i.insertBefore(h(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l},A=l.createTreeWalker(l,129,null,!1),C=(t,i)=>{const o=t.length-1,l=[];let h,r=2===i?\"<svg>\":\"\",d=c;for(let i=0;i<o;i++){const s=t[i];let o,u,p=-1,$=0;for(;$<s.length&&(d.lastIndex=$,u=d.exec(s),null!==u);)$=d.lastIndex,d===c?\"!--\"===u[1]?d=v:void 0!==u[1]?d=a:void 0!==u[2]?(g.test(u[2])&&(h=RegExp(\"</\"+u[2],\"g\")),d=f):void 0!==u[3]&&(d=f):d===f?\">\"===u[0]?(d=null!=h?h:c,p=-1):void 0===u[1]?p=-2:(p=d.lastIndex-u[2].length,o=u[1],d=void 0===u[3]?f:'\"'===u[3]?m:_):d===m||d===_?d=f:d===v||d===a?d=c:(d=f,h=void 0);const y=d===f&&t[i+1].startsWith(\"/>\")?\" \":\"\";r+=d===c?s+n:p>=0?(l.push(o),s.slice(0,p)+\"$lit$\"+s.slice(p)+e+y):s+e+(-2===p?(l.push(void 0),i):y)}const u=r+(t[o]||\"<?>\")+(2===i?\"</svg>\":\"\");if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return[void 0!==s?s.createHTML(u):u,l]};class E{constructor({strings:t,_$litType$:s},n){let l;this.parts=[];let r=0,d=0;const u=t.length-1,c=this.parts,[v,a]=C(t,s);if(this.el=E.createElement(v,n),A.currentNode=this.el.content,2===s){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=A.nextNode())&&c.length<u;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const i of l.getAttributeNames())if(i.endsWith(\"$lit$\")||i.startsWith(e)){const s=a[d++];if(t.push(i),void 0!==s){const t=l.getAttribute(s.toLowerCase()+\"$lit$\").split(e),i=/([.?@])?(.*)/.exec(s);c.push({type:1,index:r,name:i[2],strings:t,ctor:\".\"===i[1]?M:\"?\"===i[1]?H:\"@\"===i[1]?I:S})}else c.push({type:6,index:r})}for(const i of t)l.removeAttribute(i)}if(g.test(l.tagName)){const t=l.textContent.split(e),s=t.length-1;if(s>0){l.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)l.append(t[i],h()),A.nextNode(),c.push({type:2,index:++r});l.append(t[s],h())}}}else if(8===l.nodeType)if(l.data===o)c.push({type:2,index:r});else{let t=-1;for(;-1!==(t=l.data.indexOf(e,t+1));)c.push({type:7,index:r}),t+=e.length-1}r++}}static createElement(t,i){const s=l.createElement(\"template\");return s.innerHTML=t,s}}function P(t,i,s=t,e){var o,n,l,h;if(i===b)return i;let d=void 0!==e?null===(o=s._$Cl)||void 0===o?void 0:o[e]:s._$Cu;const u=r(i)?void 0:i._$litDirective$;return(null==d?void 0:d.constructor)!==u&&(null===(n=null==d?void 0:d._$AO)||void 0===n||n.call(d,!1),void 0===u?d=void 0:(d=new u(t),d._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Cl)&&void 0!==l?l:h._$Cl=[])[e]=d:s._$Cu=d),void 0!==d&&(i=P(t,d._$AS(t,i.values),d,e)),i}class V{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:l).importNode(s,!0);A.currentNode=o;let n=A.nextNode(),h=0,r=0,d=e[0];for(;void 0!==d;){if(h===d.index){let i;2===d.type?i=new N(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new L(n,this,t)),this.v.push(i),d=e[++r]}h!==(null==d?void 0:d.index)&&(n=A.nextNode(),h++)}return o}m(t){let i=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class N{constructor(t,i,s,e){var o;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cg=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=P(this,t,i),r(t)?t===w||null==t||\"\"===t?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==b&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):u(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==w&&r(this._$AH)?this._$AA.nextSibling.data=t:this.S(l.createTextNode(t)),this._$AH=t}T(t){var i;const{values:s,_$litType$:e}=t,o=\"number\"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=E.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.m(s);else{const t=new V(o,this),i=t.p(this.options);t.m(s),this.S(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new E(t)),i}A(t){d(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new N(this.M(h()),this.M(h()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class S{constructor(t,i,s,e,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,i,0),n=!r(t)||t!==this._$AH&&t!==b,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=P(this,e[s+l],i,l),h===b&&(h=this._$AH[l]),n||(n=!r(h)||h!==this._$AH[l]),h===w?t=w:t!==w&&(t+=(null!=h?h:\"\")+o[l+1]),this._$AH[l]=h}n&&!e&&this.k(t)}k(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:\"\")}}class M extends S{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===w?void 0:t}}const k=i?i.emptyScript:\"\";class H extends S{constructor(){super(...arguments),this.type=4}k(t){t&&t!==w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=P(this,t,i,0))&&void 0!==s?s:w)===b)return;const e=this._$AH,o=t===w&&e!==w||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==w&&(e===w||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;\"function\"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const R={P:\"$lit$\",V:e,L:o,I:1,N:C,R:V,D:u,j:P,H:N,O:S,F:H,B:I,W:M,Z:L},z=window.litHtmlPolyfillSupport;null==z||z(E,N),(null!==(t=globalThis.litHtmlVersions)&&void 0!==t?t:globalThis.litHtmlVersions=[]).push(\"2.1.1\");export{R as _$LH,$ as html,b as noChange,w as nothing,x as render,y as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push(\"3.1.1\");export{s as LitElement,r as UpdatingElement,h as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst i=(i,e)=>\"method\"===e.kind&&e.descriptor&&!(\"value\"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i)}}:{kind:\"field\",key:Symbol(),placement:\"own\",descriptor:{},originalKey:e.key,initializer(){\"function\"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,i)}};function e(e){return(n,t)=>void 0!==t?((i,e,n)=>{e.constructor.createProperty(n,i)})(e,n,t):i(e,n)}export{e as property};\n//# sourceMappingURL=property.js.map\n","import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n","import{decorateProperty as o}from\"./base.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var n;const e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(o,n)=>o.assignedElements(n):(o,n)=>o.assignedNodes(n).filter((o=>o.nodeType===Node.ELEMENT_NODE));function l(n){const{slot:l,selector:t}=null!=n?n:{};return o({descriptor:o=>({get(){var o;const r=\"slot\"+(l?`[name=${l}]`:\":not([name])\"),i=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(r),s=null!=i?e(i,n):[];return t?s.filter((o=>o.matches(t))):s},enumerable:!0,configurable:!0})})}export{l as queryAssignedElements};\n//# sourceMappingURL=query-assigned-elements.js.map\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nconst DefaultInit = {\n composed: true\n};\nclass UUIEvent extends Event {\n constructor(evName, eventInit = {}) {\n super(evName, __spreadValues(__spreadValues({}, DefaultInit), eventInit));\n this.detail = eventInit.detail || {};\n }\n}\n\nexport { UUIEvent };\n","import { property, state } from 'lit/decorators.js';\nimport { html } from 'lit';\nimport { UUIEvent } from '@umbraco-ui/uui-base/lib/events';\n\nvar __defProp$3 = Object.defineProperty;\nvar __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$3 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$3(target, key, result);\n return result;\n};\nconst ActiveMixin = (superClass) => {\n class ActiveMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this.active = false;\n }\n }\n __decorateClass$3([\n property({ type: Boolean, reflect: true })\n ], ActiveMixinClass.prototype, \"active\", 2);\n return ActiveMixinClass;\n};\n\nvar __defProp$2 = Object.defineProperty;\nvar __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$2 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$2(target, key, result);\n return result;\n};\nconst LabelMixin = (labelSlotName, superClass) => {\n class LabelMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this._labelSlotHasContent = false;\n }\n connectedCallback() {\n super.connectedCallback();\n if (!this.label) {\n console.warn(this.tagName + \" needs a `label`\", this);\n }\n }\n labelSlotChanged(e) {\n this._labelSlotHasContent = e.target.assignedNodes({ flatten: true }).length > 0;\n }\n renderLabel() {\n return html`\n ${this._labelSlotHasContent === false ? html`<span class=\"label\">${this.label}</span>` : \"\"}\n <slot\n class=\"label\"\n style=${this._labelSlotHasContent ? \"\" : \"visibility: hidden\"}\n name=${labelSlotName ? labelSlotName : \"\"}\n @slotchange=${this.labelSlotChanged}></slot>\n `;\n }\n }\n __decorateClass$2([\n property({ type: String })\n ], LabelMixinClass.prototype, \"label\", 2);\n __decorateClass$2([\n state()\n ], LabelMixinClass.prototype, \"_labelSlotHasContent\", 2);\n return LabelMixinClass;\n};\n\nclass UUISelectableEvent extends UUIEvent {\n}\nUUISelectableEvent.SELECTED = \"selected\";\nUUISelectableEvent.UNSELECTED = \"unselected\";\n\nvar __defProp$1 = Object.defineProperty;\nvar __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$1 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$1(target, key, result);\n return result;\n};\nconst SelectableMixin = (superClass) => {\n class SelectableMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n this._selectable = false;\n this.selected = false;\n this.addEventListener(\"click\", this._toggleSelect);\n this.addEventListener(\"keydown\", this.handleSelectKeydown);\n }\n get selectable() {\n return this._selectable;\n }\n set selectable(newVal) {\n const oldVal = this._selectable;\n this._selectable = newVal;\n this.setAttribute(\"tabindex\", `${newVal ? \"0\" : \"-1\"}`);\n this.requestUpdate(\"selected\", oldVal);\n }\n handleSelectKeydown(e) {\n if (e.key !== \" \" && e.key !== \"Enter\")\n return;\n e.preventDefault();\n this._toggleSelect();\n }\n _toggleSelect() {\n if (this.selectable === false)\n return;\n this.selected = !this.selected;\n this.dispatchEvent(new UUISelectableEvent(this.selected ? UUISelectableEvent.SELECTED : UUISelectableEvent.UNSELECTED, this));\n }\n }\n __decorateClass$1([\n property({ type: Boolean, reflect: true })\n ], SelectableMixinClass.prototype, \"selectable\", 1);\n __decorateClass$1([\n property({ type: Boolean, reflect: true })\n ], SelectableMixinClass.prototype, \"selected\", 2);\n return SelectableMixinClass;\n};\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nconst SelectOnlyMixin = (superClass) => {\n class SelectOnlyMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this._selectOnly = false;\n }\n get selectOnly() {\n return this._selectOnly;\n }\n set selectOnly(newVal) {\n const oldVal = this._selectOnly;\n this._selectOnly = newVal;\n this.requestUpdate(\"selectOnly\", oldVal);\n }\n }\n __decorateClass([\n property({ type: Boolean, reflect: true, attribute: \"select-only\" })\n ], SelectOnlyMixinClass.prototype, \"selectOnly\", 1);\n return SelectOnlyMixinClass;\n};\n\nexport { ActiveMixin, LabelMixin, SelectOnlyMixin, SelectableMixin };\n","import { LitElement, html, css } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { SelectableMixin, ActiveMixin, LabelMixin } from '@umbraco-ui/uui-base/lib/mixins';\nimport { UUIEvent } from '@umbraco-ui/uui-base/lib/events';\n\nclass UUIMenuItemEvent extends UUIEvent {\n}\nUUIMenuItemEvent.SHOW_CHILDREN = \"show-children\";\nUUIMenuItemEvent.HIDE_CHILDREN = \"hide-children\";\nUUIMenuItemEvent.CLICK_LABEL = \"click-label\";\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nclass UUIMenuItemElement extends SelectableMixin(ActiveMixin(LabelMixin(\"label\", LitElement))) {\n constructor() {\n super(...arguments);\n this.disabled = false;\n this.showChildren = false;\n this.hasChildren = false;\n this.loading = false;\n this.iconSlotHasContent = false;\n }\n onCaretClicked() {\n this.showChildren = !this.showChildren;\n const eventName = this.showChildren ? UUIMenuItemEvent.SHOW_CHILDREN : UUIMenuItemEvent.HIDE_CHILDREN;\n const event = new UUIMenuItemEvent(eventName);\n this.dispatchEvent(event);\n }\n onLabelClicked() {\n const event = new UUIMenuItemEvent(UUIMenuItemEvent.CLICK_LABEL);\n this.dispatchEvent(event);\n }\n iconSlotChanged(e) {\n this.iconSlotHasContent = e.target.assignedNodes({ flatten: true }).length > 0;\n }\n render() {\n return html`\n <div id=\"menu-item\" aria-label=\"menuitem\" role=\"menuitem\">\n ${this.hasChildren ? html`<button id=\"caret-button\" @click=${this.onCaretClicked}>\n <uui-symbol-expand ?open=${this.showChildren}></uui-symbol-expand>\n </button>` : \"\"}\n <button\n id=\"label-button\"\n @click=${this.onLabelClicked}\n ?disabled=${this.disabled}\n aria-label=\"${this.label}\">\n <slot\n name=\"icon\"\n id=\"icon\"\n style=${this.iconSlotHasContent ? \"\" : \"display: none;\"}\n @slotchange=${this.iconSlotChanged}></slot>\n ${this.renderLabel()}\n </button>\n <div id=\"label-button-background\"></div>\n <slot id=\"actions-container\" name=\"actions\"></slot>\n ${this.loading ? html`<uui-loader-bar id=\"loader\"></uui-loader-bar>` : \"\"}\n </div>\n ${this.showChildren ? html`<slot></slot>` : \"\"}\n `;\n }\n}\nUUIMenuItemElement.styles = [\n css`\n :host {\n display: block;\n background-color: var(--uui-interface-surface,#fefefe);\n /** consider transparent. */\n --uui-menu-item-child-indent: calc(var(--uui-menu-item-indent, 0) + 1);\n }\n\n #menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n padding-left: calc(var(--uui-menu-item-indent, 0) * var(--uui-size-4,12px));\n\n display: grid;\n grid-template-columns: var(--uui-size-8,24px) 1fr;\n grid-template-rows: 1fr;\n white-space: nowrap;\n }\n\n button {\n display: block;\n font-family: inherit;\n\n padding: 0;\n text-align: left;\n box-shadow: none;\n border: none;\n color: inherit;\n background-color: transparent;\n cursor: pointer;\n z-index: 1;\n /* padding: 0 var(--uui-size-base-unit) 0 var(--uui-size-base-unit); */\n min-height: var(--uui-size-12,36px);\n }\n /* button:hover {\n color: var(--uui-interface-contrast-hover);\n } */\n\n #label-button {\n flex-grow: 1;\n grid-column-start: 2;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n #caret-button + #label-button {\n padding-left: 0;\n }\n\n #caret-button {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n #label-button-background {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n #label-button:hover + #label-button-background,\n #caret-button:hover ~ #label-button-background {\n background-color: var(--uui-interface-surface-hover,rgb(250, 250, 250));\n }\n\n #actions-container {\n opacity: 0;\n transition: opacity 120ms;\n grid-column-start: 3;\n }\n #menu-item:hover #actions-container {\n opacity: 1;\n }\n\n #loader {\n position: absolute;\n width: 100%;\n bottom: 0;\n }\n\n #icon {\n font-size: 16px;\n margin-bottom: var(--uui-size-1,3px);\n margin-right: var(--uui-size-2,6px);\n display: inline-block;\n }\n\n :host([disabled]) #label-button {\n color: var(--uui-interface-surface-contrast-disabled);\n }\n :host([disabled]) #label-button-background {\n background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));\n }\n :host([disabled]) #label-button:hover + #label-button-background {\n background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));\n }\n\n :host([active]) button {\n color: var(--uui-interface-active-contrast,#162335);\n }\n :host([active]) button:hover {\n color: var(--uui-interface-active-contrast-hover,#1b264f);\n }\n :host([active]) #label-button-background {\n background-color: var(--uui-interface-active,#f5c1bc);\n }\n :host([active]) #label-button:hover + #label-button-background {\n background-color: var(--uui-interface-active-hover,#f5c1bc);\n }\n :host([active][disabled]) #label-button {\n color: var(--uui-interface-active-contrast-disabled,rgb(54, 54, 54));\n background-color: var(--uui-interface-active-disabled,rgb(219, 212, 212));\n }\n\n :host([selected]) button {\n color: var(--uui-interface-select-contrast,#fefefe);\n }\n :host([selected]) button:hover {\n color: var(--uui-interface-select-contrast-hover,#fefefe);\n }\n :host([selected]) #label-button-background {\n background-color: var(--uui-interface-select,#3544b1);\n }\n :host([selected]) #label-button:hover + #label-button-background,\n :host([selected]) #caret-button:hover ~ #label-button-background {\n background-color: var(--uui-interface-select-hover,rgb(70, 86, 200));\n }\n :host([selected][disabled]) #label-button {\n color: var(--uui-interface-select-contrast-disabled,rgb(228, 228, 228));\n background-color: var(--uui-interface-select-disabled,rgb(87, 87, 87));\n }\n\n slot:not([name]) {\n position: relative;\n display: block;\n width: 100%;\n }\n slot:not([name]) {\n --uui-menu-item-indent: var(--uui-menu-item-child-indent);\n }\n\n slot[name='actions'] {\n display: flex;\n align-items: center;\n --uui-button-height: calc(var(--uui-size-base-unit) * 4);\n margin-right: var(--uui-size-base-unit);\n }\n `\n];\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], UUIMenuItemElement.prototype, \"disabled\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true, attribute: \"show-children\" })\n], UUIMenuItemElement.prototype, \"showChildren\", 2);\n__decorateClass([\n property({ type: Boolean, attribute: \"has-children\" })\n], UUIMenuItemElement.prototype, \"hasChildren\", 2);\n__decorateClass([\n property({ type: Boolean, attribute: \"loading\" })\n], UUIMenuItemElement.prototype, \"loading\", 2);\n__decorateClass([\n state()\n], UUIMenuItemElement.prototype, \"iconSlotHasContent\", 2);\n\nexport { UUIMenuItemElement };\n","const defineElement = (name, constructor, options) => {\n const isValidElementName = name.indexOf(\"-\") > 0;\n if (isValidElementName === false) {\n console.error(`${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);\n return;\n }\n if (customElements.get(name)) {\n console.error(`${name} is already defined`);\n } else {\n customElements.define(name, constructor, options);\n }\n};\n\nexport { defineElement };\n","import { UUIMenuItemElement } from './uui-menu-item.element';\nimport { defineElement } from '@umbraco-ui/uui-base/lib/registration';\n\ndefineElement('uui-menu-item', UUIMenuItemElement as any);\n"],"names":["t","e","n","s","o","r","i","S","h","l","a","__defProp","property","state"],"mappings":";;;;;EAAA;EACA;EACA;EACA;EACA;EACA,MAAMA,GAAC,CAAC,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,GAAG,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa,CAAC,SAAS,CAACC,GAAC,CAAC,MAAM,EAAE,CAACC,GAAC,CAAC,IAAI,GAAG,CAAC,MAAMC,GAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,GAAGF,GAAC,CAAC,MAAM,KAAK,CAAC,mEAAmE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAC,CAAC,IAAI,UAAU,EAAE,CAAC,IAAI,CAAC,CAACC,GAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAOF,GAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAGE,GAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,C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K;EACtD,EAAE,MAAM,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;EACnD,EAAE,IAAI,kBAAkB,KAAK,KAAK,EAAE;EACpC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,sHAAsH,CAAC,CAAC,CAAC;EACnJ,IAAI,OAAO;EACX,GAAG;EACH,EAAE,IAAI,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;EAChC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC;EAChD,GAAG,MAAM;EACT,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;EACtD,GAAG;EACH,CAAC;;ECTD,aAAa,CAAC,eAAe,EAAE,kBAAkB,CAAC;;;;;;"}
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit';
|
|
2
|
-
import { property, state } from 'lit/decorators.js';
|
|
3
|
-
import { SelectableMixin, ActiveMixin, LabelMixin } from '@umbraco-ui/uui-base/lib/mixins';
|
|
4
|
-
import { UUIEvent } from '@umbraco-ui/uui-base/lib/events';
|
|
5
|
-
|
|
6
|
-
class UUIMenuItemEvent extends UUIEvent {
|
|
7
|
-
}
|
|
8
|
-
UUIMenuItemEvent.SHOW_CHILDREN = "show-children";
|
|
9
|
-
UUIMenuItemEvent.HIDE_CHILDREN = "hide-children";
|
|
10
|
-
UUIMenuItemEvent.CLICK_LABEL = "click-label";
|
|
11
|
-
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
15
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
17
|
-
if (decorator = decorators[i])
|
|
18
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
-
if (kind && result)
|
|
20
|
-
__defProp(target, key, result);
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
class UUIMenuItemElement extends SelectableMixin(ActiveMixin(LabelMixin("label", LitElement))) {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
this.disabled = false;
|
|
27
|
-
this.showChildren = false;
|
|
28
|
-
this.hasChildren = false;
|
|
29
|
-
this.loading = false;
|
|
30
|
-
this.iconSlotHasContent = false;
|
|
31
|
-
}
|
|
32
|
-
onCaretClicked() {
|
|
33
|
-
this.showChildren = !this.showChildren;
|
|
34
|
-
const eventName = this.showChildren ? UUIMenuItemEvent.SHOW_CHILDREN : UUIMenuItemEvent.HIDE_CHILDREN;
|
|
35
|
-
const event = new UUIMenuItemEvent(eventName);
|
|
36
|
-
this.dispatchEvent(event);
|
|
37
|
-
}
|
|
38
|
-
onLabelClicked() {
|
|
39
|
-
const event = new UUIMenuItemEvent(UUIMenuItemEvent.CLICK_LABEL);
|
|
40
|
-
this.dispatchEvent(event);
|
|
41
|
-
}
|
|
42
|
-
iconSlotChanged(e) {
|
|
43
|
-
this.iconSlotHasContent = e.target.assignedNodes({ flatten: true }).length > 0;
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
return html`
|
|
47
|
-
<div id="menu-item" aria-label="menuitem" role="menuitem">
|
|
48
|
-
${this.hasChildren ? html`<button id="caret-button" @click=${this.onCaretClicked}>
|
|
49
|
-
<uui-symbol-expand ?open=${this.showChildren}></uui-symbol-expand>
|
|
50
|
-
</button>` : ""}
|
|
51
|
-
<button
|
|
52
|
-
id="label-button"
|
|
53
|
-
@click=${this.onLabelClicked}
|
|
54
|
-
?disabled=${this.disabled}
|
|
55
|
-
aria-label="${this.label}">
|
|
56
|
-
<slot
|
|
57
|
-
name="icon"
|
|
58
|
-
id="icon"
|
|
59
|
-
style=${this.iconSlotHasContent ? "" : "display: none;"}
|
|
60
|
-
@slotchange=${this.iconSlotChanged}></slot>
|
|
61
|
-
${this.renderLabel()}
|
|
62
|
-
</button>
|
|
63
|
-
<div id="label-button-background"></div>
|
|
64
|
-
<slot id="actions-container" name="actions"></slot>
|
|
65
|
-
${this.loading ? html`<uui-loader-bar id="loader"></uui-loader-bar>` : ""}
|
|
66
|
-
</div>
|
|
67
|
-
${this.showChildren ? html`<slot></slot>` : ""}
|
|
68
|
-
`;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
UUIMenuItemElement.styles = [
|
|
72
|
-
css`
|
|
73
|
-
:host {
|
|
74
|
-
display: block;
|
|
75
|
-
background-color: var(--uui-interface-surface,#fefefe);
|
|
76
|
-
/** consider transparent. */
|
|
77
|
-
--uui-menu-item-child-indent: calc(var(--uui-menu-item-indent, 0) + 1);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
#menu-item {
|
|
81
|
-
position: relative;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: stretch;
|
|
84
|
-
padding-left: calc(var(--uui-menu-item-indent, 0) * var(--uui-size-4,12px));
|
|
85
|
-
|
|
86
|
-
display: grid;
|
|
87
|
-
grid-template-columns: var(--uui-size-8,24px) 1fr;
|
|
88
|
-
grid-template-rows: 1fr;
|
|
89
|
-
white-space: nowrap;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
button {
|
|
93
|
-
display: block;
|
|
94
|
-
font-family: inherit;
|
|
95
|
-
|
|
96
|
-
padding: 0;
|
|
97
|
-
text-align: left;
|
|
98
|
-
box-shadow: none;
|
|
99
|
-
border: none;
|
|
100
|
-
color: inherit;
|
|
101
|
-
background-color: transparent;
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
z-index: 1;
|
|
104
|
-
/* padding: 0 var(--uui-size-base-unit) 0 var(--uui-size-base-unit); */
|
|
105
|
-
min-height: var(--uui-size-12,36px);
|
|
106
|
-
}
|
|
107
|
-
/* button:hover {
|
|
108
|
-
color: var(--uui-interface-contrast-hover);
|
|
109
|
-
} */
|
|
110
|
-
|
|
111
|
-
#label-button {
|
|
112
|
-
flex-grow: 1;
|
|
113
|
-
grid-column-start: 2;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
text-overflow: ellipsis;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
#caret-button + #label-button {
|
|
120
|
-
padding-left: 0;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
#caret-button {
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
#label-button-background {
|
|
132
|
-
position: absolute;
|
|
133
|
-
top: 0;
|
|
134
|
-
left: 0;
|
|
135
|
-
right: 0;
|
|
136
|
-
bottom: 0;
|
|
137
|
-
}
|
|
138
|
-
#label-button:hover + #label-button-background,
|
|
139
|
-
#caret-button:hover ~ #label-button-background {
|
|
140
|
-
background-color: var(--uui-interface-surface-hover,rgb(250, 250, 250));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
#actions-container {
|
|
144
|
-
opacity: 0;
|
|
145
|
-
transition: opacity 120ms;
|
|
146
|
-
grid-column-start: 3;
|
|
147
|
-
}
|
|
148
|
-
#menu-item:hover #actions-container {
|
|
149
|
-
opacity: 1;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
#loader {
|
|
153
|
-
position: absolute;
|
|
154
|
-
width: 100%;
|
|
155
|
-
bottom: 0;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
#icon {
|
|
159
|
-
font-size: 16px;
|
|
160
|
-
margin-bottom: var(--uui-size-1,3px);
|
|
161
|
-
margin-right: var(--uui-size-2,6px);
|
|
162
|
-
display: inline-block;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
:host([disabled]) #label-button {
|
|
166
|
-
color: var(--uui-interface-surface-contrast-disabled);
|
|
167
|
-
}
|
|
168
|
-
:host([disabled]) #label-button-background {
|
|
169
|
-
background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));
|
|
170
|
-
}
|
|
171
|
-
:host([disabled]) #label-button:hover + #label-button-background {
|
|
172
|
-
background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:host([active]) button {
|
|
176
|
-
color: var(--uui-interface-active-contrast,#162335);
|
|
177
|
-
}
|
|
178
|
-
:host([active]) button:hover {
|
|
179
|
-
color: var(--uui-interface-active-contrast-hover,#1b264f);
|
|
180
|
-
}
|
|
181
|
-
:host([active]) #label-button-background {
|
|
182
|
-
background-color: var(--uui-interface-active,#f5c1bc);
|
|
183
|
-
}
|
|
184
|
-
:host([active]) #label-button:hover + #label-button-background {
|
|
185
|
-
background-color: var(--uui-interface-active-hover,#f5c1bc);
|
|
186
|
-
}
|
|
187
|
-
:host([active][disabled]) #label-button {
|
|
188
|
-
color: var(--uui-interface-active-contrast-disabled,rgb(54, 54, 54));
|
|
189
|
-
background-color: var(--uui-interface-active-disabled,rgb(219, 212, 212));
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:host([selected]) button {
|
|
193
|
-
color: var(--uui-interface-select-contrast,#fefefe);
|
|
194
|
-
}
|
|
195
|
-
:host([selected]) button:hover {
|
|
196
|
-
color: var(--uui-interface-select-contrast-hover,#fefefe);
|
|
197
|
-
}
|
|
198
|
-
:host([selected]) #label-button-background {
|
|
199
|
-
background-color: var(--uui-interface-select,#3544b1);
|
|
200
|
-
}
|
|
201
|
-
:host([selected]) #label-button:hover + #label-button-background,
|
|
202
|
-
:host([selected]) #caret-button:hover ~ #label-button-background {
|
|
203
|
-
background-color: var(--uui-interface-select-hover,rgb(70, 86, 200));
|
|
204
|
-
}
|
|
205
|
-
:host([selected][disabled]) #label-button {
|
|
206
|
-
color: var(--uui-interface-select-contrast-disabled,rgb(228, 228, 228));
|
|
207
|
-
background-color: var(--uui-interface-select-disabled,rgb(87, 87, 87));
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
slot:not([name]) {
|
|
211
|
-
position: relative;
|
|
212
|
-
display: block;
|
|
213
|
-
width: 100%;
|
|
214
|
-
}
|
|
215
|
-
slot:not([name]) {
|
|
216
|
-
--uui-menu-item-indent: var(--uui-menu-item-child-indent);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
slot[name='actions'] {
|
|
220
|
-
display: flex;
|
|
221
|
-
align-items: center;
|
|
222
|
-
--uui-button-height: calc(var(--uui-size-base-unit) * 4);
|
|
223
|
-
margin-right: var(--uui-size-base-unit);
|
|
224
|
-
}
|
|
225
|
-
`
|
|
226
|
-
];
|
|
227
|
-
__decorateClass([
|
|
228
|
-
property({ type: Boolean, reflect: true })
|
|
229
|
-
], UUIMenuItemElement.prototype, "disabled", 2);
|
|
230
|
-
__decorateClass([
|
|
231
|
-
property({ type: Boolean, reflect: true, attribute: "show-children" })
|
|
232
|
-
], UUIMenuItemElement.prototype, "showChildren", 2);
|
|
233
|
-
__decorateClass([
|
|
234
|
-
property({ type: Boolean, attribute: "has-children" })
|
|
235
|
-
], UUIMenuItemElement.prototype, "hasChildren", 2);
|
|
236
|
-
__decorateClass([
|
|
237
|
-
property({ type: Boolean, attribute: "loading" })
|
|
238
|
-
], UUIMenuItemElement.prototype, "loading", 2);
|
|
239
|
-
__decorateClass([
|
|
240
|
-
state()
|
|
241
|
-
], UUIMenuItemElement.prototype, "iconSlotHasContent", 2);
|
|
242
|
-
|
|
243
|
-
export { UUIMenuItemElement };
|