@rcarls/rc-adaptive-menu 0.6.0 → 0.7.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/CHANGELOG.md +186 -0
- package/README.md +8 -0
- package/dist/custom-elements.json +99 -30
- package/dist/rc-adaptive-menu-DlBZgaWr.js +383 -0
- package/dist/rc-adaptive-menu-DlBZgaWr.js.map +1 -0
- package/dist/rc-adaptive-menu-define.js +3 -1
- package/dist/rc-adaptive-menu-define.js.map +1 -1
- package/dist/rc-adaptive-menu.js +3 -2
- package/dist/types/packages/rc-adaptive-menu/src/rc-adaptive-menu.d.ts +46 -14
- package/package.json +2 -2
- package/dist/rc-adaptive-menu-BwvfkD_X.js +0 -589
- package/dist/rc-adaptive-menu-BwvfkD_X.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,191 @@
|
|
|
1
1
|
# @rcarls/rc-adaptive-menu
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 54d9ead: Localize every component's built-in text. Button names, role
|
|
8
|
+
descriptions, announcements, and default labels now resolve per key from
|
|
9
|
+
the element's `messages` property, then from text registered with
|
|
10
|
+
`registerMessages(locale, catalog)` in `@rcarls/rc-common`, then from the
|
|
11
|
+
English defaults. The locale is the element's own `lang`, else
|
|
12
|
+
`<html lang>`; an ancestor's `lang` is ignored, because it usually marks
|
|
13
|
+
content rather than the interface. Components re-render when that locale
|
|
14
|
+
changes or new text is registered. `RcMessageCatalog` types the catalog,
|
|
15
|
+
and each package adds its scope to it.
|
|
16
|
+
|
|
17
|
+
Numbers a component formats as text follow the same locale:
|
|
18
|
+
`rc-progress`'s default percentage and `rc-splitter`'s `aria-valuetext`
|
|
19
|
+
use `Intl.NumberFormat`. `TypeaheadController` matches prefixes with an
|
|
20
|
+
`Intl.Collator`, so case and accents are ignored the way the locale
|
|
21
|
+
ignores them, and takes a `locale` option. `ItemsCollectionController`'s
|
|
22
|
+
`setCreateOption(text, label?)` takes the option's visible text from its
|
|
23
|
+
caller.
|
|
24
|
+
|
|
25
|
+
`rc-transfer-list`'s direction arrows are now decorative: screen readers
|
|
26
|
+
read only the action name, and the arrows turn over in RTL.
|
|
27
|
+
|
|
28
|
+
**Breaking:** chrome-text properties are replaced by `messages`. Migrate:
|
|
29
|
+
|
|
30
|
+
- `rc-search-bar` `clear-label` / `clearLabel` → `messages.clear`
|
|
31
|
+
- `rc-adaptive-menu` `overflow-label` / `overflowLabel` → `messages.overflow`
|
|
32
|
+
- `rc-chip-group` `show-all-label` / `showAllLabel` and `show-less-label` /
|
|
33
|
+
`showLessLabel` → `messages.showAll` and `messages.showLess`
|
|
34
|
+
- `rc-select` and `rc-combobox` `dialog-confirm-label` /
|
|
35
|
+
`dialogConfirmLabel` and `dialog-cancel-label` / `dialogCancelLabel` →
|
|
36
|
+
`messages.done` and `messages.cancel`
|
|
37
|
+
- `rc-editor-toolbar` `label` → `messages.toolbar`
|
|
38
|
+
|
|
39
|
+
Per-instance names stay attributes, but now default to `undefined` and fall
|
|
40
|
+
back to a message: `label` on `rc-adaptive-menu`, `rc-chip-group`,
|
|
41
|
+
`rc-menubar`, and `rc-splitter`; `available-label` and `selected-label`
|
|
42
|
+
on `rc-transfer-list`; `low-label` and `high-label` on `rc-range-slider`.
|
|
43
|
+
Read the resolved name from the rendered `aria-label` instead of the
|
|
44
|
+
property.
|
|
45
|
+
|
|
46
|
+
- 687a9be: Add shared popup surface tokens: `--rc-popup-background`, `--rc-popup-color`,
|
|
47
|
+
`--rc-popup-border`, `--rc-popup-radius`, `--rc-popup-shadow`, and
|
|
48
|
+
`--rc-popup-padding-block`. Menus, adaptive-menu popups, and select and
|
|
49
|
+
combobox listboxes read them before their own fallbacks. Themes set them at the
|
|
50
|
+
theme root, so popups rendered inside other shadow roots keep the theme's
|
|
51
|
+
surface. Select and combobox add `--rc-*-listbox-background` and
|
|
52
|
+
`--rc-*-listbox-color`.
|
|
53
|
+
|
|
54
|
+
Breaking: popup surfaces no longer fall back to `--rc-control-radius`. Set
|
|
55
|
+
`--rc-popup-radius` (or the per-component radius token) to change popup
|
|
56
|
+
corners. The Material, Substrate, and Win31 themes no longer set per-component
|
|
57
|
+
popup surface tokens such as `--rc-menu-radius` or
|
|
58
|
+
`--rc-adaptive-menu-popup-background`; override the `--rc-popup-*` tokens
|
|
59
|
+
instead. Material select and combobox listboxes now use the menu container
|
|
60
|
+
color, Material forced-colors popups gain a border, and Substrate listboxes use
|
|
61
|
+
the menu shadow and padding. Material retains its two-layer adaptive-menu popup
|
|
62
|
+
shadow through a component token while other popups continue using the shared
|
|
63
|
+
shadow.
|
|
64
|
+
|
|
65
|
+
- 6d126fd: Add shared item type tokens: `--rc-item-font-family`, `--rc-item-font-size`,
|
|
66
|
+
`--rc-item-font-weight`, `--rc-item-line-height`, `--rc-item-letter-spacing`,
|
|
67
|
+
and `--rc-item-icon-size`. Menu, listbox, and adaptive-menu items read them.
|
|
68
|
+
Adaptive menu adds `--rc-adaptive-menu-trigger-hover-background`,
|
|
69
|
+
`--rc-adaptive-menu-trigger-shadow`, and
|
|
70
|
+
`--rc-adaptive-menu-trigger-active-shadow`, and styles overflowed `rc-button`
|
|
71
|
+
and `rc-menu-button` rows from its item tokens. Themes declare their menu,
|
|
72
|
+
adaptive-menu, and item tokens on the theme root, so menus inside other shadow
|
|
73
|
+
roots match menus in the document. Substrate's adaptive-menu trigger now shows
|
|
74
|
+
its hover background.
|
|
75
|
+
|
|
76
|
+
Breaking: theme menu and adaptive-menu tokens are inherited from the theme root
|
|
77
|
+
instead of set on each element, so a value set on an ancestor now reaches
|
|
78
|
+
nested menus. Material sets menu, listbox, and adaptive-menu item type through
|
|
79
|
+
`--rc-item-*` instead of per-component rules; override those tokens to change
|
|
80
|
+
item type. Themes no longer style the adaptive-menu trigger through
|
|
81
|
+
`::part(overflow-trigger)` hover and pressed rules; use the new trigger tokens.
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- 51aac05: `rc-adaptive-menu` no longer throws when actions are added while its first render is still
|
|
86
|
+
pending. The action observer tried to give the overflow trigger a tab stop before the shadow
|
|
87
|
+
tree existed; changes before the first render are now left to the initial sync.
|
|
88
|
+
- 9ee769c: Anchor popups in logical terms only. A placement is now `block-start`,
|
|
89
|
+
`block-end`, `inline-start`, or `inline-end`, each with an optional
|
|
90
|
+
`-start`/`-end` edge alignment, and all of them follow the writing mode and
|
|
91
|
+
direction. Block sides open above or below a row in horizontal text and
|
|
92
|
+
beside it in vertical text; inline sides open along the reading direction,
|
|
93
|
+
so `inline-end` opens to the left in RTL. `resolveAnchorPlacement` exposes
|
|
94
|
+
the resolution for other consumers.
|
|
95
|
+
|
|
96
|
+
**Breaking:** the physical placements `top*`, `bottom*`, `left*`, and
|
|
97
|
+
`right*` are removed from `AnchorPlacement`, `rc-menu-button`'s and
|
|
98
|
+
`rc-fab-menu`'s `placement`, and the React and Solid typings. Migrate:
|
|
99
|
+
|
|
100
|
+
- `bottom*` → `block-end*`
|
|
101
|
+
- `top*` → `block-start*`
|
|
102
|
+
- `right*` → `inline-end*` (in LTR)
|
|
103
|
+
- `left*` → `inline-start*` (in LTR)
|
|
104
|
+
|
|
105
|
+
Defaults move with them and render the same in horizontal LTR text:
|
|
106
|
+
`rc-menu-button`, `rc-select`, and `rc-combobox` open at `block-end-start`,
|
|
107
|
+
`rc-adaptive-menu`'s overflow menu at `block-end-end`, and `rc-fab-menu` at
|
|
108
|
+
`block-start-end`. In vertical text these popups now open beside their
|
|
109
|
+
trigger instead of over the next item. Vertical menubars and vertical
|
|
110
|
+
adaptive menus open submenus at `inline-end-start`. Open popups also
|
|
111
|
+
re-resolve their physical side and alignment when an ancestor's `dir`
|
|
112
|
+
changes, and `rc-fab-menu` keeps its corner-aware default even when nested in
|
|
113
|
+
a vertical menubar.
|
|
114
|
+
|
|
115
|
+
- 1179f24: Drop the `@oddbird/css-anchor-positioning` polyfill. Browsers without full
|
|
116
|
+
native anchor positioning now use `AnchorController`'s script positioning,
|
|
117
|
+
which applies the same placement and flip rules and re-positions when the page
|
|
118
|
+
scrolls or the viewport, anchor, or floating element resizes. Those browsers no
|
|
119
|
+
longer download the 41 kB polyfill the first time a popup opens.
|
|
120
|
+
- 5c006de: Ship component CSS minified. Package builds now run the CSS in Lit `css` styles
|
|
121
|
+
and light-DOM structural styles through Lightning CSS, removing comments and
|
|
122
|
+
whitespace while keeping source maps that resolve to each template. Rendered
|
|
123
|
+
styles are unchanged.
|
|
124
|
+
|
|
125
|
+
`@rcarls/rc-common` adds `cssText`, an identity tag that marks a plain CSS
|
|
126
|
+
string for minification. `rc-chip`, `rc-disclosure`, and `rc-accordion` now
|
|
127
|
+
depend on `@rcarls/rc-common` for it.
|
|
128
|
+
|
|
129
|
+
- a6553ff: Batch layout sampling into a shared animation-frame read phase so mounting a
|
|
130
|
+
large component route no longer alternates forced layout reads with component
|
|
131
|
+
writes. Closed anchored popups now skip placement work until they open, while
|
|
132
|
+
scroller boundaries, carousel positioning, flow state, and opted-in initial
|
|
133
|
+
scroll observation settle before the next paint.
|
|
134
|
+
|
|
135
|
+
Add `RafScheduler.schedulePhased()`, live `AnchorController.disabled` getters,
|
|
136
|
+
and the `ScrollObserverController.initialEvaluation` timing option.
|
|
137
|
+
|
|
138
|
+
- f1ca82d: Add an anchored, non-modal popover package with a Material rich-tooltip recipe. Share native Popover API visibility and fallback behavior across existing popup components.
|
|
139
|
+
- 11680b6: Expose and navigate the orientation a widget actually renders in. An
|
|
140
|
+
`orientation` attribute names a layout: `horizontal` runs along the inline
|
|
141
|
+
axis and `vertical` along the block axis, so both turn over in vertical
|
|
142
|
+
writing modes, the way a native `<input type="range">` does. Toolbar,
|
|
143
|
+
menubar, and adaptive menu now report the rendered orientation as
|
|
144
|
+
`aria-orientation`, and their arrow keys follow it, so a horizontal toolbar
|
|
145
|
+
in vertical text navigates with ArrowDown.
|
|
146
|
+
|
|
147
|
+
`keyNavigation` treats an explicit `navigationAxis` and role defaults as
|
|
148
|
+
layout orientations and converts them the same way; an explicit
|
|
149
|
+
`aria-orientation` attribute is still used as is. Add `renderedOrientation`
|
|
150
|
+
and a `FlowController` that keeps a host's writing mode and direction current
|
|
151
|
+
for rendering.
|
|
152
|
+
|
|
153
|
+
`rc-toolbar` now reflects `orientation` to its host attribute, and its
|
|
154
|
+
vertical layout is keyed off that attribute rather than `aria-orientation`.
|
|
155
|
+
|
|
156
|
+
- Updated dependencies [e3dfa59]
|
|
157
|
+
- Updated dependencies [50d5610]
|
|
158
|
+
- Updated dependencies [9ee769c]
|
|
159
|
+
- Updated dependencies [1179f24]
|
|
160
|
+
- Updated dependencies [595fe37]
|
|
161
|
+
- Updated dependencies [38cd00c]
|
|
162
|
+
- Updated dependencies [5c006de]
|
|
163
|
+
- Updated dependencies [a6553ff]
|
|
164
|
+
- Updated dependencies [2205478]
|
|
165
|
+
- Updated dependencies [4341311]
|
|
166
|
+
- Updated dependencies [899bb5e]
|
|
167
|
+
- Updated dependencies [25fcfe0]
|
|
168
|
+
- Updated dependencies [51f6403]
|
|
169
|
+
- Updated dependencies [9caca6b]
|
|
170
|
+
- Updated dependencies [b764a3c]
|
|
171
|
+
- Updated dependencies [54d9ead]
|
|
172
|
+
- Updated dependencies [b9175e9]
|
|
173
|
+
- Updated dependencies [c8b762b]
|
|
174
|
+
- Updated dependencies [55e1e7f]
|
|
175
|
+
- Updated dependencies [f1ca82d]
|
|
176
|
+
- Updated dependencies [b87f27b]
|
|
177
|
+
- Updated dependencies [32ebead]
|
|
178
|
+
- Updated dependencies [bfefedd]
|
|
179
|
+
- Updated dependencies [c130173]
|
|
180
|
+
- Updated dependencies [11680b6]
|
|
181
|
+
- Updated dependencies [223d36c]
|
|
182
|
+
- Updated dependencies [7b91a44]
|
|
183
|
+
- Updated dependencies [aa04ead]
|
|
184
|
+
- Updated dependencies [ac65b5b]
|
|
185
|
+
- Updated dependencies [afcfef8]
|
|
186
|
+
- Updated dependencies [11ef1ad]
|
|
187
|
+
- @rcarls/rc-common@0.7.0
|
|
188
|
+
|
|
3
189
|
## 0.6.0
|
|
4
190
|
|
|
5
191
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -72,3 +72,11 @@ Use `default-open` for initial uncontrolled state, or write `open` and handle
|
|
|
72
72
|
requested by user interaction; property writes and `openMenu()`, `closeMenu()`,
|
|
73
73
|
and `toggleMenu()` calls are silent. The `$actions`, `$promotedActions`, and
|
|
74
74
|
`$overflowedActions` getters expose the original nodes in current DOM order.
|
|
75
|
+
|
|
76
|
+
## Localization
|
|
77
|
+
|
|
78
|
+
Built-in text follows the element's own `lang`, else `<html lang>`, and never an
|
|
79
|
+
ancestor's `lang`, which usually marks content. Override it per element with the
|
|
80
|
+
`messages` property, or for every instance with `registerMessages()` from
|
|
81
|
+
`@rcarls/rc-common` under `rc-adaptive-menu`. Keys: `label`, `overflow`. `label` only applies when the `label` attribute is unset. See the
|
|
82
|
+
[rc-common Localization section](https://github.com/richardcarls/rc-webcomponents/tree/develop/packages/rc-common#localization).
|
|
@@ -44,9 +44,16 @@
|
|
|
44
44
|
"kind": "javascript-module",
|
|
45
45
|
"path": "src/rc-adaptive-menu.ts",
|
|
46
46
|
"declarations": [
|
|
47
|
+
{
|
|
48
|
+
"kind": "variable",
|
|
49
|
+
"name": "DEFAULT_ADAPTIVE_MENU_MESSAGES",
|
|
50
|
+
"type": {
|
|
51
|
+
"text": "Readonly<RCAdaptiveMenuMessages>"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
47
54
|
{
|
|
48
55
|
"kind": "class",
|
|
49
|
-
"description": "Priority-aware action toolbar that preserves authored light-DOM controls while moving\nlower-priority actions into an overflow menu.\n\nActions remain the same connected nodes in the same parent. The component\nchanges only their slot assignment and component-owned ARIA/focus state, so\nframework listeners, native form behavior, dialog invokers, and references\ncontinue to work after an action moves.\n\nDirect native buttons and links are supported. `rc-button`, `rc-chip`, and\n`rc-menu-button` wrappers participate through their direct native trigger.\nDOM order is the default priority; a numeric `data-priority` promotes larger\nvalues first. Authoring `slot=\"overflow\"` keeps an action overflow-only. A\nnegative `data-priority` has the same effect: the action always overflows,\nregardless of `max-shown`. The overflow menu itself renders in authored DOM\norder (native slot distribution, not JS-ordered), so author negative-priority\nactions after normal-priority ones to have them appear last.\n\nThis is a purely declarative computation from authored state (`max-shown`,\n`data-priority`, and authored `slot`) re-evaluated whenever that authored\nstate changes. The component performs no runtime size measurement: it does\nnot observe its own or its children's rendered size, and `max-shown`\nactions are promoted regardless of whether they visually fit the available\nspace. A consumer that needs the promoted count to react to available\nspace — a responsive breakpoint, a container query, a window size class —\nowns that decision itself and writes the resulting `max-shown` value down
|
|
56
|
+
"description": "Priority-aware action toolbar that preserves authored light-DOM controls while moving\nlower-priority actions into an overflow menu.\n\nActions remain the same connected nodes in the same parent. The component\nchanges only their slot assignment and component-owned ARIA/focus state, so\nframework listeners, native form behavior, dialog invokers, and references\ncontinue to work after an action moves.\n\nDirect native buttons and links are supported. `rc-button`, `rc-chip`, and\n`rc-menu-button` wrappers participate through their direct native trigger.\nDOM order is the default priority; a numeric `data-priority` promotes larger\nvalues first. Authoring `slot=\"overflow\"` keeps an action overflow-only. A\nnegative `data-priority` has the same effect: the action always overflows,\nregardless of `max-shown`. The overflow menu itself renders in authored DOM\norder (native slot distribution, not JS-ordered), so author negative-priority\nactions after normal-priority ones to have them appear last.\n\nThis is a purely declarative computation from authored state (`max-shown`,\n`data-priority`, and authored `slot`) re-evaluated whenever that authored\nstate changes. The component performs no runtime size measurement: it does\nnot observe its own or its children's rendered size, and `max-shown`\nactions are promoted regardless of whether they visually fit the available\nspace. A consumer that needs the promoted count to react to available\nspace — a responsive breakpoint, a container query, a window size class —\nowns that decision itself and writes the resulting `max-shown` value down.\n\nBuilt-in text (the toolbar and overflow names) follows the element's own `lang`, else\n`<html lang>`: per element through `messages`, or for every instance\nthrough `registerMessages()` from `@rcarls/rc-common` under `rc-adaptive-menu`.",
|
|
50
57
|
"name": "RCAdaptiveMenu",
|
|
51
58
|
"cssProperties": [
|
|
52
59
|
{
|
|
@@ -108,6 +115,51 @@
|
|
|
108
115
|
"name": "--rc-adaptive-menu-trigger-color",
|
|
109
116
|
"default": "ButtonText"
|
|
110
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"description": "Overflow trigger background under the pointer.",
|
|
120
|
+
"name": "--rc-adaptive-menu-trigger-hover-background",
|
|
121
|
+
"default": "var(--rc-adaptive-menu-trigger-background)"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"description": "Overflow trigger box shadow.",
|
|
125
|
+
"name": "--rc-adaptive-menu-trigger-shadow",
|
|
126
|
+
"default": "none"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"description": "Overflow trigger box shadow while pressed.",
|
|
130
|
+
"name": "--rc-adaptive-menu-trigger-active-shadow",
|
|
131
|
+
"default": "var(--rc-adaptive-menu-trigger-shadow)"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"description": "Overflow action label font family; shared with menu and listbox items.",
|
|
135
|
+
"name": "--rc-item-font-family",
|
|
136
|
+
"default": "inherit"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"description": "Overflow action label font size; shared with menu and listbox items.",
|
|
140
|
+
"name": "--rc-item-font-size",
|
|
141
|
+
"default": "inherit"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"description": "Overflow action label font weight; shared with menu and listbox items.",
|
|
145
|
+
"name": "--rc-item-font-weight",
|
|
146
|
+
"default": "inherit"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"description": "Overflow action label line height; shared with menu and listbox items.",
|
|
150
|
+
"name": "--rc-item-line-height",
|
|
151
|
+
"default": "inherit"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"description": "Overflow action label letter spacing; shared with menu and listbox items.",
|
|
155
|
+
"name": "--rc-item-letter-spacing",
|
|
156
|
+
"default": "inherit"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"description": "Overflow action leading icon size; shared with menu items.",
|
|
160
|
+
"name": "--rc-item-icon-size",
|
|
161
|
+
"default": "inherit"
|
|
162
|
+
},
|
|
111
163
|
{
|
|
112
164
|
"description": "Default overflow icon size.",
|
|
113
165
|
"name": "--rc-adaptive-menu-icon-size",
|
|
@@ -131,32 +183,32 @@
|
|
|
131
183
|
{
|
|
132
184
|
"description": "Overflow popup block padding.",
|
|
133
185
|
"name": "--rc-adaptive-menu-popup-padding-block",
|
|
134
|
-
"default": "
|
|
186
|
+
"default": "var(--rc-popup-padding-block)"
|
|
135
187
|
},
|
|
136
188
|
{
|
|
137
189
|
"description": "Overflow popup border.",
|
|
138
190
|
"name": "--rc-adaptive-menu-popup-border",
|
|
139
|
-
"default": "var(--rc-border)"
|
|
191
|
+
"default": "var(--rc-popup-border)"
|
|
140
192
|
},
|
|
141
193
|
{
|
|
142
194
|
"description": "Overflow popup radius.",
|
|
143
195
|
"name": "--rc-adaptive-menu-popup-radius",
|
|
144
|
-
"default": "var(--rc-
|
|
196
|
+
"default": "var(--rc-popup-radius)"
|
|
145
197
|
},
|
|
146
198
|
{
|
|
147
199
|
"description": "Overflow popup background.",
|
|
148
200
|
"name": "--rc-adaptive-menu-popup-background",
|
|
149
|
-
"default": "var(--rc-
|
|
201
|
+
"default": "var(--rc-popup-background)"
|
|
150
202
|
},
|
|
151
203
|
{
|
|
152
204
|
"description": "Overflow popup shadow.",
|
|
153
205
|
"name": "--rc-adaptive-menu-popup-shadow",
|
|
154
|
-
"default": "var(--rc-shadow)"
|
|
206
|
+
"default": "var(--rc-popup-shadow)"
|
|
155
207
|
},
|
|
156
208
|
{
|
|
157
209
|
"description": "Overflow popup foreground.",
|
|
158
210
|
"name": "--rc-adaptive-menu-popup-color",
|
|
159
|
-
"default": "var(--rc-
|
|
211
|
+
"default": "var(--rc-popup-color)"
|
|
160
212
|
},
|
|
161
213
|
{
|
|
162
214
|
"description": "Overflow action minimum block size.",
|
|
@@ -208,6 +260,21 @@
|
|
|
208
260
|
}
|
|
209
261
|
],
|
|
210
262
|
"members": [
|
|
263
|
+
{
|
|
264
|
+
"kind": "field",
|
|
265
|
+
"name": "messages",
|
|
266
|
+
"type": {
|
|
267
|
+
"text": "Partial<RCAdaptiveMenuMessages> | undefined"
|
|
268
|
+
},
|
|
269
|
+
"description": "Built-in text overrides; unset keys fall back to registered text, then English."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"kind": "field",
|
|
273
|
+
"name": "_messages",
|
|
274
|
+
"privacy": "private",
|
|
275
|
+
"readonly": true,
|
|
276
|
+
"default": "new MessagesController( this, 'rc-adaptive-menu', DEFAULT_ADAPTIVE_MENU_MESSAGES, { overrides: () => this.messages, }, )"
|
|
277
|
+
},
|
|
211
278
|
{
|
|
212
279
|
"kind": "field",
|
|
213
280
|
"name": "_styledRoots",
|
|
@@ -220,10 +287,9 @@
|
|
|
220
287
|
"kind": "field",
|
|
221
288
|
"name": "label",
|
|
222
289
|
"type": {
|
|
223
|
-
"text": "string"
|
|
290
|
+
"text": "string | undefined"
|
|
224
291
|
},
|
|
225
|
-
"
|
|
226
|
-
"description": "Accessible label for the toolbar.",
|
|
292
|
+
"description": "Accessible label for the toolbar. Defaults to the `label` message.",
|
|
227
293
|
"attribute": "label"
|
|
228
294
|
},
|
|
229
295
|
{
|
|
@@ -302,13 +368,11 @@
|
|
|
302
368
|
},
|
|
303
369
|
{
|
|
304
370
|
"kind": "field",
|
|
305
|
-
"name": "
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
"description": "Accessible name for the overflow trigger and popup.",
|
|
311
|
-
"attribute": "overflow-label"
|
|
371
|
+
"name": "_flow",
|
|
372
|
+
"privacy": "protected",
|
|
373
|
+
"readonly": true,
|
|
374
|
+
"default": "new FlowController(this)",
|
|
375
|
+
"description": "Keeps the exposed aria-orientation on the orientation actually rendered."
|
|
312
376
|
},
|
|
313
377
|
{
|
|
314
378
|
"kind": "field",
|
|
@@ -373,7 +437,14 @@
|
|
|
373
437
|
"name": "_anchor",
|
|
374
438
|
"privacy": "private",
|
|
375
439
|
"readonly": true,
|
|
376
|
-
"default": "new AnchorController(this, { anchor: () => this._$trigger, floating: () => this._$popup, placement: '
|
|
440
|
+
"default": "new AnchorController(this, { anchor: () => this._$trigger, floating: () => this._$popup, placement: 'block-end-end', offset: 4, shadowHost: () => this, disabled: () => !this.open || !this.hasAttribute('data-overflow'), })"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"kind": "field",
|
|
444
|
+
"name": "_popover",
|
|
445
|
+
"privacy": "private",
|
|
446
|
+
"readonly": true,
|
|
447
|
+
"default": "new PopoverController(this, { element: () => this._$popup })"
|
|
377
448
|
},
|
|
378
449
|
{
|
|
379
450
|
"kind": "field",
|
|
@@ -823,12 +894,11 @@
|
|
|
823
894
|
],
|
|
824
895
|
"attributes": [
|
|
825
896
|
{
|
|
826
|
-
"description": "Accessible label for the toolbar.",
|
|
897
|
+
"description": "Accessible label for the toolbar. Defaults to the `label` message.",
|
|
827
898
|
"name": "label",
|
|
828
899
|
"type": {
|
|
829
|
-
"text": "string"
|
|
900
|
+
"text": "string | undefined"
|
|
830
901
|
},
|
|
831
|
-
"default": "'Actions'",
|
|
832
902
|
"fieldName": "label"
|
|
833
903
|
},
|
|
834
904
|
{
|
|
@@ -864,15 +934,6 @@
|
|
|
864
934
|
},
|
|
865
935
|
"default": "'horizontal'",
|
|
866
936
|
"fieldName": "orientation"
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
"description": "Accessible name for the overflow trigger and popup.",
|
|
870
|
-
"name": "overflow-label",
|
|
871
|
-
"type": {
|
|
872
|
-
"text": "string"
|
|
873
|
-
},
|
|
874
|
-
"default": "'More actions'",
|
|
875
|
-
"fieldName": "overflowLabel"
|
|
876
937
|
}
|
|
877
938
|
],
|
|
878
939
|
"superclass": {
|
|
@@ -884,6 +945,14 @@
|
|
|
884
945
|
}
|
|
885
946
|
],
|
|
886
947
|
"exports": [
|
|
948
|
+
{
|
|
949
|
+
"kind": "js",
|
|
950
|
+
"name": "DEFAULT_ADAPTIVE_MENU_MESSAGES",
|
|
951
|
+
"declaration": {
|
|
952
|
+
"name": "DEFAULT_ADAPTIVE_MENU_MESSAGES",
|
|
953
|
+
"module": "src/rc-adaptive-menu.ts"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
887
956
|
{
|
|
888
957
|
"kind": "js",
|
|
889
958
|
"name": "RCAdaptiveMenu",
|