@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.0 → 0.0.0-pr757.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +3 -3
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/api.md +13 -7
- package/components/counter/demo/api.min.js +3 -9
- package/components/counter/demo/index.md +1 -1
- package/components/counter/demo/index.min.js +3 -9
- package/components/counter/dist/auro-counter-group.d.ts +1 -1
- package/components/counter/dist/index.js +3 -9
- package/components/counter/dist/registered.js +3 -9
- package/components/datepicker/demo/api.min.js +3 -3
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/api.md +16 -2
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +3 -3
- package/components/input/demo/index.min.js +3 -3
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +3 -3
- package/components/input/dist/registered.js +3 -3
- package/components/select/demo/api.md +13 -7
- package/components/select/demo/api.min.js +26 -25
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +26 -25
- package/components/select/dist/auro-select.d.ts +7 -1
- package/components/select/dist/index.js +26 -25
- package/components/select/dist/registered.js +26 -25
- package/package.json +2 -2
|
@@ -7602,7 +7602,7 @@ css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
|
|
|
7602
7602
|
|
|
7603
7603
|
css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
7604
7604
|
|
|
7605
|
-
var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[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([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;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:8px}.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 8px 0 24px}: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 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}: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])
|
|
7605
|
+
var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[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([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;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:8px}.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 8px 0 24px}: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 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}: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}`;
|
|
7606
7606
|
|
|
7607
7607
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7608
7608
|
// See LICENSE in the project root for license information.
|
|
@@ -7617,7 +7617,6 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
7617
7617
|
* @slot label - Defines the content of the label.
|
|
7618
7618
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
7619
7619
|
* @slot helpText - Defines the content of the helpText.
|
|
7620
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
7621
7620
|
* @slot valueText - Dropdown value text display.
|
|
7622
7621
|
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
7623
7622
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
@@ -7887,6 +7886,14 @@ class AuroSelect extends AuroElement$3 {
|
|
|
7887
7886
|
reflect: true
|
|
7888
7887
|
},
|
|
7889
7888
|
|
|
7889
|
+
/**
|
|
7890
|
+
* Define custom placeholder text.
|
|
7891
|
+
*/
|
|
7892
|
+
placeholder: {
|
|
7893
|
+
type: String,
|
|
7894
|
+
reflect: true
|
|
7895
|
+
},
|
|
7896
|
+
|
|
7890
7897
|
/**
|
|
7891
7898
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
7892
7899
|
*/
|
|
@@ -7997,7 +8004,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
7997
8004
|
get commonLabelClasses() {
|
|
7998
8005
|
return {
|
|
7999
8006
|
'is-disabled': this.disabled,
|
|
8000
|
-
'withValue': this.value && this.value.length > 0,
|
|
8007
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8001
8008
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8002
8009
|
};
|
|
8003
8010
|
}
|
|
@@ -8634,7 +8641,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8634
8641
|
: html`
|
|
8635
8642
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8636
8643
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8637
|
-
|
|
8644
|
+
${this.errorMessage}
|
|
8638
8645
|
</p>
|
|
8639
8646
|
</${this.helpTextTag}>
|
|
8640
8647
|
`
|
|
@@ -8649,14 +8656,14 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8649
8656
|
*/
|
|
8650
8657
|
renderLayoutEmphasized() {
|
|
8651
8658
|
const placeholderClass = {
|
|
8652
|
-
|
|
8659
|
+
'util_displayHidden': this.value
|
|
8653
8660
|
};
|
|
8654
8661
|
|
|
8655
8662
|
const displayValueClasses = {
|
|
8656
8663
|
'displayValue': true,
|
|
8657
8664
|
'hasContent': this.hasDisplayValueContent,
|
|
8658
8665
|
'hasFocus': this.isPopoverVisible,
|
|
8659
|
-
'withValue': this.value && this.value.length > 0,
|
|
8666
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8660
8667
|
'force': this.forceDisplayValue,
|
|
8661
8668
|
};
|
|
8662
8669
|
|
|
@@ -8700,11 +8707,9 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8700
8707
|
${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8701
8708
|
</label>
|
|
8702
8709
|
<div class="value" id="value"></div>
|
|
8703
|
-
${
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
</div>
|
|
8707
|
-
`}
|
|
8710
|
+
<div id="placeholder" class="${classMap(placeholderClass)}">
|
|
8711
|
+
${this.placeholder}
|
|
8712
|
+
</div>
|
|
8708
8713
|
</div>
|
|
8709
8714
|
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8710
8715
|
<slot name="displayValue"></slot>
|
|
@@ -8731,14 +8736,14 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8731
8736
|
*/
|
|
8732
8737
|
renderLayoutSnowflake() {
|
|
8733
8738
|
const placeholderClass = {
|
|
8734
|
-
|
|
8739
|
+
'util_displayHidden': this.value
|
|
8735
8740
|
};
|
|
8736
8741
|
|
|
8737
8742
|
const displayValueClasses = {
|
|
8738
8743
|
'displayValue': true,
|
|
8739
8744
|
'hasContent': this.hasDisplayValueContent,
|
|
8740
8745
|
'hasFocus': this.isPopoverVisible,
|
|
8741
|
-
'withValue': this.value && this.value.length > 0,
|
|
8746
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8742
8747
|
'force': this.forceDisplayValue,
|
|
8743
8748
|
};
|
|
8744
8749
|
|
|
@@ -8781,11 +8786,9 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8781
8786
|
${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8782
8787
|
</label>
|
|
8783
8788
|
<div class="value" id="value"></div>
|
|
8784
|
-
${
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
</div>
|
|
8788
|
-
`}
|
|
8789
|
+
<div id="placeholder" class="${classMap(placeholderClass)}">
|
|
8790
|
+
${this.placeholder}
|
|
8791
|
+
</div>
|
|
8789
8792
|
</div>
|
|
8790
8793
|
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8791
8794
|
<slot name="displayValue"></slot>
|
|
@@ -8813,14 +8816,14 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8813
8816
|
*/
|
|
8814
8817
|
renderLayoutClassic() {
|
|
8815
8818
|
const placeholderClass = {
|
|
8816
|
-
|
|
8819
|
+
'util_displayHidden': this.value
|
|
8817
8820
|
};
|
|
8818
8821
|
|
|
8819
8822
|
const displayValueClasses = {
|
|
8820
8823
|
'displayValue': true,
|
|
8821
8824
|
'hasContent': this.hasDisplayValueContent,
|
|
8822
8825
|
'hasFocus': this.isPopoverVisible,
|
|
8823
|
-
'withValue': this.value && this.value.length > 0,
|
|
8826
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8824
8827
|
'force': this.forceDisplayValue,
|
|
8825
8828
|
};
|
|
8826
8829
|
|
|
@@ -8863,11 +8866,9 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8863
8866
|
${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8864
8867
|
</label>
|
|
8865
8868
|
<div class="value" id="value"></div>
|
|
8866
|
-
${
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
</div>
|
|
8870
|
-
`}
|
|
8869
|
+
<div id="placeholder" class="${classMap(placeholderClass)}">
|
|
8870
|
+
${this.placeholder}
|
|
8871
|
+
</div>
|
|
8871
8872
|
</div>
|
|
8872
8873
|
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8873
8874
|
<slot name="displayValue"></slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-pr757.
|
|
3
|
+
"version": "0.0.0-pr757.2",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@aurodesignsystem/design-tokens": "^8.2.1",
|
|
64
64
|
"@aurodesignsystem/eslint-config": "^1.3.4",
|
|
65
|
-
"@aurodesignsystem/webcorestylesheets": "^
|
|
65
|
+
"@aurodesignsystem/webcorestylesheets": "^10.0.0",
|
|
66
66
|
"@commitlint/cli": "^19.8.1",
|
|
67
67
|
"@commitlint/config-conventional": "^19.8.1",
|
|
68
68
|
"@open-wc/testing": "^4.0.0",
|