@spectrum-web-components/action-menu 1.8.0 → 1.9.0-nightly.20251013144515
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/action-menu",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-nightly.20251013144515",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/adobe/spectrum-web-components.git",
|
|
12
|
-
"directory": "packages/action-menu"
|
|
12
|
+
"directory": "first-gen/packages/action-menu"
|
|
13
13
|
},
|
|
14
14
|
"author": "Adobe",
|
|
15
15
|
"homepage": "https://opensource.adobe.com/spectrum-web-components/components/action-menu",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"css"
|
|
68
68
|
],
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@spectrum-web-components/action-button": "1.
|
|
71
|
-
"@spectrum-web-components/base": "1.
|
|
72
|
-
"@spectrum-web-components/icon": "1.
|
|
73
|
-
"@spectrum-web-components/icons-workflow": "1.
|
|
74
|
-
"@spectrum-web-components/picker": "1.
|
|
75
|
-
"@spectrum-web-components/shared": "1.
|
|
70
|
+
"@spectrum-web-components/action-button": "1.9.0-nightly.20251013144515",
|
|
71
|
+
"@spectrum-web-components/base": "1.9.0-nightly.20251013144515",
|
|
72
|
+
"@spectrum-web-components/icon": "1.9.0-nightly.20251013144515",
|
|
73
|
+
"@spectrum-web-components/icons-workflow": "1.9.0-nightly.20251013144515",
|
|
74
|
+
"@spectrum-web-components/picker": "1.9.0-nightly.20251013144515",
|
|
75
|
+
"@spectrum-web-components/shared": "1.9.0-nightly.20251013144515"
|
|
76
76
|
},
|
|
77
77
|
"types": "./src/index.d.ts",
|
|
78
78
|
"customElements": "custom-elements.json",
|
package/src/ActionMenu.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
|
15
15
|
import '@spectrum-web-components/icons-workflow/icons/sp-icon-more.js';
|
|
16
16
|
import { SlottableRequestEvent } from '@spectrum-web-components/overlay/src/slottable-request-event.js';
|
|
17
17
|
declare const ActionMenu_base: typeof PickerBase & {
|
|
18
|
-
new (...args: any[]): import("@spectrum-web-components/shared/
|
|
19
|
-
prototype: import("@spectrum-web-components/shared/
|
|
18
|
+
new (...args: any[]): import("@spectrum-web-components/core-next/shared/observe-slot-text.js").SlotTextObservingInterface;
|
|
19
|
+
prototype: import("@spectrum-web-components/core-next/shared/observe-slot-text.js").SlotTextObservingInterface;
|
|
20
20
|
} & {
|
|
21
|
-
new (...args: any[]): import("@spectrum-web-components/shared/
|
|
22
|
-
prototype: import("@spectrum-web-components/shared/
|
|
21
|
+
new (...args: any[]): import("@spectrum-web-components/core-next/shared/observe-slot-presence.js").SlotPresenceObservingInterface;
|
|
22
|
+
prototype: import("@spectrum-web-components/core-next/shared/observe-slot-presence.js").SlotPresenceObservingInterface;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* @element sp-action-menu
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon])
|
|
4
|
+
:host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon]),.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--custom-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--custom-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)))*-1)}sp-overlay:not(:defined){display:none}
|
|
5
5
|
`;
|
|
6
6
|
export default styles;
|
|
7
7
|
//# sourceMappingURL=action-menu.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-menu.css.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon])
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon]),.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--custom-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--custom-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)))*-1)}sp-overlay:not(:defined){display:none}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/action-menu.css.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
|
|
2
|
-
:host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon])
|
|
2
|
+
:host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon]),.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--custom-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--custom-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)))*-1)}sp-overlay:not(:defined){display:none}
|
|
3
3
|
`;export default o;
|
|
4
4
|
//# sourceMappingURL=action-menu.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-menu.css.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon])
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{display:inline-flex}:host([quiet]){min-width:0}:host>sp-menu{display:none}::slotted([slot=icon]),.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1*(var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--custom-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--custom-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)))*-1)}sp-overlay:not(:defined){display:none}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
package/custom-elements.json
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-action-menu.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-action-menu",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "ActionMenu",
|
|
15
|
-
"module": "/src/ActionMenu.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "sync/sp-action-menu.js",
|
|
23
|
-
"declarations": [],
|
|
24
|
-
"exports": []
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"kind": "javascript-module",
|
|
28
|
-
"path": "src/ActionMenu.js",
|
|
29
|
-
"declarations": [
|
|
30
|
-
{
|
|
31
|
-
"kind": "class",
|
|
32
|
-
"description": "",
|
|
33
|
-
"name": "ActionMenu",
|
|
34
|
-
"slots": [
|
|
35
|
-
{
|
|
36
|
-
"description": "menu items to be listed in the Action Menu",
|
|
37
|
-
"name": ""
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"description": "The icon to use for the Action Menu",
|
|
41
|
-
"name": "icon"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"description": "The label to use for the Action Menu",
|
|
45
|
-
"name": "label"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"description": "The label to use for the Action Menu (no icon space reserved)",
|
|
49
|
-
"name": "label-only"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"description": "Tooltip to be applied to the Action Button",
|
|
53
|
-
"name": "tooltip"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"members": [
|
|
57
|
-
{
|
|
58
|
-
"kind": "field",
|
|
59
|
-
"name": "selects",
|
|
60
|
-
"type": {
|
|
61
|
-
"text": "undefined | 'single'"
|
|
62
|
-
},
|
|
63
|
-
"privacy": "public",
|
|
64
|
-
"default": "undefined",
|
|
65
|
-
"attribute": "selects"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"kind": "field",
|
|
69
|
-
"name": "staticColor",
|
|
70
|
-
"type": {
|
|
71
|
-
"text": "'white' | 'black' | undefined"
|
|
72
|
-
},
|
|
73
|
-
"privacy": "public",
|
|
74
|
-
"attribute": "static-color",
|
|
75
|
-
"reflects": true
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"kind": "field",
|
|
79
|
-
"name": "listRole",
|
|
80
|
-
"type": {
|
|
81
|
-
"text": "'listbox' | 'menu'"
|
|
82
|
-
},
|
|
83
|
-
"privacy": "protected",
|
|
84
|
-
"default": "'menu'"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"kind": "field",
|
|
88
|
-
"name": "itemRole",
|
|
89
|
-
"type": {
|
|
90
|
-
"text": "string"
|
|
91
|
-
},
|
|
92
|
-
"privacy": "protected",
|
|
93
|
-
"default": "'menuitem'"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"kind": "field",
|
|
97
|
-
"name": "hasLabel",
|
|
98
|
-
"type": {
|
|
99
|
-
"text": "boolean"
|
|
100
|
-
},
|
|
101
|
-
"privacy": "private",
|
|
102
|
-
"readonly": true
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"kind": "field",
|
|
106
|
-
"name": "labelOnly",
|
|
107
|
-
"type": {
|
|
108
|
-
"text": "boolean"
|
|
109
|
-
},
|
|
110
|
-
"privacy": "private",
|
|
111
|
-
"readonly": true
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"kind": "field",
|
|
115
|
-
"name": "handleSlottableRequest",
|
|
116
|
-
"privacy": "public"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"kind": "field",
|
|
120
|
-
"name": "buttonContent",
|
|
121
|
-
"type": {
|
|
122
|
-
"text": "TemplateResult[]"
|
|
123
|
-
},
|
|
124
|
-
"privacy": "protected",
|
|
125
|
-
"readonly": true
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"kind": "method",
|
|
129
|
-
"name": "hasAccessibleLabel",
|
|
130
|
-
"privacy": "protected",
|
|
131
|
-
"return": {
|
|
132
|
-
"type": {
|
|
133
|
-
"text": "boolean"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"kind": "method",
|
|
139
|
-
"name": "warnNoLabel",
|
|
140
|
-
"privacy": "protected",
|
|
141
|
-
"return": {
|
|
142
|
-
"type": {
|
|
143
|
-
"text": "void"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"attributes": [
|
|
149
|
-
{
|
|
150
|
-
"description": "By default `sp-action-menu` does not manage a selection. If you'd like for a selection to be held by the `sp-menu` that it presents in its overlay, use `selects=\"single\" to activate this functionality.",
|
|
151
|
-
"name": "selects",
|
|
152
|
-
"type": {
|
|
153
|
-
"text": "undefined | 'single'"
|
|
154
|
-
},
|
|
155
|
-
"default": "undefined",
|
|
156
|
-
"fieldName": "selects"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "static-color",
|
|
160
|
-
"type": {
|
|
161
|
-
"text": "'white' | 'black' | undefined"
|
|
162
|
-
},
|
|
163
|
-
"fieldName": "staticColor"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"mixins": [
|
|
167
|
-
{
|
|
168
|
-
"name": "ObserveSlotPresence",
|
|
169
|
-
"package": "@spectrum-web-components/shared/src/observe-slot-presence.js"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"name": "ObserveSlotText",
|
|
173
|
-
"package": "@spectrum-web-components/shared/src/observe-slot-text.js"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"superclass": {
|
|
177
|
-
"name": "PickerBase",
|
|
178
|
-
"package": "@spectrum-web-components/picker"
|
|
179
|
-
},
|
|
180
|
-
"tagName": "sp-action-menu",
|
|
181
|
-
"customElement": true
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"exports": [
|
|
185
|
-
{
|
|
186
|
-
"kind": "js",
|
|
187
|
-
"name": "ActionMenu",
|
|
188
|
-
"declaration": {
|
|
189
|
-
"name": "ActionMenu",
|
|
190
|
-
"module": "src/ActionMenu.js"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}
|