@aurodesignsystem-dev/auro-formkit 0.0.0-pr1332.1 → 0.0.0-pr1335.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/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +8 -53
- package/components/combobox/demo/index.min.js +8 -53
- package/components/combobox/dist/auro-combobox.d.ts +1 -1
- package/components/combobox/dist/index.js +8 -53
- package/components/combobox/dist/registered.js +8 -53
- package/components/counter/demo/api.min.js +3 -17
- package/components/counter/demo/index.min.js +3 -17
- package/components/counter/dist/index.js +3 -17
- package/components/counter/dist/registered.js +3 -17
- package/components/datepicker/demo/api.min.js +6 -33
- package/components/datepicker/demo/index.min.js +6 -33
- package/components/datepicker/dist/index.js +6 -33
- package/components/datepicker/dist/registered.js +6 -33
- package/components/dropdown/demo/api.min.js +2 -16
- package/components/dropdown/demo/index.min.js +2 -16
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -9
- package/components/dropdown/dist/index.js +2 -16
- package/components/dropdown/dist/registered.js +2 -16
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +3 -16
- package/components/input/demo/index.min.js +3 -16
- package/components/input/dist/auro-input.d.ts +1 -0
- package/components/input/dist/base-input.d.ts +0 -9
- package/components/input/dist/index.js +3 -16
- package/components/input/dist/registered.js +3 -16
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +11 -56
- package/components/select/demo/index.min.js +11 -56
- package/components/select/dist/auro-select.d.ts +0 -7
- package/components/select/dist/index.js +11 -56
- package/components/select/dist/registered.js +11 -56
- package/custom-elements.json +10 -87
- package/package.json +11 -3
|
@@ -4357,7 +4357,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
};
|
|
4359
4359
|
|
|
4360
|
-
var formkitVersion$1 = '
|
|
4360
|
+
var formkitVersion$1 = '202602131810';
|
|
4361
4361
|
|
|
4362
4362
|
class AuroElement extends LitElement {
|
|
4363
4363
|
static get properties() {
|
|
@@ -4644,20 +4644,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4644
4644
|
}
|
|
4645
4645
|
}
|
|
4646
4646
|
|
|
4647
|
-
/**
|
|
4648
|
-
* Sets the active descendant element for accessibility.
|
|
4649
|
-
* Uses ariaActiveDescendantElement to cross shadow DOM boundaries.
|
|
4650
|
-
* This function is used in components that contain `auro-dropdown` to set the active descendant.
|
|
4651
|
-
* @private
|
|
4652
|
-
* @param {HTMLElement|null} element - The element to set as the active descendant, or null to clear.
|
|
4653
|
-
* @returns {void}
|
|
4654
|
-
*/
|
|
4655
|
-
setActiveDescendant(element) {
|
|
4656
|
-
if (this.trigger) {
|
|
4657
|
-
this.trigger.ariaActiveDescendantElement = element;
|
|
4658
|
-
}
|
|
4659
|
-
}
|
|
4660
|
-
|
|
4661
4647
|
// function to define props used within the scope of this component
|
|
4662
4648
|
static get properties() {
|
|
4663
4649
|
return {
|
|
@@ -5301,7 +5287,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5301
5287
|
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
5302
5288
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
5303
5289
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5304
|
-
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined :
|
|
5290
|
+
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
5305
5291
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
5306
5292
|
@focusin="${this.handleFocusin}"
|
|
5307
5293
|
@blur="${this.handleFocusOut}">
|
|
@@ -6028,7 +6014,7 @@ class AuroHelpText extends LitElement {
|
|
|
6028
6014
|
}
|
|
6029
6015
|
}
|
|
6030
6016
|
|
|
6031
|
-
var formkitVersion = '
|
|
6017
|
+
var formkitVersion = '202602131810';
|
|
6032
6018
|
|
|
6033
6019
|
var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
6034
6020
|
|
|
@@ -6365,15 +6351,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6365
6351
|
type: Object
|
|
6366
6352
|
},
|
|
6367
6353
|
|
|
6368
|
-
/**
|
|
6369
|
-
* Specifies the current active/highlighted `auro-menuoption`.
|
|
6370
|
-
* @type {HTMLElement}
|
|
6371
|
-
* @private
|
|
6372
|
-
*/
|
|
6373
|
-
optionActive: {
|
|
6374
|
-
type: Object
|
|
6375
|
-
},
|
|
6376
|
-
|
|
6377
6354
|
/**
|
|
6378
6355
|
* Define custom placeholder text.
|
|
6379
6356
|
*/
|
|
@@ -6556,17 +6533,10 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6556
6533
|
*/
|
|
6557
6534
|
configureDropdown() {
|
|
6558
6535
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
6559
|
-
this.dropdown.a11yRole = 'combobox';
|
|
6560
6536
|
|
|
6561
6537
|
this.dropdown.addEventListener('auroDropdown-toggled', () => {
|
|
6562
6538
|
this.isPopoverVisible = this.dropdown.isPopoverVisible;
|
|
6563
6539
|
|
|
6564
|
-
// Clear aria-activedescendant when dropdown closes
|
|
6565
|
-
if (!this.dropdown.isPopoverVisible) {
|
|
6566
|
-
this.dropdown.setActiveDescendant(null);
|
|
6567
|
-
this.optionActive = null;
|
|
6568
|
-
}
|
|
6569
|
-
|
|
6570
6540
|
if (this.dropdown.isPopoverVisible) {
|
|
6571
6541
|
this.updateMenuShapeSize();
|
|
6572
6542
|
// wait til the bib gets fully rendered
|
|
@@ -6703,13 +6673,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6703
6673
|
*/
|
|
6704
6674
|
configureMenu() {
|
|
6705
6675
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
6706
|
-
|
|
6707
|
-
const labelElement = this.querySelector('span[slot="label"]');
|
|
6708
|
-
|
|
6709
|
-
if (labelElement) {
|
|
6710
|
-
this.menu.setAttribute('aria-label', labelElement.textContent);
|
|
6711
|
-
}
|
|
6712
|
-
|
|
6713
6676
|
this.defaultMenuSize = this.menu.getAttribute('size');
|
|
6714
6677
|
this.defaultMenuShape = this.menu.getAttribute('shape');
|
|
6715
6678
|
|
|
@@ -6729,15 +6692,8 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6729
6692
|
}
|
|
6730
6693
|
|
|
6731
6694
|
this.options = this.menu.options;
|
|
6695
|
+
this.menu.setAttribute('aria-hidden', 'true');
|
|
6732
6696
|
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
6733
|
-
|
|
6734
|
-
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
6735
|
-
this.optionActive = evt.detail;
|
|
6736
|
-
|
|
6737
|
-
if (this.dropdown) {
|
|
6738
|
-
this.dropdown.setActiveDescendant(this.optionActive);
|
|
6739
|
-
}
|
|
6740
|
-
});
|
|
6741
6697
|
this.menu.addEventListener('auroMenu-selectedOption', (event) => {
|
|
6742
6698
|
|
|
6743
6699
|
// Update the displayed value
|
|
@@ -7202,6 +7158,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7202
7158
|
</div>
|
|
7203
7159
|
<${this.dropdownTag}
|
|
7204
7160
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7161
|
+
a11yRole="select"
|
|
7205
7162
|
?autoPlacement="${this.autoPlacement}"
|
|
7206
7163
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
7207
7164
|
?matchWidth="${this.matchWidth}"
|
|
@@ -7216,13 +7173,13 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7216
7173
|
part="dropdown"
|
|
7217
7174
|
shape="${this.shape}"
|
|
7218
7175
|
size="${this.size}">
|
|
7219
|
-
<div slot="trigger" aria-haspopup="
|
|
7176
|
+
<div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
|
|
7220
7177
|
<div class="accents left">
|
|
7221
7178
|
<slot name="typeIcon"></slot>
|
|
7222
7179
|
</div>
|
|
7223
7180
|
<div class="mainContent">
|
|
7224
7181
|
<div class="${classMap(valueContainerClasses)}">
|
|
7225
|
-
<label
|
|
7182
|
+
<label class="${classMap(this.commonLabelClasses)}">
|
|
7226
7183
|
<slot name="label"></slot>
|
|
7227
7184
|
${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
|
|
7228
7185
|
</label>
|
|
@@ -7281,7 +7238,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7281
7238
|
</div>
|
|
7282
7239
|
<${this.dropdownTag}
|
|
7283
7240
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7284
|
-
a11yRole="combobox"
|
|
7285
7241
|
?autoPlacement="${this.autoPlacement}"
|
|
7286
7242
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
7287
7243
|
?matchWidth="${this.matchWidth}"
|
|
@@ -7295,13 +7251,13 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7295
7251
|
part="dropdown"
|
|
7296
7252
|
shape="${this.shape}"
|
|
7297
7253
|
size="${this.size}">
|
|
7298
|
-
<div slot="trigger" aria-haspopup="
|
|
7254
|
+
<div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
|
|
7299
7255
|
<div class="accents left">
|
|
7300
7256
|
<slot name="typeIcon"></slot>
|
|
7301
7257
|
</div>
|
|
7302
7258
|
<div class="mainContent">
|
|
7303
7259
|
<div class="${classMap(valueContainerClasses)}">
|
|
7304
|
-
<label
|
|
7260
|
+
<label class="${classMap(this.commonLabelClasses)}">
|
|
7305
7261
|
<slot name="label"></slot>
|
|
7306
7262
|
${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
|
|
7307
7263
|
</label>
|
|
@@ -7366,7 +7322,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7366
7322
|
</div>
|
|
7367
7323
|
<${this.dropdownTag}
|
|
7368
7324
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7369
|
-
a11yRole="combobox"
|
|
7370
7325
|
?autoPlacement="${this.autoPlacement}"
|
|
7371
7326
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
7372
7327
|
?matchWidth="${!this.flexMenuWidth}"
|
|
@@ -7380,13 +7335,13 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7380
7335
|
part="dropdown"
|
|
7381
7336
|
shape="${this.shape}"
|
|
7382
7337
|
size="${this.size}">
|
|
7383
|
-
<div slot="trigger" aria-haspopup="
|
|
7338
|
+
<div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
|
|
7384
7339
|
<div class="accents left">
|
|
7385
7340
|
<slot name="typeIcon"></slot>
|
|
7386
7341
|
</div>
|
|
7387
7342
|
<div class="mainContent">
|
|
7388
7343
|
<div class="${classMap(valueContainerClasses)}">
|
|
7389
|
-
<label
|
|
7344
|
+
<label class="${classMap(this.commonLabelClasses)}">
|
|
7390
7345
|
<slot name="label"></slot>
|
|
7391
7346
|
${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
|
|
7392
7347
|
</label>
|
package/custom-elements.json
CHANGED
|
@@ -1925,7 +1925,7 @@
|
|
|
1925
1925
|
"type": {
|
|
1926
1926
|
"text": "object"
|
|
1927
1927
|
},
|
|
1928
|
-
"description": "Specifies the currently active
|
|
1928
|
+
"description": "Specifies the currently active option."
|
|
1929
1929
|
},
|
|
1930
1930
|
{
|
|
1931
1931
|
"kind": "field",
|
|
@@ -7689,26 +7689,6 @@
|
|
|
7689
7689
|
"name": "focus",
|
|
7690
7690
|
"description": "When bib is open, focus on the first element inside of bib.\nIf not, trigger element will get focus."
|
|
7691
7691
|
},
|
|
7692
|
-
{
|
|
7693
|
-
"kind": "method",
|
|
7694
|
-
"name": "setActiveDescendant",
|
|
7695
|
-
"parameters": [
|
|
7696
|
-
{
|
|
7697
|
-
"name": "element",
|
|
7698
|
-
"description": "The element to set as the active descendant, or null to clear.",
|
|
7699
|
-
"type": {
|
|
7700
|
-
"text": "HTMLElement|null"
|
|
7701
|
-
}
|
|
7702
|
-
}
|
|
7703
|
-
],
|
|
7704
|
-
"description": "Sets the active descendant element for accessibility.\nUses ariaActiveDescendantElement to cross shadow DOM boundaries.\nThis function is used in components that contain `auro-dropdown` to set the active descendant.",
|
|
7705
|
-
"privacy": "private",
|
|
7706
|
-
"return": {
|
|
7707
|
-
"type": {
|
|
7708
|
-
"text": "void"
|
|
7709
|
-
}
|
|
7710
|
-
}
|
|
7711
|
-
},
|
|
7712
7692
|
{
|
|
7713
7693
|
"kind": "method",
|
|
7714
7694
|
"name": "register",
|
|
@@ -9770,6 +9750,11 @@
|
|
|
9770
9750
|
"name": "commonDisplayValueWrapperClasses",
|
|
9771
9751
|
"description": "Common display value wrapper classes.",
|
|
9772
9752
|
"privacy": "private",
|
|
9753
|
+
"return": {
|
|
9754
|
+
"type": {
|
|
9755
|
+
"text": "Record<string, boolean>"
|
|
9756
|
+
}
|
|
9757
|
+
},
|
|
9773
9758
|
"readonly": true
|
|
9774
9759
|
},
|
|
9775
9760
|
{
|
|
@@ -10274,30 +10259,6 @@
|
|
|
10274
10259
|
"module": "components/input/src/base-input.js"
|
|
10275
10260
|
}
|
|
10276
10261
|
},
|
|
10277
|
-
{
|
|
10278
|
-
"kind": "method",
|
|
10279
|
-
"name": "setActiveDescendant",
|
|
10280
|
-
"parameters": [
|
|
10281
|
-
{
|
|
10282
|
-
"name": "element",
|
|
10283
|
-
"description": "The element to set as the active descendant, or null to clear.",
|
|
10284
|
-
"type": {
|
|
10285
|
-
"text": "HTMLElement|null"
|
|
10286
|
-
}
|
|
10287
|
-
}
|
|
10288
|
-
],
|
|
10289
|
-
"description": "Sets the active descendant element for accessibility.\nUses ariaActiveDescendantElement to cross shadow DOM boundaries.\nThis function is used in components that contain `auro-input` to set the active descendant.",
|
|
10290
|
-
"privacy": "private",
|
|
10291
|
-
"return": {
|
|
10292
|
-
"type": {
|
|
10293
|
-
"text": "void"
|
|
10294
|
-
}
|
|
10295
|
-
},
|
|
10296
|
-
"inheritedFrom": {
|
|
10297
|
-
"name": "BaseInput",
|
|
10298
|
-
"module": "components/input/src/base-input.js"
|
|
10299
|
-
}
|
|
10300
|
-
},
|
|
10301
10262
|
{
|
|
10302
10263
|
"kind": "method",
|
|
10303
10264
|
"name": "validate",
|
|
@@ -10814,7 +10775,7 @@
|
|
|
10814
10775
|
"type": {
|
|
10815
10776
|
"text": "number"
|
|
10816
10777
|
},
|
|
10817
|
-
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher
|
|
10778
|
+
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.\n**Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.",
|
|
10818
10779
|
"attribute": "maxLength",
|
|
10819
10780
|
"reflects": true,
|
|
10820
10781
|
"inheritedFrom": {
|
|
@@ -11535,7 +11496,7 @@
|
|
|
11535
11496
|
"type": {
|
|
11536
11497
|
"text": "number"
|
|
11537
11498
|
},
|
|
11538
|
-
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher
|
|
11499
|
+
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.\n**Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.",
|
|
11539
11500
|
"fieldName": "maxLength",
|
|
11540
11501
|
"inheritedFrom": {
|
|
11541
11502
|
"name": "BaseInput",
|
|
@@ -12156,26 +12117,6 @@
|
|
|
12156
12117
|
}
|
|
12157
12118
|
}
|
|
12158
12119
|
},
|
|
12159
|
-
{
|
|
12160
|
-
"kind": "method",
|
|
12161
|
-
"name": "setActiveDescendant",
|
|
12162
|
-
"parameters": [
|
|
12163
|
-
{
|
|
12164
|
-
"name": "element",
|
|
12165
|
-
"description": "The element to set as the active descendant, or null to clear.",
|
|
12166
|
-
"type": {
|
|
12167
|
-
"text": "HTMLElement|null"
|
|
12168
|
-
}
|
|
12169
|
-
}
|
|
12170
|
-
],
|
|
12171
|
-
"description": "Sets the active descendant element for accessibility.\nUses ariaActiveDescendantElement to cross shadow DOM boundaries.\nThis function is used in components that contain `auro-input` to set the active descendant.",
|
|
12172
|
-
"privacy": "private",
|
|
12173
|
-
"return": {
|
|
12174
|
-
"type": {
|
|
12175
|
-
"text": "void"
|
|
12176
|
-
}
|
|
12177
|
-
}
|
|
12178
|
-
},
|
|
12179
12120
|
{
|
|
12180
12121
|
"kind": "method",
|
|
12181
12122
|
"name": "validate",
|
|
@@ -12556,7 +12497,7 @@
|
|
|
12556
12497
|
"type": {
|
|
12557
12498
|
"text": "number"
|
|
12558
12499
|
},
|
|
12559
|
-
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher
|
|
12500
|
+
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.\n**Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.",
|
|
12560
12501
|
"attribute": "maxLength",
|
|
12561
12502
|
"reflects": true
|
|
12562
12503
|
},
|
|
@@ -13103,7 +13044,7 @@
|
|
|
13103
13044
|
"type": {
|
|
13104
13045
|
"text": "number"
|
|
13105
13046
|
},
|
|
13106
|
-
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher
|
|
13047
|
+
"description": "The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.\n**Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.",
|
|
13107
13048
|
"fieldName": "maxLength"
|
|
13108
13049
|
},
|
|
13109
13050
|
{
|
|
@@ -17692,16 +17633,6 @@
|
|
|
17692
17633
|
"description": "Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.",
|
|
17693
17634
|
"attribute": "optionSelected"
|
|
17694
17635
|
},
|
|
17695
|
-
{
|
|
17696
|
-
"kind": "field",
|
|
17697
|
-
"name": "optionActive",
|
|
17698
|
-
"privacy": "private",
|
|
17699
|
-
"type": {
|
|
17700
|
-
"text": "HTMLElement"
|
|
17701
|
-
},
|
|
17702
|
-
"description": "Specifies the current active/highlighted `auro-menuoption`.",
|
|
17703
|
-
"attribute": "optionActive"
|
|
17704
|
-
},
|
|
17705
17636
|
{
|
|
17706
17637
|
"kind": "field",
|
|
17707
17638
|
"name": "placeholder",
|
|
@@ -18063,14 +17994,6 @@
|
|
|
18063
17994
|
"description": "Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.",
|
|
18064
17995
|
"fieldName": "optionSelected"
|
|
18065
17996
|
},
|
|
18066
|
-
{
|
|
18067
|
-
"name": "optionActive",
|
|
18068
|
-
"type": {
|
|
18069
|
-
"text": "HTMLElement"
|
|
18070
|
-
},
|
|
18071
|
-
"description": "Specifies the current active/highlighted `auro-menuoption`.",
|
|
18072
|
-
"fieldName": "optionActive"
|
|
18073
|
-
},
|
|
18074
17997
|
{
|
|
18075
17998
|
"name": "placeholder",
|
|
18076
17999
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-pr1335.0",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -69,8 +69,10 @@
|
|
|
69
69
|
"@rollup/rollup-linux-x64-gnu": "*"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
+
"@aurodesignsystem/auro-accordion": "^6.1.1",
|
|
72
73
|
"@aurodesignsystem/auro-button": "^12.3.0",
|
|
73
74
|
"@aurodesignsystem/auro-library": "^5.5.4",
|
|
75
|
+
"@aurodesignsystem/auro-loader": "^6.1.0",
|
|
74
76
|
"@aurodesignsystem/build-tools": "*",
|
|
75
77
|
"@aurodesignsystem/config": "*",
|
|
76
78
|
"@aurodesignsystem/design-tokens": "^8.9.0",
|
|
@@ -80,7 +82,6 @@
|
|
|
80
82
|
"@aurodesignsystem/utils": "*",
|
|
81
83
|
"@aurodesignsystem/version": "*",
|
|
82
84
|
"@aurodesignsystem/webcorestylesheets": "^10.1.4",
|
|
83
|
-
"@aurodesignsystem/auro-loader": "^6.1.0",
|
|
84
85
|
"@chromatic-com/storybook": "^5.0.0",
|
|
85
86
|
"@commitlint/cli": "^19.8.1",
|
|
86
87
|
"@commitlint/config-conventional": "^19.8.1",
|
|
@@ -90,12 +91,16 @@
|
|
|
90
91
|
"@semantic-release/git": "^10.0.1",
|
|
91
92
|
"@semantic-release/npm": "^13.1.1",
|
|
92
93
|
"@storybook/addon-a11y": "^10.2.0",
|
|
94
|
+
"@storybook/addon-designs": "^11.1.1",
|
|
93
95
|
"@storybook/addon-docs": "^10.2.0",
|
|
94
|
-
"@storybook/addon-themes": "^10.2.
|
|
96
|
+
"@storybook/addon-themes": "^10.2.1",
|
|
97
|
+
"@storybook/addon-vitest": "^10.2.6",
|
|
95
98
|
"@storybook/web-components": "^10.2.0",
|
|
96
99
|
"@storybook/web-components-vite": "^10.2.0",
|
|
97
100
|
"@types/chai": "^5.2.2",
|
|
98
101
|
"@types/mocha": "^10.0.10",
|
|
102
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
103
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
99
104
|
"@wc-toolkit/storybook-helpers": "^10.0.0",
|
|
100
105
|
"@web/dev-server": "^0.4.6",
|
|
101
106
|
"@web/dev-server-hmr": "^0.4.1",
|
|
@@ -116,6 +121,7 @@
|
|
|
116
121
|
"mockdate": "^3.0.5",
|
|
117
122
|
"nodemon": "^3.1.10",
|
|
118
123
|
"npm-run-all": "^4.1.5",
|
|
124
|
+
"playwright": "^1.58.1",
|
|
119
125
|
"postcss": "^8.5.6",
|
|
120
126
|
"postcss-custom-properties": "^14.0.6",
|
|
121
127
|
"postcss-discard-comments": "^7.0.4",
|
|
@@ -125,6 +131,7 @@
|
|
|
125
131
|
"semantic-release": "^25.0.1",
|
|
126
132
|
"shadow-dom-testing-library": "^1.13.1",
|
|
127
133
|
"storybook": "^10.2.0",
|
|
134
|
+
"storybook-addon-tag-badges": "^3.0.5",
|
|
128
135
|
"stylelint": "^16.25.0",
|
|
129
136
|
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
130
137
|
"stylelint-config-standard": "^39.0.1",
|
|
@@ -133,6 +140,7 @@
|
|
|
133
140
|
"stylelint-scss": "^6.12.1",
|
|
134
141
|
"turbo": "^2.5.8",
|
|
135
142
|
"typescript": "^5.9.3",
|
|
143
|
+
"vitest": "^4.0.18",
|
|
136
144
|
"whatwg-fetch": "^3.6.20",
|
|
137
145
|
"yaml-lint": "^1.7.0"
|
|
138
146
|
},
|