@aurodesignsystem-dev/auro-formkit 0.0.0-pr832.0 → 0.0.0-pr833.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/index.js +8 -10
- package/components/bibtemplate/dist/registered.js +8 -10
- package/components/checkbox/demo/api.md +6 -7
- package/components/checkbox/demo/api.min.js +8 -5
- package/components/checkbox/demo/index.min.js +8 -5
- package/components/checkbox/dist/auro-checkbox.d.ts +0 -3
- package/components/checkbox/dist/index.js +8 -5
- package/components/checkbox/dist/registered.js +8 -5
- package/components/combobox/demo/api.min.js +32 -46
- package/components/combobox/demo/index.min.js +32 -46
- package/components/combobox/dist/auro-combobox.d.ts +0 -5
- package/components/combobox/dist/index.js +32 -46
- package/components/combobox/dist/registered.js +32 -46
- package/components/counter/demo/api.min.js +23 -14
- package/components/counter/demo/index.min.js +23 -14
- package/components/counter/dist/index.js +23 -14
- package/components/counter/dist/registered.js +23 -14
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/api.min.js +23 -14
- package/components/datepicker/demo/index.min.js +23 -14
- package/components/datepicker/dist/index.js +23 -14
- package/components/datepicker/dist/registered.js +23 -14
- package/components/dropdown/demo/api.min.js +11 -0
- package/components/dropdown/demo/index.min.js +11 -0
- package/components/dropdown/dist/index.js +11 -0
- package/components/dropdown/dist/registered.js +11 -0
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/input/demo/api.md +3 -1
- package/components/input/demo/api.min.js +3 -3
- package/components/input/demo/index.min.js +3 -3
- package/components/input/dist/auro-input.d.ts +2 -2
- package/components/input/dist/index.js +3 -3
- package/components/input/dist/registered.js +3 -3
- package/components/radio/demo/api.md +0 -2
- package/components/radio/demo/api.min.js +1 -3
- package/components/radio/demo/index.min.js +1 -3
- package/components/radio/dist/auro-radio.d.ts +0 -2
- package/components/radio/dist/index.js +1 -3
- package/components/radio/dist/registered.js +1 -3
- package/components/select/demo/api.md +0 -1
- package/components/select/demo/api.min.js +36 -57
- package/components/select/demo/index.min.js +36 -57
- package/components/select/dist/auro-select.d.ts +1 -13
- package/components/select/dist/index.js +36 -57
- package/components/select/dist/registered.js +36 -57
- package/package.json +5 -5
|
@@ -1913,6 +1913,12 @@ class AuroFloatingUI {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
1915
|
setupHideHandlers() {
|
|
1916
|
+
this.preventFocusLoseOnBibClick = (event) => {
|
|
1917
|
+
event.preventDefault();
|
|
1918
|
+
event.stopPropagation();
|
|
1919
|
+
};
|
|
1920
|
+
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1921
|
+
|
|
1916
1922
|
// Define handlers & store references
|
|
1917
1923
|
this.focusHandler = () => this.handleFocusLoss();
|
|
1918
1924
|
|
|
@@ -1962,6 +1968,11 @@ class AuroFloatingUI {
|
|
|
1962
1968
|
cleanupHideHandlers() {
|
|
1963
1969
|
// Remove event listeners if they exist
|
|
1964
1970
|
|
|
1971
|
+
if (this.preventFocusLoseOnBibClick) {
|
|
1972
|
+
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1973
|
+
delete this.preventFocusLoseOnBibClick;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1965
1976
|
if (this.focusHandler) {
|
|
1966
1977
|
document.removeEventListener('focusin', this.focusHandler);
|
|
1967
1978
|
this.focusHandler = null;
|
|
@@ -20,7 +20,7 @@ The auro-form element provides users a way to ... (it would be great if you fill
|
|
|
20
20
|
| [isInitialState](#isInitialState) | readonly | `boolean` | | Mostly internal way to determine if a form is in the initial state. |
|
|
21
21
|
| [mutationEventListener](#mutationEventListener) | | | | |
|
|
22
22
|
| [reset](#reset) | | | | |
|
|
23
|
-
| [resetElements](#resetElements) | readonly | `HTMLButtonElement[]` | | Returns a collection of elements that will reset the form
|
|
23
|
+
| [resetElements](#resetElements) | readonly | `HTMLButtonElement[]` | | Returns a collection of elements that will reset the form |
|
|
24
24
|
| [sharedInputListener](#sharedInputListener) | | | | |
|
|
25
25
|
| [sharedValidationListener](#sharedValidationListener) | | | | |
|
|
26
26
|
| [submit](#submit) | | | | |
|
|
@@ -146,7 +146,7 @@ export class AuroForm extends LitElement {
|
|
|
146
146
|
*/
|
|
147
147
|
get submitElements(): HTMLButtonElement[];
|
|
148
148
|
/**
|
|
149
|
-
* Returns a collection of elements that will reset the form
|
|
149
|
+
* Returns a collection of elements that will reset the form
|
|
150
150
|
* @returns {HTMLButtonElement[]}
|
|
151
151
|
*/
|
|
152
152
|
get resetElements(): HTMLButtonElement[];
|
|
@@ -247,7 +247,7 @@ class AuroForm extends LitElement {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* Returns a collection of elements that will reset the form
|
|
250
|
+
* Returns a collection of elements that will reset the form
|
|
251
251
|
* @returns {HTMLButtonElement[]}
|
|
252
252
|
*/
|
|
253
253
|
get resetElements() {
|
|
@@ -247,7 +247,7 @@ class AuroForm extends LitElement {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* Returns a collection of elements that will reset the form
|
|
250
|
+
* Returns a collection of elements that will reset the form
|
|
251
251
|
* @returns {HTMLButtonElement[]}
|
|
252
252
|
*/
|
|
253
253
|
get resetElements() {
|
|
@@ -1331,6 +1331,8 @@ The component may be restyled using the following code sample and changing the v
|
|
|
1331
1331
|
|
|
1332
1332
|
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
1333
1333
|
|
|
1334
|
+
$ds-basic-color-border-bold: #585e67;
|
|
1335
|
+
|
|
1334
1336
|
:host(:not([ondark])) {
|
|
1335
1337
|
--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
1336
1338
|
--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
@@ -1349,7 +1351,7 @@ The component may be restyled using the following code sample and changing the v
|
|
|
1349
1351
|
--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
1350
1352
|
--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
1351
1353
|
--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #{v.$ds-advanced-color-state-focused-inverse});
|
|
1352
|
-
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse
|
|
1354
|
+
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1353
1355
|
--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1354
1356
|
--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1355
1357
|
--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #{v.$ds-basic-color-status-error-subtle});
|
|
@@ -124,7 +124,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
124
124
|
|
|
125
125
|
var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
126
126
|
|
|
127
|
-
var tokensCss$4 = i$5`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse
|
|
127
|
+
var tokensCss$4 = i$5`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
128
128
|
|
|
129
129
|
var classicStyleCss = i$5`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
130
130
|
|
|
@@ -8041,7 +8041,7 @@ class AuroInput extends BaseInput {
|
|
|
8041
8041
|
/**
|
|
8042
8042
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
8043
8043
|
* @private
|
|
8044
|
-
* @returns {
|
|
8044
|
+
* @returns {Record<string, boolean>}
|
|
8045
8045
|
*/
|
|
8046
8046
|
get commonLabelClasses() {
|
|
8047
8047
|
return {
|
|
@@ -8055,7 +8055,7 @@ class AuroInput extends BaseInput {
|
|
|
8055
8055
|
/**
|
|
8056
8056
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
8057
8057
|
* @private
|
|
8058
|
-
* @returns {
|
|
8058
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
8059
8059
|
*/
|
|
8060
8060
|
get commonInputClasses() {
|
|
8061
8061
|
return {
|
|
@@ -49,7 +49,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
49
49
|
|
|
50
50
|
var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
51
51
|
|
|
52
|
-
var tokensCss$4 = i$5`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse
|
|
52
|
+
var tokensCss$4 = i$5`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
53
53
|
|
|
54
54
|
var classicStyleCss = i$5`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
55
55
|
|
|
@@ -7966,7 +7966,7 @@ class AuroInput extends BaseInput {
|
|
|
7966
7966
|
/**
|
|
7967
7967
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7968
7968
|
* @private
|
|
7969
|
-
* @returns {
|
|
7969
|
+
* @returns {Record<string, boolean>}
|
|
7970
7970
|
*/
|
|
7971
7971
|
get commonLabelClasses() {
|
|
7972
7972
|
return {
|
|
@@ -7980,7 +7980,7 @@ class AuroInput extends BaseInput {
|
|
|
7980
7980
|
/**
|
|
7981
7981
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7982
7982
|
* @private
|
|
7983
|
-
* @returns {
|
|
7983
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
7984
7984
|
*/
|
|
7985
7985
|
get commonInputClasses() {
|
|
7986
7986
|
return {
|
|
@@ -52,13 +52,13 @@ export class AuroInput extends BaseInput {
|
|
|
52
52
|
/**
|
|
53
53
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
54
54
|
* @private
|
|
55
|
-
* @returns {
|
|
55
|
+
* @returns {Record<string, boolean>}
|
|
56
56
|
*/
|
|
57
57
|
private get commonLabelClasses();
|
|
58
58
|
/**
|
|
59
59
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
60
60
|
* @private
|
|
61
|
-
* @returns {
|
|
61
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
62
62
|
*/
|
|
63
63
|
private get commonInputClasses();
|
|
64
64
|
/**
|
|
@@ -12,7 +12,7 @@ var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
12
12
|
|
|
13
13
|
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
14
14
|
|
|
15
|
-
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse
|
|
15
|
+
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
16
16
|
|
|
17
17
|
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18
18
|
|
|
@@ -7890,7 +7890,7 @@ class AuroInput extends BaseInput {
|
|
|
7890
7890
|
/**
|
|
7891
7891
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7892
7892
|
* @private
|
|
7893
|
-
* @returns {
|
|
7893
|
+
* @returns {Record<string, boolean>}
|
|
7894
7894
|
*/
|
|
7895
7895
|
get commonLabelClasses() {
|
|
7896
7896
|
return {
|
|
@@ -7904,7 +7904,7 @@ class AuroInput extends BaseInput {
|
|
|
7904
7904
|
/**
|
|
7905
7905
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7906
7906
|
* @private
|
|
7907
|
-
* @returns {
|
|
7907
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
7908
7908
|
*/
|
|
7909
7909
|
get commonInputClasses() {
|
|
7910
7910
|
return {
|
|
@@ -12,7 +12,7 @@ var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
12
12
|
|
|
13
13
|
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
14
14
|
|
|
15
|
-
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse
|
|
15
|
+
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
16
16
|
|
|
17
17
|
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18
18
|
|
|
@@ -7890,7 +7890,7 @@ class AuroInput extends BaseInput {
|
|
|
7890
7890
|
/**
|
|
7891
7891
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7892
7892
|
* @private
|
|
7893
|
-
* @returns {
|
|
7893
|
+
* @returns {Record<string, boolean>}
|
|
7894
7894
|
*/
|
|
7895
7895
|
get commonLabelClasses() {
|
|
7896
7896
|
return {
|
|
@@ -7904,7 +7904,7 @@ class AuroInput extends BaseInput {
|
|
|
7904
7904
|
/**
|
|
7905
7905
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7906
7906
|
* @private
|
|
7907
|
-
* @returns {
|
|
7907
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
7908
7908
|
*/
|
|
7909
7909
|
get commonInputClasses() {
|
|
7910
7910
|
return {
|
|
@@ -76,9 +76,7 @@
|
|
|
76
76
|
|----------------------|--------------------|--------------------------------------------------|
|
|
77
77
|
| `auroRadio-blur` | `CustomEvent<any>` | Notifies that the component has lost focus. |
|
|
78
78
|
| `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
|
|
79
|
-
| [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
|
|
80
79
|
| [focusSelected](#focusSelected) | `CustomEvent<any>` | Notifies that the component has gained focus. |
|
|
81
|
-
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
82
80
|
| [resetRadio](#resetRadio) | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
|
|
83
81
|
| [toggleSelected](#toggleSelected) | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
|
|
84
82
|
|
|
@@ -162,8 +162,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
162
162
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
163
163
|
* @attr id
|
|
164
164
|
*
|
|
165
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
166
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
167
165
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
168
166
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
169
167
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -420,7 +418,7 @@ class AuroRadio extends i$2 {
|
|
|
420
418
|
@input="${this.handleInput}"
|
|
421
419
|
@change="${this.handleChange}"
|
|
422
420
|
?disabled="${this.disabled}"
|
|
423
|
-
|
|
421
|
+
.checked="${this.checked}"
|
|
424
422
|
id="${this.inputId}"
|
|
425
423
|
name="${o$1(this.name)}"
|
|
426
424
|
type="radio"
|
|
@@ -137,8 +137,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
137
137
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
138
138
|
* @attr id
|
|
139
139
|
*
|
|
140
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
141
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
142
140
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
143
141
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
144
142
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -395,7 +393,7 @@ class AuroRadio extends i$2 {
|
|
|
395
393
|
@input="${this.handleInput}"
|
|
396
394
|
@change="${this.handleChange}"
|
|
397
395
|
?disabled="${this.disabled}"
|
|
398
|
-
|
|
396
|
+
.checked="${this.checked}"
|
|
399
397
|
id="${this.inputId}"
|
|
400
398
|
name="${o$1(this.name)}"
|
|
401
399
|
type="radio"
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10
10
|
* @attr id
|
|
11
11
|
*
|
|
12
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
13
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
14
12
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
15
13
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
16
14
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -97,8 +97,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
97
97
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
98
98
|
* @attr id
|
|
99
99
|
*
|
|
100
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
101
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
102
100
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
103
101
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
104
102
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -355,7 +353,7 @@ class AuroRadio extends LitElement {
|
|
|
355
353
|
@input="${this.handleInput}"
|
|
356
354
|
@change="${this.handleChange}"
|
|
357
355
|
?disabled="${this.disabled}"
|
|
358
|
-
|
|
356
|
+
.checked="${this.checked}"
|
|
359
357
|
id="${this.inputId}"
|
|
360
358
|
name="${ifDefined(this.name)}"
|
|
361
359
|
type="radio"
|
|
@@ -97,8 +97,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
97
97
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
98
98
|
* @attr id
|
|
99
99
|
*
|
|
100
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
101
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
102
100
|
* @event focusSelected - Notifies that the component has gained focus.
|
|
103
101
|
* @event auroRadio-blur - Notifies that the component has lost focus.
|
|
104
102
|
* @event resetRadio - Notifies that the component has reset the checked/selected state.
|
|
@@ -355,7 +353,7 @@ class AuroRadio extends LitElement {
|
|
|
355
353
|
@input="${this.handleInput}"
|
|
356
354
|
@change="${this.handleChange}"
|
|
357
355
|
?disabled="${this.disabled}"
|
|
358
|
-
|
|
356
|
+
.checked="${this.checked}"
|
|
359
357
|
id="${this.inputId}"
|
|
360
358
|
name="${ifDefined(this.name)}"
|
|
361
359
|
type="radio"
|
|
@@ -20,7 +20,6 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
20
20
|
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | If declared, sets the autocomplete attribute for the select element. |
|
|
21
21
|
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
22
22
|
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
23
|
-
| [fluid](#fluid) | `fluid` | `boolean` | | When attribute is present, element will be 100% width of container element. |
|
|
24
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. |
|
|
25
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. |
|
|
26
25
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|