@aurodesignsystem/auro-formkit 3.1.0-beta.1 → 3.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/CHANGELOG.md +9 -3
- package/components/checkbox/demo/api.min.js +468 -25
- package/components/checkbox/demo/index.min.js +468 -25
- package/components/checkbox/dist/index.js +468 -25
- package/components/checkbox/dist/registered.js +468 -25
- package/components/combobox/demo/api.md +1 -1
- package/components/combobox/demo/api.min.js +1265 -235
- package/components/combobox/demo/index.min.js +1265 -235
- package/components/combobox/dist/auro-combobox.d.ts +32 -5
- package/components/combobox/dist/index.js +1130 -100
- package/components/combobox/dist/registered.js +1130 -100
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +575 -71
- package/components/counter/demo/index.min.js +575 -71
- package/components/counter/dist/auro-counter-group.d.ts +2 -5
- package/components/counter/dist/index.js +575 -71
- package/components/counter/dist/registered.js +575 -71
- package/components/datepicker/demo/api.md +0 -1
- package/components/datepicker/demo/api.min.js +1077 -106
- package/components/datepicker/demo/index.min.js +1077 -106
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -13
- package/components/datepicker/dist/index.js +1077 -106
- package/components/datepicker/dist/registered.js +1077 -106
- package/components/dropdown/demo/api.md +9 -6
- package/components/dropdown/demo/api.min.js +107 -43
- package/components/dropdown/demo/index.md +0 -83
- package/components/dropdown/demo/index.min.js +107 -43
- package/components/dropdown/dist/auro-dropdown.d.ts +30 -12
- package/components/dropdown/dist/index.js +107 -43
- package/components/dropdown/dist/registered.js +107 -43
- package/components/input/demo/api.md +4 -1
- package/components/input/demo/api.min.js +503 -25
- package/components/input/demo/index.min.js +503 -25
- package/components/input/dist/base-input.d.ts +24 -0
- package/components/input/dist/index.js +503 -25
- package/components/input/dist/registered.js +503 -25
- package/components/radio/demo/api.min.js +468 -25
- package/components/radio/demo/index.min.js +468 -25
- package/components/radio/dist/index.js +468 -25
- package/components/radio/dist/registered.js +468 -25
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/api.min.js +575 -71
- package/components/select/demo/index.md +1 -46
- package/components/select/demo/index.min.js +575 -71
- package/components/select/dist/auro-select.d.ts +2 -5
- package/components/select/dist/index.js +575 -71
- package/components/select/dist/registered.js +575 -71
- package/package.json +2 -2
- package/components/form/demo/autocomplete.html +0 -15
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
## Properties
|
|
13
13
|
|
|
14
14
|
| Property | Attribute | Type | Default | Description |
|
|
15
|
-
|-------------------------|-------------------------|-------------|----------------|--------------------------------------------------|
|
|
15
|
+
|-------------------------|-------------------------|-------------|----------------|--------------------------------------------------|
|
|
16
|
+
| `a11yAutocomplete` | | `string` | | The value for the aria-autocomplete attribute of the trigger element. |
|
|
17
|
+
| `a11yRole` | | | | The value for the role attribute of the trigger element. |
|
|
16
18
|
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
17
19
|
| [bordered](#bordered) | `bordered` | ` Boolean ` | | If declared, applies a border around the trigger slot. |
|
|
18
20
|
| [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
| [error](#error) | `error` | ` Boolean ` | | If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both. |
|
|
22
24
|
| [fluid](#fluid) | `fluid` | `Boolean` | | Makes the trigger to be full width of its parent container. |
|
|
23
25
|
| [focusShow](#focusShow) | `focusShow` | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
24
|
-
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | ` String ` |
|
|
26
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | ` String ` | | Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint. |
|
|
25
27
|
| [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
26
28
|
| [inset](#inset) | `inset` | ` Boolean ` | | If declared, will apply padding around trigger slot content. |
|
|
27
29
|
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
@@ -46,10 +48,11 @@
|
|
|
46
48
|
|
|
47
49
|
## Events
|
|
48
50
|
|
|
49
|
-
| Event | Description |
|
|
50
|
-
|
|
51
|
-
| `auroDropdown-
|
|
52
|
-
| `auroDropdown-
|
|
51
|
+
| Event | Type | Description |
|
|
52
|
+
|-----------------------------|--------------------------------------|--------------------------------------------------|
|
|
53
|
+
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | Notifies consumers that the unique ID for the dropdown bib has been generated. |
|
|
54
|
+
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
55
|
+
| `auroDropdown-triggerClick` | | Notifies that the trigger has been clicked. |
|
|
53
56
|
|
|
54
57
|
## Slots
|
|
55
58
|
|
|
@@ -1899,7 +1899,7 @@ class AuroFloatingUI {
|
|
|
1899
1899
|
/**
|
|
1900
1900
|
* @private
|
|
1901
1901
|
* getting called on 'blur' in trigger or `focusin` in document
|
|
1902
|
-
*
|
|
1902
|
+
*
|
|
1903
1903
|
* Hides the bib if focus moves outside of the trigger or bib, unless a 'noHideOnThisFocusLoss' flag is set.
|
|
1904
1904
|
* This method checks if the currently active element is still within the trigger or bib.
|
|
1905
1905
|
* If not, and if the bib isn't in fullscreen mode with focus lost, it hides the bib.
|
|
@@ -2015,7 +2015,7 @@ class AuroFloatingUI {
|
|
|
2015
2015
|
// Close any other dropdown that is already open
|
|
2016
2016
|
const existedVisibleFloatingUI = document.expandedAuroFormkitDropdown || document.expandedAuroFloater;
|
|
2017
2017
|
if (existedVisibleFloatingUI && existedVisibleFloatingUI !== this &&
|
|
2018
|
-
existedVisibleFloatingUI.isPopoverVisible &&
|
|
2018
|
+
existedVisibleFloatingUI.element.isPopoverVisible &&
|
|
2019
2019
|
document.expandedAuroFloater.eventPrefix === this.eventPrefix) {
|
|
2020
2020
|
document.expandedAuroFloater.hideBib();
|
|
2021
2021
|
}
|
|
@@ -2191,7 +2191,7 @@ class AuroFloatingUI {
|
|
|
2191
2191
|
this.id = window.crypto.randomUUID();
|
|
2192
2192
|
this.element.setAttribute('id', this.id);
|
|
2193
2193
|
}
|
|
2194
|
-
|
|
2194
|
+
|
|
2195
2195
|
this.element.bib.setAttribute("id", `${this.id}-floater-bib`);
|
|
2196
2196
|
}
|
|
2197
2197
|
|
|
@@ -2244,7 +2244,7 @@ class AuroFloatingUI {
|
|
|
2244
2244
|
if (this.element.bib) {
|
|
2245
2245
|
this.element.shadowRoot.append(this.element.bib);
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
|
|
2248
2248
|
// Remove event & keyboard listeners
|
|
2249
2249
|
if (this.element?.trigger) {
|
|
2250
2250
|
this.element.trigger.removeEventListener('keydown', this.handleEvent);
|
|
@@ -2653,7 +2653,6 @@ var tokensCss$1 = i$3`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
2653
2653
|
|
|
2654
2654
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
2655
2655
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
2656
|
-
'xl',
|
|
2657
2656
|
'lg',
|
|
2658
2657
|
'md',
|
|
2659
2658
|
'sm',
|
|
@@ -2725,7 +2724,6 @@ class AuroDropdownBib extends r {
|
|
|
2725
2724
|
|
|
2726
2725
|
set mobileFullscreenBreakpoint(value) {
|
|
2727
2726
|
// verify the defined breakpoint is valid and exit out if not
|
|
2728
|
-
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
2729
2727
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
2730
2728
|
if (!validatedValue) {
|
|
2731
2729
|
this._mobileBreakpointValue = undefined;
|
|
@@ -2994,6 +2992,7 @@ var helpTextVersion = '1.0.0';
|
|
|
2994
2992
|
* @csspart helpText - The helpText content container.
|
|
2995
2993
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
2996
2994
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
2995
|
+
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
2997
2996
|
*/
|
|
2998
2997
|
class AuroDropdown extends r {
|
|
2999
2998
|
constructor() {
|
|
@@ -3039,7 +3038,9 @@ class AuroDropdown extends r {
|
|
|
3039
3038
|
this.rounded = false;
|
|
3040
3039
|
this.tabIndex = 0;
|
|
3041
3040
|
this.noToggle = false;
|
|
3041
|
+
this.a11yAutocomplete = 'none';
|
|
3042
3042
|
this.labeled = true;
|
|
3043
|
+
this.a11yRole = 'combobox';
|
|
3043
3044
|
this.onDark = false;
|
|
3044
3045
|
|
|
3045
3046
|
// floaterConfig
|
|
@@ -3175,6 +3176,16 @@ class AuroDropdown extends r {
|
|
|
3175
3176
|
type: Number
|
|
3176
3177
|
},
|
|
3177
3178
|
|
|
3179
|
+
/**
|
|
3180
|
+
* The unique ID for the dropdown bib element.
|
|
3181
|
+
* @private
|
|
3182
|
+
*/
|
|
3183
|
+
dropdownId: {
|
|
3184
|
+
type: String,
|
|
3185
|
+
reflect: false,
|
|
3186
|
+
attribute: false
|
|
3187
|
+
},
|
|
3188
|
+
|
|
3178
3189
|
/**
|
|
3179
3190
|
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
3180
3191
|
*/
|
|
@@ -3238,12 +3249,7 @@ class AuroDropdown extends r {
|
|
|
3238
3249
|
},
|
|
3239
3250
|
|
|
3240
3251
|
/**
|
|
3241
|
-
* Defines the screen size breakpoint (`
|
|
3242
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
3243
|
-
*
|
|
3244
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
3245
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
3246
|
-
* @default sm
|
|
3252
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3247
3253
|
*/
|
|
3248
3254
|
fullscreenBreakpoint: {
|
|
3249
3255
|
type: String,
|
|
@@ -3342,6 +3348,23 @@ class AuroDropdown extends r {
|
|
|
3342
3348
|
*/
|
|
3343
3349
|
tabIndex: {
|
|
3344
3350
|
type: Number
|
|
3351
|
+
},
|
|
3352
|
+
|
|
3353
|
+
/**
|
|
3354
|
+
* The value for the role attribute of the trigger element.
|
|
3355
|
+
*/
|
|
3356
|
+
a11yRole: {
|
|
3357
|
+
type: String || undefined,
|
|
3358
|
+
attribute: false,
|
|
3359
|
+
reflect: false
|
|
3360
|
+
},
|
|
3361
|
+
|
|
3362
|
+
/**
|
|
3363
|
+
* The value for the aria-autocomplete attribute of the trigger element.
|
|
3364
|
+
*/
|
|
3365
|
+
a11yAutocomplete: {
|
|
3366
|
+
type: String,
|
|
3367
|
+
attribute: false,
|
|
3345
3368
|
}
|
|
3346
3369
|
};
|
|
3347
3370
|
}
|
|
@@ -3366,15 +3389,6 @@ class AuroDropdown extends r {
|
|
|
3366
3389
|
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
3367
3390
|
}
|
|
3368
3391
|
|
|
3369
|
-
/**
|
|
3370
|
-
* Accessor for reusing the focusable entity query string.
|
|
3371
|
-
* @private
|
|
3372
|
-
* @returns {string}
|
|
3373
|
-
*/
|
|
3374
|
-
get focusableEntityQuery () {
|
|
3375
|
-
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
3392
|
connectedCallback() {
|
|
3379
3393
|
super.connectedCallback();
|
|
3380
3394
|
}
|
|
@@ -3388,8 +3402,6 @@ class AuroDropdown extends r {
|
|
|
3388
3402
|
updated(changedProperties) {
|
|
3389
3403
|
this.floater.handleUpdate(changedProperties);
|
|
3390
3404
|
|
|
3391
|
-
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
3392
|
-
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
3393
3405
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3394
3406
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3395
3407
|
}
|
|
@@ -3403,7 +3415,22 @@ class AuroDropdown extends r {
|
|
|
3403
3415
|
}
|
|
3404
3416
|
|
|
3405
3417
|
firstUpdated() {
|
|
3418
|
+
|
|
3419
|
+
// Configure the floater to, this will generate the ID for the bib
|
|
3406
3420
|
this.floater.configure(this, 'auroDropdown');
|
|
3421
|
+
|
|
3422
|
+
/**
|
|
3423
|
+
* @description Let subscribers know that the dropdown ID ha been generated and added.
|
|
3424
|
+
* @event auroDropdown-idAdded
|
|
3425
|
+
* @type {Object<key: 'id', value: string>} - The ID of the dropdown bib element.
|
|
3426
|
+
*/
|
|
3427
|
+
this.dispatchEvent(new CustomEvent('auroDropdown-idAdded', {detail: {id: this.floater.element.id}}));
|
|
3428
|
+
|
|
3429
|
+
// Set the bib ID locally if the user hasn't provided a focusable trigger
|
|
3430
|
+
if (!this.triggerContentFocusable) {
|
|
3431
|
+
this.dropdownId = this.floater.element.id;
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3407
3434
|
this.bibContent = this.floater.element.bib;
|
|
3408
3435
|
|
|
3409
3436
|
// Add the tag name as an attribute if it is different than the component name
|
|
@@ -3525,7 +3552,7 @@ class AuroDropdown extends r {
|
|
|
3525
3552
|
|
|
3526
3553
|
this.triggerContentSlot.forEach((node) => {
|
|
3527
3554
|
if (node.querySelectorAll) {
|
|
3528
|
-
const auroElements = node.querySelectorAll(
|
|
3555
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
3529
3556
|
auroElements.forEach((auroEl) => {
|
|
3530
3557
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
3531
3558
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -3546,7 +3573,7 @@ class AuroDropdown extends r {
|
|
|
3546
3573
|
|
|
3547
3574
|
this.triggerContentSlot.forEach((node) => {
|
|
3548
3575
|
if (node.querySelectorAll) {
|
|
3549
|
-
const auroElements = node.querySelectorAll(
|
|
3576
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
3550
3577
|
auroElements.forEach((auroEl) => {
|
|
3551
3578
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
3552
3579
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -3555,6 +3582,30 @@ class AuroDropdown extends r {
|
|
|
3555
3582
|
});
|
|
3556
3583
|
}
|
|
3557
3584
|
|
|
3585
|
+
/*
|
|
3586
|
+
* Sets aria attributes for the trigger element if a custom one is passed in.
|
|
3587
|
+
* @private
|
|
3588
|
+
* @method setTriggerAriaAttributes
|
|
3589
|
+
* @param { HTMLElement } triggerElement - The custom trigger element.
|
|
3590
|
+
*/
|
|
3591
|
+
clearTriggerA11yAttributes(triggerElement) {
|
|
3592
|
+
|
|
3593
|
+
if (!triggerElement || !triggerElement.removeAttribute) {
|
|
3594
|
+
return;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
// Reset appropriate attributes for a11y
|
|
3598
|
+
triggerElement.removeAttribute('aria-labelledby');
|
|
3599
|
+
if (triggerElement.getAttribute('id') === `${this.id}-trigger-element`) {
|
|
3600
|
+
triggerElement.removeAttribute('id');
|
|
3601
|
+
}
|
|
3602
|
+
triggerElement.removeAttribute('role');
|
|
3603
|
+
triggerElement.removeAttribute('aria-expanded');
|
|
3604
|
+
|
|
3605
|
+
triggerElement.removeAttribute('aria-controls');
|
|
3606
|
+
triggerElement.removeAttribute('aria-autocomplete');
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3558
3609
|
/**
|
|
3559
3610
|
* Handles changes to the trigger content slot and updates related properties.
|
|
3560
3611
|
*
|
|
@@ -3568,32 +3619,41 @@ class AuroDropdown extends r {
|
|
|
3568
3619
|
* @returns {void}
|
|
3569
3620
|
*/
|
|
3570
3621
|
handleTriggerContentSlotChange(event) {
|
|
3622
|
+
|
|
3571
3623
|
this.floater.handleTriggerTabIndex();
|
|
3572
3624
|
|
|
3625
|
+
// Get the trigger
|
|
3626
|
+
const trigger = this.shadowRoot.querySelector('#trigger');
|
|
3627
|
+
|
|
3628
|
+
// Get the trigger slot
|
|
3573
3629
|
const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
|
|
3574
3630
|
|
|
3631
|
+
// If there's a trigger slot
|
|
3575
3632
|
if (triggerSlot) {
|
|
3576
3633
|
|
|
3634
|
+
// Get the content nodes to see if there are any children
|
|
3577
3635
|
const triggerContentNodes = triggerSlot.assignedNodes();
|
|
3578
3636
|
|
|
3637
|
+
// If there are children
|
|
3579
3638
|
if (triggerContentNodes) {
|
|
3580
3639
|
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
this.triggerContentFocusable = this.containsFocusableElement(node);
|
|
3584
|
-
}
|
|
3585
|
-
});
|
|
3586
|
-
}
|
|
3587
|
-
}
|
|
3640
|
+
// See if any of them are focusable elemeents
|
|
3641
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
|
|
3588
3642
|
|
|
3589
|
-
|
|
3643
|
+
// If any of them are focusable elements
|
|
3644
|
+
if (this.triggerContentFocusable) {
|
|
3590
3645
|
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3646
|
+
// Assume the consumer will be providing their own a11y in whatever they passed in
|
|
3647
|
+
this.clearTriggerA11yAttributes(trigger);
|
|
3648
|
+
|
|
3649
|
+
// Remove the tabindex from the trigger so it doesn't interrupt focus flow
|
|
3650
|
+
trigger.removeAttribute('tabindex');
|
|
3651
|
+
} else {
|
|
3652
|
+
|
|
3653
|
+
// Add the tabindex to the trigger so that it's in the focus flow
|
|
3654
|
+
trigger.setAttribute('tabindex', '0');
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3597
3657
|
}
|
|
3598
3658
|
|
|
3599
3659
|
if (event) {
|
|
@@ -3603,6 +3663,7 @@ class AuroDropdown extends r {
|
|
|
3603
3663
|
|
|
3604
3664
|
if (this.triggerContentSlot) {
|
|
3605
3665
|
this.setupTriggerFocusEventBinding();
|
|
3666
|
+
|
|
3606
3667
|
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
3607
3668
|
if (slot.textContent.trim()) {
|
|
3608
3669
|
return true;
|
|
@@ -3670,10 +3731,13 @@ class AuroDropdown extends r {
|
|
|
3670
3731
|
id="trigger"
|
|
3671
3732
|
class="trigger"
|
|
3672
3733
|
part="trigger"
|
|
3673
|
-
aria-labelledby="triggerLabel"
|
|
3674
3734
|
tabindex="${this.tabIndex}"
|
|
3675
3735
|
?showBorder="${this.showTriggerBorders}"
|
|
3676
|
-
|
|
3736
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
3737
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
3738
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
3739
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
3740
|
+
>
|
|
3677
3741
|
<div class="triggerContentWrapper">
|
|
3678
3742
|
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3679
3743
|
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
@@ -3707,12 +3771,12 @@ class AuroDropdown extends r {
|
|
|
3707
3771
|
<div id="bibSizer" part="size"></div>
|
|
3708
3772
|
<${this.dropdownBibTag}
|
|
3709
3773
|
id="bib"
|
|
3710
|
-
role="tooltip"
|
|
3711
3774
|
?data-show="${this.isPopoverVisible}"
|
|
3712
3775
|
?isfullscreen="${this.isBibFullscreen}"
|
|
3713
3776
|
?common="${this.common}"
|
|
3714
3777
|
?rounded="${this.common || this.rounded}"
|
|
3715
|
-
?inset="${this.common || this.inset}"
|
|
3778
|
+
?inset="${this.common || this.inset}"
|
|
3779
|
+
>
|
|
3716
3780
|
</${this.dropdownBibTag}>
|
|
3717
3781
|
</div>
|
|
3718
3782
|
`;
|
|
@@ -411,89 +411,6 @@ To make the dropdown to be just big as the trigger's content, style the `auro-dr
|
|
|
411
411
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
412
412
|
</auro-accordion>
|
|
413
413
|
|
|
414
|
-
## Triggering a fullscreen dropdown
|
|
415
|
-
This example shows how to set a dropdown fullscreen breakpoint attribute. Most consuming components use `sm` by default, but
|
|
416
|
-
dropdown supports `xs`, `sm`, `md`, `lg`, `xl` and `disabled`, with `disabled` ensuring that the dropdown will never be fullscreen.
|
|
417
|
-
|
|
418
|
-
<div class="exampleWrapper">
|
|
419
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen.html) -->
|
|
420
|
-
<!-- The below content is automatically added from ./../apiExamples/fullscreen.html -->
|
|
421
|
-
<h3>Never fullscreen</h3>
|
|
422
|
-
<auro-dropdown id="common-never-fullscreen" common aria-label="Label content for screen reader" fullscreenBreakpoint="disabled">
|
|
423
|
-
<div style="padding: var(--ds-size-150);">
|
|
424
|
-
Lorem ipsum solar
|
|
425
|
-
<br />
|
|
426
|
-
<auro-button onclick="document.querySelector('#common-never-fullscreen').hide()">
|
|
427
|
-
Dismiss Dropdown
|
|
428
|
-
</auro-button>
|
|
429
|
-
</div>
|
|
430
|
-
<span slot="helpText">
|
|
431
|
-
Help text
|
|
432
|
-
</span>
|
|
433
|
-
<div slot="trigger">
|
|
434
|
-
Trigger
|
|
435
|
-
</div>
|
|
436
|
-
</auro-dropdown>
|
|
437
|
-
<h3>Always fullscreen</h3>
|
|
438
|
-
<auro-dropdown id="common-always-fullscreen" common aria-label="Label content for screen reader" fullscreenBreakpoint="xl">
|
|
439
|
-
<div style="padding: var(--ds-size-150);">
|
|
440
|
-
Lorem ipsum solar
|
|
441
|
-
<br />
|
|
442
|
-
<auro-button onclick="document.querySelector('#common-always-fullscreen').hide()">
|
|
443
|
-
Dismiss Dropdown
|
|
444
|
-
</auro-button>
|
|
445
|
-
</div>
|
|
446
|
-
<span slot="helpText">
|
|
447
|
-
Help text
|
|
448
|
-
</span>
|
|
449
|
-
<div slot="trigger">
|
|
450
|
-
Trigger
|
|
451
|
-
</div>
|
|
452
|
-
</auro-dropdown>
|
|
453
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
454
|
-
</div>
|
|
455
|
-
<auro-accordion alignRight>
|
|
456
|
-
<span slot="trigger">See code</span>
|
|
457
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen.html) -->
|
|
458
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/fullscreen.html -->
|
|
459
|
-
|
|
460
|
-
```html
|
|
461
|
-
<h3>Never fullscreen</h3>
|
|
462
|
-
<auro-dropdown id="common-never-fullscreen" common aria-label="Label content for screen reader" fullscreenBreakpoint="disabled">
|
|
463
|
-
<div style="padding: var(--ds-size-150);">
|
|
464
|
-
Lorem ipsum solar
|
|
465
|
-
<br />
|
|
466
|
-
<auro-button onclick="document.querySelector('#common-never-fullscreen').hide()">
|
|
467
|
-
Dismiss Dropdown
|
|
468
|
-
</auro-button>
|
|
469
|
-
</div>
|
|
470
|
-
<span slot="helpText">
|
|
471
|
-
Help text
|
|
472
|
-
</span>
|
|
473
|
-
<div slot="trigger">
|
|
474
|
-
Trigger
|
|
475
|
-
</div>
|
|
476
|
-
</auro-dropdown>
|
|
477
|
-
<h3>Always fullscreen</h3>
|
|
478
|
-
<auro-dropdown id="common-always-fullscreen" common aria-label="Label content for screen reader" fullscreenBreakpoint="xl">
|
|
479
|
-
<div style="padding: var(--ds-size-150);">
|
|
480
|
-
Lorem ipsum solar
|
|
481
|
-
<br />
|
|
482
|
-
<auro-button onclick="document.querySelector('#common-always-fullscreen').hide()">
|
|
483
|
-
Dismiss Dropdown
|
|
484
|
-
</auro-button>
|
|
485
|
-
</div>
|
|
486
|
-
<span slot="helpText">
|
|
487
|
-
Help text
|
|
488
|
-
</span>
|
|
489
|
-
<div slot="trigger">
|
|
490
|
-
Trigger
|
|
491
|
-
</div>
|
|
492
|
-
</auro-dropdown>
|
|
493
|
-
```
|
|
494
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
495
|
-
</auro-accordion>
|
|
496
|
-
|
|
497
414
|
## Supported standard and accessible interactions
|
|
498
415
|
|
|
499
416
|
The dropdown can be opened with the following actions:
|