@aurodesignsystem-dev/auro-formkit 0.0.0-pr811.0 → 0.0.0-pr811.1
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/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +60 -96
- package/components/bibtemplate/dist/registered.js +60 -96
- package/components/combobox/demo/api.min.js +178 -122
- package/components/combobox/demo/index.md +2 -4
- package/components/combobox/demo/index.min.js +178 -122
- package/components/combobox/dist/auro-combobox.d.ts +8 -2
- package/components/combobox/dist/index.js +174 -118
- package/components/combobox/dist/registered.js +174 -118
- package/components/counter/demo/api.min.js +90 -124
- package/components/counter/demo/index.min.js +90 -124
- package/components/counter/dist/index.js +90 -124
- package/components/counter/dist/registered.js +90 -124
- package/components/datepicker/demo/api.min.js +187 -135
- package/components/datepicker/demo/index.min.js +187 -135
- package/components/datepicker/dist/index.js +187 -135
- package/components/datepicker/dist/registered.js +187 -135
- 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 +91 -10
- package/components/input/demo/index.md +2 -2
- package/components/input/demo/index.min.js +91 -10
- 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 +91 -10
- package/components/input/dist/registered.js +91 -10
- package/components/select/demo/api.md +1 -3
- package/components/select/demo/api.min.js +113 -132
- package/components/select/demo/index.min.js +113 -132
- package/components/select/dist/auro-select.d.ts +11 -5
- package/components/select/dist/index.js +109 -128
- package/components/select/dist/registered.js +109 -128
- 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
|
@@ -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
|
|
|
@@ -651,7 +651,7 @@ const {
|
|
|
651
651
|
|
|
652
652
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
653
653
|
|
|
654
|
-
let AuroLibraryRuntimeUtils$
|
|
654
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
655
655
|
|
|
656
656
|
/* eslint-disable jsdoc/require-param */
|
|
657
657
|
|
|
@@ -721,7 +721,7 @@ let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
|
721
721
|
class AuroFormValidation {
|
|
722
722
|
|
|
723
723
|
constructor() {
|
|
724
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
724
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
/**
|
|
@@ -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{position:relative;display:block}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;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%}`;
|
|
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
|
|
|
@@ -4309,7 +4309,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
4309
4309
|
|
|
4310
4310
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4311
4311
|
|
|
4312
|
-
let AuroLibraryRuntimeUtils$
|
|
4312
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
4313
4313
|
|
|
4314
4314
|
/* eslint-disable jsdoc/require-param */
|
|
4315
4315
|
|
|
@@ -4388,7 +4388,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4388
4388
|
this.onDark = false;
|
|
4389
4389
|
this.hasTextContent = false;
|
|
4390
4390
|
|
|
4391
|
-
AuroLibraryRuntimeUtils$
|
|
4391
|
+
AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4392
4392
|
}
|
|
4393
4393
|
|
|
4394
4394
|
static get styles() {
|
|
@@ -4444,7 +4444,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4444
4444
|
*
|
|
4445
4445
|
*/
|
|
4446
4446
|
static register(name = "auro-helptext") {
|
|
4447
|
-
AuroLibraryRuntimeUtils$
|
|
4447
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
|
|
4448
4448
|
}
|
|
4449
4449
|
|
|
4450
4450
|
updated() {
|
|
@@ -5507,7 +5507,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
5507
5507
|
|
|
5508
5508
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5509
5509
|
|
|
5510
|
-
let AuroLibraryRuntimeUtils$
|
|
5510
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
5511
5511
|
|
|
5512
5512
|
/* eslint-disable jsdoc/require-param */
|
|
5513
5513
|
|
|
@@ -6090,7 +6090,7 @@ var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-sty
|
|
|
6090
6090
|
|
|
6091
6091
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6092
6092
|
|
|
6093
|
-
let AuroLibraryRuntimeUtils$
|
|
6093
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
6094
6094
|
|
|
6095
6095
|
/* eslint-disable jsdoc/require-param */
|
|
6096
6096
|
|
|
@@ -6185,7 +6185,7 @@ class AuroLoader extends i$2 {
|
|
|
6185
6185
|
/**
|
|
6186
6186
|
* @private
|
|
6187
6187
|
*/
|
|
6188
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6188
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
6189
6189
|
|
|
6190
6190
|
this.orbit = false;
|
|
6191
6191
|
this.ringworm = false;
|
|
@@ -6248,7 +6248,7 @@ class AuroLoader extends i$2 {
|
|
|
6248
6248
|
*
|
|
6249
6249
|
*/
|
|
6250
6250
|
static register(name = "auro-loader") {
|
|
6251
|
-
AuroLibraryRuntimeUtils$
|
|
6251
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
|
|
6252
6252
|
}
|
|
6253
6253
|
|
|
6254
6254
|
firstUpdated() {
|
|
@@ -6528,7 +6528,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
6528
6528
|
*
|
|
6529
6529
|
*/
|
|
6530
6530
|
static register(name = "auro-button") {
|
|
6531
|
-
AuroLibraryRuntimeUtils$
|
|
6531
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
6532
6532
|
}
|
|
6533
6533
|
|
|
6534
6534
|
/**
|
|
@@ -6865,7 +6865,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6865
6865
|
|
|
6866
6866
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6867
6867
|
|
|
6868
|
-
let AuroLibraryRuntimeUtils$
|
|
6868
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
6869
6869
|
|
|
6870
6870
|
/* eslint-disable jsdoc/require-param */
|
|
6871
6871
|
|
|
@@ -6947,7 +6947,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6947
6947
|
*/
|
|
6948
6948
|
privateDefaults() {
|
|
6949
6949
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6950
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6950
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
6951
6951
|
}
|
|
6952
6952
|
|
|
6953
6953
|
// function to define props used within the scope of this component
|
|
@@ -7029,7 +7029,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
7029
7029
|
*
|
|
7030
7030
|
*/
|
|
7031
7031
|
static register(name = "auro-icon") {
|
|
7032
|
-
AuroLibraryRuntimeUtils$
|
|
7032
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
7033
7033
|
}
|
|
7034
7034
|
|
|
7035
7035
|
connectedCallback() {
|
|
@@ -7101,77 +7101,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
7101
7101
|
|
|
7102
7102
|
var iconVersion$1 = '8.1.0';
|
|
7103
7103
|
|
|
7104
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7105
|
-
// See LICENSE in the project root for license information.
|
|
7106
|
-
|
|
7107
|
-
// ---------------------------------------------------------------------
|
|
7108
|
-
|
|
7109
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7110
|
-
|
|
7111
|
-
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
7112
|
-
|
|
7113
|
-
/* eslint-disable jsdoc/require-param */
|
|
7114
|
-
|
|
7115
|
-
/**
|
|
7116
|
-
* This will register a new custom element with the browser.
|
|
7117
|
-
* @param {String} name - The name of the custom element.
|
|
7118
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
7119
|
-
* @returns {void}
|
|
7120
|
-
*/
|
|
7121
|
-
registerComponent(name, componentClass) {
|
|
7122
|
-
if (!customElements.get(name)) {
|
|
7123
|
-
customElements.define(name, class extends componentClass {});
|
|
7124
|
-
}
|
|
7125
|
-
}
|
|
7126
|
-
|
|
7127
|
-
/**
|
|
7128
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
7129
|
-
* @returns {void}
|
|
7130
|
-
*/
|
|
7131
|
-
closestElement(
|
|
7132
|
-
selector, // selector like in .closest()
|
|
7133
|
-
base = this, // extra functionality to skip a parent
|
|
7134
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
7135
|
-
!el || el === document || el === window
|
|
7136
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
7137
|
-
: found
|
|
7138
|
-
? found // found a selector INside this element
|
|
7139
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
7140
|
-
) {
|
|
7141
|
-
return __Closest(base);
|
|
7142
|
-
}
|
|
7143
|
-
/* eslint-enable jsdoc/require-param */
|
|
7144
|
-
|
|
7145
|
-
/**
|
|
7146
|
-
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
7147
|
-
* @param {Object} elem - The element to check.
|
|
7148
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
7149
|
-
* @returns {void}
|
|
7150
|
-
*/
|
|
7151
|
-
handleComponentTagRename(elem, tagName) {
|
|
7152
|
-
const tag = tagName.toLowerCase();
|
|
7153
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7154
|
-
|
|
7155
|
-
if (elemTag !== tag) {
|
|
7156
|
-
elem.setAttribute(tag, true);
|
|
7157
|
-
}
|
|
7158
|
-
}
|
|
7159
|
-
|
|
7160
|
-
/**
|
|
7161
|
-
* Validates if an element is a specific Auro component.
|
|
7162
|
-
* @param {Object} elem - The element to validate.
|
|
7163
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
7164
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
7165
|
-
*/
|
|
7166
|
-
elementMatch(elem, tagName) {
|
|
7167
|
-
const tag = tagName.toLowerCase();
|
|
7168
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7169
|
-
|
|
7170
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
7171
|
-
}
|
|
7172
|
-
};
|
|
7173
|
-
|
|
7174
|
-
var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
7104
|
+
var styleCss$5 = i$5`.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-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-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-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)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
7175
7105
|
|
|
7176
7106
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7177
7107
|
// See LICENSE in the project root for license information.
|
|
@@ -7181,13 +7111,12 @@ var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
|
|
|
7181
7111
|
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
7182
7112
|
*
|
|
7183
7113
|
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
7184
|
-
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
7185
|
-
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
7186
7114
|
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
7115
|
+
* @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
7116
|
+
* @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
|
|
7187
7117
|
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
7188
7118
|
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
7189
7119
|
*/
|
|
7190
|
-
|
|
7191
7120
|
/* eslint complexity: ["error", 21] */
|
|
7192
7121
|
|
|
7193
7122
|
// build the component class
|
|
@@ -7200,7 +7129,7 @@ class AuroHeader extends i$2 {
|
|
|
7200
7129
|
/**
|
|
7201
7130
|
* @private
|
|
7202
7131
|
*/
|
|
7203
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
7132
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
7204
7133
|
}
|
|
7205
7134
|
|
|
7206
7135
|
// function to define props used within the scope of this component
|
|
@@ -7221,6 +7150,22 @@ class AuroHeader extends i$2 {
|
|
|
7221
7150
|
return [styleCss$5];
|
|
7222
7151
|
}
|
|
7223
7152
|
|
|
7153
|
+
/**
|
|
7154
|
+
* Mapping of display values to their corresponding CSS classes
|
|
7155
|
+
* @private
|
|
7156
|
+
*/
|
|
7157
|
+
static get displayClassMap() {
|
|
7158
|
+
return {
|
|
7159
|
+
'display': 'heading-xl',
|
|
7160
|
+
'800': 'heading-xl',
|
|
7161
|
+
'700': 'heading-lg',
|
|
7162
|
+
'600': 'heading-md',
|
|
7163
|
+
'500': 'heading-sm',
|
|
7164
|
+
'400': 'heading-xs',
|
|
7165
|
+
'300': 'heading-2xs'
|
|
7166
|
+
};
|
|
7167
|
+
}
|
|
7168
|
+
|
|
7224
7169
|
/**
|
|
7225
7170
|
* This will register this element with the browser.
|
|
7226
7171
|
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
@@ -7230,7 +7175,7 @@ class AuroHeader extends i$2 {
|
|
|
7230
7175
|
*
|
|
7231
7176
|
*/
|
|
7232
7177
|
static register(name = "auro-header") {
|
|
7233
|
-
AuroLibraryRuntimeUtils$
|
|
7178
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHeader);
|
|
7234
7179
|
}
|
|
7235
7180
|
|
|
7236
7181
|
firstUpdated() {
|
|
@@ -7297,23 +7242,42 @@ class AuroHeader extends i$2 {
|
|
|
7297
7242
|
this.display = 'display';
|
|
7298
7243
|
}
|
|
7299
7244
|
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7245
|
+
const headingLevel = level || '1';
|
|
7246
|
+
const spacingClasses = this.spacingDecision(this.size);
|
|
7247
|
+
|
|
7248
|
+
// Get the CSS class based on the display prop
|
|
7249
|
+
const headingClass = AuroHeader.displayClassMap[this.display];
|
|
7250
|
+
|
|
7251
|
+
const classObject = {
|
|
7252
|
+
'heading': true,
|
|
7253
|
+
[`heading--${this.display}`]: true,
|
|
7254
|
+
[headingClass]: true
|
|
7255
|
+
};
|
|
7256
|
+
|
|
7257
|
+
// Add spacing classes to the class object if they exist
|
|
7258
|
+
if (spacingClasses) {
|
|
7259
|
+
const spacingClassArray = spacingClasses.split(' ');
|
|
7260
|
+
spacingClassArray.forEach(cls => {
|
|
7261
|
+
if (cls.trim()) {
|
|
7262
|
+
classObject[cls.trim()] = true;
|
|
7263
|
+
}
|
|
7264
|
+
});
|
|
7307
7265
|
}
|
|
7266
|
+
|
|
7267
|
+
const headerClasses = e(classObject);
|
|
7268
|
+
|
|
7269
|
+
// unsafeStatic dynamically creates tag names at runtime
|
|
7270
|
+
const tag = s(`h${headingLevel}`);
|
|
7271
|
+
return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
|
|
7308
7272
|
}
|
|
7273
|
+
|
|
7309
7274
|
// function that renders the HTML and CSS into the scope of the component
|
|
7310
|
-
|
|
7311
7275
|
render() {
|
|
7312
7276
|
return this.template(this.level);
|
|
7313
7277
|
}
|
|
7314
7278
|
}
|
|
7315
7279
|
|
|
7316
|
-
var headerVersion = '4.0.
|
|
7280
|
+
var headerVersion = '4.0.2';
|
|
7317
7281
|
|
|
7318
7282
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7319
7283
|
// See LICENSE in the project root for license information.
|
|
@@ -7326,7 +7290,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7326
7290
|
|
|
7327
7291
|
this.large = false;
|
|
7328
7292
|
|
|
7329
|
-
AuroLibraryRuntimeUtils$
|
|
7293
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7330
7294
|
|
|
7331
7295
|
const versioning = new AuroDependencyVersioning();
|
|
7332
7296
|
|
|
@@ -7378,7 +7342,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7378
7342
|
*
|
|
7379
7343
|
*/
|
|
7380
7344
|
static register(name = "auro-bibtemplate") {
|
|
7381
|
-
AuroLibraryRuntimeUtils$
|
|
7345
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
7382
7346
|
}
|
|
7383
7347
|
|
|
7384
7348
|
/**
|
|
@@ -7668,7 +7632,7 @@ class AuroHelpText extends i$2 {
|
|
|
7668
7632
|
|
|
7669
7633
|
var helpTextVersion = '1.0.0';
|
|
7670
7634
|
|
|
7671
|
-
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}`;
|
|
7635
|
+
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}`;
|
|
7672
7636
|
|
|
7673
7637
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7674
7638
|
// See LICENSE in the project root for license information.
|
|
@@ -7704,11 +7668,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7704
7668
|
|
|
7705
7669
|
this.matchWidth = false;
|
|
7706
7670
|
|
|
7707
|
-
// Layout Config
|
|
7708
|
-
this.layout = 'snowflake';
|
|
7709
|
-
this.shape = 'snowflake';
|
|
7710
|
-
this.size = 'xl';
|
|
7711
|
-
|
|
7712
7671
|
// floaterConfig
|
|
7713
7672
|
this.placement = 'bottom-start';
|
|
7714
7673
|
this.offset = 0;
|
|
@@ -7717,10 +7676,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7717
7676
|
|
|
7718
7677
|
this.forceDisplayValue = false;
|
|
7719
7678
|
|
|
7720
|
-
this.layout = 'classic';
|
|
7721
|
-
this.shape = 'classic';
|
|
7722
|
-
this.size = 'xl';
|
|
7723
|
-
|
|
7724
7679
|
/**
|
|
7725
7680
|
* @private
|
|
7726
7681
|
*/
|
|
@@ -7736,7 +7691,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7736
7691
|
/**
|
|
7737
7692
|
* @private
|
|
7738
7693
|
*/
|
|
7739
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
7694
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
7740
7695
|
|
|
7741
7696
|
/**
|
|
7742
7697
|
* Generate unique names for dependency components.
|
|
@@ -7786,6 +7741,11 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7786
7741
|
this.fullscreenBreakpoint = 'sm';
|
|
7787
7742
|
this.onDark = false;
|
|
7788
7743
|
this.isPopoverVisible = false;
|
|
7744
|
+
|
|
7745
|
+
// Layout Config
|
|
7746
|
+
this.layout = 'classic';
|
|
7747
|
+
this.shape = 'classic';
|
|
7748
|
+
this.size = 'lg';
|
|
7789
7749
|
}
|
|
7790
7750
|
|
|
7791
7751
|
// This function is to define props used within the scope of this component
|
|
@@ -8091,7 +8051,8 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8091
8051
|
const obj = {
|
|
8092
8052
|
'is-disabled': this.disabled,
|
|
8093
8053
|
'withValue': false,
|
|
8094
|
-
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8054
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
|
|
8055
|
+
[this.labelFontClass]: true
|
|
8095
8056
|
};
|
|
8096
8057
|
|
|
8097
8058
|
if (this.placeholder) {
|
|
@@ -8107,14 +8068,32 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8107
8068
|
}
|
|
8108
8069
|
|
|
8109
8070
|
/**
|
|
8110
|
-
* Returns
|
|
8071
|
+
* Returns the label font class based on layout and selection state.
|
|
8111
8072
|
* @private
|
|
8112
|
-
* @returns {
|
|
8073
|
+
* @returns {string} - The font class for the label.
|
|
8113
8074
|
*/
|
|
8114
|
-
get
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8075
|
+
get labelFontClass() {
|
|
8076
|
+
const isSelected = this.hasValue;
|
|
8077
|
+
|
|
8078
|
+
if (this.layout.startsWith('emphasized')) {
|
|
8079
|
+
return isSelected ? 'body-sm' : 'accent-xl';
|
|
8080
|
+
}
|
|
8081
|
+
|
|
8082
|
+
if (this.layout === 'snowflake') {
|
|
8083
|
+
return isSelected ? 'body-xs' : 'body-lg';
|
|
8084
|
+
}
|
|
8085
|
+
|
|
8086
|
+
// classic layout (default)
|
|
8087
|
+
return isSelected ? 'body-xs' : 'body-default';
|
|
8088
|
+
}
|
|
8089
|
+
|
|
8090
|
+
/**
|
|
8091
|
+
* Whether or not the component has a value.
|
|
8092
|
+
* @returns {boolean} - Returns true if the component has a value or placeholder.
|
|
8093
|
+
* @private
|
|
8094
|
+
*/
|
|
8095
|
+
get hasValue() {
|
|
8096
|
+
return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
|
|
8118
8097
|
}
|
|
8119
8098
|
|
|
8120
8099
|
/**
|
|
@@ -8164,7 +8143,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8164
8143
|
*
|
|
8165
8144
|
*/
|
|
8166
8145
|
static register(name = "auro-select") {
|
|
8167
|
-
AuroLibraryRuntimeUtils$
|
|
8146
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
|
|
8168
8147
|
}
|
|
8169
8148
|
|
|
8170
8149
|
/**
|
|
@@ -8270,7 +8249,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8270
8249
|
|
|
8271
8250
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
8272
8251
|
this.optionSelected = this.menu.optionSelected;
|
|
8273
|
-
this.
|
|
8252
|
+
this.validate(this);
|
|
8274
8253
|
});
|
|
8275
8254
|
|
|
8276
8255
|
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
@@ -8354,7 +8333,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8354
8333
|
this.addEventListener('focusin', this.handleFocusin);
|
|
8355
8334
|
|
|
8356
8335
|
this.addEventListener('blur', () => {
|
|
8357
|
-
this.
|
|
8336
|
+
this.validate();
|
|
8358
8337
|
this.hasFocus = false;
|
|
8359
8338
|
});
|
|
8360
8339
|
}
|
|
@@ -8568,7 +8547,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8568
8547
|
}
|
|
8569
8548
|
|
|
8570
8549
|
this._updateNativeSelect();
|
|
8571
|
-
this.
|
|
8550
|
+
this.validate();
|
|
8572
8551
|
|
|
8573
8552
|
// LEGACY EVENT
|
|
8574
8553
|
this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
|
|
@@ -8776,7 +8755,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8776
8755
|
|
|
8777
8756
|
return u`
|
|
8778
8757
|
<div
|
|
8779
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8780
8758
|
part="wrapper">
|
|
8781
8759
|
<div id="slotHolder" aria-hidden="true">
|
|
8782
8760
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8855,7 +8833,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8855
8833
|
|
|
8856
8834
|
return u`
|
|
8857
8835
|
<div
|
|
8858
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8859
8836
|
part="wrapper">
|
|
8860
8837
|
<div id="slotHolder" aria-hidden="true">
|
|
8861
8838
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8932,9 +8909,13 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8932
8909
|
'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
|
|
8933
8910
|
};
|
|
8934
8911
|
|
|
8912
|
+
const valueClasses = {
|
|
8913
|
+
'value': true,
|
|
8914
|
+
'body-default': true
|
|
8915
|
+
};
|
|
8916
|
+
|
|
8935
8917
|
return u`
|
|
8936
8918
|
<div
|
|
8937
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8938
8919
|
part="wrapper">
|
|
8939
8920
|
<div id="slotHolder" aria-hidden="true">
|
|
8940
8921
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8964,7 +8945,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8964
8945
|
<slot name="label"></slot>
|
|
8965
8946
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8966
8947
|
</label>
|
|
8967
|
-
<div class="
|
|
8948
|
+
<div class="${e(valueClasses)}" id="value"></div>
|
|
8968
8949
|
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8969
8950
|
${this.placeholder}
|
|
8970
8951
|
</div>
|
|
@@ -9237,7 +9218,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9237
9218
|
*
|
|
9238
9219
|
*/
|
|
9239
9220
|
static register(name = "auro-menu") {
|
|
9240
|
-
AuroLibraryRuntimeUtils$
|
|
9221
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
|
|
9241
9222
|
}
|
|
9242
9223
|
|
|
9243
9224
|
/**
|
|
@@ -9281,7 +9262,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9281
9262
|
}
|
|
9282
9263
|
|
|
9283
9264
|
firstUpdated() {
|
|
9284
|
-
AuroLibraryRuntimeUtils$
|
|
9265
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
|
|
9285
9266
|
|
|
9286
9267
|
this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
|
|
9287
9268
|
this.initializeMenu();
|
|
@@ -10332,7 +10313,7 @@ class AuroMenuOption extends AuroElement$4 {
|
|
|
10332
10313
|
/**
|
|
10333
10314
|
* @private
|
|
10334
10315
|
*/
|
|
10335
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
10316
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
10336
10317
|
}
|
|
10337
10318
|
|
|
10338
10319
|
static get properties() {
|
|
@@ -10378,7 +10359,7 @@ class AuroMenuOption extends AuroElement$4 {
|
|
|
10378
10359
|
*
|
|
10379
10360
|
*/
|
|
10380
10361
|
static register(name = "auro-menuoption") {
|
|
10381
|
-
AuroLibraryRuntimeUtils$
|
|
10362
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
|
|
10382
10363
|
}
|
|
10383
10364
|
|
|
10384
10365
|
firstUpdated() {
|