wj-elements 0.5.0 → 0.5.2
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/dist/light.css +6 -0
- package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +202 -1
- package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +70 -0
- package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +6 -0
- package/dist/wje-breadcrumb.js +466 -41
- package/dist/wje-breadcrumb.js.map +1 -1
- package/dist/wje-breadcrumbs.js +152 -3
- package/dist/wje-breadcrumbs.js.map +1 -1
- package/dist/wje-menu-item.js +1 -1
- package/dist/wje-toolbar-action.js +22 -1
- package/dist/wje-toolbar-action.js.map +1 -1
- package/package.json +2 -2
package/dist/light.css
CHANGED
|
@@ -270,6 +270,12 @@
|
|
|
270
270
|
--wje-breadcrumb-font-size: var(--wje-font-size);
|
|
271
271
|
--wje-breadcrumb-active-font-weight: var(--wje-font-weight-bold);
|
|
272
272
|
--wje-breadcrumb-active-font-size: var(--wje-font-size);
|
|
273
|
+
--wje-breadcrumb-line-height: var(--wje-line-height-normal);
|
|
274
|
+
--wje-breadcrumb-native-line-height: var(--wje-breadcrumb-line-height);
|
|
275
|
+
--wje-breadcrumb-native-margin: 0;
|
|
276
|
+
--wje-breadcrumb-native-padding: var(--wje-spacing-3x-small) var(--wje-spacing-small);
|
|
277
|
+
--wje-breadcrumb-margin: var(--wje-breadcrumb-native-margin);
|
|
278
|
+
--wje-breadcrumb-padding: var(--wje-breadcrumb-native-padding);
|
|
273
279
|
--wje-breadcrumb-a: var(--wje-color-contrast-8);
|
|
274
280
|
--wje-breadcrumb-a-hover: var(--wje-color-contrast-6);
|
|
275
281
|
|
|
@@ -12,6 +12,12 @@ import { default as WJElement } from '../wje-element/element.js';
|
|
|
12
12
|
* @csspart separator - The separator between breadcrumb items.
|
|
13
13
|
* @cssproperty [--wje-breadcrumb-a=var(--wje-color-contrast-8)] - The color of the breadcrumb text.
|
|
14
14
|
* @cssproperty [--wje-breadcrumb-a-hover=var(--wje-color-contrast-6)] - The color of the breadcrumb separator line.
|
|
15
|
+
* @cssproperty [--wje-breadcrumb-line-height=1.5] - Controls the vertical rhythm of breadcrumb text.
|
|
16
|
+
* @cssproperty [--wje-breadcrumb-native-line-height=var(--wje-breadcrumb-line-height)] - Controls the line height of the native breadcrumb wrapper.
|
|
17
|
+
* @cssproperty [--wje-breadcrumb-native-margin=0] - Sets outer spacing around the native breadcrumb wrapper.
|
|
18
|
+
* @cssproperty [--wje-breadcrumb-native-padding=0.25rem 0.75rem] - Sets inner spacing inside the native breadcrumb wrapper.
|
|
19
|
+
* @cssproperty [--wje-breadcrumb-margin=var(--wje-breadcrumb-native-margin)] - Backwards-compatible alias for native breadcrumb margin.
|
|
20
|
+
* @cssproperty [--wje-breadcrumb-padding=var(--wje-breadcrumb-native-padding)] - Backwards-compatible alias for native breadcrumb padding.
|
|
15
21
|
* @tag wje-breadcrumb
|
|
16
22
|
*/
|
|
17
23
|
export default class Breadcrumb extends WJElement {
|
|
@@ -71,6 +77,11 @@ export default class Breadcrumb extends WJElement {
|
|
|
71
77
|
*/
|
|
72
78
|
get collapsedVariant(): string;
|
|
73
79
|
_collapsedVariant: string;
|
|
80
|
+
/**
|
|
81
|
+
* Get collapsed variant token.
|
|
82
|
+
* @returns {string}
|
|
83
|
+
*/
|
|
84
|
+
get collapsedVariantName(): string;
|
|
74
85
|
/**
|
|
75
86
|
* Handles attribute changes for the custom element and updates its behavior or appearance accordingly.
|
|
76
87
|
* @param {string} name The name of the attribute that was changed.
|
|
@@ -86,6 +97,22 @@ export default class Breadcrumb extends WJElement {
|
|
|
86
97
|
*/
|
|
87
98
|
draw(): object;
|
|
88
99
|
native: HTMLAnchorElement;
|
|
100
|
+
/**
|
|
101
|
+
* Returns whether the separator should be visible after this breadcrumb.
|
|
102
|
+
* @returns {boolean}
|
|
103
|
+
*/
|
|
104
|
+
shouldRenderSeparator(): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Returns whether any later breadcrumb is still visible in the rendered trail.
|
|
107
|
+
* @returns {boolean}
|
|
108
|
+
*/
|
|
109
|
+
hasVisibleBreadcrumbAfter(): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Returns whether a breadcrumb is visible in the rendered trail.
|
|
112
|
+
* @param {Element} breadcrumb Breadcrumb element to inspect.
|
|
113
|
+
* @returns {boolean}
|
|
114
|
+
*/
|
|
115
|
+
isBreadcrumbVisibleInTrail(breadcrumb: Element): boolean;
|
|
89
116
|
/**
|
|
90
117
|
* Synchronizes host attributes to the internal anchor.
|
|
91
118
|
*/
|
|
@@ -102,10 +129,15 @@ export default class Breadcrumb extends WJElement {
|
|
|
102
129
|
/**
|
|
103
130
|
* Renders the collapsed indicator based on the current collapsed variant.
|
|
104
131
|
* If the collapsed variant is 'DROPDOWN', it invokes the collapseDropdown method.
|
|
105
|
-
*
|
|
132
|
+
* Mobile breakpoint variants render compact breadcrumb summaries, otherwise the default button is used.
|
|
106
133
|
* @returns {any} The rendered collapsed indicator, either as a dropdown or a button.
|
|
107
134
|
*/
|
|
108
135
|
drawCollapsedIndicator(): any;
|
|
136
|
+
/**
|
|
137
|
+
* Returns whether the current collapsed variant is a compact mobile layout.
|
|
138
|
+
* @returns {boolean}
|
|
139
|
+
*/
|
|
140
|
+
isMobileCollapsedVariant(): boolean;
|
|
109
141
|
/**
|
|
110
142
|
* Creates and returns a dropdown UI component for collapsed breadcrumbs.
|
|
111
143
|
* This method generates a dropdown element with a button trigger and a menu populated with items corresponding
|
|
@@ -115,6 +147,175 @@ export default class Breadcrumb extends WJElement {
|
|
|
115
147
|
* @returns {HTMLElement} A configured dropdown element containing a button as trigger and a menu with breadcrumb items.
|
|
116
148
|
*/
|
|
117
149
|
collapseDropdown(): HTMLElement;
|
|
150
|
+
/**
|
|
151
|
+
* Creates a dropdown containing breadcrumb menu items.
|
|
152
|
+
* @param {object} options Configuration for the dropdown shell.
|
|
153
|
+
* @param {Array<HTMLElement>} options.breadcrumbs Breadcrumb elements to mirror in the menu.
|
|
154
|
+
* @param {HTMLElement} options.trigger Element assigned to the dropdown trigger slot.
|
|
155
|
+
* @param {string} options.placement Floating UI placement token for the popup.
|
|
156
|
+
* @returns {HTMLElement}
|
|
157
|
+
*/
|
|
158
|
+
createBreadcrumbDropdown({ breadcrumbs, trigger, placement }: {
|
|
159
|
+
breadcrumbs: Array<HTMLElement>;
|
|
160
|
+
trigger: HTMLElement;
|
|
161
|
+
placement: string;
|
|
162
|
+
}): HTMLElement;
|
|
163
|
+
/**
|
|
164
|
+
* Creates the menu used by collapsed dropdown variants.
|
|
165
|
+
* @param {Array<HTMLElement>} breadcrumbs Breadcrumb items represented by menu items.
|
|
166
|
+
* @returns {HTMLElement}
|
|
167
|
+
*/
|
|
168
|
+
createCollapsedBreadcrumbMenu(breadcrumbs: Array<HTMLElement>): HTMLElement;
|
|
169
|
+
/**
|
|
170
|
+
* Returns breadcrumbs that should be exposed in a collapsed menu.
|
|
171
|
+
* @param {boolean} isBreakpointMenuIndicator Whether this trigger controls the full breakpoint menu.
|
|
172
|
+
* @returns {Array<HTMLElement>}
|
|
173
|
+
*/
|
|
174
|
+
getCollapsedMenuBreadcrumbs(isBreakpointMenuIndicator: boolean): Array<HTMLElement>;
|
|
175
|
+
/**
|
|
176
|
+
* Renders one of the compact mobile breakpoint variants.
|
|
177
|
+
* @param {string} variant Normalized uppercase variant token.
|
|
178
|
+
* @returns {HTMLElement}
|
|
179
|
+
*/
|
|
180
|
+
collapseMobileVariant(variant: string): HTMLElement;
|
|
181
|
+
/**
|
|
182
|
+
* Renders only the current breadcrumb title.
|
|
183
|
+
* @returns {HTMLElement}
|
|
184
|
+
*/
|
|
185
|
+
collapseMobileText(): HTMLElement;
|
|
186
|
+
/**
|
|
187
|
+
* Renders a parent back action above the current title.
|
|
188
|
+
* @returns {HTMLElement}
|
|
189
|
+
*/
|
|
190
|
+
collapseMobileBack(): HTMLElement;
|
|
191
|
+
/**
|
|
192
|
+
* Renders parent context above the current title.
|
|
193
|
+
* @returns {HTMLElement}
|
|
194
|
+
*/
|
|
195
|
+
collapseMobileParentTitle(): HTMLElement;
|
|
196
|
+
/**
|
|
197
|
+
* Renders a menu trigger with the current title.
|
|
198
|
+
* @returns {HTMLElement}
|
|
199
|
+
*/
|
|
200
|
+
collapseMobileMenuTitle(): HTMLElement;
|
|
201
|
+
/**
|
|
202
|
+
* Renders the future sheet variant using the dropdown fallback for now.
|
|
203
|
+
* @returns {HTMLElement}
|
|
204
|
+
*/
|
|
205
|
+
collapseMobileSheet(): HTMLElement;
|
|
206
|
+
/**
|
|
207
|
+
* Creates a dropdown fallback for mobile menu-like variants.
|
|
208
|
+
* @param {HTMLElement} trigger Element that opens the fallback dropdown.
|
|
209
|
+
* @returns {HTMLElement}
|
|
210
|
+
*/
|
|
211
|
+
createMobileDropdown(trigger: HTMLElement): HTMLElement;
|
|
212
|
+
/**
|
|
213
|
+
* Creates a compact mobile dropdown trigger.
|
|
214
|
+
* @param {object} options Visual settings for the compact trigger.
|
|
215
|
+
* @param {string} options.icon Icon shown next to the title.
|
|
216
|
+
* @param {string} options.iconPosition Whether the icon renders at the start or end.
|
|
217
|
+
* @param {string} options.label Current breadcrumb label shown beside the icon.
|
|
218
|
+
* @param {string} options.ariaLabel Accessible name for the dropdown trigger.
|
|
219
|
+
* @param {string} options.className Variant-specific class applied to the trigger.
|
|
220
|
+
* @returns {HTMLElement}
|
|
221
|
+
*/
|
|
222
|
+
createMobileDropdownTrigger({ icon, iconPosition, label, ariaLabel, className }: {
|
|
223
|
+
icon: string;
|
|
224
|
+
iconPosition: string;
|
|
225
|
+
label: string;
|
|
226
|
+
ariaLabel: string;
|
|
227
|
+
className: string;
|
|
228
|
+
}): HTMLElement;
|
|
229
|
+
/**
|
|
230
|
+
* Creates a wrapper for compact mobile breadcrumb variants.
|
|
231
|
+
* @param {string} className Variant class.
|
|
232
|
+
* @returns {HTMLElement}
|
|
233
|
+
*/
|
|
234
|
+
createMobileContainer(className: string): HTMLElement;
|
|
235
|
+
/**
|
|
236
|
+
* Creates a text or button control for a breadcrumb.
|
|
237
|
+
* @param {HTMLElement|null} breadcrumb Source breadcrumb.
|
|
238
|
+
* @param {string} className Class applied to the created control.
|
|
239
|
+
* @param {object} options Behavior and accessibility settings for the control.
|
|
240
|
+
* @param {boolean} options.actionable Whether clicks should forward to the source breadcrumb.
|
|
241
|
+
* @param {boolean} options.ariaCurrent Whether the control marks the current page.
|
|
242
|
+
* @param {string} options.ariaLabel Accessible name for action controls.
|
|
243
|
+
* @param {string} options.icon Optional icon shown before the label.
|
|
244
|
+
* @returns {HTMLElement}
|
|
245
|
+
*/
|
|
246
|
+
createMobileBreadcrumbControl(breadcrumb: HTMLElement | null, className: string, { actionable, ariaCurrent, ariaLabel, icon }?: {
|
|
247
|
+
actionable: boolean;
|
|
248
|
+
ariaCurrent: boolean;
|
|
249
|
+
ariaLabel: string;
|
|
250
|
+
icon: string;
|
|
251
|
+
}): HTMLElement;
|
|
252
|
+
/**
|
|
253
|
+
* Returns the full trail of sibling breadcrumbs.
|
|
254
|
+
* @returns {Array<HTMLElement>}
|
|
255
|
+
*/
|
|
256
|
+
getTrailBreadcrumbs(): Array<HTMLElement>;
|
|
257
|
+
/**
|
|
258
|
+
* Returns the current breadcrumb item.
|
|
259
|
+
* @returns {HTMLElement|null}
|
|
260
|
+
*/
|
|
261
|
+
getCurrentBreadcrumb(): HTMLElement | null;
|
|
262
|
+
/**
|
|
263
|
+
* Returns the parent breadcrumb item.
|
|
264
|
+
* @returns {HTMLElement|null}
|
|
265
|
+
*/
|
|
266
|
+
getParentBreadcrumb(): HTMLElement | null;
|
|
267
|
+
/**
|
|
268
|
+
* Returns whether a breadcrumb has a known action to forward.
|
|
269
|
+
* @param {HTMLElement|null} breadcrumb Breadcrumb to inspect.
|
|
270
|
+
* @returns {boolean}
|
|
271
|
+
*/
|
|
272
|
+
isBreadcrumbActionable(breadcrumb: HTMLElement | null): boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Forwards a compact control or menu item click to the original breadcrumb.
|
|
275
|
+
* @param {HTMLElement|null} breadcrumb Source breadcrumb.
|
|
276
|
+
*/
|
|
277
|
+
forwardBreadcrumbClick(breadcrumb: HTMLElement | null): void;
|
|
278
|
+
/**
|
|
279
|
+
* Creates the dropdown trigger for collapsed breadcrumbs.
|
|
280
|
+
* @param {boolean} isBreakpointMenuIndicator Whether this trigger controls the full breakpoint menu.
|
|
281
|
+
* @returns {HTMLElement}
|
|
282
|
+
*/
|
|
283
|
+
createCollapsedDropdownTrigger(isBreakpointMenuIndicator: boolean): HTMLElement;
|
|
284
|
+
/**
|
|
285
|
+
* Resolves the icon used by the default dropdown trigger.
|
|
286
|
+
* @param {boolean} isBreakpointMenuIndicator Whether this trigger controls the full breakpoint menu.
|
|
287
|
+
* @returns {string}
|
|
288
|
+
*/
|
|
289
|
+
getCollapsedDropdownIcon(isBreakpointMenuIndicator: boolean): string;
|
|
290
|
+
/**
|
|
291
|
+
* Copies breadcrumb content into a collapsed menu item.
|
|
292
|
+
* @param {HTMLElement} menuItem Menu item receiving the content.
|
|
293
|
+
* @param {HTMLElement} breadcrumb Source breadcrumb.
|
|
294
|
+
*/
|
|
295
|
+
populateCollapsedMenuItem(menuItem: HTMLElement, breadcrumb: HTMLElement): void;
|
|
296
|
+
/**
|
|
297
|
+
* Resolves a readable label for a breadcrumb item.
|
|
298
|
+
* @param {HTMLElement|null} breadcrumb Source breadcrumb.
|
|
299
|
+
* @returns {string}
|
|
300
|
+
*/
|
|
301
|
+
getBreadcrumbLabel(breadcrumb: HTMLElement | null): string;
|
|
302
|
+
/**
|
|
303
|
+
* Resolves a readable label for icon-only collapsed menu items.
|
|
304
|
+
* @param {HTMLElement} breadcrumb Source breadcrumb.
|
|
305
|
+
* @returns {string}
|
|
306
|
+
*/
|
|
307
|
+
getCollapsedMenuItemLabel(breadcrumb: HTMLElement): string;
|
|
308
|
+
/**
|
|
309
|
+
* Turns a URL segment into a readable menu label.
|
|
310
|
+
* @param {string} value URL segment.
|
|
311
|
+
* @returns {string}
|
|
312
|
+
*/
|
|
313
|
+
humanizeCollapsedMenuItemLabel(value: string): string;
|
|
314
|
+
/**
|
|
315
|
+
* Returns whether this collapsed indicator represents the full breakpoint menu.
|
|
316
|
+
* @returns {boolean}
|
|
317
|
+
*/
|
|
318
|
+
isBreakpointMenuIndicator(): boolean;
|
|
118
319
|
/**
|
|
119
320
|
* Creates a button element that expands hidden breadcrumbs when clicked.
|
|
120
321
|
* The button is set with appropriate attributes and event listeners to handle
|
|
@@ -5,11 +5,16 @@ import { default as WJElement } from '../wje-element/element.js';
|
|
|
5
5
|
* @status stable
|
|
6
6
|
* @augments WJElement
|
|
7
7
|
* @slot - The container for breadcrumb elements.
|
|
8
|
+
* @slot breakpoint-collapse-trigger - Custom trigger used when breakpoint-collapse="menu" moves the full trail into a dropdown.
|
|
8
9
|
* @csspart container - The component's container wrapper.
|
|
9
10
|
* @property {Array<{id: string|number, label: string, href?: string, icon?: string, disabled?: boolean, data?: any}>} items - Data-driven breadcrumb items.
|
|
10
11
|
* @attribute {number} max-items - The maximum number of visible breadcrumbs before collapsing.
|
|
11
12
|
* @attribute {number} items-before-collapse - The number of breadcrumbs to show before the collapsed indicator.
|
|
12
13
|
* @attribute {number} items-after-collapse - The number of breadcrumbs to show after the collapsed indicator.
|
|
14
|
+
* @attribute {string} collapsed-variant - The UI used for collapsed breadcrumbs. Use "dropdown" to render a menu, or "text", "back", "parent-title", "menu-title", and "sheet" for compact breakpoint menu layouts.
|
|
15
|
+
* @attribute {string} breakpoint - The viewport breakpoint where collapsing starts.
|
|
16
|
+
* @attribute {string} breakpoint-collapse - The collapse behavior used below the breakpoint. Use "menu" to put the whole trail into one menu.
|
|
17
|
+
* @attribute {string} breakpoint-collapse-icon - Icon used by the default breakpoint menu trigger.
|
|
13
18
|
* // @fires wje-breadcrumbs:item-click - Dispatched when a data-driven breadcrumb item is clicked.
|
|
14
19
|
* @tag wje-breadcrumbs
|
|
15
20
|
* @example
|
|
@@ -75,11 +80,21 @@ export default class Breadcrumbs extends WJElement {
|
|
|
75
80
|
* @returns {string}
|
|
76
81
|
*/
|
|
77
82
|
get variant(): string;
|
|
83
|
+
/**
|
|
84
|
+
* Get the collapsed indicator variant.
|
|
85
|
+
* @param {string} value Collapsed indicator variant.
|
|
86
|
+
*/
|
|
87
|
+
set collapsedVariant(value: string);
|
|
78
88
|
/**
|
|
79
89
|
* Get the collapsed indicator variant.
|
|
80
90
|
* @returns {string}
|
|
81
91
|
*/
|
|
82
92
|
get collapsedVariant(): string;
|
|
93
|
+
/**
|
|
94
|
+
* Gets the collapsed indicator variant as a normalized token.
|
|
95
|
+
* @returns {string}
|
|
96
|
+
*/
|
|
97
|
+
get normalizedCollapsedVariant(): string;
|
|
83
98
|
/**
|
|
84
99
|
* Sets the collapse breakpoint token or value.
|
|
85
100
|
* @param {string} value Breakpoint token or CSS size.
|
|
@@ -90,6 +105,26 @@ export default class Breadcrumbs extends WJElement {
|
|
|
90
105
|
* @returns {string}
|
|
91
106
|
*/
|
|
92
107
|
get breakpoint(): string;
|
|
108
|
+
/**
|
|
109
|
+
* Sets the collapse behavior used below the configured breakpoint.
|
|
110
|
+
* @param {string} value Collapse behavior.
|
|
111
|
+
*/
|
|
112
|
+
set breakpointCollapse(value: string);
|
|
113
|
+
/**
|
|
114
|
+
* Gets the collapse behavior used below the configured breakpoint.
|
|
115
|
+
* @returns {string}
|
|
116
|
+
*/
|
|
117
|
+
get breakpointCollapse(): string;
|
|
118
|
+
/**
|
|
119
|
+
* Sets the icon used by the default breakpoint menu trigger.
|
|
120
|
+
* @param {string} value Icon name.
|
|
121
|
+
*/
|
|
122
|
+
set breakpointCollapseIcon(value: string);
|
|
123
|
+
/**
|
|
124
|
+
* Gets the icon used by the default breakpoint menu trigger.
|
|
125
|
+
* @returns {string}
|
|
126
|
+
*/
|
|
127
|
+
get breakpointCollapseIcon(): string;
|
|
93
128
|
/**
|
|
94
129
|
* Get items before collapse attribute.
|
|
95
130
|
* @param {string} value
|
|
@@ -120,6 +155,17 @@ export default class Breadcrumbs extends WJElement {
|
|
|
120
155
|
* @returns {number}
|
|
121
156
|
*/
|
|
122
157
|
get itemsAfterCollapse(): number;
|
|
158
|
+
/**
|
|
159
|
+
* Handles attribute changes that affect light-DOM breadcrumb indicators.
|
|
160
|
+
* @param {string} name Updated attribute.
|
|
161
|
+
* @param {string|null} oldValue Previous value.
|
|
162
|
+
* @param {string|null} newValue Next value.
|
|
163
|
+
*/
|
|
164
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
165
|
+
/**
|
|
166
|
+
* Syncs host navigation semantics while preserving user-provided names.
|
|
167
|
+
*/
|
|
168
|
+
syncAria(): void;
|
|
123
169
|
/**
|
|
124
170
|
* Draw method for the Breadcrumbs element.
|
|
125
171
|
* @returns {object} fragment - The document fragment
|
|
@@ -228,6 +274,21 @@ export default class Breadcrumbs extends WJElement {
|
|
|
228
274
|
* @returns {void}
|
|
229
275
|
*/
|
|
230
276
|
updateCollapse(): void;
|
|
277
|
+
/**
|
|
278
|
+
* Collapses the whole breadcrumb trail into a single menu indicator.
|
|
279
|
+
* @param {Array<Element>} breadcrumbs Breadcrumb items.
|
|
280
|
+
*/
|
|
281
|
+
applyMenuCollapse(breadcrumbs: Array<Element>): void;
|
|
282
|
+
/**
|
|
283
|
+
* Returns whether the active breakpoint mode should move the full trail into one menu.
|
|
284
|
+
* @returns {boolean}
|
|
285
|
+
*/
|
|
286
|
+
isBreakpointMenuCollapseActive(): boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Returns whether the active collapsed variant is one of the mobile compact layouts.
|
|
289
|
+
* @returns {boolean}
|
|
290
|
+
*/
|
|
291
|
+
usesMobileCollapsedVariant(): boolean;
|
|
231
292
|
/**
|
|
232
293
|
* Clears attributes/classes managed by the collapse algorithm.
|
|
233
294
|
* @param {Array<Element>} breadcrumbs Breadcrumb items.
|
|
@@ -240,6 +301,10 @@ export default class Breadcrumbs extends WJElement {
|
|
|
240
301
|
* @param {boolean} isEnabled Whether the attribute should be present.
|
|
241
302
|
*/
|
|
242
303
|
syncManagedAttribute(element: Element, name: string, isEnabled: boolean): void;
|
|
304
|
+
/**
|
|
305
|
+
* Redraws active collapsed indicators when parent-only rendering inputs change.
|
|
306
|
+
*/
|
|
307
|
+
refreshCollapsedIndicators(): void;
|
|
243
308
|
/**
|
|
244
309
|
* Returns whether collapse rules should currently be applied.
|
|
245
310
|
* @returns {boolean}
|
|
@@ -250,6 +315,11 @@ export default class Breadcrumbs extends WJElement {
|
|
|
250
315
|
* @returns {number|null}
|
|
251
316
|
*/
|
|
252
317
|
getBreakpointWidth(): number | null;
|
|
318
|
+
/**
|
|
319
|
+
* Returns the custom trigger element configured for breakpoint menu collapse.
|
|
320
|
+
* @returns {Element|null}
|
|
321
|
+
*/
|
|
322
|
+
getBreakpointCollapseTrigger(): Element | null;
|
|
253
323
|
/**
|
|
254
324
|
* Retrieves all breadcrumb elements within the current instance.
|
|
255
325
|
* @returns {Array<Element>} An array of breadcrumb elements (`wje-breadcrumb`) found within the instance. Returns an empty array if no breadcrumbs are found.
|
|
@@ -161,6 +161,12 @@ export default class ToolbarAction extends WJElement {
|
|
|
161
161
|
* @returns {HTMLElement}
|
|
162
162
|
*/
|
|
163
163
|
createMenuItem(action: HTMLElement): HTMLElement;
|
|
164
|
+
/**
|
|
165
|
+
* Resolves readable text for a toolbar action copied into an overflow menu.
|
|
166
|
+
* @param {HTMLElement} action The original action element.
|
|
167
|
+
* @returns {string}
|
|
168
|
+
*/
|
|
169
|
+
getActionLabel(action: HTMLElement): string;
|
|
164
170
|
/**
|
|
165
171
|
* Creates a divider separating existing dropdown actions from responsive overflow actions.
|
|
166
172
|
* @returns {HTMLElement}
|