@aurodesignsystem-dev/auro-formkit 0.0.0-pr788.2 → 0.0.0-pr788.3
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/combobox/demo/api.min.js +112 -17
- package/components/combobox/demo/index.md +2 -4
- package/components/combobox/demo/index.min.js +112 -17
- package/components/combobox/dist/auro-combobox.d.ts +8 -2
- package/components/combobox/dist/index.js +103 -15
- package/components/combobox/dist/registered.js +103 -15
- package/components/counter/demo/api.min.js +11 -9
- package/components/counter/demo/index.min.js +11 -9
- package/components/counter/dist/index.js +11 -9
- package/components/counter/dist/registered.js +11 -9
- package/components/datepicker/demo/api.min.js +126 -42
- package/components/datepicker/demo/index.min.js +126 -42
- package/components/datepicker/dist/index.js +126 -42
- package/components/datepicker/dist/registered.js +126 -42
- package/components/dropdown/demo/api.min.js +2 -2
- package/components/dropdown/demo/index.min.js +2 -2
- package/components/dropdown/dist/index.js +2 -2
- package/components/dropdown/dist/registered.js +2 -2
- package/components/input/demo/api.md +2 -5
- package/components/input/demo/api.min.js +89 -12
- package/components/input/demo/index.md +2 -2
- package/components/input/demo/index.min.js +89 -12
- package/components/input/dist/auro-input.d.ts +24 -0
- package/components/input/dist/base-input.d.ts +8 -2
- package/components/input/dist/index.js +89 -12
- package/components/input/dist/registered.js +89 -12
- package/components/menu/demo/api.min.js +9 -2
- package/components/menu/demo/index.min.js +9 -2
- package/components/menu/dist/index.js +9 -2
- package/components/menu/dist/registered.js +9 -2
- package/components/select/demo/api.md +1 -3
- package/components/select/demo/api.min.js +73 -34
- package/components/select/demo/index.min.js +73 -34
- package/components/select/dist/auro-select.d.ts +11 -5
- package/components/select/dist/index.js +64 -32
- package/components/select/dist/registered.js +64 -32
- package/package.json +1 -1
- package/components/input/dist/styles/default/input-css.d.ts +0 -2
- package/components/input/dist/styles/default/label-css.d.ts +0 -2
- package/components/input/dist/styles/input-css.d.ts +0 -2
|
@@ -1583,12 +1583,12 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1583
1583
|
/**
|
|
1584
1584
|
* @private
|
|
1585
1585
|
*/
|
|
1586
|
-
this.shape =
|
|
1586
|
+
this.shape = undefined;
|
|
1587
1587
|
|
|
1588
1588
|
/**
|
|
1589
1589
|
* @private
|
|
1590
1590
|
*/
|
|
1591
|
-
this.size =
|
|
1591
|
+
this.size = undefined;
|
|
1592
1592
|
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Generate unique names for dependency components.
|
|
@@ -1661,6 +1661,13 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1661
1661
|
// Add the tag name as an attribute if it is different than the component name
|
|
1662
1662
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
1663
1663
|
|
|
1664
|
+
if (!this.hasAttribute('size')) {
|
|
1665
|
+
this.size = this.parentElement.getAttribute('size') || 'sm';
|
|
1666
|
+
}
|
|
1667
|
+
if (!this.hasAttribute('shape')) {
|
|
1668
|
+
this.shape = this.parentElement.getAttribute('shape') || 'box';
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1664
1671
|
this.setAttribute('role', 'option');
|
|
1665
1672
|
this.setAttribute('aria-selected', 'false');
|
|
1666
1673
|
|
|
@@ -1543,12 +1543,12 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1543
1543
|
/**
|
|
1544
1544
|
* @private
|
|
1545
1545
|
*/
|
|
1546
|
-
this.shape =
|
|
1546
|
+
this.shape = undefined;
|
|
1547
1547
|
|
|
1548
1548
|
/**
|
|
1549
1549
|
* @private
|
|
1550
1550
|
*/
|
|
1551
|
-
this.size =
|
|
1551
|
+
this.size = undefined;
|
|
1552
1552
|
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Generate unique names for dependency components.
|
|
@@ -1621,6 +1621,13 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1621
1621
|
// Add the tag name as an attribute if it is different than the component name
|
|
1622
1622
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
1623
1623
|
|
|
1624
|
+
if (!this.hasAttribute('size')) {
|
|
1625
|
+
this.size = this.parentElement.getAttribute('size') || 'sm';
|
|
1626
|
+
}
|
|
1627
|
+
if (!this.hasAttribute('shape')) {
|
|
1628
|
+
this.shape = this.parentElement.getAttribute('shape') || 'box';
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1624
1631
|
this.setAttribute('role', 'option');
|
|
1625
1632
|
this.setAttribute('aria-selected', 'false');
|
|
1626
1633
|
|
|
@@ -1537,12 +1537,12 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1537
1537
|
/**
|
|
1538
1538
|
* @private
|
|
1539
1539
|
*/
|
|
1540
|
-
this.shape =
|
|
1540
|
+
this.shape = undefined;
|
|
1541
1541
|
|
|
1542
1542
|
/**
|
|
1543
1543
|
* @private
|
|
1544
1544
|
*/
|
|
1545
|
-
this.size =
|
|
1545
|
+
this.size = undefined;
|
|
1546
1546
|
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Generate unique names for dependency components.
|
|
@@ -1615,6 +1615,13 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1615
1615
|
// Add the tag name as an attribute if it is different than the component name
|
|
1616
1616
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
1617
1617
|
|
|
1618
|
+
if (!this.hasAttribute('size')) {
|
|
1619
|
+
this.size = this.parentElement.getAttribute('size') || 'sm';
|
|
1620
|
+
}
|
|
1621
|
+
if (!this.hasAttribute('shape')) {
|
|
1622
|
+
this.shape = this.parentElement.getAttribute('shape') || 'box';
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1618
1625
|
this.setAttribute('role', 'option');
|
|
1619
1626
|
this.setAttribute('aria-selected', 'false');
|
|
1620
1627
|
|
|
@@ -1496,12 +1496,12 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1496
1496
|
/**
|
|
1497
1497
|
* @private
|
|
1498
1498
|
*/
|
|
1499
|
-
this.shape =
|
|
1499
|
+
this.shape = undefined;
|
|
1500
1500
|
|
|
1501
1501
|
/**
|
|
1502
1502
|
* @private
|
|
1503
1503
|
*/
|
|
1504
|
-
this.size =
|
|
1504
|
+
this.size = undefined;
|
|
1505
1505
|
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Generate unique names for dependency components.
|
|
@@ -1574,6 +1574,13 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
1574
1574
|
// Add the tag name as an attribute if it is different than the component name
|
|
1575
1575
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
1576
1576
|
|
|
1577
|
+
if (!this.hasAttribute('size')) {
|
|
1578
|
+
this.size = this.parentElement.getAttribute('size') || 'sm';
|
|
1579
|
+
}
|
|
1580
|
+
if (!this.hasAttribute('shape')) {
|
|
1581
|
+
this.shape = this.parentElement.getAttribute('shape') || 'box';
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1577
1584
|
this.setAttribute('role', 'option');
|
|
1578
1585
|
this.setAttribute('aria-selected', 'false');
|
|
1579
1586
|
|
|
@@ -23,7 +23,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
23
23
|
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` | `boolean` | false | If declared, the label and value will be visually hidden and the displayValue will render 100% of the time. |
|
|
24
24
|
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
25
25
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
26
|
-
| [layout](#layout) | | `string` |
|
|
26
|
+
| [layout](#layout) | | `string` | | |
|
|
27
27
|
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
28
28
|
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
29
29
|
| [name](#name) | `name` | `string` | | The name for the select element. |
|
|
@@ -39,8 +39,6 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
39
39
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
40
40
|
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
41
41
|
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
42
|
-
| [shape](#shape) | | `string` | "snowflake" | |
|
|
43
|
-
| [size](#size) | | `string` | "xl" | |
|
|
44
42
|
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
45
43
|
| [value](#value) | `value` | `string` | | Value selected for the component. |
|
|
46
44
|
|
|
@@ -4286,11 +4286,11 @@ var shapeSizeCss$1 = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
4286
4286
|
|
|
4287
4287
|
var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4288
4288
|
|
|
4289
|
-
var styleCss$1$2 = i$5`:host{display:block
|
|
4289
|
+
var styleCss$1$2 = i$5`:host{position:relative;display:block}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;box-sizing:border-box;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
4290
4290
|
|
|
4291
4291
|
var classicColorCss = i$5``;
|
|
4292
4292
|
|
|
4293
|
-
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic])
|
|
4293
|
+
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) label{transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .wrapper{display:flex;box-sizing:border-box;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
4294
4294
|
|
|
4295
4295
|
var styleEmphasizedCss = i$5`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4296
4296
|
|
|
@@ -7633,7 +7633,7 @@ class AuroHelpText extends i$2 {
|
|
|
7633
7633
|
|
|
7634
7634
|
var helpTextVersion = '1.0.0';
|
|
7635
7635
|
|
|
7636
|
-
var styleCss$3 = i$5`.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}[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)}:host{display:inline-block}: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,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}: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;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-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]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7636
|
+
var styleCss$3 = i$5`.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.5)}.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.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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, 1)}.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.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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)}:host{display:inline-block}: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,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}: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}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-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]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7637
7637
|
|
|
7638
7638
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7639
7639
|
// See LICENSE in the project root for license information.
|
|
@@ -7670,11 +7670,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7670
7670
|
|
|
7671
7671
|
this.matchWidth = false;
|
|
7672
7672
|
|
|
7673
|
-
// Layout Config
|
|
7674
|
-
this.layout = 'snowflake';
|
|
7675
|
-
this.shape = 'snowflake';
|
|
7676
|
-
this.size = 'xl';
|
|
7677
|
-
|
|
7678
7673
|
// floaterConfig
|
|
7679
7674
|
this.placement = 'bottom-start';
|
|
7680
7675
|
this.offset = 0;
|
|
@@ -7683,10 +7678,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7683
7678
|
|
|
7684
7679
|
this.forceDisplayValue = false;
|
|
7685
7680
|
|
|
7686
|
-
this.layout = 'classic';
|
|
7687
|
-
this.shape = 'classic';
|
|
7688
|
-
this.size = 'xl';
|
|
7689
|
-
|
|
7690
7681
|
/**
|
|
7691
7682
|
* @private
|
|
7692
7683
|
*/
|
|
@@ -7752,6 +7743,11 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7752
7743
|
this.fullscreenBreakpoint = 'sm';
|
|
7753
7744
|
this.onDark = false;
|
|
7754
7745
|
this.isPopoverVisible = false;
|
|
7746
|
+
|
|
7747
|
+
// Layout Config
|
|
7748
|
+
this.layout = 'classic';
|
|
7749
|
+
this.shape = 'classic';
|
|
7750
|
+
this.size = 'lg';
|
|
7755
7751
|
}
|
|
7756
7752
|
|
|
7757
7753
|
// This function is to define props used within the scope of this component
|
|
@@ -8054,22 +8050,52 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8054
8050
|
* @returns {void}
|
|
8055
8051
|
*/
|
|
8056
8052
|
get commonLabelClasses() {
|
|
8057
|
-
|
|
8053
|
+
const obj = {
|
|
8058
8054
|
'is-disabled': this.disabled,
|
|
8059
|
-
'withValue':
|
|
8060
|
-
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8055
|
+
'withValue': false,
|
|
8056
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
|
|
8057
|
+
[this.labelFontClass]: true
|
|
8061
8058
|
};
|
|
8059
|
+
|
|
8060
|
+
if (this.placeholder) {
|
|
8061
|
+
obj.withValue = true;
|
|
8062
|
+
} else if (this.optionSelected) {
|
|
8063
|
+
if (Array.isArray(this.optionSelected)) {
|
|
8064
|
+
obj.withValue = this.optionSelected.length > 0;
|
|
8065
|
+
} else {
|
|
8066
|
+
obj.withValue = true;
|
|
8067
|
+
}
|
|
8068
|
+
}
|
|
8069
|
+
return obj;
|
|
8062
8070
|
}
|
|
8063
8071
|
|
|
8064
8072
|
/**
|
|
8065
|
-
* Returns
|
|
8073
|
+
* Returns the label font class based on layout and selection state.
|
|
8066
8074
|
* @private
|
|
8067
|
-
* @returns {
|
|
8075
|
+
* @returns {string} - The font class for the label.
|
|
8068
8076
|
*/
|
|
8069
|
-
get
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8077
|
+
get labelFontClass() {
|
|
8078
|
+
const isSelected = this.hasValue;
|
|
8079
|
+
|
|
8080
|
+
if (this.layout.startsWith('emphasized')) {
|
|
8081
|
+
return isSelected ? 'body-sm' : 'accent-xl';
|
|
8082
|
+
}
|
|
8083
|
+
|
|
8084
|
+
if (this.layout === 'snowflake') {
|
|
8085
|
+
return isSelected ? 'body-xs' : 'body-lg';
|
|
8086
|
+
}
|
|
8087
|
+
|
|
8088
|
+
// classic layout (default)
|
|
8089
|
+
return isSelected ? 'body-xs' : 'body-default';
|
|
8090
|
+
}
|
|
8091
|
+
|
|
8092
|
+
/**
|
|
8093
|
+
* Whether or not the component has a value.
|
|
8094
|
+
* @returns {boolean} - Returns true if the component has a value or placeholder.
|
|
8095
|
+
* @private
|
|
8096
|
+
*/
|
|
8097
|
+
get hasValue() {
|
|
8098
|
+
return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
|
|
8073
8099
|
}
|
|
8074
8100
|
|
|
8075
8101
|
/**
|
|
@@ -8225,7 +8251,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8225
8251
|
|
|
8226
8252
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
8227
8253
|
this.optionSelected = this.menu.optionSelected;
|
|
8228
|
-
this.
|
|
8254
|
+
this.validate(this);
|
|
8229
8255
|
});
|
|
8230
8256
|
|
|
8231
8257
|
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
@@ -8309,7 +8335,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8309
8335
|
this.addEventListener('focusin', this.handleFocusin);
|
|
8310
8336
|
|
|
8311
8337
|
this.addEventListener('blur', () => {
|
|
8312
|
-
this.
|
|
8338
|
+
this.validate();
|
|
8313
8339
|
this.hasFocus = false;
|
|
8314
8340
|
});
|
|
8315
8341
|
}
|
|
@@ -8498,7 +8524,11 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8498
8524
|
if (!this.menu) return;
|
|
8499
8525
|
|
|
8500
8526
|
this.menu.setAttribute('value', value);
|
|
8501
|
-
|
|
8527
|
+
if (value) {
|
|
8528
|
+
this.menu.value = value;
|
|
8529
|
+
} else {
|
|
8530
|
+
this.menu.reset();
|
|
8531
|
+
}
|
|
8502
8532
|
await this.menu.updateComplete;
|
|
8503
8533
|
}
|
|
8504
8534
|
|
|
@@ -8519,7 +8549,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8519
8549
|
}
|
|
8520
8550
|
|
|
8521
8551
|
this._updateNativeSelect();
|
|
8522
|
-
this.
|
|
8552
|
+
this.validate();
|
|
8523
8553
|
|
|
8524
8554
|
// LEGACY EVENT
|
|
8525
8555
|
this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
|
|
@@ -8716,7 +8746,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8716
8746
|
'displayValue': true,
|
|
8717
8747
|
'hasContent': this.hasDisplayValueContent,
|
|
8718
8748
|
'hasFocus': this.isPopoverVisible,
|
|
8719
|
-
'withValue': this.
|
|
8749
|
+
'withValue': this.commonLabelClasses.widthValue,
|
|
8720
8750
|
'force': this.forceDisplayValue,
|
|
8721
8751
|
};
|
|
8722
8752
|
|
|
@@ -8727,7 +8757,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8727
8757
|
|
|
8728
8758
|
return u`
|
|
8729
8759
|
<div
|
|
8730
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8731
8760
|
part="wrapper">
|
|
8732
8761
|
<div id="slotHolder" aria-hidden="true">
|
|
8733
8762
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8796,7 +8825,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8796
8825
|
'displayValue': true,
|
|
8797
8826
|
'hasContent': this.hasDisplayValueContent,
|
|
8798
8827
|
'hasFocus': this.isPopoverVisible,
|
|
8799
|
-
'withValue': this.
|
|
8828
|
+
'withValue': this.commonLabelClasses.widthValue,
|
|
8800
8829
|
'force': this.forceDisplayValue,
|
|
8801
8830
|
};
|
|
8802
8831
|
|
|
@@ -8807,7 +8836,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8807
8836
|
|
|
8808
8837
|
return u`
|
|
8809
8838
|
<div
|
|
8810
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8811
8839
|
part="wrapper">
|
|
8812
8840
|
<div id="slotHolder" aria-hidden="true">
|
|
8813
8841
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8876,7 +8904,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8876
8904
|
'displayValue': true,
|
|
8877
8905
|
'hasContent': this.hasDisplayValueContent,
|
|
8878
8906
|
'hasFocus': this.isPopoverVisible,
|
|
8879
|
-
'withValue': this.
|
|
8907
|
+
'withValue': this.commonLabelClasses.widthValue,
|
|
8880
8908
|
'force': this.forceDisplayValue,
|
|
8881
8909
|
};
|
|
8882
8910
|
|
|
@@ -8885,9 +8913,13 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8885
8913
|
'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
|
|
8886
8914
|
};
|
|
8887
8915
|
|
|
8916
|
+
const valueClasses = {
|
|
8917
|
+
'value': true,
|
|
8918
|
+
'body-default': true
|
|
8919
|
+
};
|
|
8920
|
+
|
|
8888
8921
|
return u`
|
|
8889
8922
|
<div
|
|
8890
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8891
8923
|
part="wrapper">
|
|
8892
8924
|
<div id="slotHolder" aria-hidden="true">
|
|
8893
8925
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8917,7 +8949,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8917
8949
|
<slot name="label"></slot>
|
|
8918
8950
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8919
8951
|
</label>
|
|
8920
|
-
<div class="
|
|
8952
|
+
<div class="${e(valueClasses)}" id="value"></div>
|
|
8921
8953
|
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8922
8954
|
${this.placeholder}
|
|
8923
8955
|
</div>
|
|
@@ -10261,12 +10293,12 @@ class AuroMenuOption extends AuroElement$4 {
|
|
|
10261
10293
|
/**
|
|
10262
10294
|
* @private
|
|
10263
10295
|
*/
|
|
10264
|
-
this.shape =
|
|
10296
|
+
this.shape = undefined;
|
|
10265
10297
|
|
|
10266
10298
|
/**
|
|
10267
10299
|
* @private
|
|
10268
10300
|
*/
|
|
10269
|
-
this.size =
|
|
10301
|
+
this.size = undefined;
|
|
10270
10302
|
|
|
10271
10303
|
/**
|
|
10272
10304
|
* Generate unique names for dependency components.
|
|
@@ -10339,6 +10371,13 @@ class AuroMenuOption extends AuroElement$4 {
|
|
|
10339
10371
|
// Add the tag name as an attribute if it is different than the component name
|
|
10340
10372
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
10341
10373
|
|
|
10374
|
+
if (!this.hasAttribute('size')) {
|
|
10375
|
+
this.size = this.parentElement.getAttribute('size') || 'sm';
|
|
10376
|
+
}
|
|
10377
|
+
if (!this.hasAttribute('shape')) {
|
|
10378
|
+
this.shape = this.parentElement.getAttribute('shape') || 'box';
|
|
10379
|
+
}
|
|
10380
|
+
|
|
10342
10381
|
this.setAttribute('role', 'option');
|
|
10343
10382
|
this.setAttribute('aria-selected', 'false');
|
|
10344
10383
|
|